From 78c6c614ab3c55a2503e26a8214e8e3bfedef6ca Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 23 Jan 2025 13:07:43 +0000 Subject: [PATCH] ci: automatic build fixes --- ...der-5d1618f3.js => ClipLoader-c5e3f404.js} | 2 +- ...on-b6c8aa6b.js => DailyMotion-70099f86.js} | 2 +- ...ebook-0ee5e652.js => Facebook-679d89ef.js} | 2 +- ...yer-0c33d633.js => FilePlayer-ffe9d389.js} | 2 +- ...altura-a1d8a38e.js => Kaltura-feee46e7.js} | 2 +- ...cloud-f88cc052.js => Mixcloud-3bd14a3c.js} | 2 +- ...review-8fcfe1ff.js => Preview-ef0abbdc.js} | 2 +- ...leton-0caad96e.js => Skeleton-38c1ef25.js} | 2 +- ...oud-d2ebaa3e.js => SoundCloud-3d326d7f.js} | 2 +- .../{Stack-55a7903f.js => Stack-9bdcdce4.js} | 2 +- ...ble-a70b1a07.js => Streamable-bf2bf784.js} | 2 +- .../{Tabs-daec6b20.js => Tabs-bdc00dfa.js} | 2 +- ...1f6749.js => TextareaAutosize-6a1de228.js} | 2 +- ...{Twitch-39773e87.js => Twitch-3a5d25d3.js} | 2 +- ...phy-429e0f96.js => Typography-1878e488.js} | 2 +- ...idyard-8a52c8eb.js => Vidyard-e93d6b1b.js} | 2 +- .../{Vimeo-1cb68ca4.js => Vimeo-44a73af8.js} | 2 +- ...{Wistia-ce4bd35e.js => Wistia-ba296090.js} | 2 +- ...ouTube-fd65d17f.js => YouTube-1260fc82.js} | 2 +- ...ants-0d6f6cd8.js => constants-2b0c7022.js} | 2 +- ...-9333dda0.js => createSvgIcon-a3d1c07a.js} | 2 +- .../{index-8f1177e3.js => index-04f9e7e6.js} | 98 +-- .../{index-d3279c0a.js => index-0bfd4f43.js} | 2 +- .../{index-8fe66f52.js => index-0f3ae51e.js} | 2 +- .../{index-feca9a2a.js => index-16a4de5c.js} | 2 +- .../{index-971683ff.js => index-16d81c1b.js} | 2 +- .../{index-782eeb55.js => index-25d86406.js} | 2 +- .../{index-6dffcdfe.js => index-27a6e103.js} | 2 +- .../{index-9e906cde.js => index-292d93f3.js} | 30 +- .../{index-d9032019.js => index-30313f81.js} | 2 +- .../{index-0b5a2f2c.js => index-3d9e69a5.js} | 2 +- .../{index-dbb72407.js => index-50fe1111.js} | 2 +- .../{index-bdc490cb.js => index-51ac9e53.js} | 2 +- .../{index-584de9aa.js => index-5597819c.js} | 2 +- .../{index-c7f888ab.js => index-6d28c8a5.js} | 6 +- .../{index-ea2443df.js => index-702ff85f.js} | 2 +- .../{index-fff133ec.js => index-734a9b6e.js} | 2 +- .../{index-26468b48.js => index-782ff866.js} | 2 +- .../{index-143cd8e7.js => index-79f6d834.js} | 2 +- .../{index-b5adeb0f.js => index-85bc38f1.js} | 2 +- .../{index-9a560549.js => index-971cba7b.js} | 106 +-- .../{index-bd265d78.js => index-a1075bd4.js} | 2 +- .../{index-2ee36238.js => index-a5296771.js} | 2 +- .../{index-48bbbe33.js => index-c4f1167d.js} | 2 +- .../{index-ca6739d4.js => index-dfd22792.js} | 2 +- .../{index-18ba9b8b.js => index-e289962d.js} | 2 +- .../{index-c0d858f0.js => index-e6c92504.js} | 724 +++++++++--------- ...-2fea37bb.js => isPlainObject-0689f20b.js} | 2 +- build/index.html | 2 +- 49 files changed, 526 insertions(+), 526 deletions(-) rename build/assets/{ClipLoader-5d1618f3.js => ClipLoader-c5e3f404.js} (97%) rename build/assets/{DailyMotion-b6c8aa6b.js => DailyMotion-70099f86.js} (95%) rename build/assets/{Facebook-0ee5e652.js => Facebook-679d89ef.js} (96%) rename build/assets/{FilePlayer-0c33d633.js => FilePlayer-ffe9d389.js} (98%) rename build/assets/{Kaltura-a1d8a38e.js => Kaltura-feee46e7.js} (95%) rename build/assets/{Mixcloud-f88cc052.js => Mixcloud-3bd14a3c.js} (95%) rename build/assets/{Preview-8fcfe1ff.js => Preview-ef0abbdc.js} (97%) rename build/assets/{Skeleton-0caad96e.js => Skeleton-38c1ef25.js} (97%) rename build/assets/{SoundCloud-d2ebaa3e.js => SoundCloud-3d326d7f.js} (95%) rename build/assets/{Stack-55a7903f.js => Stack-9bdcdce4.js} (99%) rename build/assets/{Streamable-a70b1a07.js => Streamable-bf2bf784.js} (95%) rename build/assets/{Tabs-daec6b20.js => Tabs-bdc00dfa.js} (99%) rename build/assets/{TextareaAutosize-ba1f6749.js => TextareaAutosize-6a1de228.js} (97%) rename build/assets/{Twitch-39773e87.js => Twitch-3a5d25d3.js} (95%) rename build/assets/{Typography-429e0f96.js => Typography-1878e488.js} (93%) rename build/assets/{Vidyard-8a52c8eb.js => Vidyard-e93d6b1b.js} (95%) rename build/assets/{Vimeo-1cb68ca4.js => Vimeo-44a73af8.js} (96%) rename build/assets/{Wistia-ce4bd35e.js => Wistia-ba296090.js} (96%) rename build/assets/{YouTube-fd65d17f.js => YouTube-1260fc82.js} (97%) rename build/assets/{constants-0d6f6cd8.js => constants-2b0c7022.js} (80%) rename build/assets/{createSvgIcon-9333dda0.js => createSvgIcon-a3d1c07a.js} (97%) rename build/assets/{index-8f1177e3.js => index-04f9e7e6.js} (94%) rename build/assets/{index-d3279c0a.js => index-0bfd4f43.js} (97%) rename build/assets/{index-8fe66f52.js => index-0f3ae51e.js} (91%) rename build/assets/{index-feca9a2a.js => index-16a4de5c.js} (96%) rename build/assets/{index-971683ff.js => index-16d81c1b.js} (98%) rename build/assets/{index-782eeb55.js => index-25d86406.js} (98%) rename build/assets/{index-6dffcdfe.js => index-27a6e103.js} (96%) rename build/assets/{index-9e906cde.js => index-292d93f3.js} (82%) rename build/assets/{index-d9032019.js => index-30313f81.js} (99%) rename build/assets/{index-0b5a2f2c.js => index-3d9e69a5.js} (96%) rename build/assets/{index-dbb72407.js => index-50fe1111.js} (99%) rename build/assets/{index-bdc490cb.js => index-51ac9e53.js} (69%) rename build/assets/{index-584de9aa.js => index-5597819c.js} (93%) rename build/assets/{index-c7f888ab.js => index-6d28c8a5.js} (97%) rename build/assets/{index-ea2443df.js => index-702ff85f.js} (93%) rename build/assets/{index-fff133ec.js => index-734a9b6e.js} (99%) rename build/assets/{index-26468b48.js => index-782ff866.js} (96%) rename build/assets/{index-143cd8e7.js => index-79f6d834.js} (97%) rename build/assets/{index-b5adeb0f.js => index-85bc38f1.js} (93%) rename build/assets/{index-9a560549.js => index-971cba7b.js} (63%) rename build/assets/{index-bd265d78.js => index-a1075bd4.js} (92%) rename build/assets/{index-2ee36238.js => index-a5296771.js} (85%) rename build/assets/{index-48bbbe33.js => index-c4f1167d.js} (91%) rename build/assets/{index-ca6739d4.js => index-dfd22792.js} (99%) rename build/assets/{index-18ba9b8b.js => index-e289962d.js} (96%) rename build/assets/{index-c0d858f0.js => index-e6c92504.js} (77%) rename build/assets/{isPlainObject-2fea37bb.js => isPlainObject-0689f20b.js} (98%) diff --git a/build/assets/ClipLoader-5d1618f3.js b/build/assets/ClipLoader-c5e3f404.js similarity index 97% rename from build/assets/ClipLoader-5d1618f3.js rename to build/assets/ClipLoader-c5e3f404.js index e197416c0..5b9bfab29 100644 --- a/build/assets/ClipLoader-5d1618f3.js +++ b/build/assets/ClipLoader-c5e3f404.js @@ -1,4 +1,4 @@ -import{r as m}from"./index-8f1177e3.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` +import{r as m}from"./index-04f9e7e6.js";var g={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function h(e){if(typeof e=="number")return{value:e,unit:"px"};var t,a=(e.match(/^[0-9.]*/)||"").toString();a.includes(".")?t=parseFloat(a):t=parseInt(a,10);var r=(e.match(/[^0-9]*$/)||"").toString();return g[r]?{value:t,unit:r}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}function d(e){var t=h(e);return"".concat(t.value).concat(t.unit)}var b=function(e,t,a){var r="react-spinners-".concat(e,"-").concat(a);if(typeof window>"u"||!window.document)return r;var n=document.createElement("style");document.head.appendChild(n);var o=n.sheet,l=` @keyframes `.concat(r,` { `).concat(t,` } diff --git a/build/assets/DailyMotion-b6c8aa6b.js b/build/assets/DailyMotion-70099f86.js similarity index 95% rename from build/assets/DailyMotion-b6c8aa6b.js rename to build/assets/DailyMotion-70099f86.js index caaf26e49..795cc4232 100644 --- a/build/assets/DailyMotion-b6c8aa6b.js +++ b/build/assets/DailyMotion-70099f86.js @@ -1 +1 @@ -import{a9 as P,r as v}from"./index-8f1177e3.js";import{u as D,p as O}from"./index-c0d858f0.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; +import{a9 as P,r as v}from"./index-04f9e7e6.js";import{u as D,p as O}from"./index-e6c92504.js";function b(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,s=Object.defineProperty,w=Object.getOwnPropertyDescriptor,S=Object.getOwnPropertyNames,j=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,E=(t,e,r)=>e in t?s(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,A=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of S(e))!T.call(t,a)&&a!==r&&s(t,a,{get:()=>e[a],enumerable:!(o=w(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?M(j(t)):{},h(e||!t||!t.__esModule?s(r,"default",{value:t,enumerable:!0}):r,t)),C=t=>h(s({},"__esModule",{value:!0}),t),n=(t,e,r)=>(E(t,typeof e!="symbol"?e+"":e,r),r),d={};A(d,{default:()=>p});var _=C(d),c=L(v),l=D,f=O;const x="https://api.dmcdn.net/all.js",N="DM",K="dmAsyncInit";class p extends c.Component{constructor(){super(...arguments),n(this,"callPlayer",l.callPlayer),n(this,"onDurationChange",()=>{const e=this.getDuration();this.props.onDuration(e)}),n(this,"mute",()=>{this.callPlayer("setMuted",!0)}),n(this,"unmute",()=>{this.callPlayer("setMuted",!1)}),n(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{controls:r,config:o,onError:a,playing:i}=this.props,[,y]=e.match(f.MATCH_URL_DAILYMOTION);if(this.player){this.player.load(y,{start:(0,l.parseStartTime)(e),autoplay:i});return}(0,l.getSDK)(x,N,K,u=>u.player).then(u=>{if(!this.container)return;const m=u.player;this.player=new m(this.container,{width:"100%",height:"100%",video:y,params:{controls:r,autoplay:this.props.playing,mute:this.props.muted,start:(0,l.parseStartTime)(e),origin:window.location.origin,...o.params},events:{apiready:this.props.onReady,seeked:()=>this.props.onSeek(this.player.currentTime),video_end:this.props.onEnded,durationchange:this.onDurationChange,pause:this.props.onPause,playing:this.props.onPlay,waiting:this.props.onBuffer,error:g=>a(g)}})},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.player.duration||null}getCurrentTime(){return this.player.currentTime}getSecondsLoaded(){return this.player.bufferedTime}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}n(p,"displayName","DailyMotion");n(p,"canPlay",f.canPlay.dailymotion);n(p,"loopOnEnded",!0);const R=P(_),k=b({__proto__:null,default:R},[_]);export{k as D}; diff --git a/build/assets/Facebook-0ee5e652.js b/build/assets/Facebook-679d89ef.js similarity index 96% rename from build/assets/Facebook-0ee5e652.js rename to build/assets/Facebook-679d89ef.js index 67880caa8..5ceb1bfc3 100644 --- a/build/assets/Facebook-0ee5e652.js +++ b/build/assets/Facebook-679d89ef.js @@ -1 +1 @@ -import{a9 as _,r as P}from"./index-8f1177e3.js";import{u as g,p as m}from"./index-c0d858f0.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; +import{a9 as _,r as P}from"./index-04f9e7e6.js";import{u as g,p as m}from"./index-e6c92504.js";function v(t,e){for(var r=0;ra[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var O=Object.create,i=Object.defineProperty,D=Object.getOwnPropertyDescriptor,E=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,I=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,k=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of E(e))!j.call(t,s)&&s!==r&&i(t,s,{get:()=>e[s],enumerable:!(a=D(e,s))||a.enumerable});return t},w=(t,e,r)=>(r=t!=null?O(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),F=t=>h(i({},"__esModule",{value:!0}),t),o=(t,e,r)=>(I(t,typeof e!="symbol"?e+"":e,r),r),b={};k(b,{default:()=>l});var d=F(b),u=w(P),n=g,x=m;const c="https://connect.facebook.net/en_US/sdk.js",f="FB",y="fbAsyncInit",L="facebook-player-";class l extends u.Component{constructor(){super(...arguments),o(this,"callPlayer",n.callPlayer),o(this,"playerID",this.props.config.playerId||`${L}${(0,n.randomString)()}`),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){if(r){(0,n.getSDK)(c,f,y).then(a=>a.XFBML.parse());return}(0,n.getSDK)(c,f,y).then(a=>{a.init({appId:this.props.config.appId,xfbml:!0,version:this.props.config.version}),a.Event.subscribe("xfbml.render",s=>{this.props.onLoaded()}),a.Event.subscribe("xfbml.ready",s=>{s.type==="video"&&s.id===this.playerID&&(this.player=s.instance,this.player.subscribe("startedPlaying",this.props.onPlay),this.player.subscribe("paused",this.props.onPause),this.player.subscribe("finishedPlaying",this.props.onEnded),this.player.subscribe("startedBuffering",this.props.onBuffer),this.player.subscribe("finishedBuffering",this.props.onBufferEnd),this.player.subscribe("error",this.props.onError),this.props.muted?this.callPlayer("mute"):this.callPlayer("unmute"),this.props.onReady(),document.getElementById(this.playerID).querySelector("iframe").style.visibility="visible")})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentPosition")}getSecondsLoaded(){return null}render(){const{attributes:e}=this.props.config,r={width:"100%",height:"100%"};return u.default.createElement("div",{style:r,id:this.playerID,className:"fb-video","data-href":this.props.url,"data-autoplay":this.props.playing?"true":"false","data-allowfullscreen":"true","data-controls":this.props.controls?"true":"false",...e})}}o(l,"displayName","Facebook");o(l,"canPlay",x.canPlay.facebook);o(l,"loopOnEnded",!0);const M=_(d),N=v({__proto__:null,default:M},[d]);export{N as F}; diff --git a/build/assets/FilePlayer-0c33d633.js b/build/assets/FilePlayer-ffe9d389.js similarity index 98% rename from build/assets/FilePlayer-0c33d633.js rename to build/assets/FilePlayer-ffe9d389.js index 82f7c36a9..383da1e32 100644 --- a/build/assets/FilePlayer-0c33d633.js +++ b/build/assets/FilePlayer-ffe9d389.js @@ -1 +1 @@ -import{a9 as b,r as _}from"./index-8f1177e3.js";import{u as O,p as A}from"./index-c0d858f0.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{a9 as b,r as _}from"./index-04f9e7e6.js";import{u as O,p as A}from"./index-e6c92504.js";function R(s,e){for(var t=0;ti[n]})}}}return Object.freeze(Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}))}var I=Object.create,u=Object.defineProperty,D=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,M=Object.getPrototypeOf,k=Object.prototype.hasOwnProperty,U=(s,e,t)=>e in s?u(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,N=(s,e)=>{for(var t in e)u(s,t,{get:e[t],enumerable:!0})},E=(s,e,t,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of w(e))!k.call(s,n)&&n!==t&&u(s,n,{get:()=>e[n],enumerable:!(i=D(e,n))||i.enumerable});return s},j=(s,e,t)=>(t=s!=null?I(M(s)):{},E(e||!s||!s.__esModule?u(t,"default",{value:s,enumerable:!0}):t,s)),H=s=>E(u({},"__esModule",{value:!0}),s),r=(s,e,t)=>(U(s,typeof e!="symbol"?e+"":e,t),t),m={};N(m,{default:()=>P});var g=H(m),c=j(_),a=O,d=A;const y=typeof navigator<"u",F=y&&navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,v=y&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||F)&&!window.MSStream,V=y&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)&&!window.MSStream,T="https://cdn.jsdelivr.net/npm/hls.js@VERSION/dist/hls.min.js",C="Hls",B="https://cdnjs.cloudflare.com/ajax/libs/dashjs/VERSION/dash.all.min.js",x="dashjs",K="https://cdn.jsdelivr.net/npm/flv.js@VERSION/dist/flv.min.js",G="flvjs",X=/www\.dropbox\.com\/.+/,f=/https:\/\/watch\.cloudflarestream\.com\/([a-z0-9]+)/,W="https://videodelivery.net/{id}/manifest/video.m3u8";class P extends c.Component{constructor(){super(...arguments),r(this,"onReady",(...e)=>this.props.onReady(...e)),r(this,"onPlay",(...e)=>this.props.onPlay(...e)),r(this,"onBuffer",(...e)=>this.props.onBuffer(...e)),r(this,"onBufferEnd",(...e)=>this.props.onBufferEnd(...e)),r(this,"onPause",(...e)=>this.props.onPause(...e)),r(this,"onEnded",(...e)=>this.props.onEnded(...e)),r(this,"onError",(...e)=>this.props.onError(...e)),r(this,"onPlayBackRateChange",e=>this.props.onPlaybackRateChange(e.target.playbackRate)),r(this,"onEnablePIP",(...e)=>this.props.onEnablePIP(...e)),r(this,"onDisablePIP",e=>{const{onDisablePIP:t,playing:i}=this.props;t(e),i&&this.play()}),r(this,"onPresentationModeChange",e=>{if(this.player&&(0,a.supportsWebKitPresentationMode)(this.player)){const{webkitPresentationMode:t}=this.player;t==="picture-in-picture"?this.onEnablePIP(e):t==="inline"&&this.onDisablePIP(e)}}),r(this,"onSeek",e=>{this.props.onSeek(e.target.currentTime)}),r(this,"mute",()=>{this.player.muted=!0}),r(this,"unmute",()=>{this.player.muted=!1}),r(this,"renderSourceElement",(e,t)=>typeof e=="string"?c.default.createElement("source",{key:t,src:e}):c.default.createElement("source",{key:t,...e})),r(this,"renderTrack",(e,t)=>c.default.createElement("track",{key:t,...e})),r(this,"ref",e=>{this.player&&(this.prevPlayer=this.player),this.player=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this),this.addListeners(this.player);const e=this.getSource(this.props.url);e&&(this.player.src=e),(v||this.props.config.forceDisableHls)&&this.player.load()}componentDidUpdate(e){this.shouldUseAudio(this.props)!==this.shouldUseAudio(e)&&(this.removeListeners(this.prevPlayer,e.url),this.addListeners(this.player)),this.props.url!==e.url&&!(0,a.isMediaStream)(this.props.url)&&!(this.props.url instanceof Array)&&(this.player.srcObject=null)}componentWillUnmount(){this.player.removeAttribute("src"),this.removeListeners(this.player),this.hls&&this.hls.destroy()}addListeners(e){const{url:t,playsinline:i}=this.props;e.addEventListener("play",this.onPlay),e.addEventListener("waiting",this.onBuffer),e.addEventListener("playing",this.onBufferEnd),e.addEventListener("pause",this.onPause),e.addEventListener("seeked",this.onSeek),e.addEventListener("ended",this.onEnded),e.addEventListener("error",this.onError),e.addEventListener("ratechange",this.onPlayBackRateChange),e.addEventListener("enterpictureinpicture",this.onEnablePIP),e.addEventListener("leavepictureinpicture",this.onDisablePIP),e.addEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.addEventListener("canplay",this.onReady),i&&(e.setAttribute("playsinline",""),e.setAttribute("webkit-playsinline",""),e.setAttribute("x5-playsinline",""))}removeListeners(e,t){e.removeEventListener("canplay",this.onReady),e.removeEventListener("play",this.onPlay),e.removeEventListener("waiting",this.onBuffer),e.removeEventListener("playing",this.onBufferEnd),e.removeEventListener("pause",this.onPause),e.removeEventListener("seeked",this.onSeek),e.removeEventListener("ended",this.onEnded),e.removeEventListener("error",this.onError),e.removeEventListener("ratechange",this.onPlayBackRateChange),e.removeEventListener("enterpictureinpicture",this.onEnablePIP),e.removeEventListener("leavepictureinpicture",this.onDisablePIP),e.removeEventListener("webkitpresentationmodechanged",this.onPresentationModeChange),this.shouldUseHLS(t)||e.removeEventListener("canplay",this.onReady)}shouldUseAudio(e){return e.config.forceVideo||e.config.attributes.poster?!1:d.AUDIO_EXTENSIONS.test(e.url)||e.config.forceAudio}shouldUseHLS(e){return V&&this.props.config.forceSafariHLS||this.props.config.forceHLS?!0:v||this.props.config.forceDisableHls?!1:d.HLS_EXTENSIONS.test(e)||f.test(e)}shouldUseDASH(e){return d.DASH_EXTENSIONS.test(e)||this.props.config.forceDASH}shouldUseFLV(e){return d.FLV_EXTENSIONS.test(e)||this.props.config.forceFLV}load(e){const{hlsVersion:t,hlsOptions:i,dashVersion:n,flvVersion:l}=this.props.config;if(this.hls&&this.hls.destroy(),this.dash&&this.dash.reset(),this.shouldUseHLS(e)&&(0,a.getSDK)(T.replace("VERSION",t),C).then(o=>{if(this.hls=new o(i),this.hls.on(o.Events.MANIFEST_PARSED,()=>{this.props.onReady()}),this.hls.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.hls,o)}),f.test(e)){const h=e.match(f)[1];this.hls.loadSource(W.replace("{id}",h))}else this.hls.loadSource(e);this.hls.attachMedia(this.player),this.props.onLoaded()}),this.shouldUseDASH(e)&&(0,a.getSDK)(B.replace("VERSION",n),x).then(o=>{this.dash=o.MediaPlayer().create(),this.dash.initialize(this.player,e,this.props.playing),this.dash.on("error",this.props.onError),parseInt(n)<3?this.dash.getDebug().setLogToBrowserConsole(!1):this.dash.updateSettings({debug:{logLevel:o.Debug.LOG_LEVEL_NONE}}),this.props.onLoaded()}),this.shouldUseFLV(e)&&(0,a.getSDK)(K.replace("VERSION",l),G).then(o=>{this.flv=o.createPlayer({type:"flv",url:e}),this.flv.attachMediaElement(this.player),this.flv.on(o.Events.ERROR,(h,p)=>{this.props.onError(h,p,this.flv,o)}),this.flv.load(),this.props.onLoaded()}),e instanceof Array)this.player.load();else if((0,a.isMediaStream)(e))try{this.player.srcObject=e}catch{this.player.src=window.URL.createObjectURL(e)}}play(){const e=this.player.play();e&&e.catch(this.props.onError)}pause(){this.player.pause()}stop(){this.player.removeAttribute("src"),this.dash&&this.dash.reset()}seekTo(e,t=!0){this.player.currentTime=e,t||this.pause()}setVolume(e){this.player.volume=e}enablePIP(){this.player.requestPictureInPicture&&document.pictureInPictureElement!==this.player?this.player.requestPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="picture-in-picture"&&this.player.webkitSetPresentationMode("picture-in-picture")}disablePIP(){document.exitPictureInPicture&&document.pictureInPictureElement===this.player?document.exitPictureInPicture():(0,a.supportsWebKitPresentationMode)(this.player)&&this.player.webkitPresentationMode!=="inline"&&this.player.webkitSetPresentationMode("inline")}setPlaybackRate(e){try{this.player.playbackRate=e}catch(t){this.props.onError(t)}}getDuration(){if(!this.player)return null;const{duration:e,seekable:t}=this.player;return e===1/0&&t.length>0?t.end(t.length-1):e}getCurrentTime(){return this.player?this.player.currentTime:null}getSecondsLoaded(){if(!this.player)return null;const{buffered:e}=this.player;if(e.length===0)return 0;const t=e.end(e.length-1),i=this.getDuration();return t>i?i:t}getSource(e){const t=this.shouldUseHLS(e),i=this.shouldUseDASH(e),n=this.shouldUseFLV(e);if(!(e instanceof Array||(0,a.isMediaStream)(e)||t||i||n))return X.test(e)?e.replace("www.dropbox.com","dl.dropboxusercontent.com"):e}render(){const{url:e,playing:t,loop:i,controls:n,muted:l,config:o,width:h,height:p}=this.props,L=this.shouldUseAudio(this.props)?"audio":"video",S={width:h==="auto"?h:"100%",height:p==="auto"?p:"100%"};return c.default.createElement(L,{ref:this.ref,src:this.getSource(e),style:S,preload:"auto",autoPlay:t||void 0,controls:n,muted:l,loop:i,...o.attributes},e instanceof Array&&e.map(this.renderSourceElement),o.tracks.map(this.renderTrack))}}r(P,"displayName","FilePlayer");r(P,"canPlay",d.canPlay.file);const z=b(g),Q=R({__proto__:null,default:z},[g]);export{Q as F}; diff --git a/build/assets/Kaltura-a1d8a38e.js b/build/assets/Kaltura-feee46e7.js similarity index 95% rename from build/assets/Kaltura-a1d8a38e.js rename to build/assets/Kaltura-feee46e7.js index d30b92484..1aee353b6 100644 --- a/build/assets/Kaltura-a1d8a38e.js +++ b/build/assets/Kaltura-feee46e7.js @@ -1 +1 @@ -import{a9 as y,r as f}from"./index-8f1177e3.js";import{u as _,p as m}from"./index-c0d858f0.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{a9 as y,r as f}from"./index-04f9e7e6.js";import{u as _,p as m}from"./index-e6c92504.js";function P(r,e){for(var t=0;to[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,L=(r,e)=>{for(var t in e)n(r,t,{get:e[t],enumerable:!0})},c=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of v(e))!w.call(r,a)&&a!==t&&n(r,a,{get:()=>e[a],enumerable:!(o=b(e,a))||o.enumerable});return r},K=(r,e,t)=>(t=r!=null?g(O(r)):{},c(e||!r||!r.__esModule?n(t,"default",{value:r,enumerable:!0}):t,r)),D=r=>c(n({},"__esModule",{value:!0}),r),s=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),h={};L(h,{default:()=>i});var d=D(h),u=K(f),p=_,S=m;const T="https://cdn.embed.ly/player-0.1.0.min.js",E="playerjs";class i extends u.Component{constructor(){super(...arguments),s(this,"callPlayer",p.callPlayer),s(this,"duration",null),s(this,"currentTime",null),s(this,"secondsLoaded",null),s(this,"mute",()=>{this.callPlayer("mute")}),s(this,"unmute",()=>{this.callPlayer("unmute")}),s(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(T,E).then(t=>{this.iframe&&(this.player=new t.Player(this.iframe),this.player.on("ready",()=>{setTimeout(()=>{this.player.isReady=!0,this.player.setLoop(this.props.loop),this.props.muted&&this.player.mute(),this.addListeners(this.player,this.props),this.props.onReady()},500)}))},this.props.onError)}addListeners(e,t){e.on("play",t.onPlay),e.on("pause",t.onPause),e.on("ended",t.onEnded),e.on("error",t.onError),e.on("timeupdate",({duration:o,seconds:a})=>{this.duration=o,this.currentTime=a})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,t=!0){this.callPlayer("setCurrentTime",e),t||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e={width:"100%",height:"100%"};return u.default.createElement("iframe",{ref:this.ref,src:this.props.url,frameBorder:"0",scrolling:"no",style:e,allow:"encrypted-media; autoplay; fullscreen;",referrerPolicy:"no-referrer-when-downgrade"})}}s(i,"displayName","Kaltura");s(i,"canPlay",S.canPlay.kaltura);const M=y(d),N=P({__proto__:null,default:M},[d]);export{N as K}; diff --git a/build/assets/Mixcloud-f88cc052.js b/build/assets/Mixcloud-3bd14a3c.js similarity index 95% rename from build/assets/Mixcloud-f88cc052.js rename to build/assets/Mixcloud-3bd14a3c.js index 316d11255..247d7e342 100644 --- a/build/assets/Mixcloud-f88cc052.js +++ b/build/assets/Mixcloud-3bd14a3c.js @@ -1 +1 @@ -import{a9 as _,r as f}from"./index-8f1177e3.js";import{u as m,p as g}from"./index-c0d858f0.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{a9 as _,r as f}from"./index-04f9e7e6.js";import{u as m,p as g}from"./index-e6c92504.js";function v(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var P=Object.create,i=Object.defineProperty,O=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,M=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,x=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of b(e))!w.call(t,o)&&o!==r&&i(t,o,{get:()=>e[o],enumerable:!(s=O(e,o))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?P(M(t)):{},c(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),S=t=>c(i({},"__esModule",{value:!0}),t),a=(t,e,r)=>(x(t,typeof e!="symbol"?e+"":e,r),r),d={};j(d,{default:()=>l});var h=S(d),u=D(f),p=m,y=g;const E="https://widget.mixcloud.com/media/js/widgetApi.js",L="Mixcloud";class l extends u.Component{constructor(){super(...arguments),a(this,"callPlayer",p.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"secondsLoaded",null),a(this,"mute",()=>{}),a(this,"unmute",()=>{}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,p.getSDK)(E,L).then(r=>{this.player=r.PlayerWidget(this.iframe),this.player.ready.then(()=>{this.player.events.play.on(this.props.onPlay),this.player.events.pause.on(this.props.onPause),this.player.events.ended.on(this.props.onEnded),this.player.events.error.on(this.props.error),this.player.events.progress.on((s,o)=>{this.currentTime=s,this.duration=o}),this.props.onReady()})},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return null}render(){const{url:e,config:r}=this.props,s=e.match(y.MATCH_URL_MIXCLOUD)[1],o={width:"100%",height:"100%"},n=(0,p.queryString)({...r.options,feed:`/${s}/`});return u.default.createElement("iframe",{key:s,ref:this.ref,style:o,src:`https://www.mixcloud.com/widget/iframe/?${n}`,frameBorder:"0",allow:"autoplay"})}}a(l,"displayName","Mixcloud");a(l,"canPlay",y.canPlay.mixcloud);a(l,"loopOnEnded",!0);const T=_(h),N=v({__proto__:null,default:T},[h]);export{N as M}; diff --git a/build/assets/Preview-8fcfe1ff.js b/build/assets/Preview-ef0abbdc.js similarity index 97% rename from build/assets/Preview-8fcfe1ff.js rename to build/assets/Preview-ef0abbdc.js index fa91b0e35..c6d121590 100644 --- a/build/assets/Preview-8fcfe1ff.js +++ b/build/assets/Preview-ef0abbdc.js @@ -1 +1 @@ -import{a9 as y,r as b}from"./index-8f1177e3.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{a9 as y,r as b}from"./index-04f9e7e6.js";function v(r,e){for(var t=0;tn[a]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var w=Object.create,i=Object.defineProperty,P=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,x=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty,j=(r,e,t)=>e in r?i(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,E=(r,e)=>{for(var t in e)i(r,t,{get:e[t],enumerable:!0})},h=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!I.call(r,a)&&a!==t&&i(r,a,{get:()=>e[a],enumerable:!(n=P(e,a))||n.enumerable});return r},S=(r,e,t)=>(t=r!=null?w(x(r)):{},h(e||!r||!r.__esModule?i(t,"default",{value:r,enumerable:!0}):t,r)),C=r=>h(i({},"__esModule",{value:!0}),r),p=(r,e,t)=>(j(r,typeof e!="symbol"?e+"":e,t),t),_={};E(_,{default:()=>N});var g=C(_),s=S(b);const u="64px",d={};class N extends s.Component{constructor(){super(...arguments),p(this,"mounted",!1),p(this,"state",{image:null}),p(this,"handleKeyPress",e=>{(e.key==="Enter"||e.key===" ")&&this.props.onClick()})}componentDidMount(){this.mounted=!0,this.fetchImage(this.props)}componentDidUpdate(e){const{url:t,light:n}=this.props;(e.url!==t||e.light!==n)&&this.fetchImage(this.props)}componentWillUnmount(){this.mounted=!1}fetchImage({url:e,light:t,oEmbedUrl:n}){if(!s.default.isValidElement(t)){if(typeof t=="string"){this.setState({image:t});return}if(d[e]){this.setState({image:d[e]});return}return this.setState({image:null}),window.fetch(n.replace("{url}",e)).then(a=>a.json()).then(a=>{if(a.thumbnail_url&&this.mounted){const o=a.thumbnail_url.replace("height=100","height=480").replace("-d_295x166","-d_640");this.setState({image:o}),d[e]=o}})}}render(){const{light:e,onClick:t,playIcon:n,previewTabIndex:a}=this.props,{image:o}=this.state,l=s.default.isValidElement(e),f={display:"flex",alignItems:"center",justifyContent:"center"},c={preview:{width:"100%",height:"100%",backgroundImage:o&&!l?`url(${o})`:void 0,backgroundSize:"cover",backgroundPosition:"center",cursor:"pointer",...f},shadow:{background:"radial-gradient(rgb(0, 0, 0, 0.3), rgba(0, 0, 0, 0) 60%)",borderRadius:u,width:u,height:u,position:l?"absolute":void 0,...f},playIcon:{borderStyle:"solid",borderWidth:"16px 0 16px 26px",borderColor:"transparent transparent transparent white",marginLeft:"7px"}},m=s.default.createElement("div",{style:c.shadow,className:"react-player__shadow"},s.default.createElement("div",{style:c.playIcon,className:"react-player__play-icon"}));return s.default.createElement("div",{style:c.preview,className:"react-player__preview",onClick:t,tabIndex:a,onKeyPress:this.handleKeyPress},l?e:null,n||m)}}const k=y(g),M=v({__proto__:null,default:k},[g]);export{M as P}; diff --git a/build/assets/Skeleton-0caad96e.js b/build/assets/Skeleton-38c1ef25.js similarity index 97% rename from build/assets/Skeleton-0caad96e.js rename to build/assets/Skeleton-38c1ef25.js index d0b2ec806..e0961b8eb 100644 --- a/build/assets/Skeleton-0caad96e.js +++ b/build/assets/Skeleton-38c1ef25.js @@ -1,4 +1,4 @@ -import{L as w,M as y,bw as b,O as R,x as o,P as S,bx as u,r as _,S as U,H as $,j as M,U as j,V as A}from"./index-8f1177e3.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function P(t){return w("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const E=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},P,a)},F=b(p||(p=r` +import{L as w,M as y,bw as b,O as R,x as o,P as S,bx as u,r as _,S as U,H as $,j as M,U as j,V as A}from"./index-04f9e7e6.js";function X(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function N(t){return parseFloat(t)}function P(t){return w("MuiSkeleton",t)}y("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const B=["animation","className","component","height","style","variant","width"];let r=t=>t,p,g,m,f;const E=t=>{const{classes:a,variant:e,animation:i,hasChildren:n,width:l,height:s}=t;return A({root:["root",e,i,n&&"withChildren",n&&!l&&"fitContent",n&&!s&&"heightAuto"]},P,a)},F=b(p||(p=r` 0% { opacity: 1; } diff --git a/build/assets/SoundCloud-d2ebaa3e.js b/build/assets/SoundCloud-3d326d7f.js similarity index 95% rename from build/assets/SoundCloud-d2ebaa3e.js rename to build/assets/SoundCloud-3d326d7f.js index 6014315ae..051a88f73 100644 --- a/build/assets/SoundCloud-d2ebaa3e.js +++ b/build/assets/SoundCloud-3d326d7f.js @@ -1 +1 @@ -import{a9 as P,r as g}from"./index-8f1177e3.js";import{u as b,p as v}from"./index-c0d858f0.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{a9 as P,r as g}from"./index-04f9e7e6.js";import{u as b,p as v}from"./index-e6c92504.js";function O(t,e){for(var r=0;rs[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,w=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,C=Object.getPrototypeOf,E=Object.prototype.hasOwnProperty,D=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,L=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},d=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of j(e))!E.call(t,o)&&o!==r&&l(t,o,{get:()=>e[o],enumerable:!(s=w(e,o))||s.enumerable});return t},R=(t,e,r)=>(r=t!=null?S(C(t)):{},d(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),T=t=>d(l({},"__esModule",{value:!0}),t),a=(t,e,r)=>(D(t,typeof e!="symbol"?e+"":e,r),r),h={};L(h,{default:()=>u});var f=T(h),p=R(g),c=b,M=v;const x="https://w.soundcloud.com/player/api.js",A="SC";class u extends p.Component{constructor(){super(...arguments),a(this,"callPlayer",c.callPlayer),a(this,"duration",null),a(this,"currentTime",null),a(this,"fractionLoaded",null),a(this,"mute",()=>{this.setVolume(0)}),a(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),a(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){(0,c.getSDK)(x,A).then(s=>{if(!this.iframe)return;const{PLAY:o,PLAY_PROGRESS:i,PAUSE:y,FINISH:_,ERROR:m}=s.Widget.Events;r||(this.player=s.Widget(this.iframe),this.player.bind(o,this.props.onPlay),this.player.bind(y,()=>{this.duration-this.currentTime<.05||this.props.onPause()}),this.player.bind(i,n=>{this.currentTime=n.currentPosition/1e3,this.fractionLoaded=n.loadedProgress}),this.player.bind(_,()=>this.props.onEnded()),this.player.bind(m,n=>this.props.onError(n))),this.player.load(e,{...this.props.config.options,callback:()=>{this.player.getDuration(n=>{this.duration=n/1e3,this.props.onReady()})}})})}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("seekTo",e*1e3),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.fractionLoaded*this.duration}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return p.default.createElement("iframe",{ref:this.ref,src:`https://w.soundcloud.com/player/?url=${encodeURIComponent(this.props.url)}`,style:r,frameBorder:0,allow:"autoplay"})}}a(u,"displayName","SoundCloud");a(u,"canPlay",M.canPlay.soundcloud);a(u,"loopOnEnded",!0);const N=P(f),I=O({__proto__:null,default:N},[f]);export{I as S}; diff --git a/build/assets/Stack-55a7903f.js b/build/assets/Stack-9bdcdce4.js similarity index 99% rename from build/assets/Stack-55a7903f.js rename to build/assets/Stack-9bdcdce4.js index a2d2aeacf..a9d2af412 100644 --- a/build/assets/Stack-55a7903f.js +++ b/build/assets/Stack-9bdcdce4.js @@ -1 +1 @@ -import{r as E,a8 as Bt,H as ae,x as T,c3 as Ft,c4 as Wt,c5 as Vt,c6 as Lt,c7 as Nt,bA as Ke,bz as Ae,c8 as Ht,c2 as It,c9 as Ut,j as K,ca as Qe,V as ke,L as Te,M as ht,Z as et,$ as tt,O as Me,cb as qt,S as Be,Y as gt,U as zt}from"./index-8f1177e3.js";import{x as rt,aO as Xt,U as Yt}from"./index-9e906cde.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Bt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Zt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Jt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Zt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Ke({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Ke({theme:t},c,(i,f)=>e.useFlexGap?{gap:Qe(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Qe(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Jt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:P},g=n();return K.jsx(a,T({as:h,ownerState:u,ref:f,className:Kt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Or="afterWrite",Pr=[vr,mr,hr,gr,yr,br,xr,wr,Or];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var J=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Q(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Ot(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return J(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Pt(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Ot(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Br(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,u=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Mr),k=l===!0?Br({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=P?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=J(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=J(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=J(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):Q(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Q(o)?t.filter(function(n){return Q(n)&&Ot(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=J(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=J(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),P=h===le?dr:le,b=e.rects.popper,u=e.elements[x?P:h],g=Xr(Q(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[B,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),P=w===m,b=i||(P||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=j?S?H:F:S?N:B;g[V]>y[V]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[M]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=u.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Zr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Jr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Kr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jr};function Qr(e,t,r){var o=I(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Qr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),P=ne(t.placement),b=!P,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?B:F,V=u==="y"?N:H,D=u==="y"?"height":"width",M=y[u],z=M+m[j],G=M-m[V],me=p?-A[D]/2:0,Pe=P===te?O[D]:A[D],ie=P===te?-A[D]:-O[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),se=X[j],ge=X[V],_=ce(0,O[D],ee[D]),Ee=b?O[D]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,$t=b?-O[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=M+Ee-Ue-Dt,kt=M+$t-Ue,qe=ce(p?we(z,jt):z,M,p?J(G,kt):G);y[u]=qe,k[u]=qe-M}if(s){var ze,Tt=u==="x"?B:F,Mt=u==="x"?N:H,Z=y[g],ye=g==="y"?"height":"width",Xe=Z+m[Tt],Ye=Z-m[Mt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:Z-O[ye]-A[ye]-Ge+R.altAxis,Ze=Re?Z+O[ye]+A[ye]-Ge-R.altAxis:Ye,Je=p&&Re?$r(_e,Z,Ze):ce(p?_e:Xe,Z,p?Ze:Ye);y[g]=Je,k[g]=Je-Z}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Pr.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),P=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Oo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),tt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const M=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:k.root});return K.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=je(o);O=R&&Po(R)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return K.jsx(Xt,{disablePortal:s,container:O,children:K.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Me(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return K.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},O,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Bo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Mo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Bo(P),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return K.jsx(St.Provider,{value:k,children:K.jsx(Fo,T({as:s,ownerState:P,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Jt as e,qo as f,mt as i,Io as u}; +import{r as E,a8 as Bt,H as ae,x as T,c3 as Ft,c4 as Wt,c5 as Vt,c6 as Lt,c7 as Nt,bA as Ke,bz as Ae,c8 as Ht,c2 as It,c9 as Ut,j as K,ca as Qe,V as ke,L as Te,M as ht,Z as et,$ as tt,O as Me,cb as qt,S as Be,Y as gt,U as zt}from"./index-04f9e7e6.js";import{x as rt,aO as Xt,U as Yt}from"./index-292d93f3.js";function Se(e,t){var r,o;return E.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(o=e.type)==null||(o=o._payload)==null||(o=o.value)==null?void 0:o.muiName)!==-1}let ot=0;function Gt(e){const[t,r]=E.useState(e),o=e||t;return E.useEffect(()=>{t==null&&(ot+=1,r(`mui-${ot}`))},[t]),o}const nt=Bt["useId".toString()];function Ho(e){if(nt!==void 0){const t=nt();return e??t}return Gt(e)}function Io({controlled:e,default:t,name:r,state:o="value"}){const{current:n}=E.useRef(e!==void 0),[a,c]=E.useState(t),s=n?e:a,i=E.useCallback(f=>{n||c(f)},[]);return[s,i]}const _t=["sx"],Zt=e=>{var t,r;const o={systemProps:{},otherProps:{}},n=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ft;return Object.keys(e).forEach(a=>{n[a]?o.systemProps[a]=e[a]:o.otherProps[a]=e[a]}),o};function Jt(e){const{sx:t}=e,r=ae(e,_t),{systemProps:o,otherProps:n}=Zt(r);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...c)=>{const s=t(...c);return Wt(s)?T({},o,s):o}:a=T({},o,t),T({},n,{sx:a})}function yt(e){var t,r,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;tt.root});function nr(e){return Nt({props:e,name:"MuiStack",defaultTheme:rr})}function ar(e,t){const r=E.Children.toArray(e).filter(Boolean);return r.reduce((o,n,a)=>(o.push(n),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],sr=({ownerState:e,theme:t})=>{let r=T({display:"flex",flexDirection:"column"},Ke({theme:t},Ae({values:e.direction,breakpoints:t.breakpoints.values}),o=>({flexDirection:o})));if(e.spacing){const o=Ht(t),n=Object.keys(t.breakpoints.values).reduce((i,f)=>((typeof e.spacing=="object"&&e.spacing[f]!=null||typeof e.direction=="object"&&e.direction[f]!=null)&&(i[f]=!0),i),{}),a=Ae({values:e.direction,base:n}),c=Ae({values:e.spacing,base:n});typeof a=="object"&&Object.keys(a).forEach((i,f,l)=>{if(!a[i]){const h=f>0?a[l[f-1]]:"column";a[i]=h}}),r=It(r,Ke({theme:t},c,(i,f)=>e.useFlexGap?{gap:Qe(o,i)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${ir(f?a[f]:e.direction)}`]:Qe(o,i)}}))}return r=Ut(t.breakpoints,r),r};function lr(e={}){const{createStyledComponent:t=or,useThemeProps:r=nr,componentName:o="MuiStack"}=e,n=()=>ke({root:["root"]},i=>Te(o,i),{}),a=t(sr);return E.forwardRef(function(i,f){const l=r(i),v=Jt(l),{component:h="div",direction:p="column",spacing:x=0,divider:d,children:m,className:w,useFlexGap:P=!1}=v,b=ae(v,tr),u={direction:p,spacing:x,useFlexGap:P},g=n();return K.jsx(a,T({as:h,ownerState:u,ref:f,className:Kt(g.root,w)},b,{children:d?ar(m,d):m}))})}const cr={disableDefaultClasses:!1},fr=E.createContext(cr);function ur(e){const{disableDefaultClasses:t}=E.useContext(fr);return r=>t?"":e(r)}var B="top",N="bottom",H="right",F="left",Fe="auto",de=[B,N,H,F],te="start",ue="end",pr="clippingParents",bt="viewport",le="popper",dr="reference",at=de.reduce(function(e,t){return e.concat([t+"-"+te,t+"-"+ue])},[]),xt=[].concat(de,[Fe]).reduce(function(e,t){return e.concat([t,t+"-"+te,t+"-"+ue])},[]),vr="beforeRead",mr="read",hr="afterRead",gr="beforeMain",yr="main",br="afterMain",xr="beforeWrite",wr="write",Or="afterWrite",Pr=[vr,mr,hr,gr,yr,br,xr,wr,Or];function U(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Q(e){var t=W(e).Element;return e instanceof t||e instanceof Element}function L(e){var t=W(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function We(e){if(typeof ShadowRoot>"u")return!1;var t=W(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Er(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var o=t.styles[r]||{},n=t.attributes[r]||{},a=t.elements[r];!L(a)||!U(a)||(Object.assign(a.style,o),Object.keys(n).forEach(function(c){var s=n[c];s===!1?a.removeAttribute(c):a.setAttribute(c,s===!0?"":s)}))})}function Cr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(o){var n=t.elements[o],a=t.attributes[o]||{},c=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:r[o]),s=c.reduce(function(i,f){return i[f]="",i},{});!L(n)||!U(n)||(Object.assign(n.style,s),Object.keys(a).forEach(function(i){n.removeAttribute(i)}))})}}const Rr={name:"applyStyles",enabled:!0,phase:"write",fn:Er,effect:Cr,requires:["computeStyles"]};function I(e){return e.split("-")[0]}var J=Math.max,we=Math.min,re=Math.round;function $e(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function wt(){return!/^((?!chrome|android).)*safari/i.test($e())}function oe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.getBoundingClientRect(),n=1,a=1;t&&L(e)&&(n=e.offsetWidth>0&&re(o.width)/e.offsetWidth||1,a=e.offsetHeight>0&&re(o.height)/e.offsetHeight||1);var c=Q(e)?W(e):window,s=c.visualViewport,i=!wt()&&r,f=(o.left+(i&&s?s.offsetLeft:0))/n,l=(o.top+(i&&s?s.offsetTop:0))/a,v=o.width/n,h=o.height/a;return{width:v,height:h,top:l,right:f+v,bottom:l+h,left:f,x:f,y:l}}function Ve(e){var t=oe(e),r=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:o}}function Ot(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&We(r)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function q(e){return W(e).getComputedStyle(e)}function Ar(e){return["table","td","th"].indexOf(U(e))>=0}function Y(e){return((Q(e)?e.ownerDocument:e.document)||window.document).documentElement}function Oe(e){return U(e)==="html"?e:e.assignedSlot||e.parentNode||(We(e)?e.host:null)||Y(e)}function it(e){return!L(e)||q(e).position==="fixed"?null:e.offsetParent}function Sr(e){var t=/firefox/i.test($e()),r=/Trident/i.test($e());if(r&&L(e)){var o=q(e);if(o.position==="fixed")return null}var n=Oe(e);for(We(n)&&(n=n.host);L(n)&&["html","body"].indexOf(U(n))<0;){var a=q(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function ve(e){for(var t=W(e),r=it(e);r&&Ar(r)&&q(r).position==="static";)r=it(r);return r&&(U(r)==="html"||U(r)==="body"&&q(r).position==="static")?t:r||Sr(e)||t}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ce(e,t,r){return J(e,we(t,r))}function $r(e,t,r){var o=ce(e,t,r);return o>r?r:o}function Pt(){return{top:0,right:0,bottom:0,left:0}}function Et(e){return Object.assign({},Pt(),e)}function Ct(e,t){return t.reduce(function(r,o){return r[o]=e,r},{})}var Dr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Et(typeof t!="number"?t:Ct(t,de))};function jr(e){var t,r=e.state,o=e.name,n=e.options,a=r.elements.arrow,c=r.modifiersData.popperOffsets,s=I(r.placement),i=Le(s),f=[F,H].indexOf(s)>=0,l=f?"height":"width";if(!(!a||!c)){var v=Dr(n.padding,r),h=Ve(a),p=i==="y"?B:F,x=i==="y"?N:H,d=r.rects.reference[l]+r.rects.reference[i]-c[i]-r.rects.popper[l],m=c[i]-r.rects.reference[i],w=ve(a),P=w?i==="y"?w.clientHeight||0:w.clientWidth||0:0,b=d/2-m/2,u=v[p],g=P-h[l]-v[x],y=P/2-h[l]/2+b,O=ce(u,y,g),A=i;r.modifiersData[o]=(t={},t[A]=O,t.centerOffset=O-y,t)}}function kr(e){var t=e.state,r=e.options,o=r.element,n=o===void 0?"[data-popper-arrow]":o;n!=null&&(typeof n=="string"&&(n=t.elements.popper.querySelector(n),!n)||Ot(t.elements.popper,n)&&(t.elements.arrow=n))}const Tr={name:"arrow",enabled:!0,phase:"main",fn:jr,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ne(e){return e.split("-")[1]}var Mr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Br(e,t){var r=e.x,o=e.y,n=t.devicePixelRatio||1;return{x:re(r*n)/n||0,y:re(o*n)/n||0}}function st(e){var t,r=e.popper,o=e.popperRect,n=e.placement,a=e.variation,c=e.offsets,s=e.position,i=e.gpuAcceleration,f=e.adaptive,l=e.roundOffsets,v=e.isFixed,h=c.x,p=h===void 0?0:h,x=c.y,d=x===void 0?0:x,m=typeof l=="function"?l({x:p,y:d}):{x:p,y:d};p=m.x,d=m.y;var w=c.hasOwnProperty("x"),P=c.hasOwnProperty("y"),b=F,u=B,g=window;if(f){var y=ve(r),O="clientHeight",A="clientWidth";if(y===W(r)&&(y=Y(r),q(y).position!=="static"&&s==="absolute"&&(O="scrollHeight",A="scrollWidth")),y=y,n===B||(n===F||n===H)&&a===ue){u=N;var C=v&&y===g&&g.visualViewport?g.visualViewport.height:y[O];d-=C-o.height,d*=i?1:-1}if(n===F||(n===B||n===N)&&a===ue){b=H;var R=v&&y===g&&g.visualViewport?g.visualViewport.width:y[A];p-=R-o.width,p*=i?1:-1}}var $=Object.assign({position:s},f&&Mr),k=l===!0?Br({x:p,y:d},W(r)):{x:p,y:d};if(p=k.x,d=k.y,i){var S;return Object.assign({},$,(S={},S[u]=P?"0":"",S[b]=w?"0":"",S.transform=(g.devicePixelRatio||1)<=1?"translate("+p+"px, "+d+"px)":"translate3d("+p+"px, "+d+"px, 0)",S))}return Object.assign({},$,(t={},t[u]=P?d+"px":"",t[b]=w?p+"px":"",t.transform="",t))}function Fr(e){var t=e.state,r=e.options,o=r.gpuAcceleration,n=o===void 0?!0:o,a=r.adaptive,c=a===void 0?!0:a,s=r.roundOffsets,i=s===void 0?!0:s,f={placement:I(t.placement),variation:ne(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:n,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,st(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:c,roundOffsets:i})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,st(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:i})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Wr={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Fr,data:{}};var be={passive:!0};function Vr(e){var t=e.state,r=e.instance,o=e.options,n=o.scroll,a=n===void 0?!0:n,c=o.resize,s=c===void 0?!0:c,i=W(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(l){l.addEventListener("scroll",r.update,be)}),s&&i.addEventListener("resize",r.update,be),function(){a&&f.forEach(function(l){l.removeEventListener("scroll",r.update,be)}),s&&i.removeEventListener("resize",r.update,be)}}const Lr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Vr,data:{}};var Nr={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,function(t){return Nr[t]})}var Hr={start:"end",end:"start"};function lt(e){return e.replace(/start|end/g,function(t){return Hr[t]})}function Ne(e){var t=W(e),r=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:r,scrollTop:o}}function He(e){return oe(Y(e)).left+Ne(e).scrollLeft}function Ir(e,t){var r=W(e),o=Y(e),n=r.visualViewport,a=o.clientWidth,c=o.clientHeight,s=0,i=0;if(n){a=n.width,c=n.height;var f=wt();(f||!f&&t==="fixed")&&(s=n.offsetLeft,i=n.offsetTop)}return{width:a,height:c,x:s+He(e),y:i}}function Ur(e){var t,r=Y(e),o=Ne(e),n=(t=e.ownerDocument)==null?void 0:t.body,a=J(r.scrollWidth,r.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),c=J(r.scrollHeight,r.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),s=-o.scrollLeft+He(e),i=-o.scrollTop;return q(n||r).direction==="rtl"&&(s+=J(r.clientWidth,n?n.clientWidth:0)-a),{width:a,height:c,x:s,y:i}}function Ie(e){var t=q(e),r=t.overflow,o=t.overflowX,n=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+n+o)}function Rt(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:L(e)&&Ie(e)?e:Rt(Oe(e))}function fe(e,t){var r;t===void 0&&(t=[]);var o=Rt(e),n=o===((r=e.ownerDocument)==null?void 0:r.body),a=W(o),c=n?[a].concat(a.visualViewport||[],Ie(o)?o:[]):o,s=t.concat(c);return n?s:s.concat(fe(Oe(c)))}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function qr(e,t){var r=oe(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function ct(e,t,r){return t===bt?De(Ir(e,r)):Q(t)?qr(t,r):De(Ur(Y(e)))}function zr(e){var t=fe(Oe(e)),r=["absolute","fixed"].indexOf(q(e).position)>=0,o=r&&L(e)?ve(e):e;return Q(o)?t.filter(function(n){return Q(n)&&Ot(n,o)&&U(n)!=="body"}):[]}function Xr(e,t,r,o){var n=t==="clippingParents"?zr(e):[].concat(t),a=[].concat(n,[r]),c=a[0],s=a.reduce(function(i,f){var l=ct(e,f,o);return i.top=J(l.top,i.top),i.right=we(l.right,i.right),i.bottom=we(l.bottom,i.bottom),i.left=J(l.left,i.left),i},ct(e,c,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function At(e){var t=e.reference,r=e.element,o=e.placement,n=o?I(o):null,a=o?ne(o):null,c=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,i;switch(n){case B:i={x:c,y:t.y-r.height};break;case N:i={x:c,y:t.y+t.height};break;case H:i={x:t.x+t.width,y:s};break;case F:i={x:t.x-r.width,y:s};break;default:i={x:t.x,y:t.y}}var f=n?Le(n):null;if(f!=null){var l=f==="y"?"height":"width";switch(a){case te:i[f]=i[f]-(t[l]/2-r[l]/2);break;case ue:i[f]=i[f]+(t[l]/2-r[l]/2);break}}return i}function pe(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=o===void 0?e.placement:o,a=r.strategy,c=a===void 0?e.strategy:a,s=r.boundary,i=s===void 0?pr:s,f=r.rootBoundary,l=f===void 0?bt:f,v=r.elementContext,h=v===void 0?le:v,p=r.altBoundary,x=p===void 0?!1:p,d=r.padding,m=d===void 0?0:d,w=Et(typeof m!="number"?m:Ct(m,de)),P=h===le?dr:le,b=e.rects.popper,u=e.elements[x?P:h],g=Xr(Q(u)?u:u.contextElement||Y(e.elements.popper),i,l,c),y=oe(e.elements.reference),O=At({reference:y,element:b,strategy:"absolute",placement:n}),A=De(Object.assign({},b,O)),C=h===le?A:y,R={top:g.top-C.top+w.top,bottom:C.bottom-g.bottom+w.bottom,left:g.left-C.left+w.left,right:C.right-g.right+w.right},$=e.modifiersData.offset;if(h===le&&$){var k=$[n];Object.keys(R).forEach(function(S){var j=[H,N].indexOf(S)>=0?1:-1,V=[B,N].indexOf(S)>=0?"y":"x";R[S]+=k[V]*j})}return R}function Yr(e,t){t===void 0&&(t={});var r=t,o=r.placement,n=r.boundary,a=r.rootBoundary,c=r.padding,s=r.flipVariations,i=r.allowedAutoPlacements,f=i===void 0?xt:i,l=ne(o),v=l?s?at:at.filter(function(x){return ne(x)===l}):de,h=v.filter(function(x){return f.indexOf(x)>=0});h.length===0&&(h=v);var p=h.reduce(function(x,d){return x[d]=pe(e,{placement:d,boundary:n,rootBoundary:a,padding:c})[I(d)],x},{});return Object.keys(p).sort(function(x,d){return p[x]-p[d]})}function Gr(e){if(I(e)===Fe)return[];var t=xe(e);return[lt(e),t,lt(t)]}function _r(e){var t=e.state,r=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!0:c,i=r.fallbackPlacements,f=r.padding,l=r.boundary,v=r.rootBoundary,h=r.altBoundary,p=r.flipVariations,x=p===void 0?!0:p,d=r.allowedAutoPlacements,m=t.options.placement,w=I(m),P=w===m,b=i||(P||!x?[xe(m)]:Gr(m)),u=[m].concat(b).reduce(function(ee,X){return ee.concat(I(X)===Fe?Yr(t,{placement:X,boundary:l,rootBoundary:v,padding:f,flipVariations:x,allowedAutoPlacements:d}):X)},[]),g=t.rects.reference,y=t.rects.popper,O=new Map,A=!0,C=u[0],R=0;R=0,V=j?"width":"height",D=pe(t,{placement:$,boundary:l,rootBoundary:v,altBoundary:h,padding:f}),M=j?S?H:F:S?N:B;g[V]>y[V]&&(M=xe(M));var z=xe(M),G=[];if(a&&G.push(D[k]<=0),s&&G.push(D[M]<=0,D[z]<=0),G.every(function(ee){return ee})){C=$,A=!1;break}O.set($,G)}if(A)for(var me=x?3:1,Pe=function(X){var se=u.find(function(ge){var _=O.get(ge);if(_)return _.slice(0,X).every(function(Ee){return Ee})});if(se)return C=se,"break"},ie=me;ie>0;ie--){var he=Pe(ie);if(he==="break")break}t.placement!==C&&(t.modifiersData[o]._skip=!0,t.placement=C,t.reset=!0)}}const Zr={name:"flip",enabled:!0,phase:"main",fn:_r,requiresIfExists:["offset"],data:{_skip:!1}};function ft(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function ut(e){return[B,H,N,F].some(function(t){return e[t]>=0})}function Jr(e){var t=e.state,r=e.name,o=t.rects.reference,n=t.rects.popper,a=t.modifiersData.preventOverflow,c=pe(t,{elementContext:"reference"}),s=pe(t,{altBoundary:!0}),i=ft(c,o),f=ft(s,n,a),l=ut(i),v=ut(f);t.modifiersData[r]={referenceClippingOffsets:i,popperEscapeOffsets:f,isReferenceHidden:l,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":v})}const Kr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jr};function Qr(e,t,r){var o=I(e),n=[F,B].indexOf(o)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,c=a[0],s=a[1];return c=c||0,s=(s||0)*n,[F,H].indexOf(o)>=0?{x:s,y:c}:{x:c,y:s}}function eo(e){var t=e.state,r=e.options,o=e.name,n=r.offset,a=n===void 0?[0,0]:n,c=xt.reduce(function(l,v){return l[v]=Qr(v,t.rects,a),l},{}),s=c[t.placement],i=s.x,f=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=i,t.modifiersData.popperOffsets.y+=f),t.modifiersData[o]=c}const to={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function ro(e){var t=e.state,r=e.name;t.modifiersData[r]=At({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:ro,data:{}};function no(e){return e==="x"?"y":"x"}function ao(e){var t=e.state,r=e.options,o=e.name,n=r.mainAxis,a=n===void 0?!0:n,c=r.altAxis,s=c===void 0?!1:c,i=r.boundary,f=r.rootBoundary,l=r.altBoundary,v=r.padding,h=r.tether,p=h===void 0?!0:h,x=r.tetherOffset,d=x===void 0?0:x,m=pe(t,{boundary:i,rootBoundary:f,padding:v,altBoundary:l}),w=I(t.placement),P=ne(t.placement),b=!P,u=Le(w),g=no(u),y=t.modifiersData.popperOffsets,O=t.rects.reference,A=t.rects.popper,C=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(y){if(a){var S,j=u==="y"?B:F,V=u==="y"?N:H,D=u==="y"?"height":"width",M=y[u],z=M+m[j],G=M-m[V],me=p?-A[D]/2:0,Pe=P===te?O[D]:A[D],ie=P===te?-A[D]:-O[D],he=t.elements.arrow,ee=p&&he?Ve(he):{width:0,height:0},X=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Pt(),se=X[j],ge=X[V],_=ce(0,O[D],ee[D]),Ee=b?O[D]/2-me-_-se-R.mainAxis:Pe-_-se-R.mainAxis,$t=b?-O[D]/2+me+_+ge+R.mainAxis:ie+_+ge+R.mainAxis,Ce=t.elements.arrow&&ve(t.elements.arrow),Dt=Ce?u==="y"?Ce.clientTop||0:Ce.clientLeft||0:0,Ue=(S=$==null?void 0:$[u])!=null?S:0,jt=M+Ee-Ue-Dt,kt=M+$t-Ue,qe=ce(p?we(z,jt):z,M,p?J(G,kt):G);y[u]=qe,k[u]=qe-M}if(s){var ze,Tt=u==="x"?B:F,Mt=u==="x"?N:H,Z=y[g],ye=g==="y"?"height":"width",Xe=Z+m[Tt],Ye=Z-m[Mt],Re=[B,F].indexOf(w)!==-1,Ge=(ze=$==null?void 0:$[g])!=null?ze:0,_e=Re?Xe:Z-O[ye]-A[ye]-Ge+R.altAxis,Ze=Re?Z+O[ye]+A[ye]-Ge-R.altAxis:Ye,Je=p&&Re?$r(_e,Z,Ze):ce(p?_e:Xe,Z,p?Ze:Ye);y[g]=Je,k[g]=Je-Z}t.modifiersData[o]=k}}const io={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function so(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function lo(e){return e===W(e)||!L(e)?Ne(e):so(e)}function co(e){var t=e.getBoundingClientRect(),r=re(t.width)/e.offsetWidth||1,o=re(t.height)/e.offsetHeight||1;return r!==1||o!==1}function fo(e,t,r){r===void 0&&(r=!1);var o=L(t),n=L(t)&&co(t),a=Y(t),c=oe(e,n,r),s={scrollLeft:0,scrollTop:0},i={x:0,y:0};return(o||!o&&!r)&&((U(t)!=="body"||Ie(a))&&(s=lo(t)),L(t)?(i=oe(t,!0),i.x+=t.clientLeft,i.y+=t.clientTop):a&&(i.x=He(a))),{x:c.left+s.scrollLeft-i.x,y:c.top+s.scrollTop-i.y,width:c.width,height:c.height}}function uo(e){var t=new Map,r=new Set,o=[];e.forEach(function(a){t.set(a.name,a)});function n(a){r.add(a.name);var c=[].concat(a.requires||[],a.requiresIfExists||[]);c.forEach(function(s){if(!r.has(s)){var i=t.get(s);i&&n(i)}}),o.push(a)}return e.forEach(function(a){r.has(a.name)||n(a)}),o}function po(e){var t=uo(e);return Pr.reduce(function(r,o){return r.concat(t.filter(function(n){return n.phase===o}))},[])}function vo(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function mo(e){var t=e.reduce(function(r,o){var n=r[o.name];return r[o.name]=n?Object.assign({},n,o,{options:Object.assign({},n.options,o.options),data:Object.assign({},n.data,o.data)}):o,r},{});return Object.keys(t).map(function(r){return t[r]})}var pt={placement:"bottom",modifiers:[],strategy:"absolute"};function dt(){for(var e=arguments.length,t=new Array(e),r=0;rke({root:["root"]},ur(bo)),Co={},Ro=E.forwardRef(function(t,r){var o;const{anchorEl:n,children:a,direction:c,disablePortal:s,modifiers:i,open:f,placement:l,popperOptions:v,popperRef:h,slotProps:p={},slots:x={},TransitionProps:d}=t,m=ae(t,xo),w=E.useRef(null),P=et(w,r),b=E.useRef(null),u=et(b,h),g=E.useRef(u);tt(()=>{g.current=u},[u]),E.useImperativeHandle(h,()=>b.current,[]);const y=Oo(l,c),[O,A]=E.useState(y),[C,R]=E.useState(je(n));E.useEffect(()=>{b.current&&b.current.forceUpdate()}),E.useEffect(()=>{n&&R(je(n))},[n]),tt(()=>{if(!C||!f)return;const V=z=>{A(z.placement)};let D=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{V(z)}}];i!=null&&(D=D.concat(i)),v&&v.modifiers!=null&&(D=D.concat(v.modifiers));const M=yo(C,w.current,T({placement:y},v,{modifiers:D}));return g.current(M),()=>{M.destroy(),g.current(null)}},[C,s,i,f,v,y]);const $={placement:O};d!==null&&($.TransitionProps=d);const k=Eo(),S=(o=x.root)!=null?o:"div",j=Yt({elementType:S,externalSlotProps:p.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:k.root});return K.jsx(S,T({},j,{children:typeof a=="function"?a($):a}))}),Ao=E.forwardRef(function(t,r){const{anchorEl:o,children:n,container:a,direction:c="ltr",disablePortal:s=!1,keepMounted:i=!1,modifiers:f,open:l,placement:v="bottom",popperOptions:h=Co,popperRef:p,style:x,transition:d=!1,slotProps:m={},slots:w={}}=t,P=ae(t,wo),[b,u]=E.useState(!0),g=()=>{u(!1)},y=()=>{u(!0)};if(!i&&!l&&(!d||b))return null;let O;if(a)O=a;else if(o){const R=je(o);O=R&&Po(R)?rt(R).body:rt(null).body}const A=!l&&i&&(!d||b)?"none":void 0,C=d?{in:l,onEnter:g,onExited:y}:void 0;return K.jsx(Xt,{disablePortal:s,container:O,children:K.jsx(Ro,T({anchorEl:o,direction:c,disablePortal:s,modifiers:f,ref:r,open:d?!b:l,placement:v,popperOptions:h,popperRef:p,slotProps:m,slots:w},P,{style:T({position:"fixed",top:0,left:0,display:A},x),TransitionProps:C,children:n}))})}),So=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$o=Me(Ao,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Do=E.forwardRef(function(t,r){var o;const n=qt(),a=Be({props:t,name:"MuiPopper"}),{anchorEl:c,component:s,components:i,componentsProps:f,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P,slots:b,slotProps:u}=a,g=ae(a,So),y=(o=b==null?void 0:b.root)!=null?o:i==null?void 0:i.Root,O=T({anchorEl:c,container:l,disablePortal:v,keepMounted:h,modifiers:p,open:x,placement:d,popperOptions:m,popperRef:w,transition:P},g);return K.jsx($o,T({as:s,direction:n==null?void 0:n.direction,slots:{root:y},slotProps:u??f},O,{ref:r}))}),Uo=Do;function qo({props:e,states:t,muiFormControl:r}){return t.reduce((o,n)=>(o[n]=e[n],r&&typeof e[n]>"u"&&(o[n]=r[n]),o),{})}const jo=E.createContext(void 0),St=jo;function zo(){return E.useContext(St)}function vt(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mt(e,t=!1){return e&&(vt(e.value)&&e.value!==""||t&&vt(e.defaultValue)&&e.defaultValue!=="")}function ko(e){return e.startAdornment}function To(e){return Te("MuiFormControl",e)}ht("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mo=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Bo=e=>{const{classes:t,margin:r,fullWidth:o}=e,n={root:["root",r!=="none"&&`margin${gt(r)}`,o&&"fullWidth"]};return ke(n,To,t)},Fo=Me("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>T({},t.root,t[`margin${gt(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>T({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Wo=E.forwardRef(function(t,r){const o=Be({props:t,name:"MuiFormControl"}),{children:n,className:a,color:c="primary",component:s="div",disabled:i=!1,error:f=!1,focused:l,fullWidth:v=!1,hiddenLabel:h=!1,margin:p="none",required:x=!1,size:d="medium",variant:m="outlined"}=o,w=ae(o,Mo),P=T({},o,{color:c,component:s,disabled:i,error:f,fullWidth:v,hiddenLabel:h,margin:p,required:x,size:d,variant:m}),b=Bo(P),[u,g]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{if(!Se(j,["Input","Select"]))return;const V=Se(j,["Select"])?j.props.input:j;V&&ko(V.props)&&(S=!0)}),S}),[y,O]=E.useState(()=>{let S=!1;return n&&E.Children.forEach(n,j=>{Se(j,["Input","Select"])&&(mt(j.props,!0)||mt(j.props.inputProps,!0))&&(S=!0)}),S}),[A,C]=E.useState(!1);i&&A&&C(!1);const R=l!==void 0&&!i?l:A;let $;const k=E.useMemo(()=>({adornedStart:u,setAdornedStart:g,color:c,disabled:i,error:f,filled:y,focused:R,fullWidth:v,hiddenLabel:h,size:d,onBlur:()=>{C(!1)},onEmpty:()=>{O(!1)},onFilled:()=>{O(!0)},onFocus:()=>{C(!0)},registerEffect:$,required:x,variant:m}),[u,c,i,f,y,R,v,h,$,x,d,m]);return K.jsx(St.Provider,{value:k,children:K.jsx(Fo,T({as:s,ownerState:P,className:zt(b.root,a),ref:r},w,{children:n}))})}),Xo=Wo,Vo=lr({createStyledComponent:Me("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Be({props:e,name:"MuiStack"})}),Yo=Vo;export{Xo as F,Uo as P,Yo as S,Ho as a,zo as b,St as c,Jt as e,qo as f,mt as i,Io as u}; diff --git a/build/assets/Streamable-a70b1a07.js b/build/assets/Streamable-bf2bf784.js similarity index 95% rename from build/assets/Streamable-a70b1a07.js rename to build/assets/Streamable-bf2bf784.js index 4c064882d..56461bb14 100644 --- a/build/assets/Streamable-a70b1a07.js +++ b/build/assets/Streamable-bf2bf784.js @@ -1 +1 @@ -import{a9 as m,r as f}from"./index-8f1177e3.js";import{u as _,p as b}from"./index-c0d858f0.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{a9 as m,r as f}from"./index-04f9e7e6.js";import{u as _,p as b}from"./index-e6c92504.js";function P(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,O=Object.getOwnPropertyNames,S=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,L=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,w=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},c=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of O(e))!j.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=v(e,a))||s.enumerable});return t},D=(t,e,r)=>(r=t!=null?g(S(t)):{},c(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>c(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(L(t,typeof e!="symbol"?e+"":e,r),r),h={};w(h,{default:()=>i});var y=E(h),p=D(f),u=_,d=b;const M="https://cdn.embed.ly/player-0.1.0.min.js",T="playerjs";class i extends p.Component{constructor(){super(...arguments),o(this,"callPlayer",u.callPlayer),o(this,"duration",null),o(this,"currentTime",null),o(this,"secondsLoaded",null),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unmute")}),o(this,"ref",e=>{this.iframe=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){(0,u.getSDK)(M,T).then(r=>{this.iframe&&(this.player=new r.Player(this.iframe),this.player.setLoop(this.props.loop),this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seeked",this.props.onSeek),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({duration:s,seconds:a})=>{this.duration=s,this.currentTime=a}),this.player.on("buffered",({percent:s})=>{this.duration&&(this.secondsLoaded=this.duration*s)}),this.props.muted&&this.player.mute())},this.props.onError)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const e=this.props.url.match(d.MATCH_URL_STREAMABLE)[1],r={width:"100%",height:"100%"};return p.default.createElement("iframe",{ref:this.ref,src:`https://streamable.com/o/${e}`,frameBorder:"0",scrolling:"no",style:r,allow:"encrypted-media; autoplay; fullscreen;"})}}o(i,"displayName","Streamable");o(i,"canPlay",d.canPlay.streamable);const x=m(y),N=P({__proto__:null,default:x},[y]);export{N as S}; diff --git a/build/assets/Tabs-daec6b20.js b/build/assets/Tabs-bdc00dfa.js similarity index 99% rename from build/assets/Tabs-daec6b20.js rename to build/assets/Tabs-bdc00dfa.js index 324bb2715..d7f3a9b11 100644 --- a/build/assets/Tabs-daec6b20.js +++ b/build/assets/Tabs-bdc00dfa.js @@ -1 +1 @@ -import{M as ft,L as pt,O,X as Pt,Y as Lt,x as b,r as c,S as ht,H as rt,U as L,j as S,V as St,$ as Zt,a3 as Nt,a2 as ut}from"./index-8f1177e3.js";import{J as $t,z as kt,U as lt,x as te}from"./index-9e906cde.js";import{c as Ft}from"./createSvgIcon-9333dda0.js";let _;function At(){if(_)return _;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),_="reverse",t.scrollLeft>0?_="default":(t.scrollLeft=1,t.scrollLeft===0&&(_="negative")),document.body.removeChild(t),_}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},U=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:U,ownerState:Y,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:Y={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:U,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",V=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",K=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Ut]=c.useState(!1),[yt,_t]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&U!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(U)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[K]:l?l[K]:0};if(isNaN(k[s])||isNaN(k[K]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[K]-f[K]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(V,z.current,o,{duration:n.transitions.duration.standard}):z.current[V]=o},Tt=o=>{let l=z.current[V];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Vt=()=>{Tt(-1*It())},Kt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Vt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Kt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[V]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&_t(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Ut(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===U;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; +import{M as ft,L as pt,O,X as Pt,Y as Lt,x as b,r as c,S as ht,H as rt,U as L,j as S,V as St,$ as Zt,a3 as Nt,a2 as ut}from"./index-04f9e7e6.js";import{J as $t,z as kt,U as lt,x as te}from"./index-292d93f3.js";import{c as Ft}from"./createSvgIcon-a3d1c07a.js";let _;function At(){if(_)return _;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),_="reverse",t.scrollLeft>0?_="default":(t.scrollLeft=1,t.scrollLeft===0&&(_="negative")),document.body.removeChild(t),_}function ee(t,e){const r=t.scrollLeft;if(e!=="rtl")return r;switch(At()){case"negative":return t.scrollWidth-t.clientWidth+r;case"reverse":return t.scrollWidth-t.clientWidth-r;default:return r}}function oe(t){return pt("MuiTab",t)}const le=ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),A=le,re=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ne=t=>{const{classes:e,textColor:r,fullWidth:a,wrapped:n,icon:d,label:h,selected:p,disabled:u}=t,m={root:["root",d&&h&&"labelIcon",`textColor${Lt(r)}`,a&&"fullWidth",n&&"wrapped",p&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return St(m,oe,e)},se=O(Pt,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.label&&r.icon&&e.labelIcon,e[`textColor${Lt(r.textColor)}`],r.fullWidth&&e.fullWidth,r.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>b({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:e.iconPosition==="top"||e.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${A.iconWrapper}`]:b({},e.iconPosition==="top"&&{marginBottom:6},e.iconPosition==="bottom"&&{marginTop:6},e.iconPosition==="start"&&{marginRight:t.spacing(1)},e.iconPosition==="end"&&{marginLeft:t.spacing(1)})},e.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${A.selected}`]:{opacity:1},[`&.${A.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.textColor==="primary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.primary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.textColor==="secondary"&&{color:(t.vars||t).palette.text.secondary,[`&.${A.selected}`]:{color:(t.vars||t).palette.secondary.main},[`&.${A.disabled}`]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),ae=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTab"}),{className:n,disabled:d=!1,disableFocusRipple:h=!1,fullWidth:p,icon:u,iconPosition:m="top",indicator:w,label:T,onChange:y,onClick:x,onFocus:j,selected:I,selectionFollowsFocus:g,textColor:H="inherit",value:C,wrapped:nt=!1}=a,X=rt(a,re),Y=b({},a,{disabled:d,disableFocusRipple:h,selected:I,icon:!!u,iconPosition:m,label:!!T,fullWidth:p,textColor:H,wrapped:nt}),D=ne(Y),N=u&&T&&c.isValidElement(u)?c.cloneElement(u,{className:L(D.iconWrapper,u.props.className)}):u,J=R=>{!I&&y&&y(R,C),x&&x(R)},U=R=>{g&&!I&&y&&y(R,C),j&&j(R)};return S.jsxs(se,b({focusRipple:!h,className:L(D.root,n),ref:r,role:"tab","aria-selected":I,disabled:d,onClick:J,onFocus:U,ownerState:Y,tabIndex:I?0:-1},X,{children:[m==="top"||m==="start"?S.jsxs(c.Fragment,{children:[N,T]}):S.jsxs(c.Fragment,{children:[T,N]}),w]}))}),ke=ae,ie=Ft(S.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),ce=Ft(S.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function de(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}function ue(t,e,r,a={},n=()=>{}){const{ease:d=de,duration:h=300}=a;let p=null;const u=e[t];let m=!1;const w=()=>{m=!0},T=y=>{if(m){n(new Error("Animation cancelled"));return}p===null&&(p=y);const x=Math.min(1,(y-p)/h);if(e[t]=d(x)*(r-u)+u,x>=1){requestAnimationFrame(()=>{n(null)});return}requestAnimationFrame(T)};return u===r?(n(new Error("Element already at target position")),w):(requestAnimationFrame(T),w)}const be=["onChange"],fe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function pe(t){const{onChange:e}=t,r=rt(t,be),a=c.useRef(),n=c.useRef(null),d=()=>{a.current=n.current.offsetHeight-n.current.clientHeight};return Zt(()=>{const h=$t(()=>{const u=a.current;d(),u!==a.current&&e(a.current)}),p=kt(n.current);return p.addEventListener("resize",h),()=>{h.clear(),p.removeEventListener("resize",h)}},[e]),c.useEffect(()=>{d(),e(a.current)},[e]),S.jsx("div",b({style:fe,ref:n},r))}function he(t){return pt("MuiTabScrollButton",t)}const Se=ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ve=Se,me=["className","slots","slotProps","direction","orientation","disabled"],xe=t=>{const{classes:e,orientation:r,disabled:a}=t;return St({root:["root",r,a&&"disabled"]},he,e)},ge=O(Pt,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.root,r.orientation&&e[r.orientation]]}})(({ownerState:t})=>b({width:40,flexShrink:0,opacity:.8,[`&.${ve.disabled}`]:{opacity:0}},t.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),ye=c.forwardRef(function(e,r){var a,n;const d=ht({props:e,name:"MuiTabScrollButton"}),{className:h,slots:p={},slotProps:u={},direction:m}=d,w=rt(d,me),y=Nt().direction==="rtl",x=b({isRtl:y},d),j=xe(x),I=(a=p.StartScrollButtonIcon)!=null?a:ie,g=(n=p.EndScrollButtonIcon)!=null?n:ce,H=lt({elementType:I,externalSlotProps:u.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),C=lt({elementType:g,externalSlotProps:u.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return S.jsx(ge,b({component:"div",className:L(j.root,h),ref:r,role:null,ownerState:x,tabIndex:null},w,{children:m==="left"?S.jsx(I,b({},H)):S.jsx(g,b({},C))}))}),Ce=ye;function Be(t){return pt("MuiTabs",t)}const we=ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),bt=we,Te=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],Rt=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,zt=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,ot=(t,e,r)=>{let a=!1,n=r(t,e);for(;n;){if(n===t.firstChild){if(a)return;a=!0}const d=n.disabled||n.getAttribute("aria-disabled")==="true";if(!n.hasAttribute("tabindex")||d)n=r(t,n);else{n.focus();return}}},Ie=t=>{const{vertical:e,fixed:r,hideScrollbar:a,scrollableX:n,scrollableY:d,centered:h,scrollButtonsHideMobile:p,classes:u}=t;return St({root:["root",e&&"vertical"],scroller:["scroller",r&&"fixed",a&&"hideScrollbar",n&&"scrollableX",d&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",h&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",p&&"scrollButtonsHideMobile"],scrollableX:[n&&"scrollableX"],hideScrollbar:[a&&"hideScrollbar"]},Be,u)},Ee=O("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[{[`& .${bt.scrollButtons}`]:e.scrollButtons},{[`& .${bt.scrollButtons}`]:r.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,r.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>b({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{[`& .${bt.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}})),Me=O("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.scroller,r.fixed&&e.fixed,r.hideScrollbar&&e.hideScrollbar,r.scrollableX&&e.scrollableX,r.scrollableY&&e.scrollableY]}})(({ownerState:t})=>b({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Re=O("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:r}=t;return[e.flexContainer,r.vertical&&e.flexContainerVertical,r.centered&&e.centered]}})(({ownerState:t})=>b({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),ze=O("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>b({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},t.indicatorColor==="primary"&&{backgroundColor:(e.vars||e).palette.primary.main},t.indicatorColor==="secondary"&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),We=O(pe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Wt={},Pe=c.forwardRef(function(e,r){const a=ht({props:e,name:"MuiTabs"}),n=Nt(),d=n.direction==="rtl",{"aria-label":h,"aria-labelledby":p,action:u,centered:m=!1,children:w,className:T,component:y="div",allowScrollButtonsMobile:x=!1,indicatorColor:j="primary",onChange:I,orientation:g="horizontal",ScrollButtonComponent:H=Ce,scrollButtons:C="auto",selectionFollowsFocus:nt,slots:X={},slotProps:Y={},TabIndicatorProps:D={},TabScrollButtonProps:N={},textColor:J="primary",value:U,variant:R="standard",visibleScrollbar:st=!1}=a,Ot=rt(a,Te),E=R==="scrollable",B=g==="vertical",V=B?"scrollTop":"scrollLeft",Q=B?"top":"left",Z=B?"bottom":"right",at=B?"clientHeight":"clientWidth",K=B?"height":"width",$=b({},a,{component:y,allowScrollButtonsMobile:x,indicatorColor:j,orientation:g,vertical:B,scrollButtons:C,textColor:J,variant:R,visibleScrollbar:st,fixed:!E,hideScrollbar:E&&!st,scrollableX:E&&!B,scrollableY:E&&B,centered:m&&!E,scrollButtonsHideMobile:!x}),W=Ie($),jt=lt({elementType:X.StartScrollButtonIcon,externalSlotProps:Y.startScrollButtonIcon,ownerState:$}),Ht=lt({elementType:X.EndScrollButtonIcon,externalSlotProps:Y.endScrollButtonIcon,ownerState:$}),[vt,Xt]=c.useState(!1),[k,mt]=c.useState(Wt),[xt,Dt]=c.useState(!1),[gt,Ut]=c.useState(!1),[yt,_t]=c.useState(!1),[Ct,Yt]=c.useState({overflow:"hidden",scrollbarWidth:0}),Bt=new Map,z=c.useRef(null),F=c.useRef(null),wt=()=>{const o=z.current;let l;if(o){const s=o.getBoundingClientRect();l={clientWidth:o.clientWidth,scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollLeftNormalized:ee(o,n.direction),scrollWidth:o.scrollWidth,top:s.top,bottom:s.bottom,left:s.left,right:s.right}}let i;if(o&&U!==!1){const s=F.current.children;if(s.length>0){const f=s[Bt.get(U)];i=f?f.getBoundingClientRect():null}}return{tabsMeta:l,tabMeta:i}},q=ut(()=>{const{tabsMeta:o,tabMeta:l}=wt();let i=0,s;if(B)s="top",l&&o&&(i=l.top-o.top+o.scrollTop);else if(s=d?"right":"left",l&&o){const v=d?o.scrollLeftNormalized+o.clientWidth-o.scrollWidth:o.scrollLeft;i=(d?-1:1)*(l[s]-o[s]+v)}const f={[s]:i,[K]:l?l[K]:0};if(isNaN(k[s])||isNaN(k[K]))mt(f);else{const v=Math.abs(k[s]-f[s]),M=Math.abs(k[K]-f[K]);(v>=1||M>=1)&&mt(f)}}),it=(o,{animation:l=!0}={})=>{l?ue(V,z.current,o,{duration:n.transitions.duration.standard}):z.current[V]=o},Tt=o=>{let l=z.current[V];B?l+=o:(l+=o*(d?-1:1),l*=d&&At()==="reverse"?-1:1),it(l)},It=()=>{const o=z.current[at];let l=0;const i=Array.from(F.current.children);for(let s=0;so){s===0&&(l=o);break}l+=f[at]}return l},Vt=()=>{Tt(-1*It())},Kt=()=>{Tt(It())},qt=c.useCallback(o=>{Yt({overflow:null,scrollbarWidth:o})},[]),Gt=()=>{const o={};o.scrollbarSizeListener=E?S.jsx(We,{onChange:qt,className:L(W.scrollableX,W.hideScrollbar)}):null;const i=E&&(C==="auto"&&(xt||gt)||C===!0);return o.scrollButtonStart=i?S.jsx(H,b({slots:{StartScrollButtonIcon:X.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:jt},orientation:g,direction:d?"right":"left",onClick:Vt,disabled:!xt},N,{className:L(W.scrollButtons,N.className)})):null,o.scrollButtonEnd=i?S.jsx(H,b({slots:{EndScrollButtonIcon:X.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ht},orientation:g,direction:d?"left":"right",onClick:Kt,disabled:!gt},N,{className:L(W.scrollButtons,N.className)})):null,o},Et=ut(o=>{const{tabsMeta:l,tabMeta:i}=wt();if(!(!i||!l)){if(i[Q]l[Z]){const s=l[V]+(i[Z]-l[Z]);it(s,{animation:o})}}}),tt=ut(()=>{E&&C!==!1&&_t(!yt)});c.useEffect(()=>{const o=$t(()=>{z.current&&q()});let l;const i=v=>{v.forEach(M=>{M.removedNodes.forEach(G=>{var P;(P=l)==null||P.unobserve(G)}),M.addedNodes.forEach(G=>{var P;(P=l)==null||P.observe(G)})}),o(),tt()},s=kt(z.current);s.addEventListener("resize",o);let f;return typeof ResizeObserver<"u"&&(l=new ResizeObserver(o),Array.from(F.current.children).forEach(v=>{l.observe(v)})),typeof MutationObserver<"u"&&(f=new MutationObserver(i),f.observe(F.current,{childList:!0})),()=>{var v,M;o.clear(),s.removeEventListener("resize",o),(v=f)==null||v.disconnect(),(M=l)==null||M.disconnect()}},[q,tt]),c.useEffect(()=>{const o=Array.from(F.current.children),l=o.length;if(typeof IntersectionObserver<"u"&&l>0&&E&&C!==!1){const i=o[0],s=o[l-1],f={root:z.current,threshold:.99},v=dt=>{Dt(!dt[0].isIntersecting)},M=new IntersectionObserver(v,f);M.observe(i);const G=dt=>{Ut(!dt[0].isIntersecting)},P=new IntersectionObserver(G,f);return P.observe(s),()=>{M.disconnect(),P.disconnect()}}},[E,C,yt,w==null?void 0:w.length]),c.useEffect(()=>{Xt(!0)},[]),c.useEffect(()=>{q()}),c.useEffect(()=>{Et(Wt!==k)},[Et,k]),c.useImperativeHandle(u,()=>({updateIndicator:q,updateScrollButtons:tt}),[q,tt]);const Mt=S.jsx(ze,b({},D,{className:L(W.indicator,D.className),ownerState:$,style:b({},k,D.style)}));let et=0;const Jt=c.Children.map(w,o=>{if(!c.isValidElement(o))return null;const l=o.props.value===void 0?et:o.props.value;Bt.set(l,et);const i=l===U;return et+=1,c.cloneElement(o,b({fullWidth:R==="fullWidth",indicator:i&&!vt&&Mt,selected:i,selectionFollowsFocus:nt,onChange:I,textColor:J,value:l},et===1&&U===!1&&!o.props.tabIndex?{tabIndex:0}:{}))}),Qt=o=>{const l=F.current,i=te(l).activeElement;if(i.getAttribute("role")!=="tab")return;let f=g==="horizontal"?"ArrowLeft":"ArrowUp",v=g==="horizontal"?"ArrowRight":"ArrowDown";switch(g==="horizontal"&&d&&(f="ArrowRight",v="ArrowLeft"),o.key){case f:o.preventDefault(),ot(l,i,zt);break;case v:o.preventDefault(),ot(l,i,Rt);break;case"Home":o.preventDefault(),ot(l,null,Rt);break;case"End":o.preventDefault(),ot(l,null,zt);break}},ct=Gt();return S.jsxs(Ee,b({className:L(W.root,T),ownerState:$,ref:r,as:y},Ot,{children:[ct.scrollButtonStart,ct.scrollbarSizeListener,S.jsxs(Me,{className:W.scroller,ownerState:$,style:{overflow:Ct.overflow,[B?`margin${d?"Left":"Right"}`:"marginBottom"]:st?void 0:-Ct.scrollbarWidth},ref:z,children:[S.jsx(Re,{"aria-label":h,"aria-labelledby":p,"aria-orientation":g==="vertical"?"vertical":null,className:W.flexContainer,ownerState:$,onKeyDown:Qt,ref:F,role:"tablist",children:Jt}),vt&&Mt]}),ct.scrollButtonEnd]}))}),Fe=Pe;export{Fe as T,ke as a}; diff --git a/build/assets/TextareaAutosize-ba1f6749.js b/build/assets/TextareaAutosize-6a1de228.js similarity index 97% rename from build/assets/TextareaAutosize-ba1f6749.js rename to build/assets/TextareaAutosize-6a1de228.js index 7d6a0b05f..ed9dcfd5a 100644 --- a/build/assets/TextareaAutosize-ba1f6749.js +++ b/build/assets/TextareaAutosize-6a1de228.js @@ -1,2 +1,2 @@ -import{r as o,H as _,Z as I,$ as T,j as v,x as b,a1 as Z}from"./index-8f1177e3.js";import{z as F,J as D}from"./index-9e906cde.js";const J=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const P={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const $=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,J),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` +import{r as o,H as _,Z as I,$ as T,j as v,x as b,a1 as Z}from"./index-04f9e7e6.js";import{z as F,J as D}from"./index-292d93f3.js";const J=["onChange","maxRows","minRows","style","value"];function m(r){return parseInt(r,10)||0}const P={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function M(r){return r==null||Object.keys(r).length===0||r.outerHeightStyle===0&&!r.overflow}const $=o.forwardRef(function(l,O){const{onChange:R,maxRows:x,minRows:h=1,style:S,value:y}=l,k=_(l,J),{current:A}=o.useRef(y!=null),p=o.useRef(null),N=I(O,p),H=o.useRef(null),c=o.useRef(0),[z,E]=o.useState({outerHeightStyle:0}),f=o.useCallback(()=>{const e=p.current,n=F(e).getComputedStyle(e);if(n.width==="0px")return{outerHeightStyle:0};const t=H.current;t.style.width=n.width,t.value=e.value||l.placeholder||"x",t.value.slice(-1)===` `&&(t.value+=" ");const g=n.boxSizing,w=m(n.paddingBottom)+m(n.paddingTop),a=m(n.borderBottomWidth)+m(n.borderTopWidth),u=t.scrollHeight;t.value="x";const d=t.scrollHeight;let s=u;h&&(s=Math.max(Number(h)*d,s)),x&&(s=Math.min(Number(x)*d,s)),s=Math.max(s,d);const B=s+(g==="border-box"?w+a:0),L=Math.abs(s-u)<=1;return{outerHeightStyle:B,overflow:L}},[x,h,l.placeholder]),C=(e,i)=>{const{outerHeightStyle:n,overflow:t}=i;return c.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==t)?(c.current+=1,{overflow:t,outerHeightStyle:n}):e},W=o.useCallback(()=>{const e=f();M(e)||E(i=>C(i,e))},[f]);T(()=>{const e=()=>{const u=f();M(u)||Z.flushSync(()=>{E(d=>C(d,u))})},i=()=>{c.current=0,e()};let n;const t=D(i),g=p.current,w=F(g);w.addEventListener("resize",t);let a;return typeof ResizeObserver<"u"&&(a=new ResizeObserver(i),a.observe(g)),()=>{t.clear(),cancelAnimationFrame(n),w.removeEventListener("resize",t),a&&a.disconnect()}},[f]),T(()=>{W()}),o.useEffect(()=>{c.current=0},[y]);const j=e=>{c.current=0,A||W(),R&&R(e)};return v.jsxs(o.Fragment,{children:[v.jsx("textarea",b({value:y,onChange:j,ref:N,rows:h,style:b({height:z.outerHeightStyle,overflow:z.overflow?"hidden":void 0},S)},k)),v.jsx("textarea",{"aria-hidden":!0,className:l.className,readOnly:!0,ref:H,tabIndex:-1,style:b({},P.shadow,S,{paddingTop:0,paddingBottom:0})})]})});export{$ as T}; diff --git a/build/assets/Twitch-39773e87.js b/build/assets/Twitch-3a5d25d3.js similarity index 95% rename from build/assets/Twitch-39773e87.js rename to build/assets/Twitch-3a5d25d3.js index 4c10ba014..63a28201b 100644 --- a/build/assets/Twitch-39773e87.js +++ b/build/assets/Twitch-3a5d25d3.js @@ -1 +1 @@ -import{a9 as w,r as D}from"./index-8f1177e3.js";import{u as C,p as N}from"./index-c0d858f0.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; +import{a9 as w,r as D}from"./index-04f9e7e6.js";import{u as C,p as N}from"./index-e6c92504.js";function I(t,e){for(var r=0;rs[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var S=Object.create,l=Object.defineProperty,j=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,M=Object.getPrototypeOf,H=Object.prototype.hasOwnProperty,R=(t,e,r)=>e in t?l(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,x=(t,e)=>{for(var r in e)l(t,r,{get:e[r],enumerable:!0})},_=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of A(e))!H.call(t,a)&&a!==r&&l(t,a,{get:()=>e[a],enumerable:!(s=j(e,a))||s.enumerable});return t},F=(t,e,r)=>(r=t!=null?S(M(t)):{},_(e||!t||!t.__esModule?l(r,"default",{value:t,enumerable:!0}):r,t)),U=t=>_(l({},"__esModule",{value:!0}),t),o=(t,e,r)=>(R(t,typeof e!="symbol"?e+"":e,r),r),P={};x(P,{default:()=>h});var f=U(P),d=F(D),c=C,u=N;const K="https://player.twitch.tv/js/embed/v1.js",V="Twitch",$="twitch-player-";class h extends d.Component{constructor(){super(...arguments),o(this,"callPlayer",c.callPlayer),o(this,"playerID",this.props.config.playerId||`${$}${(0,c.randomString)()}`),o(this,"mute",()=>{this.callPlayer("setMuted",!0)}),o(this,"unmute",()=>{this.callPlayer("setMuted",!1)})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e,r){const{playsinline:s,onError:a,config:n,controls:v}=this.props,i=u.MATCH_URL_TWITCH_CHANNEL.test(e),p=i?e.match(u.MATCH_URL_TWITCH_CHANNEL)[1]:e.match(u.MATCH_URL_TWITCH_VIDEO)[1];if(r){i?this.player.setChannel(p):this.player.setVideo("v"+p);return}(0,c.getSDK)(K,V).then(y=>{this.player=new y.Player(this.playerID,{video:i?"":p,channel:i?p:"",height:"100%",width:"100%",playsinline:s,autoplay:this.props.playing,muted:this.props.muted,controls:i?!0:v,time:(0,c.parseStartTime)(e),...n.options});const{READY:m,PLAYING:g,PAUSE:E,ENDED:O,ONLINE:L,OFFLINE:b,SEEK:T}=y.Player;this.player.addEventListener(m,this.props.onReady),this.player.addEventListener(g,this.props.onPlay),this.player.addEventListener(E,this.props.onPause),this.player.addEventListener(O,this.props.onEnded),this.player.addEventListener(T,this.props.onSeek),this.player.addEventListener(L,this.props.onLoaded),this.player.addEventListener(b,this.props.onLoaded)},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.callPlayer("pause")}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return null}render(){const e={width:"100%",height:"100%"};return d.default.createElement("div",{style:e,id:this.playerID})}}o(h,"displayName","Twitch");o(h,"canPlay",u.canPlay.twitch);o(h,"loopOnEnded",!0);const W=w(f),k=I({__proto__:null,default:W},[f]);export{k as T}; diff --git a/build/assets/Typography-429e0f96.js b/build/assets/Typography-1878e488.js similarity index 93% rename from build/assets/Typography-429e0f96.js rename to build/assets/Typography-1878e488.js index c277c7301..dc93a3c33 100644 --- a/build/assets/Typography-429e0f96.js +++ b/build/assets/Typography-1878e488.js @@ -1 +1 @@ -import{L as b,M as B,O as W,Y as u,x as s,r as C,S as M,H as R,j as P,U,V as j}from"./index-8f1177e3.js";import{e as L}from"./Stack-55a7903f.js";function N(a){return b("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return j(i,N,p)},E=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},V=a=>O[a]||a,z=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=V(n.color),o=L(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=$(m);return P.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),H=z;export{H as T}; +import{L as b,M as B,O as W,Y as u,x as s,r as C,S as M,H as R,j as P,U,V as j}from"./index-04f9e7e6.js";import{e as L}from"./Stack-9bdcdce4.js";function N(a){return b("MuiTypography",a)}B("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const _=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],$=a=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:e,variant:o,classes:p}=a,i={root:["root",o,a.align!=="inherit"&&`align${u(t)}`,r&&"gutterBottom",n&&"noWrap",e&&"paragraph"]};return j(i,N,p)},E=W("span",{name:"MuiTypography",slot:"Root",overridesResolver:(a,t)=>{const{ownerState:r}=a;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${u(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:a,ownerState:t})=>s({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&a.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},O={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},V=a=>O[a]||a,z=C.forwardRef(function(t,r){const n=M({props:t,name:"MuiTypography"}),e=V(n.color),o=L(s({},n,{color:e})),{align:p="inherit",className:i,component:g,gutterBottom:d=!1,noWrap:f=!1,paragraph:l=!1,variant:h="body1",variantMapping:c=y}=o,x=R(o,_),m=s({},o,{align:p,color:e,className:i,component:g,gutterBottom:d,noWrap:f,paragraph:l,variant:h,variantMapping:c}),v=g||(l?"p":c[h]||y[h])||"span",T=$(m);return P.jsx(E,s({as:v,ref:r,ownerState:m,className:U(T.root,i)},x))}),H=z;export{H as T}; diff --git a/build/assets/Vidyard-8a52c8eb.js b/build/assets/Vidyard-e93d6b1b.js similarity index 95% rename from build/assets/Vidyard-8a52c8eb.js rename to build/assets/Vidyard-e93d6b1b.js index 0e67724d6..65f84efd8 100644 --- a/build/assets/Vidyard-8a52c8eb.js +++ b/build/assets/Vidyard-e93d6b1b.js @@ -1 +1 @@ -import{a9 as g,r as v}from"./index-8f1177e3.js";import{u as b,p as O}from"./index-c0d858f0.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; +import{a9 as g,r as v}from"./index-04f9e7e6.js";import{u as b,p as O}from"./index-e6c92504.js";function V(t,e){for(var r=0;ro[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var D=Object.create,i=Object.defineProperty,j=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,S=Object.getPrototypeOf,M=Object.prototype.hasOwnProperty,A=(t,e,r)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,E=(t,e)=>{for(var r in e)i(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of w(e))!M.call(t,a)&&a!==r&&i(t,a,{get:()=>e[a],enumerable:!(o=j(e,a))||o.enumerable});return t},L=(t,e,r)=>(r=t!=null?D(S(t)):{},h(e||!t||!t.__esModule?i(r,"default",{value:t,enumerable:!0}):r,t)),R=t=>h(i({},"__esModule",{value:!0}),t),s=(t,e,r)=>(A(t,typeof e!="symbol"?e+"":e,r),r),_={};E(_,{default:()=>y});var f=R(_),c=L(v),d=b,P=O;const x="https://play.vidyard.com/embed/v4.js",C="VidyardV4",N="onVidyardAPI";class y extends c.Component{constructor(){super(...arguments),s(this,"callPlayer",d.callPlayer),s(this,"mute",()=>{this.setVolume(0)}),s(this,"unmute",()=>{this.props.volume!==null&&this.setVolume(this.props.volume)}),s(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:r,config:o,onError:a,onDuration:n}=this.props,l=e&&e.match(P.MATCH_URL_VIDYARD)[1];this.player&&this.stop(),(0,d.getSDK)(x,C,N).then(p=>{this.container&&(p.api.addReadyListener((u,m)=>{this.player||(this.player=m,this.player.on("ready",this.props.onReady),this.player.on("play",this.props.onPlay),this.player.on("pause",this.props.onPause),this.player.on("seek",this.props.onSeek),this.player.on("playerComplete",this.props.onEnded))},l),p.api.renderPlayer({uuid:l,container:this.container,autoplay:r?1:0,...o.options}),p.api.getPlayerMetadata(l).then(u=>{this.duration=u.length_in_seconds,n(u.length_in_seconds)}))},a)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){window.VidyardV4.api.destroyPlayer(this.player)}seekTo(e,r=!0){this.callPlayer("seek",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setPlaybackRate(e){this.callPlayer("setPlaybackSpeed",e)}getDuration(){return this.duration}getCurrentTime(){return this.callPlayer("currentTime")}getSecondsLoaded(){return null}render(){const{display:e}=this.props,r={width:"100%",height:"100%",display:e};return c.default.createElement("div",{style:r},c.default.createElement("div",{ref:this.ref}))}}s(y,"displayName","Vidyard");s(y,"canPlay",P.canPlay.vidyard);const T=g(f),B=V({__proto__:null,default:T},[f]);export{B as V}; diff --git a/build/assets/Vimeo-1cb68ca4.js b/build/assets/Vimeo-44a73af8.js similarity index 96% rename from build/assets/Vimeo-1cb68ca4.js rename to build/assets/Vimeo-44a73af8.js index 9d2f56501..32fd81626 100644 --- a/build/assets/Vimeo-1cb68ca4.js +++ b/build/assets/Vimeo-44a73af8.js @@ -1 +1 @@ -import{a9 as d,r as f}from"./index-8f1177e3.js";import{u as m,p as _}from"./index-c0d858f0.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{a9 as d,r as f}from"./index-04f9e7e6.js";import{u as m,p as _}from"./index-e6c92504.js";function P(t,e){for(var r=0;ra[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var g=Object.create,n=Object.defineProperty,b=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,O=Object.getPrototypeOf,D=Object.prototype.hasOwnProperty,w=(t,e,r)=>e in t?n(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,j=(t,e)=>{for(var r in e)n(t,r,{get:e[r],enumerable:!0})},h=(t,e,r,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of v(e))!D.call(t,o)&&o!==r&&n(t,o,{get:()=>e[o],enumerable:!(a=b(e,o))||a.enumerable});return t},M=(t,e,r)=>(r=t!=null?g(O(t)):{},h(e||!t||!t.__esModule?n(r,"default",{value:t,enumerable:!0}):r,t)),E=t=>h(n({},"__esModule",{value:!0}),t),i=(t,e,r)=>(w(t,typeof e!="symbol"?e+"":e,r),r),c={};j(c,{default:()=>l});var y=E(c),p=M(f),u=m,L=_;const S="https://player.vimeo.com/api/player.js",V="Vimeo",k=t=>t.replace("/manage/videos","");class l extends p.Component{constructor(){super(...arguments),i(this,"callPlayer",u.callPlayer),i(this,"duration",null),i(this,"currentTime",null),i(this,"secondsLoaded",null),i(this,"mute",()=>{this.setMuted(!0)}),i(this,"unmute",()=>{this.setMuted(!1)}),i(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){this.duration=null,(0,u.getSDK)(S,V).then(r=>{if(!this.container)return;const{playerOptions:a,title:o}=this.props.config;this.player=new r.Player(this.container,{url:k(e),autoplay:this.props.playing,muted:this.props.muted,loop:this.props.loop,playsinline:this.props.playsinline,controls:this.props.controls,...a}),this.player.ready().then(()=>{const s=this.container.querySelector("iframe");s.style.width="100%",s.style.height="100%",o&&(s.title=o)}).catch(this.props.onError),this.player.on("loaded",()=>{this.props.onReady(),this.refreshDuration()}),this.player.on("play",()=>{this.props.onPlay(),this.refreshDuration()}),this.player.on("pause",this.props.onPause),this.player.on("seeked",s=>this.props.onSeek(s.seconds)),this.player.on("ended",this.props.onEnded),this.player.on("error",this.props.onError),this.player.on("timeupdate",({seconds:s})=>{this.currentTime=s}),this.player.on("progress",({seconds:s})=>{this.secondsLoaded=s}),this.player.on("bufferstart",this.props.onBuffer),this.player.on("bufferend",this.props.onBufferEnd),this.player.on("playbackratechange",s=>this.props.onPlaybackRateChange(s.playbackRate))},this.props.onError)}refreshDuration(){this.player.getDuration().then(e=>{this.duration=e})}play(){const e=this.callPlayer("play");e&&e.catch(this.props.onError)}pause(){this.callPlayer("pause")}stop(){this.callPlayer("unload")}seekTo(e,r=!0){this.callPlayer("setCurrentTime",e),r||this.pause()}setVolume(e){this.callPlayer("setVolume",e)}setMuted(e){this.callPlayer("setMuted",e)}setLoop(e){this.callPlayer("setLoop",e)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}getDuration(){return this.duration}getCurrentTime(){return this.currentTime}getSecondsLoaded(){return this.secondsLoaded}render(){const{display:e}=this.props,r={width:"100%",height:"100%",overflow:"hidden",display:e};return p.default.createElement("div",{key:this.props.url,ref:this.ref,style:r})}}i(l,"displayName","Vimeo");i(l,"canPlay",L.canPlay.vimeo);i(l,"forceLoad",!0);const T=d(y),R=P({__proto__:null,default:T},[y]);export{R as V}; diff --git a/build/assets/Wistia-ce4bd35e.js b/build/assets/Wistia-ba296090.js similarity index 96% rename from build/assets/Wistia-ce4bd35e.js rename to build/assets/Wistia-ba296090.js index d7af22a10..2c4c66c52 100644 --- a/build/assets/Wistia-ce4bd35e.js +++ b/build/assets/Wistia-ba296090.js @@ -1 +1 @@ -import{a9 as m,r as g}from"./index-8f1177e3.js";import{u as v,p as w}from"./index-c0d858f0.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{a9 as m,r as g}from"./index-04f9e7e6.js";import{u as v,p as w}from"./index-e6c92504.js";function O(t,e){for(var a=0;as[r]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var C=Object.create,i=Object.defineProperty,k=Object.getOwnPropertyDescriptor,D=Object.getOwnPropertyNames,E=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,R=(t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a,j=(t,e)=>{for(var a in e)i(t,a,{get:e[a],enumerable:!0})},h=(t,e,a,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of D(e))!S.call(t,r)&&r!==a&&i(t,r,{get:()=>e[r],enumerable:!(s=k(e,r))||s.enumerable});return t},I=(t,e,a)=>(a=t!=null?C(E(t)):{},h(e||!t||!t.__esModule?i(a,"default",{value:t,enumerable:!0}):a,t)),W=t=>h(i({},"__esModule",{value:!0}),t),n=(t,e,a)=>(R(t,typeof e!="symbol"?e+"":e,a),a),d={};j(d,{default:()=>l});var _=W(d),y=I(g),c=v,P=w;const M="https://fast.wistia.com/assets/external/E-v1.js",x="Wistia",A="wistia-player-";class l extends y.Component{constructor(){super(...arguments),n(this,"callPlayer",c.callPlayer),n(this,"playerID",this.props.config.playerId||`${A}${(0,c.randomString)()}`),n(this,"onPlay",(...e)=>this.props.onPlay(...e)),n(this,"onPause",(...e)=>this.props.onPause(...e)),n(this,"onSeek",(...e)=>this.props.onSeek(...e)),n(this,"onEnded",(...e)=>this.props.onEnded(...e)),n(this,"onPlaybackRateChange",(...e)=>this.props.onPlaybackRateChange(...e)),n(this,"mute",()=>{this.callPlayer("mute")}),n(this,"unmute",()=>{this.callPlayer("unmute")})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}load(e){const{playing:a,muted:s,controls:r,onReady:o,config:p,onError:b}=this.props;(0,c.getSDK)(M,x).then(f=>{p.customControls&&p.customControls.forEach(u=>f.defineControl(u)),window._wq=window._wq||[],window._wq.push({id:this.playerID,options:{autoPlay:a,silentAutoPlay:"allow",muted:s,controlsVisibleOnLoad:r,fullscreenButton:r,playbar:r,playbackRateControl:r,qualityControl:r,volumeControl:r,settingsControl:r,smallPlayButton:r,...p.options},onReady:u=>{this.player=u,this.unbind(),this.player.bind("play",this.onPlay),this.player.bind("pause",this.onPause),this.player.bind("seek",this.onSeek),this.player.bind("end",this.onEnded),this.player.bind("playbackratechange",this.onPlaybackRateChange),o()}})},b)}unbind(){this.player.unbind("play",this.onPlay),this.player.unbind("pause",this.onPause),this.player.unbind("seek",this.onSeek),this.player.unbind("end",this.onEnded),this.player.unbind("playbackratechange",this.onPlaybackRateChange)}play(){this.callPlayer("play")}pause(){this.callPlayer("pause")}stop(){this.unbind(),this.callPlayer("remove")}seekTo(e,a=!0){this.callPlayer("time",e),a||this.pause()}setVolume(e){this.callPlayer("volume",e)}setPlaybackRate(e){this.callPlayer("playbackRate",e)}getDuration(){return this.callPlayer("duration")}getCurrentTime(){return this.callPlayer("time")}getSecondsLoaded(){return null}render(){const{url:e}=this.props,a=e&&e.match(P.MATCH_URL_WISTIA)[1],s=`wistia_embed wistia_async_${a}`,r={width:"100%",height:"100%"};return y.default.createElement("div",{id:this.playerID,key:a,className:s,style:r})}}n(l,"displayName","Wistia");n(l,"canPlay",P.canPlay.wistia);n(l,"loopOnEnded",!0);const L=m(_),$=O({__proto__:null,default:L},[_]);export{$ as W}; diff --git a/build/assets/YouTube-fd65d17f.js b/build/assets/YouTube-1260fc82.js similarity index 97% rename from build/assets/YouTube-fd65d17f.js rename to build/assets/YouTube-1260fc82.js index 29b3789ca..68c78f55e 100644 --- a/build/assets/YouTube-fd65d17f.js +++ b/build/assets/YouTube-1260fc82.js @@ -1 +1 @@ -import{a9 as U,r as I}from"./index-8f1177e3.js";import{u as L,p as Y}from"./index-c0d858f0.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{a9 as U,r as I}from"./index-04f9e7e6.js";import{u as L,p as Y}from"./index-e6c92504.js";function k(a,e){for(var t=0;ts[r]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}var M=Object.create,u=Object.defineProperty,j=Object.getOwnPropertyDescriptor,N=Object.getOwnPropertyNames,V=Object.getPrototypeOf,B=Object.prototype.hasOwnProperty,x=(a,e,t)=>e in a?u(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,K=(a,e)=>{for(var t in e)u(a,t,{get:e[t],enumerable:!0})},v=(a,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of N(e))!B.call(a,r)&&r!==t&&u(a,r,{get:()=>e[r],enumerable:!(s=j(e,r))||s.enumerable});return a},F=(a,e,t)=>(t=a!=null?M(V(a)):{},v(e||!a||!a.__esModule?u(t,"default",{value:a,enumerable:!0}):t,a)),H=a=>v(u({},"__esModule",{value:!0}),a),o=(a,e,t)=>(x(a,typeof e!="symbol"?e+"":e,t),t),w={};K(w,{default:()=>O});var S=H(w),m=F(I),p=L,D=Y;const G="https://www.youtube.com/iframe_api",T="YT",z="onYouTubeIframeAPIReady",f=/[?&](?:list|channel)=([a-zA-Z0-9_-]+)/,b=/user\/([a-zA-Z0-9_-]+)\/?/,Q=/youtube-nocookie\.com/,Z="https://www.youtube-nocookie.com";class O extends m.Component{constructor(){super(...arguments),o(this,"callPlayer",p.callPlayer),o(this,"parsePlaylist",e=>{if(e instanceof Array)return{listType:"playlist",playlist:e.map(this.getID).join(",")};if(f.test(e)){const[,t]=e.match(f);return{listType:"playlist",list:t.replace(/^UC/,"UU")}}if(b.test(e)){const[,t]=e.match(b);return{listType:"user_uploads",list:t}}return{}}),o(this,"onStateChange",e=>{const{data:t}=e,{onPlay:s,onPause:r,onBuffer:n,onBufferEnd:P,onEnded:_,onReady:g,loop:y,config:{playerVars:l,onUnstarted:h}}=this.props,{UNSTARTED:d,PLAYING:c,PAUSED:i,BUFFERING:E,ENDED:A,CUED:C}=window[T].PlayerState;if(t===d&&h(),t===c&&(s(),P()),t===i&&r(),t===E&&n(),t===A){const R=!!this.callPlayer("getPlaylist");y&&!R&&(l.start?this.seekTo(l.start):this.play()),_()}t===C&&g()}),o(this,"mute",()=>{this.callPlayer("mute")}),o(this,"unmute",()=>{this.callPlayer("unMute")}),o(this,"ref",e=>{this.container=e})}componentDidMount(){this.props.onMount&&this.props.onMount(this)}getID(e){return!e||e instanceof Array||f.test(e)?null:e.match(D.MATCH_URL_YOUTUBE)[1]}load(e,t){const{playing:s,muted:r,playsinline:n,controls:P,loop:_,config:g,onError:y}=this.props,{playerVars:l,embedOptions:h}=g,d=this.getID(e);if(t){if(f.test(e)||b.test(e)||e instanceof Array){this.player.loadPlaylist(this.parsePlaylist(e));return}this.player.cueVideoById({videoId:d,startSeconds:(0,p.parseStartTime)(e)||l.start,endSeconds:(0,p.parseEndTime)(e)||l.end});return}(0,p.getSDK)(G,T,z,c=>c.loaded).then(c=>{this.container&&(this.player=new c.Player(this.container,{width:"100%",height:"100%",videoId:d,playerVars:{autoplay:s?1:0,mute:r?1:0,controls:P?1:0,start:(0,p.parseStartTime)(e),end:(0,p.parseEndTime)(e),origin:window.location.origin,playsinline:n?1:0,...this.parsePlaylist(e),...l},events:{onReady:()=>{_&&this.player.setLoop(!0),this.props.onReady()},onPlaybackRateChange:i=>this.props.onPlaybackRateChange(i.data),onPlaybackQualityChange:i=>this.props.onPlaybackQualityChange(i),onStateChange:this.onStateChange,onError:i=>y(i.data)},host:Q.test(e)?Z:void 0,...h}))},y),h.events&&console.warn("Using `embedOptions.events` will likely break things. Use ReactPlayer’s callback props instead, eg onReady, onPlay, onPause")}play(){this.callPlayer("playVideo")}pause(){this.callPlayer("pauseVideo")}stop(){document.body.contains(this.callPlayer("getIframe"))&&this.callPlayer("stopVideo")}seekTo(e,t=!1){this.callPlayer("seekTo",e),!t&&!this.props.playing&&this.pause()}setVolume(e){this.callPlayer("setVolume",e*100)}setPlaybackRate(e){this.callPlayer("setPlaybackRate",e)}setLoop(e){this.callPlayer("setLoop",e)}getDuration(){return this.callPlayer("getDuration")}getCurrentTime(){return this.callPlayer("getCurrentTime")}getSecondsLoaded(){return this.callPlayer("getVideoLoadedFraction")*this.getDuration()}render(){const{display:e}=this.props,t={width:"100%",height:"100%",display:e};return m.default.createElement("div",{style:t},m.default.createElement("div",{ref:this.ref}))}}o(O,"displayName","YouTube");o(O,"canPlay",D.canPlay.youtube);const $=U(S),W=k({__proto__:null,default:$},[S]);export{W as Y}; diff --git a/build/assets/constants-0d6f6cd8.js b/build/assets/constants-2b0c7022.js similarity index 80% rename from build/assets/constants-0d6f6cd8.js rename to build/assets/constants-2b0c7022.js index 2359700df..67425b5b0 100644 --- a/build/assets/constants-0d6f6cd8.js +++ b/build/assets/constants-2b0c7022.js @@ -1,4 +1,4 @@ -import{s,a$ as t,aZ as a,a_ as o,b0 as n}from"./index-8f1177e3.js";import{f as c}from"./index-9e906cde.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=s(c)` +import{s,a$ as t,aZ as a,a_ as o,b0 as n}from"./index-04f9e7e6.js";import{f as c}from"./index-292d93f3.js";const i={[t]:"RSS link",[a]:"Twitter Handle",[o]:"Youtube channel",[n]:"Github Repository"},r="Sources Table",E="Queued Sources",I="Topics",S="View Content",u="date",p="edge_count",_="alphabetically",l="https://twitter.com",A="IS_ALIAS",d="https://www.twitter.com/anyuser/status/",L=s(c)` && { vertical-align: middle; margin: 5px 0 0 4px; diff --git a/build/assets/createSvgIcon-9333dda0.js b/build/assets/createSvgIcon-a3d1c07a.js similarity index 97% rename from build/assets/createSvgIcon-9333dda0.js rename to build/assets/createSvgIcon-a3d1c07a.js index abaa96d69..c8bf7433e 100644 --- a/build/assets/createSvgIcon-9333dda0.js +++ b/build/assets/createSvgIcon-a3d1c07a.js @@ -1 +1 @@ -import{L as I,M as C,O as w,Y as f,r as v,S as R,H as b,x as S,j as g,U as j,V as M}from"./index-8f1177e3.js";function N(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return M(n,N,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,A),l=v.isValidElement(n)&&n.type==="svg",y=S({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=B(y);return g.jsxs(T,S({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function E(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{E as c}; +import{L as I,M as C,O as w,Y as f,r as v,S as R,H as b,x as S,j as g,U as j,V as M}from"./index-04f9e7e6.js";function N(o){return I("MuiSvgIcon",o)}C("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],B=o=>{const{color:e,fontSize:t,classes:i}=o,n={root:["root",e!=="inherit"&&`color${f(e)}`,`fontSize${f(t)}`]};return M(n,N,i)},T=w("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:t}=o;return[e.root,t.color!=="inherit"&&e[`color${f(t.color)}`],e[`fontSize${f(t.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var t,i,n,u,m,a,h,p,d,r,s,c,l;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(t=o.transitions)==null||(i=t.create)==null?void 0:i.call(t,"fill",{duration:(n=o.transitions)==null||(n=n.duration)==null?void 0:n.shorter}),fontSize:{inherit:"inherit",small:((u=o.typography)==null||(m=u.pxToRem)==null?void 0:m.call(u,20))||"1.25rem",medium:((a=o.typography)==null||(h=a.pxToRem)==null?void 0:h.call(a,24))||"1.5rem",large:((p=o.typography)==null||(d=p.pxToRem)==null?void 0:d.call(p,35))||"2.1875rem"}[e.fontSize],color:(r=(s=(o.vars||o).palette)==null||(s=s[e.color])==null?void 0:s.main)!=null?r:{action:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.active,disabled:(l=(o.vars||o).palette)==null||(l=l.action)==null?void 0:l.disabled,inherit:void 0}[e.color]}}),_=v.forwardRef(function(e,t){const i=R({props:e,name:"MuiSvgIcon"}),{children:n,className:u,color:m="inherit",component:a="svg",fontSize:h="medium",htmlColor:p,inheritViewBox:d=!1,titleAccess:r,viewBox:s="0 0 24 24"}=i,c=b(i,A),l=v.isValidElement(n)&&n.type==="svg",y=S({},i,{color:m,component:a,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:d,viewBox:s,hasSvgAsChild:l}),x={};d||(x.viewBox=s);const z=B(y);return g.jsxs(T,S({as:a,className:j(z.root,u),focusable:"false",color:p,"aria-hidden":r?void 0:!0,role:r?"img":void 0,ref:t},x,c,l&&n.props,{ownerState:y,children:[l?n.props.children:n,r?g.jsx("title",{children:r}):null]}))});_.muiName="SvgIcon";const $=_;function E(o,e){function t(i,n){return g.jsx($,S({"data-testid":`${e}Icon`,ref:n},i,{children:o}))}return t.muiName=$.muiName,v.memo(v.forwardRef(t))}export{E as c}; diff --git a/build/assets/index-8f1177e3.js b/build/assets/index-04f9e7e6.js similarity index 94% rename from build/assets/index-8f1177e3.js rename to build/assets/index-04f9e7e6.js index e35d61fd3..17a8c1663 100644 --- a/build/assets/index-8f1177e3.js +++ b/build/assets/index-04f9e7e6.js @@ -3,7 +3,7 @@ var O5=Object.defineProperty;var F5=(et,tt,rt)=>tt in et?O5(et,tt,{enumerable:!0 * * @author Feross Aboukhadijeh * @license MIT - */(function(et){const tt=base64Js,rt=ieee754,nt=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;et.Buffer=ot,et.SlowBuffer=wt,et.INSPECT_MAX_BYTES=50;const it=2147483647;et.kMaxLength=it,ot.TYPED_ARRAY_SUPPORT=st(),!ot.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function st(){try{const Yt=new Uint8Array(1),Ut={foo:function(){return 42}};return Object.setPrototypeOf(Ut,Uint8Array.prototype),Object.setPrototypeOf(Yt,Ut),Yt.foo()===42}catch{return!1}}Object.defineProperty(ot.prototype,"parent",{enumerable:!0,get:function(){if(ot.isBuffer(this))return this.buffer}}),Object.defineProperty(ot.prototype,"offset",{enumerable:!0,get:function(){if(ot.isBuffer(this))return this.byteOffset}});function at(Yt){if(Yt>it)throw new RangeError('The value "'+Yt+'" is invalid for option "size"');const Ut=new Uint8Array(Yt);return Object.setPrototypeOf(Ut,ot.prototype),Ut}function ot(Yt,Ut,Vt){if(typeof Yt=="number"){if(typeof Ut=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return bt(Yt)}return lt(Yt,Ut,Vt)}ot.poolSize=8192;function lt(Yt,Ut,Vt){if(typeof Yt=="string")return gt(Yt,Ut);if(ArrayBuffer.isView(Yt))return pt(Yt);if(Yt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt);if(Pr(Yt,ArrayBuffer)||Yt&&Pr(Yt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pr(Yt,SharedArrayBuffer)||Yt&&Pr(Yt.buffer,SharedArrayBuffer)))return yt(Yt,Ut,Vt);if(typeof Yt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ir=Yt.valueOf&&Yt.valueOf();if(ir!=null&&ir!==Yt)return ot.from(ir,Ut,Vt);const kr=$t(Yt);if(kr)return kr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Yt[Symbol.toPrimitive]=="function")return ot.from(Yt[Symbol.toPrimitive]("string"),Ut,Vt);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt)}ot.from=function(Yt,Ut,Vt){return lt(Yt,Ut,Vt)},Object.setPrototypeOf(ot.prototype,Uint8Array.prototype),Object.setPrototypeOf(ot,Uint8Array);function ut(Yt){if(typeof Yt!="number")throw new TypeError('"size" argument must be of type number');if(Yt<0)throw new RangeError('The value "'+Yt+'" is invalid for option "size"')}function dt(Yt,Ut,Vt){return ut(Yt),Yt<=0?at(Yt):Ut!==void 0?typeof Vt=="string"?at(Yt).fill(Ut,Vt):at(Yt).fill(Ut):at(Yt)}ot.alloc=function(Yt,Ut,Vt){return dt(Yt,Ut,Vt)};function bt(Yt){return ut(Yt),at(Yt<0?0:mt(Yt)|0)}ot.allocUnsafe=function(Yt){return bt(Yt)},ot.allocUnsafeSlow=function(Yt){return bt(Yt)};function gt(Yt,Ut){if((typeof Ut!="string"||Ut==="")&&(Ut="utf8"),!ot.isEncoding(Ut))throw new TypeError("Unknown encoding: "+Ut);const Vt=St(Yt,Ut)|0;let ir=at(Vt);const kr=ir.write(Yt,Ut);return kr!==Vt&&(ir=ir.slice(0,kr)),ir}function kt(Yt){const Ut=Yt.length<0?0:mt(Yt.length)|0,Vt=at(Ut);for(let ir=0;ir=it)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+it.toString(16)+" bytes");return Yt|0}function wt(Yt){return+Yt!=Yt&&(Yt=0),ot.alloc(+Yt)}ot.isBuffer=function(Ut){return Ut!=null&&Ut._isBuffer===!0&&Ut!==ot.prototype},ot.compare=function(Ut,Vt){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),Pr(Vt,Uint8Array)&&(Vt=ot.from(Vt,Vt.offset,Vt.byteLength)),!ot.isBuffer(Ut)||!ot.isBuffer(Vt))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ut===Vt)return 0;let ir=Ut.length,kr=Vt.length;for(let $r=0,Br=Math.min(ir,kr);$rkr.length?(ot.isBuffer(Br)||(Br=ot.from(Br)),Br.copy(kr,$r)):Uint8Array.prototype.set.call(kr,Br,$r);else if(ot.isBuffer(Br))Br.copy(kr,$r);else throw new TypeError('"list" argument must be an Array of Buffers');$r+=Br.length}return kr};function St(Yt,Ut){if(ot.isBuffer(Yt))return Yt.length;if(ArrayBuffer.isView(Yt)||Pr(Yt,ArrayBuffer))return Yt.byteLength;if(typeof Yt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Yt);const Vt=Yt.length,ir=arguments.length>2&&arguments[2]===!0;if(!ir&&Vt===0)return 0;let kr=!1;for(;;)switch(Ut){case"ascii":case"latin1":case"binary":return Vt;case"utf8":case"utf-8":return Vr(Yt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Vt*2;case"hex":return Vt>>>1;case"base64":return or(Yt).length;default:if(kr)return ir?-1:Vr(Yt).length;Ut=(""+Ut).toLowerCase(),kr=!0}}ot.byteLength=St;function Bt(Yt,Ut,Vt){let ir=!1;if((Ut===void 0||Ut<0)&&(Ut=0),Ut>this.length||((Vt===void 0||Vt>this.length)&&(Vt=this.length),Vt<=0)||(Vt>>>=0,Ut>>>=0,Vt<=Ut))return"";for(Yt||(Yt="utf8");;)switch(Yt){case"hex":return Pt(this,Ut,Vt);case"utf8":case"utf-8":return ht(this,Ut,Vt);case"ascii":return Rt(this,Ut,Vt);case"latin1":case"binary":return At(this,Ut,Vt);case"base64":return Mt(this,Ut,Vt);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,Ut,Vt);default:if(ir)throw new TypeError("Unknown encoding: "+Yt);Yt=(Yt+"").toLowerCase(),ir=!0}}ot.prototype._isBuffer=!0;function Ft(Yt,Ut,Vt){const ir=Yt[Ut];Yt[Ut]=Yt[Vt],Yt[Vt]=ir}ot.prototype.swap16=function(){const Ut=this.length;if(Ut%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Vt=0;VtVt&&(Ut+=" ... "),""},nt&&(ot.prototype[nt]=ot.prototype.inspect),ot.prototype.compare=function(Ut,Vt,ir,kr,$r){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),!ot.isBuffer(Ut))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ut);if(Vt===void 0&&(Vt=0),ir===void 0&&(ir=Ut?Ut.length:0),kr===void 0&&(kr=0),$r===void 0&&($r=this.length),Vt<0||ir>Ut.length||kr<0||$r>this.length)throw new RangeError("out of range index");if(kr>=$r&&Vt>=ir)return 0;if(kr>=$r)return-1;if(Vt>=ir)return 1;if(Vt>>>=0,ir>>>=0,kr>>>=0,$r>>>=0,this===Ut)return 0;let Br=$r-kr,an=ir-Vt;const ln=Math.min(Br,an),rn=this.slice(kr,$r),kn=Ut.slice(Vt,ir);for(let fn=0;fn2147483647?Vt=2147483647:Vt<-2147483648&&(Vt=-2147483648),Vt=+Vt,Or(Vt)&&(Vt=kr?0:Yt.length-1),Vt<0&&(Vt=Yt.length+Vt),Vt>=Yt.length){if(kr)return-1;Vt=Yt.length-1}else if(Vt<0)if(kr)Vt=0;else return-1;if(typeof Ut=="string"&&(Ut=ot.from(Ut,ir)),ot.isBuffer(Ut))return Ut.length===0?-1:zt(Yt,Ut,Vt,ir,kr);if(typeof Ut=="number")return Ut=Ut&255,typeof Uint8Array.prototype.indexOf=="function"?kr?Uint8Array.prototype.indexOf.call(Yt,Ut,Vt):Uint8Array.prototype.lastIndexOf.call(Yt,Ut,Vt):zt(Yt,[Ut],Vt,ir,kr);throw new TypeError("val must be string, number or Buffer")}function zt(Yt,Ut,Vt,ir,kr){let $r=1,Br=Yt.length,an=Ut.length;if(ir!==void 0&&(ir=String(ir).toLowerCase(),ir==="ucs2"||ir==="ucs-2"||ir==="utf16le"||ir==="utf-16le")){if(Yt.length<2||Ut.length<2)return-1;$r=2,Br/=2,an/=2,Vt/=2}function ln(kn,fn){return $r===1?kn[fn]:kn.readUInt16BE(fn*$r)}let rn;if(kr){let kn=-1;for(rn=Vt;rnBr&&(Vt=Br-an),rn=Vt;rn>=0;rn--){let kn=!0;for(let fn=0;fnkr&&(ir=kr)):ir=kr;const $r=Ut.length;ir>$r/2&&(ir=$r/2);let Br;for(Br=0;Br>>0,isFinite(ir)?(ir=ir>>>0,kr===void 0&&(kr="utf8")):(kr=ir,ir=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $r=this.length-Vt;if((ir===void 0||ir>$r)&&(ir=$r),Ut.length>0&&(ir<0||Vt<0)||Vt>this.length)throw new RangeError("Attempt to write outside buffer bounds");kr||(kr="utf8");let Br=!1;for(;;)switch(kr){case"hex":return Ht(this,Ut,Vt,ir);case"utf8":case"utf-8":return Wt(this,Ut,Vt,ir);case"ascii":case"latin1":case"binary":return lr(this,Ut,Vt,ir);case"base64":return qt(this,Ut,Vt,ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ot(this,Ut,Vt,ir);default:if(Br)throw new TypeError("Unknown encoding: "+kr);kr=(""+kr).toLowerCase(),Br=!0}},ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(Yt,Ut,Vt){return Ut===0&&Vt===Yt.length?tt.fromByteArray(Yt):tt.fromByteArray(Yt.slice(Ut,Vt))}function ht(Yt,Ut,Vt){Vt=Math.min(Yt.length,Vt);const ir=[];let kr=Ut;for(;kr239?4:$r>223?3:$r>191?2:1;if(kr+an<=Vt){let ln,rn,kn,fn;switch(an){case 1:$r<128&&(Br=$r);break;case 2:ln=Yt[kr+1],(ln&192)===128&&(fn=($r&31)<<6|ln&63,fn>127&&(Br=fn));break;case 3:ln=Yt[kr+1],rn=Yt[kr+2],(ln&192)===128&&(rn&192)===128&&(fn=($r&15)<<12|(ln&63)<<6|rn&63,fn>2047&&(fn<55296||fn>57343)&&(Br=fn));break;case 4:ln=Yt[kr+1],rn=Yt[kr+2],kn=Yt[kr+3],(ln&192)===128&&(rn&192)===128&&(kn&192)===128&&(fn=($r&15)<<18|(ln&63)<<12|(rn&63)<<6|kn&63,fn>65535&&fn<1114112&&(Br=fn))}}Br===null?(Br=65533,an=1):Br>65535&&(Br-=65536,ir.push(Br>>>10&1023|55296),Br=56320|Br&1023),ir.push(Br),kr+=an}return Tt(ir)}const Et=4096;function Tt(Yt){const Ut=Yt.length;if(Ut<=Et)return String.fromCharCode.apply(String,Yt);let Vt="",ir=0;for(;irir)&&(Vt=ir);let kr="";for(let $r=Ut;$rir&&(Ut=ir),Vt<0?(Vt+=ir,Vt<0&&(Vt=0)):Vt>ir&&(Vt=ir),VtVt)throw new RangeError("Trying to access beyond buffer length")}ot.prototype.readUintLE=ot.prototype.readUIntLE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut+--Vt],$r=1;for(;Vt>0&&($r*=256);)kr+=this[Ut+--Vt]*$r;return kr},ot.prototype.readUint8=ot.prototype.readUInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]},ot.prototype.readUint16LE=ot.prototype.readUInt16LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]|this[Ut+1]<<8},ot.prototype.readUint16BE=ot.prototype.readUInt16BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,2,this.length),this[Ut]<<8|this[Ut+1]},ot.prototype.readUint32LE=ot.prototype.readUInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),(this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16)+this[Ut+3]*16777216},ot.prototype.readUint32BE=ot.prototype.readUInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]*16777216+(this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3])},ot.prototype.readBigUInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt+this[++Ut]*2**8+this[++Ut]*2**16+this[++Ut]*2**24,$r=this[++Ut]+this[++Ut]*2**8+this[++Ut]*2**16+ir*2**24;return BigInt(kr)+(BigInt($r)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Vt*2**24+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut],$r=this[++Ut]*2**24+this[++Ut]*2**16+this[++Ut]*2**8+ir;return(BigInt(kr)<>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br=$r&&(kr-=Math.pow(2,8*Vt)),kr},ot.prototype.readIntBE=function(Ut,Vt,ir){Ut=Ut>>>0,Vt=Vt>>>0,ir||Ct(Ut,Vt,this.length);let kr=Vt,$r=1,Br=this[Ut+--kr];for(;kr>0&&($r*=256);)Br+=this[Ut+--kr]*$r;return $r*=128,Br>=$r&&(Br-=Math.pow(2,8*Vt)),Br},ot.prototype.readInt8=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,1,this.length),this[Ut]&128?(255-this[Ut]+1)*-1:this[Ut]},ot.prototype.readInt16LE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut]|this[Ut+1]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt16BE=function(Ut,Vt){Ut=Ut>>>0,Vt||Ct(Ut,2,this.length);const ir=this[Ut+1]|this[Ut]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt32LE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16|this[Ut+3]<<24},ot.prototype.readInt32BE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),this[Ut]<<24|this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3]},ot.prototype.readBigInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=this[Ut+4]+this[Ut+5]*2**8+this[Ut+6]*2**16+(ir<<24);return(BigInt(kr)<>>0,Ar(Ut,"offset");const Vt=this[Ut],ir=this[Ut+7];(Vt===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=(Vt<<24)+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut];return(BigInt(kr)<>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!0,23,4)},ot.prototype.readFloatBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,4,this.length),rt.read(this,Ut,!1,23,4)},ot.prototype.readDoubleLE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!0,52,8)},ot.prototype.readDoubleBE=function(Ut,Vt){return Ut=Ut>>>0,Vt||Ct(Ut,8,this.length),rt.read(this,Ut,!1,52,8)};function xt(Yt,Ut,Vt,ir,kr,$r){if(!ot.isBuffer(Yt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ut>kr||Ut<$r)throw new RangeError('"value" argument is out of bounds');if(Vt+ir>Yt.length)throw new RangeError("Index out of range")}ot.prototype.writeUintLE=ot.prototype.writeUIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=1,Br=0;for(this[Vt]=Ut&255;++Br>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Vt,ir,an,0)}let $r=ir-1,Br=1;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)this[Vt+$r]=Ut/Br&255;return Vt+ir},ot.prototype.writeUint8=ot.prototype.writeUInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,255,0),this[Vt]=Ut&255,Vt+1},ot.prototype.writeUint16LE=ot.prototype.writeUInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeUint16BE=ot.prototype.writeUInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,65535,0),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeUint32LE=ot.prototype.writeUInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt+3]=Ut>>>24,this[Vt+2]=Ut>>>16,this[Vt+1]=Ut>>>8,this[Vt]=Ut&255,Vt+4},ot.prototype.writeUint32BE=ot.prototype.writeUInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,4294967295,0),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4};function Dt(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r,$r=$r>>8,Yt[Vt++]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Br=Br>>8,Yt[Vt++]=Br,Vt}function tr(Yt,Ut,Vt,ir,kr){Jt(Ut,ir,kr,Yt,Vt,7);let $r=Number(Ut&BigInt(4294967295));Yt[Vt+7]=$r,$r=$r>>8,Yt[Vt+6]=$r,$r=$r>>8,Yt[Vt+5]=$r,$r=$r>>8,Yt[Vt+4]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Vt+3]=Br,Br=Br>>8,Yt[Vt+2]=Br,Br=Br>>8,Yt[Vt+1]=Br,Br=Br>>8,Yt[Vt]=Br,Vt+8}ot.prototype.writeBigUInt64LE=gr(function(Ut,Vt=0){return Dt(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeBigUInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeIntLE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=0,Br=1,an=0;for(this[Vt]=Ut&255;++$r>0)-an&255;return Vt+ir},ot.prototype.writeIntBE=function(Ut,Vt,ir,kr){if(Ut=+Ut,Vt=Vt>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Vt,ir,ln-1,-ln)}let $r=ir-1,Br=1,an=0;for(this[Vt+$r]=Ut&255;--$r>=0&&(Br*=256);)Ut<0&&an===0&&this[Vt+$r+1]!==0&&(an=1),this[Vt+$r]=(Ut/Br>>0)-an&255;return Vt+ir},ot.prototype.writeInt8=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,1,127,-128),Ut<0&&(Ut=255+Ut+1),this[Vt]=Ut&255,Vt+1},ot.prototype.writeInt16LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,Vt+2},ot.prototype.writeInt16BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,2,32767,-32768),this[Vt]=Ut>>>8,this[Vt+1]=Ut&255,Vt+2},ot.prototype.writeInt32LE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),this[Vt]=Ut&255,this[Vt+1]=Ut>>>8,this[Vt+2]=Ut>>>16,this[Vt+3]=Ut>>>24,Vt+4},ot.prototype.writeInt32BE=function(Ut,Vt,ir){return Ut=+Ut,Vt=Vt>>>0,ir||xt(this,Ut,Vt,4,2147483647,-2147483648),Ut<0&&(Ut=4294967295+Ut+1),this[Vt]=Ut>>>24,this[Vt+1]=Ut>>>16,this[Vt+2]=Ut>>>8,this[Vt+3]=Ut&255,Vt+4},ot.prototype.writeBigInt64LE=gr(function(Ut,Vt=0){return Dt(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ot.prototype.writeBigInt64BE=gr(function(Ut,Vt=0){return tr(this,Ut,Vt,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function pr(Yt,Ut,Vt,ir,kr,$r){if(Vt+ir>Yt.length)throw new RangeError("Index out of range");if(Vt<0)throw new RangeError("Index out of range")}function Kt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,4),rt.write(Yt,Ut,Vt,ir,23,4),Vt+4}ot.prototype.writeFloatLE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!0,ir)},ot.prototype.writeFloatBE=function(Ut,Vt,ir){return Kt(this,Ut,Vt,!1,ir)};function Qt(Yt,Ut,Vt,ir,kr){return Ut=+Ut,Vt=Vt>>>0,kr||pr(Yt,Ut,Vt,8),rt.write(Yt,Ut,Vt,ir,52,8),Vt+8}ot.prototype.writeDoubleLE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!0,ir)},ot.prototype.writeDoubleBE=function(Ut,Vt,ir){return Qt(this,Ut,Vt,!1,ir)},ot.prototype.copy=function(Ut,Vt,ir,kr){if(!ot.isBuffer(Ut))throw new TypeError("argument should be a Buffer");if(ir||(ir=0),!kr&&kr!==0&&(kr=this.length),Vt>=Ut.length&&(Vt=Ut.length),Vt||(Vt=0),kr>0&&kr=this.length)throw new RangeError("Index out of range");if(kr<0)throw new RangeError("sourceEnd out of bounds");kr>this.length&&(kr=this.length),Ut.length-Vt>>0,ir=ir===void 0?this.length:ir>>>0,Ut||(Ut=0);let $r;if(typeof Ut=="number")for($r=Vt;$r2**32?kr=_r(String(Vt)):typeof Vt=="bigint"&&(kr=String(Vt),(Vt>BigInt(2)**BigInt(32)||Vt<-(BigInt(2)**BigInt(32)))&&(kr=_r(kr)),kr+="n"),ir+=` It must be ${Ut}. Received ${kr}`,ir},RangeError);function _r(Yt){let Ut="",Vt=Yt.length;const ir=Yt[0]==="-"?1:0;for(;Vt>=ir+4;Vt-=3)Ut=`_${Yt.slice(Vt-3,Vt)}${Ut}`;return`${Yt.slice(0,Vt)}${Ut}`}function er(Yt,Ut,Vt){Ar(Ut,"offset"),(Yt[Ut]===void 0||Yt[Ut+Vt]===void 0)&&Er(Ut,Yt.length-(Vt+1))}function Jt(Yt,Ut,Vt,ir,kr,$r){if(Yt>Vt||Yt3?Ut===0||Ut===BigInt(0)?an=`>= 0${Br} and < 2${Br} ** ${($r+1)*8}${Br}`:an=`>= -(2${Br} ** ${($r+1)*8-1}${Br}) and < 2 ** ${($r+1)*8-1}${Br}`:an=`>= ${Ut}${Br} and <= ${Vt}${Br}`,new Zt.ERR_OUT_OF_RANGE("value",an,Yt)}er(ir,kr,$r)}function Ar(Yt,Ut){if(typeof Yt!="number")throw new Zt.ERR_INVALID_ARG_TYPE(Ut,"number",Yt)}function Er(Yt,Ut,Vt){throw Math.floor(Yt)!==Yt?(Ar(Yt,Vt),new Zt.ERR_OUT_OF_RANGE(Vt||"offset","an integer",Yt)):Ut<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE(Vt||"offset",`>= ${Vt?1:0} and <= ${Ut}`,Yt)}const Dr=/[^+/0-9A-Za-z-_]/g;function Xr(Yt){if(Yt=Yt.split("=")[0],Yt=Yt.trim().replace(Dr,""),Yt.length<2)return"";for(;Yt.length%4!==0;)Yt=Yt+"=";return Yt}function Vr(Yt,Ut){Ut=Ut||1/0;let Vt;const ir=Yt.length;let kr=null;const $r=[];for(let Br=0;Br55295&&Vt<57344){if(!kr){if(Vt>56319){(Ut-=3)>-1&&$r.push(239,191,189);continue}else if(Br+1===ir){(Ut-=3)>-1&&$r.push(239,191,189);continue}kr=Vt;continue}if(Vt<56320){(Ut-=3)>-1&&$r.push(239,191,189),kr=Vt;continue}Vt=(kr-55296<<10|Vt-56320)+65536}else kr&&(Ut-=3)>-1&&$r.push(239,191,189);if(kr=null,Vt<128){if((Ut-=1)<0)break;$r.push(Vt)}else if(Vt<2048){if((Ut-=2)<0)break;$r.push(Vt>>6|192,Vt&63|128)}else if(Vt<65536){if((Ut-=3)<0)break;$r.push(Vt>>12|224,Vt>>6&63|128,Vt&63|128)}else if(Vt<1114112){if((Ut-=4)<0)break;$r.push(Vt>>18|240,Vt>>12&63|128,Vt>>6&63|128,Vt&63|128)}else throw new Error("Invalid code point")}return $r}function wr(Yt){const Ut=[];for(let Vt=0;Vt>8,kr=Vt%256,$r.push(kr),$r.push(ir);return $r}function or(Yt){return tt.toByteArray(Xr(Yt))}function xr(Yt,Ut,Vt,ir){let kr;for(kr=0;kr=Ut.length||kr>=Yt.length);++kr)Ut[kr+Vt]=Yt[kr];return kr}function Pr(Yt,Ut){return Yt instanceof Ut||Yt!=null&&Yt.constructor!=null&&Yt.constructor.name!=null&&Yt.constructor.name===Ut.name}function Or(Yt){return Yt!==Yt}const rr=function(){const Yt="0123456789abcdef",Ut=new Array(256);for(let Vt=0;Vt<16;++Vt){const ir=Vt*16;for(let kr=0;kr<16;++kr)Ut[ir+kr]=Yt[Vt]+Yt[kr]}return Ut}();function gr(Yt){return typeof BigInt>"u"?Ir:Yt}function Ir(){throw new Error("BigInt not supported")}})(buffer$2);var browser$d={exports:{}},process$1=browser$d.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(et){if(cachedSetTimeout===setTimeout)return setTimeout(et,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(et,0);try{return cachedSetTimeout(et,0)}catch{try{return cachedSetTimeout.call(null,et,0)}catch{return cachedSetTimeout.call(this,et,0)}}}function runClearTimeout(et){if(cachedClearTimeout===clearTimeout)return clearTimeout(et);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(et);try{return cachedClearTimeout(et)}catch{try{return cachedClearTimeout.call(null,et)}catch{return cachedClearTimeout.call(this,et)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var et=runTimeout(cleanUpNextTick);draining=!0;for(var tt=queue.length;tt;){for(currentQueue=queue,queue=[];++queueIndex1)for(var rt=1;rtit)throw new RangeError('The value "'+Yt+'" is invalid for option "size"');const Ut=new Uint8Array(Yt);return Object.setPrototypeOf(Ut,ot.prototype),Ut}function ot(Yt,Ut,Ht){if(typeof Yt=="number"){if(typeof Ut=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return bt(Yt)}return lt(Yt,Ut,Ht)}ot.poolSize=8192;function lt(Yt,Ut,Ht){if(typeof Yt=="string")return gt(Yt,Ut);if(ArrayBuffer.isView(Yt))return pt(Yt);if(Yt==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt);if(Pr(Yt,ArrayBuffer)||Yt&&Pr(Yt.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pr(Yt,SharedArrayBuffer)||Yt&&Pr(Yt.buffer,SharedArrayBuffer)))return yt(Yt,Ut,Ht);if(typeof Yt=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ir=Yt.valueOf&&Yt.valueOf();if(ir!=null&&ir!==Yt)return ot.from(ir,Ut,Ht);const kr=$t(Yt);if(kr)return kr;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof Yt[Symbol.toPrimitive]=="function")return ot.from(Yt[Symbol.toPrimitive]("string"),Ut,Ht);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Yt)}ot.from=function(Yt,Ut,Ht){return lt(Yt,Ut,Ht)},Object.setPrototypeOf(ot.prototype,Uint8Array.prototype),Object.setPrototypeOf(ot,Uint8Array);function ut(Yt){if(typeof Yt!="number")throw new TypeError('"size" argument must be of type number');if(Yt<0)throw new RangeError('The value "'+Yt+'" is invalid for option "size"')}function dt(Yt,Ut,Ht){return ut(Yt),Yt<=0?at(Yt):Ut!==void 0?typeof Ht=="string"?at(Yt).fill(Ut,Ht):at(Yt).fill(Ut):at(Yt)}ot.alloc=function(Yt,Ut,Ht){return dt(Yt,Ut,Ht)};function bt(Yt){return ut(Yt),at(Yt<0?0:mt(Yt)|0)}ot.allocUnsafe=function(Yt){return bt(Yt)},ot.allocUnsafeSlow=function(Yt){return bt(Yt)};function gt(Yt,Ut){if((typeof Ut!="string"||Ut==="")&&(Ut="utf8"),!ot.isEncoding(Ut))throw new TypeError("Unknown encoding: "+Ut);const Ht=St(Yt,Ut)|0;let ir=at(Ht);const kr=ir.write(Yt,Ut);return kr!==Ht&&(ir=ir.slice(0,kr)),ir}function kt(Yt){const Ut=Yt.length<0?0:mt(Yt.length)|0,Ht=at(Ut);for(let ir=0;ir=it)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+it.toString(16)+" bytes");return Yt|0}function wt(Yt){return+Yt!=Yt&&(Yt=0),ot.alloc(+Yt)}ot.isBuffer=function(Ut){return Ut!=null&&Ut._isBuffer===!0&&Ut!==ot.prototype},ot.compare=function(Ut,Ht){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),Pr(Ht,Uint8Array)&&(Ht=ot.from(Ht,Ht.offset,Ht.byteLength)),!ot.isBuffer(Ut)||!ot.isBuffer(Ht))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(Ut===Ht)return 0;let ir=Ut.length,kr=Ht.length;for(let $r=0,Br=Math.min(ir,kr);$rkr.length?(ot.isBuffer(Br)||(Br=ot.from(Br)),Br.copy(kr,$r)):Uint8Array.prototype.set.call(kr,Br,$r);else if(ot.isBuffer(Br))Br.copy(kr,$r);else throw new TypeError('"list" argument must be an Array of Buffers');$r+=Br.length}return kr};function St(Yt,Ut){if(ot.isBuffer(Yt))return Yt.length;if(ArrayBuffer.isView(Yt)||Pr(Yt,ArrayBuffer))return Yt.byteLength;if(typeof Yt!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Yt);const Ht=Yt.length,ir=arguments.length>2&&arguments[2]===!0;if(!ir&&Ht===0)return 0;let kr=!1;for(;;)switch(Ut){case"ascii":case"latin1":case"binary":return Ht;case"utf8":case"utf-8":return Vr(Yt).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ht*2;case"hex":return Ht>>>1;case"base64":return or(Yt).length;default:if(kr)return ir?-1:Vr(Yt).length;Ut=(""+Ut).toLowerCase(),kr=!0}}ot.byteLength=St;function Bt(Yt,Ut,Ht){let ir=!1;if((Ut===void 0||Ut<0)&&(Ut=0),Ut>this.length||((Ht===void 0||Ht>this.length)&&(Ht=this.length),Ht<=0)||(Ht>>>=0,Ut>>>=0,Ht<=Ut))return"";for(Yt||(Yt="utf8");;)switch(Yt){case"hex":return Pt(this,Ut,Ht);case"utf8":case"utf-8":return ht(this,Ut,Ht);case"ascii":return Rt(this,Ut,Ht);case"latin1":case"binary":return At(this,Ut,Ht);case"base64":return Mt(this,Ut,Ht);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return It(this,Ut,Ht);default:if(ir)throw new TypeError("Unknown encoding: "+Yt);Yt=(Yt+"").toLowerCase(),ir=!0}}ot.prototype._isBuffer=!0;function Ot(Yt,Ut,Ht){const ir=Yt[Ut];Yt[Ut]=Yt[Ht],Yt[Ht]=ir}ot.prototype.swap16=function(){const Ut=this.length;if(Ut%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let Ht=0;HtHt&&(Ut+=" ... "),""},nt&&(ot.prototype[nt]=ot.prototype.inspect),ot.prototype.compare=function(Ut,Ht,ir,kr,$r){if(Pr(Ut,Uint8Array)&&(Ut=ot.from(Ut,Ut.offset,Ut.byteLength)),!ot.isBuffer(Ut))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof Ut);if(Ht===void 0&&(Ht=0),ir===void 0&&(ir=Ut?Ut.length:0),kr===void 0&&(kr=0),$r===void 0&&($r=this.length),Ht<0||ir>Ut.length||kr<0||$r>this.length)throw new RangeError("out of range index");if(kr>=$r&&Ht>=ir)return 0;if(kr>=$r)return-1;if(Ht>=ir)return 1;if(Ht>>>=0,ir>>>=0,kr>>>=0,$r>>>=0,this===Ut)return 0;let Br=$r-kr,an=ir-Ht;const ln=Math.min(Br,an),rn=this.slice(kr,$r),kn=Ut.slice(Ht,ir);for(let fn=0;fn2147483647?Ht=2147483647:Ht<-2147483648&&(Ht=-2147483648),Ht=+Ht,Or(Ht)&&(Ht=kr?0:Yt.length-1),Ht<0&&(Ht=Yt.length+Ht),Ht>=Yt.length){if(kr)return-1;Ht=Yt.length-1}else if(Ht<0)if(kr)Ht=0;else return-1;if(typeof Ut=="string"&&(Ut=ot.from(Ut,ir)),ot.isBuffer(Ut))return Ut.length===0?-1:zt(Yt,Ut,Ht,ir,kr);if(typeof Ut=="number")return Ut=Ut&255,typeof Uint8Array.prototype.indexOf=="function"?kr?Uint8Array.prototype.indexOf.call(Yt,Ut,Ht):Uint8Array.prototype.lastIndexOf.call(Yt,Ut,Ht):zt(Yt,[Ut],Ht,ir,kr);throw new TypeError("val must be string, number or Buffer")}function zt(Yt,Ut,Ht,ir,kr){let $r=1,Br=Yt.length,an=Ut.length;if(ir!==void 0&&(ir=String(ir).toLowerCase(),ir==="ucs2"||ir==="ucs-2"||ir==="utf16le"||ir==="utf-16le")){if(Yt.length<2||Ut.length<2)return-1;$r=2,Br/=2,an/=2,Ht/=2}function ln(kn,fn){return $r===1?kn[fn]:kn.readUInt16BE(fn*$r)}let rn;if(kr){let kn=-1;for(rn=Ht;rnBr&&(Ht=Br-an),rn=Ht;rn>=0;rn--){let kn=!0;for(let fn=0;fnkr&&(ir=kr)):ir=kr;const $r=Ut.length;ir>$r/2&&(ir=$r/2);let Br;for(Br=0;Br>>0,isFinite(ir)?(ir=ir>>>0,kr===void 0&&(kr="utf8")):(kr=ir,ir=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const $r=this.length-Ht;if((ir===void 0||ir>$r)&&(ir=$r),Ut.length>0&&(ir<0||Ht<0)||Ht>this.length)throw new RangeError("Attempt to write outside buffer bounds");kr||(kr="utf8");let Br=!1;for(;;)switch(kr){case"hex":return Vt(this,Ut,Ht,ir);case"utf8":case"utf-8":return Wt(this,Ut,Ht,ir);case"ascii":case"latin1":case"binary":return lr(this,Ut,Ht,ir);case"base64":return qt(this,Ut,Ht,ir);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ft(this,Ut,Ht,ir);default:if(Br)throw new TypeError("Unknown encoding: "+kr);kr=(""+kr).toLowerCase(),Br=!0}},ot.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Mt(Yt,Ut,Ht){return Ut===0&&Ht===Yt.length?tt.fromByteArray(Yt):tt.fromByteArray(Yt.slice(Ut,Ht))}function ht(Yt,Ut,Ht){Ht=Math.min(Yt.length,Ht);const ir=[];let kr=Ut;for(;kr239?4:$r>223?3:$r>191?2:1;if(kr+an<=Ht){let ln,rn,kn,fn;switch(an){case 1:$r<128&&(Br=$r);break;case 2:ln=Yt[kr+1],(ln&192)===128&&(fn=($r&31)<<6|ln&63,fn>127&&(Br=fn));break;case 3:ln=Yt[kr+1],rn=Yt[kr+2],(ln&192)===128&&(rn&192)===128&&(fn=($r&15)<<12|(ln&63)<<6|rn&63,fn>2047&&(fn<55296||fn>57343)&&(Br=fn));break;case 4:ln=Yt[kr+1],rn=Yt[kr+2],kn=Yt[kr+3],(ln&192)===128&&(rn&192)===128&&(kn&192)===128&&(fn=($r&15)<<18|(ln&63)<<12|(rn&63)<<6|kn&63,fn>65535&&fn<1114112&&(Br=fn))}}Br===null?(Br=65533,an=1):Br>65535&&(Br-=65536,ir.push(Br>>>10&1023|55296),Br=56320|Br&1023),ir.push(Br),kr+=an}return Tt(ir)}const Et=4096;function Tt(Yt){const Ut=Yt.length;if(Ut<=Et)return String.fromCharCode.apply(String,Yt);let Ht="",ir=0;for(;irir)&&(Ht=ir);let kr="";for(let $r=Ut;$rir&&(Ut=ir),Ht<0?(Ht+=ir,Ht<0&&(Ht=0)):Ht>ir&&(Ht=ir),HtHt)throw new RangeError("Trying to access beyond buffer length")}ot.prototype.readUintLE=ot.prototype.readUIntLE=function(Ut,Ht,ir){Ut=Ut>>>0,Ht=Ht>>>0,ir||Ct(Ut,Ht,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br>>0,Ht=Ht>>>0,ir||Ct(Ut,Ht,this.length);let kr=this[Ut+--Ht],$r=1;for(;Ht>0&&($r*=256);)kr+=this[Ut+--Ht]*$r;return kr},ot.prototype.readUint8=ot.prototype.readUInt8=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,1,this.length),this[Ut]},ot.prototype.readUint16LE=ot.prototype.readUInt16LE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,2,this.length),this[Ut]|this[Ut+1]<<8},ot.prototype.readUint16BE=ot.prototype.readUInt16BE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,2,this.length),this[Ut]<<8|this[Ut+1]},ot.prototype.readUint32LE=ot.prototype.readUInt32LE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,4,this.length),(this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16)+this[Ut+3]*16777216},ot.prototype.readUint32BE=ot.prototype.readUInt32BE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,4,this.length),this[Ut]*16777216+(this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3])},ot.prototype.readBigUInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Ht=this[Ut],ir=this[Ut+7];(Ht===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Ht+this[++Ut]*2**8+this[++Ut]*2**16+this[++Ut]*2**24,$r=this[++Ut]+this[++Ut]*2**8+this[++Ut]*2**16+ir*2**24;return BigInt(kr)+(BigInt($r)<>>0,Ar(Ut,"offset");const Ht=this[Ut],ir=this[Ut+7];(Ht===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=Ht*2**24+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut],$r=this[++Ut]*2**24+this[++Ut]*2**16+this[++Ut]*2**8+ir;return(BigInt(kr)<>>0,Ht=Ht>>>0,ir||Ct(Ut,Ht,this.length);let kr=this[Ut],$r=1,Br=0;for(;++Br=$r&&(kr-=Math.pow(2,8*Ht)),kr},ot.prototype.readIntBE=function(Ut,Ht,ir){Ut=Ut>>>0,Ht=Ht>>>0,ir||Ct(Ut,Ht,this.length);let kr=Ht,$r=1,Br=this[Ut+--kr];for(;kr>0&&($r*=256);)Br+=this[Ut+--kr]*$r;return $r*=128,Br>=$r&&(Br-=Math.pow(2,8*Ht)),Br},ot.prototype.readInt8=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,1,this.length),this[Ut]&128?(255-this[Ut]+1)*-1:this[Ut]},ot.prototype.readInt16LE=function(Ut,Ht){Ut=Ut>>>0,Ht||Ct(Ut,2,this.length);const ir=this[Ut]|this[Ut+1]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt16BE=function(Ut,Ht){Ut=Ut>>>0,Ht||Ct(Ut,2,this.length);const ir=this[Ut+1]|this[Ut]<<8;return ir&32768?ir|4294901760:ir},ot.prototype.readInt32LE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,4,this.length),this[Ut]|this[Ut+1]<<8|this[Ut+2]<<16|this[Ut+3]<<24},ot.prototype.readInt32BE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,4,this.length),this[Ut]<<24|this[Ut+1]<<16|this[Ut+2]<<8|this[Ut+3]},ot.prototype.readBigInt64LE=gr(function(Ut){Ut=Ut>>>0,Ar(Ut,"offset");const Ht=this[Ut],ir=this[Ut+7];(Ht===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=this[Ut+4]+this[Ut+5]*2**8+this[Ut+6]*2**16+(ir<<24);return(BigInt(kr)<>>0,Ar(Ut,"offset");const Ht=this[Ut],ir=this[Ut+7];(Ht===void 0||ir===void 0)&&Er(Ut,this.length-8);const kr=(Ht<<24)+this[++Ut]*2**16+this[++Ut]*2**8+this[++Ut];return(BigInt(kr)<>>0,Ht||Ct(Ut,4,this.length),rt.read(this,Ut,!0,23,4)},ot.prototype.readFloatBE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,4,this.length),rt.read(this,Ut,!1,23,4)},ot.prototype.readDoubleLE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,8,this.length),rt.read(this,Ut,!0,52,8)},ot.prototype.readDoubleBE=function(Ut,Ht){return Ut=Ut>>>0,Ht||Ct(Ut,8,this.length),rt.read(this,Ut,!1,52,8)};function xt(Yt,Ut,Ht,ir,kr,$r){if(!ot.isBuffer(Yt))throw new TypeError('"buffer" argument must be a Buffer instance');if(Ut>kr||Ut<$r)throw new RangeError('"value" argument is out of bounds');if(Ht+ir>Yt.length)throw new RangeError("Index out of range")}ot.prototype.writeUintLE=ot.prototype.writeUIntLE=function(Ut,Ht,ir,kr){if(Ut=+Ut,Ht=Ht>>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Ht,ir,an,0)}let $r=1,Br=0;for(this[Ht]=Ut&255;++Br>>0,ir=ir>>>0,!kr){const an=Math.pow(2,8*ir)-1;xt(this,Ut,Ht,ir,an,0)}let $r=ir-1,Br=1;for(this[Ht+$r]=Ut&255;--$r>=0&&(Br*=256);)this[Ht+$r]=Ut/Br&255;return Ht+ir},ot.prototype.writeUint8=ot.prototype.writeUInt8=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,1,255,0),this[Ht]=Ut&255,Ht+1},ot.prototype.writeUint16LE=ot.prototype.writeUInt16LE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,2,65535,0),this[Ht]=Ut&255,this[Ht+1]=Ut>>>8,Ht+2},ot.prototype.writeUint16BE=ot.prototype.writeUInt16BE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,2,65535,0),this[Ht]=Ut>>>8,this[Ht+1]=Ut&255,Ht+2},ot.prototype.writeUint32LE=ot.prototype.writeUInt32LE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,4,4294967295,0),this[Ht+3]=Ut>>>24,this[Ht+2]=Ut>>>16,this[Ht+1]=Ut>>>8,this[Ht]=Ut&255,Ht+4},ot.prototype.writeUint32BE=ot.prototype.writeUInt32BE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,4,4294967295,0),this[Ht]=Ut>>>24,this[Ht+1]=Ut>>>16,this[Ht+2]=Ut>>>8,this[Ht+3]=Ut&255,Ht+4};function Dt(Yt,Ut,Ht,ir,kr){Jt(Ut,ir,kr,Yt,Ht,7);let $r=Number(Ut&BigInt(4294967295));Yt[Ht++]=$r,$r=$r>>8,Yt[Ht++]=$r,$r=$r>>8,Yt[Ht++]=$r,$r=$r>>8,Yt[Ht++]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Ht++]=Br,Br=Br>>8,Yt[Ht++]=Br,Br=Br>>8,Yt[Ht++]=Br,Br=Br>>8,Yt[Ht++]=Br,Ht}function tr(Yt,Ut,Ht,ir,kr){Jt(Ut,ir,kr,Yt,Ht,7);let $r=Number(Ut&BigInt(4294967295));Yt[Ht+7]=$r,$r=$r>>8,Yt[Ht+6]=$r,$r=$r>>8,Yt[Ht+5]=$r,$r=$r>>8,Yt[Ht+4]=$r;let Br=Number(Ut>>BigInt(32)&BigInt(4294967295));return Yt[Ht+3]=Br,Br=Br>>8,Yt[Ht+2]=Br,Br=Br>>8,Yt[Ht+1]=Br,Br=Br>>8,Yt[Ht]=Br,Ht+8}ot.prototype.writeBigUInt64LE=gr(function(Ut,Ht=0){return Dt(this,Ut,Ht,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeBigUInt64BE=gr(function(Ut,Ht=0){return tr(this,Ut,Ht,BigInt(0),BigInt("0xffffffffffffffff"))}),ot.prototype.writeIntLE=function(Ut,Ht,ir,kr){if(Ut=+Ut,Ht=Ht>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Ht,ir,ln-1,-ln)}let $r=0,Br=1,an=0;for(this[Ht]=Ut&255;++$r>0)-an&255;return Ht+ir},ot.prototype.writeIntBE=function(Ut,Ht,ir,kr){if(Ut=+Ut,Ht=Ht>>>0,!kr){const ln=Math.pow(2,8*ir-1);xt(this,Ut,Ht,ir,ln-1,-ln)}let $r=ir-1,Br=1,an=0;for(this[Ht+$r]=Ut&255;--$r>=0&&(Br*=256);)Ut<0&&an===0&&this[Ht+$r+1]!==0&&(an=1),this[Ht+$r]=(Ut/Br>>0)-an&255;return Ht+ir},ot.prototype.writeInt8=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,1,127,-128),Ut<0&&(Ut=255+Ut+1),this[Ht]=Ut&255,Ht+1},ot.prototype.writeInt16LE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,2,32767,-32768),this[Ht]=Ut&255,this[Ht+1]=Ut>>>8,Ht+2},ot.prototype.writeInt16BE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,2,32767,-32768),this[Ht]=Ut>>>8,this[Ht+1]=Ut&255,Ht+2},ot.prototype.writeInt32LE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,4,2147483647,-2147483648),this[Ht]=Ut&255,this[Ht+1]=Ut>>>8,this[Ht+2]=Ut>>>16,this[Ht+3]=Ut>>>24,Ht+4},ot.prototype.writeInt32BE=function(Ut,Ht,ir){return Ut=+Ut,Ht=Ht>>>0,ir||xt(this,Ut,Ht,4,2147483647,-2147483648),Ut<0&&(Ut=4294967295+Ut+1),this[Ht]=Ut>>>24,this[Ht+1]=Ut>>>16,this[Ht+2]=Ut>>>8,this[Ht+3]=Ut&255,Ht+4},ot.prototype.writeBigInt64LE=gr(function(Ut,Ht=0){return Dt(this,Ut,Ht,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),ot.prototype.writeBigInt64BE=gr(function(Ut,Ht=0){return tr(this,Ut,Ht,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function pr(Yt,Ut,Ht,ir,kr,$r){if(Ht+ir>Yt.length)throw new RangeError("Index out of range");if(Ht<0)throw new RangeError("Index out of range")}function Kt(Yt,Ut,Ht,ir,kr){return Ut=+Ut,Ht=Ht>>>0,kr||pr(Yt,Ut,Ht,4),rt.write(Yt,Ut,Ht,ir,23,4),Ht+4}ot.prototype.writeFloatLE=function(Ut,Ht,ir){return Kt(this,Ut,Ht,!0,ir)},ot.prototype.writeFloatBE=function(Ut,Ht,ir){return Kt(this,Ut,Ht,!1,ir)};function Qt(Yt,Ut,Ht,ir,kr){return Ut=+Ut,Ht=Ht>>>0,kr||pr(Yt,Ut,Ht,8),rt.write(Yt,Ut,Ht,ir,52,8),Ht+8}ot.prototype.writeDoubleLE=function(Ut,Ht,ir){return Qt(this,Ut,Ht,!0,ir)},ot.prototype.writeDoubleBE=function(Ut,Ht,ir){return Qt(this,Ut,Ht,!1,ir)},ot.prototype.copy=function(Ut,Ht,ir,kr){if(!ot.isBuffer(Ut))throw new TypeError("argument should be a Buffer");if(ir||(ir=0),!kr&&kr!==0&&(kr=this.length),Ht>=Ut.length&&(Ht=Ut.length),Ht||(Ht=0),kr>0&&kr=this.length)throw new RangeError("Index out of range");if(kr<0)throw new RangeError("sourceEnd out of bounds");kr>this.length&&(kr=this.length),Ut.length-Ht>>0,ir=ir===void 0?this.length:ir>>>0,Ut||(Ut=0);let $r;if(typeof Ut=="number")for($r=Ht;$r2**32?kr=_r(String(Ht)):typeof Ht=="bigint"&&(kr=String(Ht),(Ht>BigInt(2)**BigInt(32)||Ht<-(BigInt(2)**BigInt(32)))&&(kr=_r(kr)),kr+="n"),ir+=` It must be ${Ut}. Received ${kr}`,ir},RangeError);function _r(Yt){let Ut="",Ht=Yt.length;const ir=Yt[0]==="-"?1:0;for(;Ht>=ir+4;Ht-=3)Ut=`_${Yt.slice(Ht-3,Ht)}${Ut}`;return`${Yt.slice(0,Ht)}${Ut}`}function er(Yt,Ut,Ht){Ar(Ut,"offset"),(Yt[Ut]===void 0||Yt[Ut+Ht]===void 0)&&Er(Ut,Yt.length-(Ht+1))}function Jt(Yt,Ut,Ht,ir,kr,$r){if(Yt>Ht||Yt3?Ut===0||Ut===BigInt(0)?an=`>= 0${Br} and < 2${Br} ** ${($r+1)*8}${Br}`:an=`>= -(2${Br} ** ${($r+1)*8-1}${Br}) and < 2 ** ${($r+1)*8-1}${Br}`:an=`>= ${Ut}${Br} and <= ${Ht}${Br}`,new Zt.ERR_OUT_OF_RANGE("value",an,Yt)}er(ir,kr,$r)}function Ar(Yt,Ut){if(typeof Yt!="number")throw new Zt.ERR_INVALID_ARG_TYPE(Ut,"number",Yt)}function Er(Yt,Ut,Ht){throw Math.floor(Yt)!==Yt?(Ar(Yt,Ht),new Zt.ERR_OUT_OF_RANGE(Ht||"offset","an integer",Yt)):Ut<0?new Zt.ERR_BUFFER_OUT_OF_BOUNDS:new Zt.ERR_OUT_OF_RANGE(Ht||"offset",`>= ${Ht?1:0} and <= ${Ut}`,Yt)}const Dr=/[^+/0-9A-Za-z-_]/g;function Xr(Yt){if(Yt=Yt.split("=")[0],Yt=Yt.trim().replace(Dr,""),Yt.length<2)return"";for(;Yt.length%4!==0;)Yt=Yt+"=";return Yt}function Vr(Yt,Ut){Ut=Ut||1/0;let Ht;const ir=Yt.length;let kr=null;const $r=[];for(let Br=0;Br55295&&Ht<57344){if(!kr){if(Ht>56319){(Ut-=3)>-1&&$r.push(239,191,189);continue}else if(Br+1===ir){(Ut-=3)>-1&&$r.push(239,191,189);continue}kr=Ht;continue}if(Ht<56320){(Ut-=3)>-1&&$r.push(239,191,189),kr=Ht;continue}Ht=(kr-55296<<10|Ht-56320)+65536}else kr&&(Ut-=3)>-1&&$r.push(239,191,189);if(kr=null,Ht<128){if((Ut-=1)<0)break;$r.push(Ht)}else if(Ht<2048){if((Ut-=2)<0)break;$r.push(Ht>>6|192,Ht&63|128)}else if(Ht<65536){if((Ut-=3)<0)break;$r.push(Ht>>12|224,Ht>>6&63|128,Ht&63|128)}else if(Ht<1114112){if((Ut-=4)<0)break;$r.push(Ht>>18|240,Ht>>12&63|128,Ht>>6&63|128,Ht&63|128)}else throw new Error("Invalid code point")}return $r}function wr(Yt){const Ut=[];for(let Ht=0;Ht>8,kr=Ht%256,$r.push(kr),$r.push(ir);return $r}function or(Yt){return tt.toByteArray(Xr(Yt))}function xr(Yt,Ut,Ht,ir){let kr;for(kr=0;kr=Ut.length||kr>=Yt.length);++kr)Ut[kr+Ht]=Yt[kr];return kr}function Pr(Yt,Ut){return Yt instanceof Ut||Yt!=null&&Yt.constructor!=null&&Yt.constructor.name!=null&&Yt.constructor.name===Ut.name}function Or(Yt){return Yt!==Yt}const rr=function(){const Yt="0123456789abcdef",Ut=new Array(256);for(let Ht=0;Ht<16;++Ht){const ir=Ht*16;for(let kr=0;kr<16;++kr)Ut[ir+kr]=Yt[Ht]+Yt[kr]}return Ut}();function gr(Yt){return typeof BigInt>"u"?Ir:Yt}function Ir(){throw new Error("BigInt not supported")}})(buffer$2);var browser$d={exports:{}},process$1=browser$d.exports={},cachedSetTimeout,cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?cachedSetTimeout=setTimeout:cachedSetTimeout=defaultSetTimout}catch{cachedSetTimeout=defaultSetTimout}try{typeof clearTimeout=="function"?cachedClearTimeout=clearTimeout:cachedClearTimeout=defaultClearTimeout}catch{cachedClearTimeout=defaultClearTimeout}})();function runTimeout(et){if(cachedSetTimeout===setTimeout)return setTimeout(et,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(et,0);try{return cachedSetTimeout(et,0)}catch{try{return cachedSetTimeout.call(null,et,0)}catch{return cachedSetTimeout.call(this,et,0)}}}function runClearTimeout(et){if(cachedClearTimeout===clearTimeout)return clearTimeout(et);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(et);try{return cachedClearTimeout(et)}catch{try{return cachedClearTimeout.call(null,et)}catch{return cachedClearTimeout.call(this,et)}}}var queue=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){!draining||!currentQueue||(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var et=runTimeout(cleanUpNextTick);draining=!0;for(var tt=queue.length;tt;){for(currentQueue=queue,queue=[];++queueIndex1)for(var rt=1;rttt in et?O5(et,tt,{enumerable:!0 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(et){function tt(At,Pt){var It=At.length;At.push(Pt);e:for(;0>>1,xt=At[Ct];if(0>>1;Ctit(pr,It))Ktit(Qt,pr)?(At[Ct]=Qt,At[Kt]=It,Ct=Kt):(At[Ct]=pr,At[tr]=It,Ct=tr);else if(Ktit(Qt,It))At[Ct]=Qt,At[Kt]=It,Ct=Kt;else break e}}return Pt}function it(At,Pt){var It=At.sortIndex-Pt.sortIndex;return It!==0?It:At.id-Pt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var st=performance;et.unstable_now=function(){return st.now()}}else{var at=Date,ot=at.now();et.unstable_now=function(){return at.now()-ot}}var lt=[],ut=[],dt=1,bt=null,gt=3,kt=!1,pt=!1,yt=!1,$t=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,wt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function St(At){for(var Pt=rt(ut);Pt!==null;){if(Pt.callback===null)nt(ut);else if(Pt.startTime<=At)nt(ut),Pt.sortIndex=Pt.expirationTime,tt(lt,Pt);else break;Pt=rt(ut)}}function Bt(At){if(yt=!1,St(At),!pt)if(rt(lt)!==null)pt=!0,Tt(Ft);else{var Pt=rt(ut);Pt!==null&&Rt(Bt,Pt.startTime-At)}}function Ft(At,Pt){pt=!1,yt&&(yt=!1,mt(Ht),Ht=-1),kt=!0;var It=gt;try{for(St(Pt),bt=rt(lt);bt!==null&&(!(bt.expirationTime>Pt)||At&&!qt());){var Ct=bt.callback;if(typeof Ct=="function"){bt.callback=null,gt=bt.priorityLevel;var xt=Ct(bt.expirationTime<=Pt);Pt=et.unstable_now(),typeof xt=="function"?bt.callback=xt:bt===rt(lt)&&nt(lt),St(Pt)}else nt(lt);bt=rt(lt)}if(bt!==null)var Dt=!0;else{var tr=rt(ut);tr!==null&&Rt(Bt,tr.startTime-Pt),Dt=!1}return Dt}finally{bt=null,gt=It,kt=!1}}var Lt=!1,zt=null,Ht=-1,Wt=5,lr=-1;function qt(){return!(et.unstable_now()-lrAt||125Ct?(At.sortIndex=It,tt(ut,At),rt(lt)===null&&At===rt(ut)&&(yt?(mt(Ht),Ht=-1):yt=!0,Rt(Bt,It-Ct))):(At.sortIndex=xt,tt(lt,At),pt||kt||(pt=!0,Tt(Ft))),At},et.unstable_shouldYield=qt,et.unstable_wrapCallback=function(At){var Pt=gt;return function(){var It=gt;gt=Pt;try{return At.apply(this,arguments)}finally{gt=It}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** + */(function(et){function tt(At,Pt){var It=At.length;At.push(Pt);e:for(;0>>1,xt=At[Ct];if(0>>1;Ctit(pr,It))Ktit(Qt,pr)?(At[Ct]=Qt,At[Kt]=It,Ct=Kt):(At[Ct]=pr,At[tr]=It,Ct=tr);else if(Ktit(Qt,It))At[Ct]=Qt,At[Kt]=It,Ct=Kt;else break e}}return Pt}function it(At,Pt){var It=At.sortIndex-Pt.sortIndex;return It!==0?It:At.id-Pt.id}if(typeof performance=="object"&&typeof performance.now=="function"){var st=performance;et.unstable_now=function(){return st.now()}}else{var at=Date,ot=at.now();et.unstable_now=function(){return at.now()-ot}}var lt=[],ut=[],dt=1,bt=null,gt=3,kt=!1,pt=!1,yt=!1,$t=typeof setTimeout=="function"?setTimeout:null,mt=typeof clearTimeout=="function"?clearTimeout:null,wt=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function St(At){for(var Pt=rt(ut);Pt!==null;){if(Pt.callback===null)nt(ut);else if(Pt.startTime<=At)nt(ut),Pt.sortIndex=Pt.expirationTime,tt(lt,Pt);else break;Pt=rt(ut)}}function Bt(At){if(yt=!1,St(At),!pt)if(rt(lt)!==null)pt=!0,Tt(Ot);else{var Pt=rt(ut);Pt!==null&&Rt(Bt,Pt.startTime-At)}}function Ot(At,Pt){pt=!1,yt&&(yt=!1,mt(Vt),Vt=-1),kt=!0;var It=gt;try{for(St(Pt),bt=rt(lt);bt!==null&&(!(bt.expirationTime>Pt)||At&&!qt());){var Ct=bt.callback;if(typeof Ct=="function"){bt.callback=null,gt=bt.priorityLevel;var xt=Ct(bt.expirationTime<=Pt);Pt=et.unstable_now(),typeof xt=="function"?bt.callback=xt:bt===rt(lt)&&nt(lt),St(Pt)}else nt(lt);bt=rt(lt)}if(bt!==null)var Dt=!0;else{var tr=rt(ut);tr!==null&&Rt(Bt,tr.startTime-Pt),Dt=!1}return Dt}finally{bt=null,gt=It,kt=!1}}var Lt=!1,zt=null,Vt=-1,Wt=5,lr=-1;function qt(){return!(et.unstable_now()-lrAt||125Ct?(At.sortIndex=It,tt(ut,At),rt(lt)===null&&At===rt(ut)&&(yt?(mt(Vt),Vt=-1):yt=!0,Rt(Bt,It-Ct))):(At.sortIndex=xt,tt(lt,At),pt||kt||(pt=!0,Tt(Ot))),At},et.unstable_shouldYield=qt,et.unstable_wrapCallback=function(At){var Pt=gt;return function(){var It=gt;gt=Pt;try{return At.apply(this,arguments)}finally{gt=It}}}})(scheduler_production_min);scheduler.exports=scheduler_production_min;var schedulerExports=scheduler.exports;/** * @license React * react-dom.production.min.js * @@ -39,10 +39,10 @@ var O5=Object.defineProperty;var F5=(et,tt,rt)=>tt in et?O5(et,tt,{enumerable:!0 `+La+et}var Na=!1;function Oa(et,tt){if(!et||Na)return"";Na=!0;var rt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(tt)if(tt=function(){throw Error()},Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(ut){var nt=ut}Reflect.construct(et,[],tt)}else{try{tt.call()}catch(ut){nt=ut}et.call(tt.prototype)}else{try{throw Error()}catch(ut){nt=ut}et()}}catch(ut){if(ut&&nt&&typeof ut.stack=="string"){for(var it=ut.stack.split(` `),st=nt.stack.split(` `),at=it.length-1,ot=st.length-1;1<=at&&0<=ot&&it[at]!==st[ot];)ot--;for(;1<=at&&0<=ot;at--,ot--)if(it[at]!==st[ot]){if(at!==1||ot!==1)do if(at--,ot--,0>ot||it[at]!==st[ot]){var lt=` -`+it[at].replace(" at new "," at ");return et.displayName&<.includes("")&&(lt=lt.replace("",et.displayName)),lt}while(1<=at&&0<=ot);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(et=et?et.displayName||et.name:"")?Ma(et):""}function Pa(et){switch(et.tag){case 5:return Ma(et.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return et=Oa(et.type,!1),et;case 11:return et=Oa(et.type.render,!1),et;case 1:return et=Oa(et.type,!0),et;default:return""}}function Qa(et){if(et==null)return null;if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et;switch(et){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof et=="object")switch(et.$$typeof){case Ca:return(et.displayName||"Context")+".Consumer";case Ba:return(et._context.displayName||"Context")+".Provider";case Da:var tt=et.render;return et=et.displayName,et||(et=tt.displayName||tt.name||"",et=et!==""?"ForwardRef("+et+")":"ForwardRef"),et;case Ga:return tt=et.displayName||null,tt!==null?tt:Qa(et.type)||"Memo";case Ha:tt=et._payload,et=et._init;try{return Qa(et(tt))}catch{}}return null}function Ra(et){var tt=et.type;switch(et.tag){case 24:return"Cache";case 9:return(tt.displayName||"Context")+".Consumer";case 10:return(tt._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return et=tt.render,et=et.displayName||et.name||"",tt.displayName||(et!==""?"ForwardRef("+et+")":"ForwardRef");case 7:return"Fragment";case 5:return tt;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(tt);case 8:return tt===za?"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 tt=="function")return tt.displayName||tt.name||null;if(typeof tt=="string")return tt}return null}function Sa(et){switch(typeof et){case"boolean":case"number":case"string":case"undefined":return et;case"object":return et;default:return""}}function Ta(et){var tt=et.type;return(et=et.nodeName)&&et.toLowerCase()==="input"&&(tt==="checkbox"||tt==="radio")}function Ua(et){var tt=Ta(et)?"checked":"value",rt=Object.getOwnPropertyDescriptor(et.constructor.prototype,tt),nt=""+et[tt];if(!et.hasOwnProperty(tt)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var it=rt.get,st=rt.set;return Object.defineProperty(et,tt,{configurable:!0,get:function(){return it.call(this)},set:function(at){nt=""+at,st.call(this,at)}}),Object.defineProperty(et,tt,{enumerable:rt.enumerable}),{getValue:function(){return nt},setValue:function(at){nt=""+at},stopTracking:function(){et._valueTracker=null,delete et[tt]}}}}function Va(et){et._valueTracker||(et._valueTracker=Ua(et))}function Wa(et){if(!et)return!1;var tt=et._valueTracker;if(!tt)return!0;var rt=tt.getValue(),nt="";return et&&(nt=Ta(et)?et.checked?"true":"false":et.value),et=nt,et!==rt?(tt.setValue(et),!0):!1}function Xa(et){if(et=et||(typeof document<"u"?document:void 0),typeof et>"u")return null;try{return et.activeElement||et.body}catch{return et.body}}function Ya(et,tt){var rt=tt.checked;return A$3({},tt,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??et._wrapperState.initialChecked})}function Za(et,tt){var rt=tt.defaultValue==null?"":tt.defaultValue,nt=tt.checked!=null?tt.checked:tt.defaultChecked;rt=Sa(tt.value!=null?tt.value:rt),et._wrapperState={initialChecked:nt,initialValue:rt,controlled:tt.type==="checkbox"||tt.type==="radio"?tt.checked!=null:tt.value!=null}}function ab(et,tt){tt=tt.checked,tt!=null&&ta(et,"checked",tt,!1)}function bb(et,tt){ab(et,tt);var rt=Sa(tt.value),nt=tt.type;if(rt!=null)nt==="number"?(rt===0&&et.value===""||et.value!=rt)&&(et.value=""+rt):et.value!==""+rt&&(et.value=""+rt);else if(nt==="submit"||nt==="reset"){et.removeAttribute("value");return}tt.hasOwnProperty("value")?cb(et,tt.type,rt):tt.hasOwnProperty("defaultValue")&&cb(et,tt.type,Sa(tt.defaultValue)),tt.checked==null&&tt.defaultChecked!=null&&(et.defaultChecked=!!tt.defaultChecked)}function db(et,tt,rt){if(tt.hasOwnProperty("value")||tt.hasOwnProperty("defaultValue")){var nt=tt.type;if(!(nt!=="submit"&&nt!=="reset"||tt.value!==void 0&&tt.value!==null))return;tt=""+et._wrapperState.initialValue,rt||tt===et.value||(et.value=tt),et.defaultValue=tt}rt=et.name,rt!==""&&(et.name=""),et.defaultChecked=!!et._wrapperState.initialChecked,rt!==""&&(et.name=rt)}function cb(et,tt,rt){(tt!=="number"||Xa(et.ownerDocument)!==et)&&(rt==null?et.defaultValue=""+et._wrapperState.initialValue:et.defaultValue!==""+rt&&(et.defaultValue=""+rt))}var eb=Array.isArray;function fb(et,tt,rt,nt){if(et=et.options,tt){tt={};for(var it=0;it"+tt.valueOf().toString()+"",tt=mb.firstChild;et.firstChild;)et.removeChild(et.firstChild);for(;tt.firstChild;)et.appendChild(tt.firstChild)}});function ob(et,tt){if(tt){var rt=et.firstChild;if(rt&&rt===et.lastChild&&rt.nodeType===3){rt.nodeValue=tt;return}}et.textContent=tt}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(et){qb.forEach(function(tt){tt=tt+et.charAt(0).toUpperCase()+et.substring(1),pb[tt]=pb[et]})});function rb(et,tt,rt){return tt==null||typeof tt=="boolean"||tt===""?"":rt||typeof tt!="number"||tt===0||pb.hasOwnProperty(et)&&pb[et]?(""+tt).trim():tt+"px"}function sb(et,tt){et=et.style;for(var rt in tt)if(tt.hasOwnProperty(rt)){var nt=rt.indexOf("--")===0,it=rb(rt,tt[rt],nt);rt==="float"&&(rt="cssFloat"),nt?et.setProperty(rt,it):et[rt]=it}}var tb=A$3({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 ub(et,tt){if(tt){if(tb[et]&&(tt.children!=null||tt.dangerouslySetInnerHTML!=null))throw Error(p$6(137,et));if(tt.dangerouslySetInnerHTML!=null){if(tt.children!=null)throw Error(p$6(60));if(typeof tt.dangerouslySetInnerHTML!="object"||!("__html"in tt.dangerouslySetInnerHTML))throw Error(p$6(61))}if(tt.style!=null&&typeof tt.style!="object")throw Error(p$6(62))}}function vb(et,tt){if(et.indexOf("-")===-1)return typeof tt.is=="string";switch(et){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 wb=null;function xb(et){return et=et.target||et.srcElement||window,et.correspondingUseElement&&(et=et.correspondingUseElement),et.nodeType===3?et.parentNode:et}var yb=null,zb=null,Ab=null;function Bb(et){if(et=Cb(et)){if(typeof yb!="function")throw Error(p$6(280));var tt=et.stateNode;tt&&(tt=Db(tt),yb(et.stateNode,et.type,tt))}}function Eb(et){zb?Ab?Ab.push(et):Ab=[et]:zb=et}function Fb(){if(zb){var et=zb,tt=Ab;if(Ab=zb=null,Bb(et),tt)for(et=0;et>>=0,et===0?32:31-(pc(et)/qc|0)|0}var rc=64,sc=4194304;function tc(et){switch(et&-et){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 et&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return et&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return et}}function uc(et,tt){var rt=et.pendingLanes;if(rt===0)return 0;var nt=0,it=et.suspendedLanes,st=et.pingedLanes,at=rt&268435455;if(at!==0){var ot=at&~it;ot!==0?nt=tc(ot):(st&=at,st!==0&&(nt=tc(st)))}else at=rt&~it,at!==0?nt=tc(at):st!==0&&(nt=tc(st));if(nt===0)return 0;if(tt!==0&&tt!==nt&&!(tt&it)&&(it=nt&-nt,st=tt&-tt,it>=st||it===16&&(st&4194240)!==0))return tt;if(nt&4&&(nt|=rt&16),tt=et.entangledLanes,tt!==0)for(et=et.entanglements,tt&=nt;0rt;rt++)tt.push(et);return tt}function Ac(et,tt,rt){et.pendingLanes|=tt,tt!==536870912&&(et.suspendedLanes=0,et.pingedLanes=0),et=et.eventTimes,tt=31-oc(tt),et[tt]=rt}function Bc(et,tt){var rt=et.pendingLanes&~tt;et.pendingLanes=tt,et.suspendedLanes=0,et.pingedLanes=0,et.expiredLanes&=tt,et.mutableReadLanes&=tt,et.entangledLanes&=tt,tt=et.entanglements;var nt=et.eventTimes;for(et=et.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(et,tt){switch(et){case"keyup":return $d.indexOf(tt.keyCode)!==-1;case"keydown":return tt.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(et){return et=et.detail,typeof et=="object"&&"data"in et?et.data:null}var ie$1=!1;function je$1(et,tt){switch(et){case"compositionend":return he$1(tt);case"keypress":return tt.which!==32?null:(fe$1=!0,ee$1);case"textInput":return et=tt.data,et===ee$1&&fe$1?null:et;default:return null}}function ke$1(et,tt){if(ie$1)return et==="compositionend"||!ae$1&&ge$1(et,tt)?(et=nd(),md=ld=kd=null,ie$1=!1,et):null;switch(et){case"paste":return null;case"keypress":if(!(tt.ctrlKey||tt.altKey||tt.metaKey)||tt.ctrlKey&&tt.altKey){if(tt.char&&1=tt)return{node:rt,offset:tt-et};et=nt}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je(rt)}}function Le(et,tt){return et&&tt?et===tt?!0:et&&et.nodeType===3?!1:tt&&tt.nodeType===3?Le(et,tt.parentNode):"contains"in et?et.contains(tt):et.compareDocumentPosition?!!(et.compareDocumentPosition(tt)&16):!1:!1}function Me$1(){for(var et=window,tt=Xa();tt instanceof et.HTMLIFrameElement;){try{var rt=typeof tt.contentWindow.location.href=="string"}catch{rt=!1}if(rt)et=tt.contentWindow;else break;tt=Xa(et.document)}return tt}function Ne$1(et){var tt=et&&et.nodeName&&et.nodeName.toLowerCase();return tt&&(tt==="input"&&(et.type==="text"||et.type==="search"||et.type==="tel"||et.type==="url"||et.type==="password")||tt==="textarea"||et.contentEditable==="true")}function Oe(et){var tt=Me$1(),rt=et.focusedElem,nt=et.selectionRange;if(tt!==rt&&rt&&rt.ownerDocument&&Le(rt.ownerDocument.documentElement,rt)){if(nt!==null&&Ne$1(rt)){if(tt=nt.start,et=nt.end,et===void 0&&(et=tt),"selectionStart"in rt)rt.selectionStart=tt,rt.selectionEnd=Math.min(et,rt.value.length);else if(et=(tt=rt.ownerDocument||document)&&tt.defaultView||window,et.getSelection){et=et.getSelection();var it=rt.textContent.length,st=Math.min(nt.start,it);nt=nt.end===void 0?st:Math.min(nt.end,it),!et.extend&&st>nt&&(it=nt,nt=st,st=it),it=Ke(rt,st);var at=Ke(rt,nt);it&&at&&(et.rangeCount!==1||et.anchorNode!==it.node||et.anchorOffset!==it.offset||et.focusNode!==at.node||et.focusOffset!==at.offset)&&(tt=tt.createRange(),tt.setStart(it.node,it.offset),et.removeAllRanges(),st>nt?(et.addRange(tt),et.extend(at.node,at.offset)):(tt.setEnd(at.node,at.offset),et.addRange(tt)))}}for(tt=[],et=rt;et=et.parentNode;)et.nodeType===1&&tt.push({element:et,left:et.scrollLeft,top:et.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(et,tt,rt){var nt=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te$1||Qe==null||Qe!==Xa(nt)||(nt=Qe,"selectionStart"in nt&&Ne$1(nt)?nt={start:nt.selectionStart,end:nt.selectionEnd}:(nt=(nt.ownerDocument&&nt.ownerDocument.defaultView||window).getSelection(),nt={anchorNode:nt.anchorNode,anchorOffset:nt.anchorOffset,focusNode:nt.focusNode,focusOffset:nt.focusOffset}),Se$1&&Ie(Se$1,nt)||(Se$1=nt,nt=oe$1(Re$1,"onSelect"),0Tf||(et.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(et,tt){Tf++,Sf[Tf]=et.current,et.current=tt}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(et,tt){var rt=et.type.contextTypes;if(!rt)return Vf;var nt=et.stateNode;if(nt&&nt.__reactInternalMemoizedUnmaskedChildContext===tt)return nt.__reactInternalMemoizedMaskedChildContext;var it={},st;for(st in rt)it[st]=tt[st];return nt&&(et=et.stateNode,et.__reactInternalMemoizedUnmaskedChildContext=tt,et.__reactInternalMemoizedMaskedChildContext=it),it}function Zf(et){return et=et.childContextTypes,et!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(et,tt,rt){if(H$2.current!==Vf)throw Error(p$6(168));G$2(H$2,tt),G$2(Wf,rt)}function bg(et,tt,rt){var nt=et.stateNode;if(tt=tt.childContextTypes,typeof nt.getChildContext!="function")return rt;nt=nt.getChildContext();for(var it in nt)if(!(it in tt))throw Error(p$6(108,Ra(et)||"Unknown",it));return A$3({},rt,nt)}function cg(et){return et=(et=et.stateNode)&&et.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$2(H$2,et),G$2(Wf,Wf.current),!0}function dg(et,tt,rt){var nt=et.stateNode;if(!nt)throw Error(p$6(169));rt?(et=bg(et,tt,Xf),nt.__reactInternalMemoizedMergedChildContext=et,E$2(Wf),E$2(H$2),G$2(H$2,et)):E$2(Wf),G$2(Wf,rt)}var eg=null,fg=!1,gg=!1;function hg(et){eg===null?eg=[et]:eg.push(et)}function ig(et){fg=!0,hg(et)}function jg(){if(!gg&&eg!==null){gg=!0;var et=0,tt=C$1;try{var rt=eg;for(C$1=1;et>=at,it-=at,rg=1<<32-oc(tt)+it|rt<Ht?(Wt=zt,zt=null):Wt=zt.sibling;var lr=gt(mt,zt,St[Ht],Bt);if(lr===null){zt===null&&(zt=Wt);break}et&&zt&&lr.alternate===null&&tt(mt,zt),wt=st(lr,wt,Ht),Lt===null?Ft=lr:Lt.sibling=lr,Lt=lr,zt=Wt}if(Ht===St.length)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;HtHt?(Wt=zt,zt=null):Wt=zt.sibling;var qt=gt(mt,zt,lr.value,Bt);if(qt===null){zt===null&&(zt=Wt);break}et&&zt&&qt.alternate===null&&tt(mt,zt),wt=st(qt,wt,Ht),Lt===null?Ft=qt:Lt.sibling=qt,Lt=qt,zt=Wt}if(lr.done)return rt(mt,zt),I$2&&tg(mt,Ht),Ft;if(zt===null){for(;!lr.done;Ht++,lr=St.next())lr=bt(mt,lr.value,Bt),lr!==null&&(wt=st(lr,wt,Ht),Lt===null?Ft=lr:Lt.sibling=lr,Lt=lr);return I$2&&tg(mt,Ht),Ft}for(zt=nt(mt,zt);!lr.done;Ht++,lr=St.next())lr=kt(zt,mt,Ht,lr.value,Bt),lr!==null&&(et&&lr.alternate!==null&&zt.delete(lr.key===null?Ht:lr.key),wt=st(lr,wt,Ht),Lt===null?Ft=lr:Lt.sibling=lr,Lt=lr);return et&&zt.forEach(function(Ot){return tt(mt,Ot)}),I$2&&tg(mt,Ht),Ft}function $t(mt,wt,St,Bt){if(typeof St=="object"&&St!==null&&St.type===ya&&St.key===null&&(St=St.props.children),typeof St=="object"&&St!==null){switch(St.$$typeof){case va:e:{for(var Ft=St.key,Lt=wt;Lt!==null;){if(Lt.key===Ft){if(Ft=St.type,Ft===ya){if(Lt.tag===7){rt(mt,Lt.sibling),wt=it(Lt,St.props.children),wt.return=mt,mt=wt;break e}}else if(Lt.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===Ha&&uh(Ft)===Lt.type){rt(mt,Lt.sibling),wt=it(Lt,St.props),wt.ref=sh$1(mt,Lt,St),wt.return=mt,mt=wt;break e}rt(mt,Lt);break}else tt(mt,Lt);Lt=Lt.sibling}St.type===ya?(wt=Ah(St.props.children,mt.mode,Bt,St.key),wt.return=mt,mt=wt):(Bt=yh(St.type,St.key,St.props,null,mt.mode,Bt),Bt.ref=sh$1(mt,wt,St),Bt.return=mt,mt=Bt)}return at(mt);case wa:e:{for(Lt=St.key;wt!==null;){if(wt.key===Lt)if(wt.tag===4&&wt.stateNode.containerInfo===St.containerInfo&&wt.stateNode.implementation===St.implementation){rt(mt,wt.sibling),wt=it(wt,St.children||[]),wt.return=mt,mt=wt;break e}else{rt(mt,wt);break}else tt(mt,wt);wt=wt.sibling}wt=zh(St,mt.mode,Bt),wt.return=mt,mt=wt}return at(mt);case Ha:return Lt=St._init,$t(mt,wt,Lt(St._payload),Bt)}if(eb(St))return pt(mt,wt,St,Bt);if(Ka(St))return yt(mt,wt,St,Bt);th(mt,St)}return typeof St=="string"&&St!==""||typeof St=="number"?(St=""+St,wt!==null&&wt.tag===6?(rt(mt,wt.sibling),wt=it(wt,St),wt.return=mt,mt=wt):(rt(mt,wt),wt=xh(St,mt.mode,Bt),wt.return=mt,mt=wt),at(mt)):rt(mt,wt)}return $t}var Bh=vh(!0),Ch$1=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(et){if(et===Dh)throw Error(p$6(174));return et}function Ih(et,tt){switch(G$2(Gh,tt),G$2(Fh,et),G$2(Eh,Dh),et=tt.nodeType,et){case 9:case 11:tt=(tt=tt.documentElement)?tt.namespaceURI:lb(null,"");break;default:et=et===8?tt.parentNode:tt,tt=et.namespaceURI||null,et=et.tagName,tt=lb(tt,et)}E$2(Eh),G$2(Eh,tt)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh$1(et){Hh(Gh.current);var tt=Hh(Eh.current),rt=lb(tt,et.type);tt!==rt&&(G$2(Fh,et),G$2(Eh,rt))}function Lh(et){Fh.current===et&&(E$2(Eh),E$2(Fh))}var M$2=Uf(0);function Mh(et){for(var tt=et;tt!==null;){if(tt.tag===13){var rt=tt.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return tt}else if(tt.tag===19&&tt.memoizedProps.revealOrder!==void 0){if(tt.flags&128)return tt}else if(tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return null;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}return null}var Nh=[];function Oh(){for(var et=0;etrt?rt:4,et(!0);var nt=Qh.transition;Qh.transition={};try{et(!1),tt()}finally{C$1=rt,Qh.transition=nt}}function Fi(){return di().memoizedState}function Gi(et,tt,rt){var nt=lh(et);if(rt={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null},Hi(et))Ii(tt,rt);else if(rt=Yg(et,tt,rt,nt),rt!==null){var it=L$2();mh(rt,et,nt,it),Ji(rt,tt,nt)}}function ri(et,tt,rt){var nt=lh(et),it={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null};if(Hi(et))Ii(tt,it);else{var st=et.alternate;if(et.lanes===0&&(st===null||st.lanes===0)&&(st=tt.lastRenderedReducer,st!==null))try{var at=tt.lastRenderedState,ot=st(at,rt);if(it.hasEagerState=!0,it.eagerState=ot,He$1(ot,at)){var lt=tt.interleaved;lt===null?(it.next=it,Xg(tt)):(it.next=lt.next,lt.next=it),tt.interleaved=it;return}}catch{}finally{}rt=Yg(et,tt,it,nt),rt!==null&&(it=L$2(),mh(rt,et,nt,it),Ji(rt,tt,nt))}}function Hi(et){var tt=et.alternate;return et===N$2||tt!==null&&tt===N$2}function Ii(et,tt){Th=Sh=!0;var rt=et.pending;rt===null?tt.next=tt:(tt.next=rt.next,rt.next=tt),et.pending=tt}function Ji(et,tt,rt){if(rt&4194240){var nt=tt.lanes;nt&=et.pendingLanes,rt|=nt,tt.lanes=rt,Cc(et,rt)}}var ai={readContext:Vg,useCallback:Q$2,useContext:Q$2,useEffect:Q$2,useImperativeHandle:Q$2,useInsertionEffect:Q$2,useLayoutEffect:Q$2,useMemo:Q$2,useReducer:Q$2,useRef:Q$2,useState:Q$2,useDebugValue:Q$2,useDeferredValue:Q$2,useTransition:Q$2,useMutableSource:Q$2,useSyncExternalStore:Q$2,useId:Q$2,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(et,tt){return ci().memoizedState=[et,tt===void 0?null:tt],et},useContext:Vg,useEffect:vi,useImperativeHandle:function(et,tt,rt){return rt=rt!=null?rt.concat([et]):null,ti(4194308,4,yi.bind(null,tt,et),rt)},useLayoutEffect:function(et,tt){return ti(4194308,4,et,tt)},useInsertionEffect:function(et,tt){return ti(4,2,et,tt)},useMemo:function(et,tt){var rt=ci();return tt=tt===void 0?null:tt,et=et(),rt.memoizedState=[et,tt],et},useReducer:function(et,tt,rt){var nt=ci();return tt=rt!==void 0?rt(tt):tt,nt.memoizedState=nt.baseState=tt,et={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:et,lastRenderedState:tt},nt.queue=et,et=et.dispatch=Gi.bind(null,N$2,et),[nt.memoizedState,et]},useRef:function(et){var tt=ci();return et={current:et},tt.memoizedState=et},useState:qi,useDebugValue:Ai,useDeferredValue:function(et){return ci().memoizedState=et},useTransition:function(){var et=qi(!1),tt=et[0];return et=Ei.bind(null,et[1]),ci().memoizedState=et,[tt,et]},useMutableSource:function(){},useSyncExternalStore:function(et,tt,rt){var nt=N$2,it=ci();if(I$2){if(rt===void 0)throw Error(p$6(407));rt=rt()}else{if(rt=tt(),R$2===null)throw Error(p$6(349));Rh&30||ni(nt,tt,rt)}it.memoizedState=rt;var st={value:rt,getSnapshot:tt};return it.queue=st,vi(ki.bind(null,nt,st,et),[et]),nt.flags|=2048,li(9,mi.bind(null,nt,st,rt,tt),void 0,null),rt},useId:function(){var et=ci(),tt=R$2.identifierPrefix;if(I$2){var rt=sg,nt=rg;rt=(nt&~(1<<32-oc(nt)-1)).toString(32)+rt,tt=":"+tt+"R"+rt,rt=Uh++,0")&&(lt=lt.replace("",et.displayName)),lt}while(1<=at&&0<=ot);break}}}finally{Na=!1,Error.prepareStackTrace=rt}return(et=et?et.displayName||et.name:"")?Ma(et):""}function Pa(et){switch(et.tag){case 5:return Ma(et.type);case 16:return Ma("Lazy");case 13:return Ma("Suspense");case 19:return Ma("SuspenseList");case 0:case 2:case 15:return et=Oa(et.type,!1),et;case 11:return et=Oa(et.type.render,!1),et;case 1:return et=Oa(et.type,!0),et;default:return""}}function Qa(et){if(et==null)return null;if(typeof et=="function")return et.displayName||et.name||null;if(typeof et=="string")return et;switch(et){case ya:return"Fragment";case wa:return"Portal";case Aa:return"Profiler";case za:return"StrictMode";case Ea:return"Suspense";case Fa:return"SuspenseList"}if(typeof et=="object")switch(et.$$typeof){case Ca:return(et.displayName||"Context")+".Consumer";case Ba:return(et._context.displayName||"Context")+".Provider";case Da:var tt=et.render;return et=et.displayName,et||(et=tt.displayName||tt.name||"",et=et!==""?"ForwardRef("+et+")":"ForwardRef"),et;case Ga:return tt=et.displayName||null,tt!==null?tt:Qa(et.type)||"Memo";case Ha:tt=et._payload,et=et._init;try{return Qa(et(tt))}catch{}}return null}function Ra(et){var tt=et.type;switch(et.tag){case 24:return"Cache";case 9:return(tt.displayName||"Context")+".Consumer";case 10:return(tt._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return et=tt.render,et=et.displayName||et.name||"",tt.displayName||(et!==""?"ForwardRef("+et+")":"ForwardRef");case 7:return"Fragment";case 5:return tt;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Qa(tt);case 8:return tt===za?"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 tt=="function")return tt.displayName||tt.name||null;if(typeof tt=="string")return tt}return null}function Sa(et){switch(typeof et){case"boolean":case"number":case"string":case"undefined":return et;case"object":return et;default:return""}}function Ta(et){var tt=et.type;return(et=et.nodeName)&&et.toLowerCase()==="input"&&(tt==="checkbox"||tt==="radio")}function Ua(et){var tt=Ta(et)?"checked":"value",rt=Object.getOwnPropertyDescriptor(et.constructor.prototype,tt),nt=""+et[tt];if(!et.hasOwnProperty(tt)&&typeof rt<"u"&&typeof rt.get=="function"&&typeof rt.set=="function"){var it=rt.get,st=rt.set;return Object.defineProperty(et,tt,{configurable:!0,get:function(){return it.call(this)},set:function(at){nt=""+at,st.call(this,at)}}),Object.defineProperty(et,tt,{enumerable:rt.enumerable}),{getValue:function(){return nt},setValue:function(at){nt=""+at},stopTracking:function(){et._valueTracker=null,delete et[tt]}}}}function Va(et){et._valueTracker||(et._valueTracker=Ua(et))}function Wa(et){if(!et)return!1;var tt=et._valueTracker;if(!tt)return!0;var rt=tt.getValue(),nt="";return et&&(nt=Ta(et)?et.checked?"true":"false":et.value),et=nt,et!==rt?(tt.setValue(et),!0):!1}function Xa(et){if(et=et||(typeof document<"u"?document:void 0),typeof et>"u")return null;try{return et.activeElement||et.body}catch{return et.body}}function Ya(et,tt){var rt=tt.checked;return A$3({},tt,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:rt??et._wrapperState.initialChecked})}function Za(et,tt){var rt=tt.defaultValue==null?"":tt.defaultValue,nt=tt.checked!=null?tt.checked:tt.defaultChecked;rt=Sa(tt.value!=null?tt.value:rt),et._wrapperState={initialChecked:nt,initialValue:rt,controlled:tt.type==="checkbox"||tt.type==="radio"?tt.checked!=null:tt.value!=null}}function ab(et,tt){tt=tt.checked,tt!=null&&ta(et,"checked",tt,!1)}function bb(et,tt){ab(et,tt);var rt=Sa(tt.value),nt=tt.type;if(rt!=null)nt==="number"?(rt===0&&et.value===""||et.value!=rt)&&(et.value=""+rt):et.value!==""+rt&&(et.value=""+rt);else if(nt==="submit"||nt==="reset"){et.removeAttribute("value");return}tt.hasOwnProperty("value")?cb(et,tt.type,rt):tt.hasOwnProperty("defaultValue")&&cb(et,tt.type,Sa(tt.defaultValue)),tt.checked==null&&tt.defaultChecked!=null&&(et.defaultChecked=!!tt.defaultChecked)}function db(et,tt,rt){if(tt.hasOwnProperty("value")||tt.hasOwnProperty("defaultValue")){var nt=tt.type;if(!(nt!=="submit"&&nt!=="reset"||tt.value!==void 0&&tt.value!==null))return;tt=""+et._wrapperState.initialValue,rt||tt===et.value||(et.value=tt),et.defaultValue=tt}rt=et.name,rt!==""&&(et.name=""),et.defaultChecked=!!et._wrapperState.initialChecked,rt!==""&&(et.name=rt)}function cb(et,tt,rt){(tt!=="number"||Xa(et.ownerDocument)!==et)&&(rt==null?et.defaultValue=""+et._wrapperState.initialValue:et.defaultValue!==""+rt&&(et.defaultValue=""+rt))}var eb=Array.isArray;function fb(et,tt,rt,nt){if(et=et.options,tt){tt={};for(var it=0;it"+tt.valueOf().toString()+"",tt=mb.firstChild;et.firstChild;)et.removeChild(et.firstChild);for(;tt.firstChild;)et.appendChild(tt.firstChild)}});function ob(et,tt){if(tt){var rt=et.firstChild;if(rt&&rt===et.lastChild&&rt.nodeType===3){rt.nodeValue=tt;return}}et.textContent=tt}var pb={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},qb=["Webkit","ms","Moz","O"];Object.keys(pb).forEach(function(et){qb.forEach(function(tt){tt=tt+et.charAt(0).toUpperCase()+et.substring(1),pb[tt]=pb[et]})});function rb(et,tt,rt){return tt==null||typeof tt=="boolean"||tt===""?"":rt||typeof tt!="number"||tt===0||pb.hasOwnProperty(et)&&pb[et]?(""+tt).trim():tt+"px"}function sb(et,tt){et=et.style;for(var rt in tt)if(tt.hasOwnProperty(rt)){var nt=rt.indexOf("--")===0,it=rb(rt,tt[rt],nt);rt==="float"&&(rt="cssFloat"),nt?et.setProperty(rt,it):et[rt]=it}}var tb=A$3({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 ub(et,tt){if(tt){if(tb[et]&&(tt.children!=null||tt.dangerouslySetInnerHTML!=null))throw Error(p$6(137,et));if(tt.dangerouslySetInnerHTML!=null){if(tt.children!=null)throw Error(p$6(60));if(typeof tt.dangerouslySetInnerHTML!="object"||!("__html"in tt.dangerouslySetInnerHTML))throw Error(p$6(61))}if(tt.style!=null&&typeof tt.style!="object")throw Error(p$6(62))}}function vb(et,tt){if(et.indexOf("-")===-1)return typeof tt.is=="string";switch(et){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 wb=null;function xb(et){return et=et.target||et.srcElement||window,et.correspondingUseElement&&(et=et.correspondingUseElement),et.nodeType===3?et.parentNode:et}var yb=null,zb=null,Ab=null;function Bb(et){if(et=Cb(et)){if(typeof yb!="function")throw Error(p$6(280));var tt=et.stateNode;tt&&(tt=Db(tt),yb(et.stateNode,et.type,tt))}}function Eb(et){zb?Ab?Ab.push(et):Ab=[et]:zb=et}function Fb(){if(zb){var et=zb,tt=Ab;if(Ab=zb=null,Bb(et),tt)for(et=0;et>>=0,et===0?32:31-(pc(et)/qc|0)|0}var rc=64,sc=4194304;function tc(et){switch(et&-et){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 et&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return et&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return et}}function uc(et,tt){var rt=et.pendingLanes;if(rt===0)return 0;var nt=0,it=et.suspendedLanes,st=et.pingedLanes,at=rt&268435455;if(at!==0){var ot=at&~it;ot!==0?nt=tc(ot):(st&=at,st!==0&&(nt=tc(st)))}else at=rt&~it,at!==0?nt=tc(at):st!==0&&(nt=tc(st));if(nt===0)return 0;if(tt!==0&&tt!==nt&&!(tt&it)&&(it=nt&-nt,st=tt&-tt,it>=st||it===16&&(st&4194240)!==0))return tt;if(nt&4&&(nt|=rt&16),tt=et.entangledLanes,tt!==0)for(et=et.entanglements,tt&=nt;0rt;rt++)tt.push(et);return tt}function Ac(et,tt,rt){et.pendingLanes|=tt,tt!==536870912&&(et.suspendedLanes=0,et.pingedLanes=0),et=et.eventTimes,tt=31-oc(tt),et[tt]=rt}function Bc(et,tt){var rt=et.pendingLanes&~tt;et.pendingLanes=tt,et.suspendedLanes=0,et.pingedLanes=0,et.expiredLanes&=tt,et.mutableReadLanes&=tt,et.entangledLanes&=tt,tt=et.entanglements;var nt=et.eventTimes;for(et=et.expirationTimes;0=be$1),ee$1=String.fromCharCode(32),fe$1=!1;function ge$1(et,tt){switch(et){case"keyup":return $d.indexOf(tt.keyCode)!==-1;case"keydown":return tt.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function he$1(et){return et=et.detail,typeof et=="object"&&"data"in et?et.data:null}var ie$1=!1;function je$1(et,tt){switch(et){case"compositionend":return he$1(tt);case"keypress":return tt.which!==32?null:(fe$1=!0,ee$1);case"textInput":return et=tt.data,et===ee$1&&fe$1?null:et;default:return null}}function ke$1(et,tt){if(ie$1)return et==="compositionend"||!ae$1&&ge$1(et,tt)?(et=nd(),md=ld=kd=null,ie$1=!1,et):null;switch(et){case"paste":return null;case"keypress":if(!(tt.ctrlKey||tt.altKey||tt.metaKey)||tt.ctrlKey&&tt.altKey){if(tt.char&&1=tt)return{node:rt,offset:tt-et};et=nt}e:{for(;rt;){if(rt.nextSibling){rt=rt.nextSibling;break e}rt=rt.parentNode}rt=void 0}rt=Je(rt)}}function Le(et,tt){return et&&tt?et===tt?!0:et&&et.nodeType===3?!1:tt&&tt.nodeType===3?Le(et,tt.parentNode):"contains"in et?et.contains(tt):et.compareDocumentPosition?!!(et.compareDocumentPosition(tt)&16):!1:!1}function Me$1(){for(var et=window,tt=Xa();tt instanceof et.HTMLIFrameElement;){try{var rt=typeof tt.contentWindow.location.href=="string"}catch{rt=!1}if(rt)et=tt.contentWindow;else break;tt=Xa(et.document)}return tt}function Ne$1(et){var tt=et&&et.nodeName&&et.nodeName.toLowerCase();return tt&&(tt==="input"&&(et.type==="text"||et.type==="search"||et.type==="tel"||et.type==="url"||et.type==="password")||tt==="textarea"||et.contentEditable==="true")}function Oe(et){var tt=Me$1(),rt=et.focusedElem,nt=et.selectionRange;if(tt!==rt&&rt&&rt.ownerDocument&&Le(rt.ownerDocument.documentElement,rt)){if(nt!==null&&Ne$1(rt)){if(tt=nt.start,et=nt.end,et===void 0&&(et=tt),"selectionStart"in rt)rt.selectionStart=tt,rt.selectionEnd=Math.min(et,rt.value.length);else if(et=(tt=rt.ownerDocument||document)&&tt.defaultView||window,et.getSelection){et=et.getSelection();var it=rt.textContent.length,st=Math.min(nt.start,it);nt=nt.end===void 0?st:Math.min(nt.end,it),!et.extend&&st>nt&&(it=nt,nt=st,st=it),it=Ke(rt,st);var at=Ke(rt,nt);it&&at&&(et.rangeCount!==1||et.anchorNode!==it.node||et.anchorOffset!==it.offset||et.focusNode!==at.node||et.focusOffset!==at.offset)&&(tt=tt.createRange(),tt.setStart(it.node,it.offset),et.removeAllRanges(),st>nt?(et.addRange(tt),et.extend(at.node,at.offset)):(tt.setEnd(at.node,at.offset),et.addRange(tt)))}}for(tt=[],et=rt;et=et.parentNode;)et.nodeType===1&&tt.push({element:et,left:et.scrollLeft,top:et.scrollTop});for(typeof rt.focus=="function"&&rt.focus(),rt=0;rt=document.documentMode,Qe=null,Re$1=null,Se$1=null,Te$1=!1;function Ue$1(et,tt,rt){var nt=rt.window===rt?rt.document:rt.nodeType===9?rt:rt.ownerDocument;Te$1||Qe==null||Qe!==Xa(nt)||(nt=Qe,"selectionStart"in nt&&Ne$1(nt)?nt={start:nt.selectionStart,end:nt.selectionEnd}:(nt=(nt.ownerDocument&&nt.ownerDocument.defaultView||window).getSelection(),nt={anchorNode:nt.anchorNode,anchorOffset:nt.anchorOffset,focusNode:nt.focusNode,focusOffset:nt.focusOffset}),Se$1&&Ie(Se$1,nt)||(Se$1=nt,nt=oe$1(Re$1,"onSelect"),0Tf||(et.current=Sf[Tf],Sf[Tf]=null,Tf--)}function G$2(et,tt){Tf++,Sf[Tf]=et.current,et.current=tt}var Vf={},H$2=Uf(Vf),Wf=Uf(!1),Xf=Vf;function Yf(et,tt){var rt=et.type.contextTypes;if(!rt)return Vf;var nt=et.stateNode;if(nt&&nt.__reactInternalMemoizedUnmaskedChildContext===tt)return nt.__reactInternalMemoizedMaskedChildContext;var it={},st;for(st in rt)it[st]=tt[st];return nt&&(et=et.stateNode,et.__reactInternalMemoizedUnmaskedChildContext=tt,et.__reactInternalMemoizedMaskedChildContext=it),it}function Zf(et){return et=et.childContextTypes,et!=null}function $f(){E$2(Wf),E$2(H$2)}function ag(et,tt,rt){if(H$2.current!==Vf)throw Error(p$6(168));G$2(H$2,tt),G$2(Wf,rt)}function bg(et,tt,rt){var nt=et.stateNode;if(tt=tt.childContextTypes,typeof nt.getChildContext!="function")return rt;nt=nt.getChildContext();for(var it in nt)if(!(it in tt))throw Error(p$6(108,Ra(et)||"Unknown",it));return A$3({},rt,nt)}function cg(et){return et=(et=et.stateNode)&&et.__reactInternalMemoizedMergedChildContext||Vf,Xf=H$2.current,G$2(H$2,et),G$2(Wf,Wf.current),!0}function dg(et,tt,rt){var nt=et.stateNode;if(!nt)throw Error(p$6(169));rt?(et=bg(et,tt,Xf),nt.__reactInternalMemoizedMergedChildContext=et,E$2(Wf),E$2(H$2),G$2(H$2,et)):E$2(Wf),G$2(Wf,rt)}var eg=null,fg=!1,gg=!1;function hg(et){eg===null?eg=[et]:eg.push(et)}function ig(et){fg=!0,hg(et)}function jg(){if(!gg&&eg!==null){gg=!0;var et=0,tt=C$1;try{var rt=eg;for(C$1=1;et>=at,it-=at,rg=1<<32-oc(tt)+it|rt<Vt?(Wt=zt,zt=null):Wt=zt.sibling;var lr=gt(mt,zt,St[Vt],Bt);if(lr===null){zt===null&&(zt=Wt);break}et&&zt&&lr.alternate===null&&tt(mt,zt),wt=st(lr,wt,Vt),Lt===null?Ot=lr:Lt.sibling=lr,Lt=lr,zt=Wt}if(Vt===St.length)return rt(mt,zt),I$2&&tg(mt,Vt),Ot;if(zt===null){for(;VtVt?(Wt=zt,zt=null):Wt=zt.sibling;var qt=gt(mt,zt,lr.value,Bt);if(qt===null){zt===null&&(zt=Wt);break}et&&zt&&qt.alternate===null&&tt(mt,zt),wt=st(qt,wt,Vt),Lt===null?Ot=qt:Lt.sibling=qt,Lt=qt,zt=Wt}if(lr.done)return rt(mt,zt),I$2&&tg(mt,Vt),Ot;if(zt===null){for(;!lr.done;Vt++,lr=St.next())lr=bt(mt,lr.value,Bt),lr!==null&&(wt=st(lr,wt,Vt),Lt===null?Ot=lr:Lt.sibling=lr,Lt=lr);return I$2&&tg(mt,Vt),Ot}for(zt=nt(mt,zt);!lr.done;Vt++,lr=St.next())lr=kt(zt,mt,Vt,lr.value,Bt),lr!==null&&(et&&lr.alternate!==null&&zt.delete(lr.key===null?Vt:lr.key),wt=st(lr,wt,Vt),Lt===null?Ot=lr:Lt.sibling=lr,Lt=lr);return et&&zt.forEach(function(Ft){return tt(mt,Ft)}),I$2&&tg(mt,Vt),Ot}function $t(mt,wt,St,Bt){if(typeof St=="object"&&St!==null&&St.type===ya&&St.key===null&&(St=St.props.children),typeof St=="object"&&St!==null){switch(St.$$typeof){case va:e:{for(var Ot=St.key,Lt=wt;Lt!==null;){if(Lt.key===Ot){if(Ot=St.type,Ot===ya){if(Lt.tag===7){rt(mt,Lt.sibling),wt=it(Lt,St.props.children),wt.return=mt,mt=wt;break e}}else if(Lt.elementType===Ot||typeof Ot=="object"&&Ot!==null&&Ot.$$typeof===Ha&&uh(Ot)===Lt.type){rt(mt,Lt.sibling),wt=it(Lt,St.props),wt.ref=sh$1(mt,Lt,St),wt.return=mt,mt=wt;break e}rt(mt,Lt);break}else tt(mt,Lt);Lt=Lt.sibling}St.type===ya?(wt=Ah(St.props.children,mt.mode,Bt,St.key),wt.return=mt,mt=wt):(Bt=yh(St.type,St.key,St.props,null,mt.mode,Bt),Bt.ref=sh$1(mt,wt,St),Bt.return=mt,mt=Bt)}return at(mt);case wa:e:{for(Lt=St.key;wt!==null;){if(wt.key===Lt)if(wt.tag===4&&wt.stateNode.containerInfo===St.containerInfo&&wt.stateNode.implementation===St.implementation){rt(mt,wt.sibling),wt=it(wt,St.children||[]),wt.return=mt,mt=wt;break e}else{rt(mt,wt);break}else tt(mt,wt);wt=wt.sibling}wt=zh(St,mt.mode,Bt),wt.return=mt,mt=wt}return at(mt);case Ha:return Lt=St._init,$t(mt,wt,Lt(St._payload),Bt)}if(eb(St))return pt(mt,wt,St,Bt);if(Ka(St))return yt(mt,wt,St,Bt);th(mt,St)}return typeof St=="string"&&St!==""||typeof St=="number"?(St=""+St,wt!==null&&wt.tag===6?(rt(mt,wt.sibling),wt=it(wt,St),wt.return=mt,mt=wt):(rt(mt,wt),wt=xh(St,mt.mode,Bt),wt.return=mt,mt=wt),at(mt)):rt(mt,wt)}return $t}var Bh=vh(!0),Ch$1=vh(!1),Dh={},Eh=Uf(Dh),Fh=Uf(Dh),Gh=Uf(Dh);function Hh(et){if(et===Dh)throw Error(p$6(174));return et}function Ih(et,tt){switch(G$2(Gh,tt),G$2(Fh,et),G$2(Eh,Dh),et=tt.nodeType,et){case 9:case 11:tt=(tt=tt.documentElement)?tt.namespaceURI:lb(null,"");break;default:et=et===8?tt.parentNode:tt,tt=et.namespaceURI||null,et=et.tagName,tt=lb(tt,et)}E$2(Eh),G$2(Eh,tt)}function Jh(){E$2(Eh),E$2(Fh),E$2(Gh)}function Kh$1(et){Hh(Gh.current);var tt=Hh(Eh.current),rt=lb(tt,et.type);tt!==rt&&(G$2(Fh,et),G$2(Eh,rt))}function Lh(et){Fh.current===et&&(E$2(Eh),E$2(Fh))}var M$2=Uf(0);function Mh(et){for(var tt=et;tt!==null;){if(tt.tag===13){var rt=tt.memoizedState;if(rt!==null&&(rt=rt.dehydrated,rt===null||rt.data==="$?"||rt.data==="$!"))return tt}else if(tt.tag===19&&tt.memoizedProps.revealOrder!==void 0){if(tt.flags&128)return tt}else if(tt.child!==null){tt.child.return=tt,tt=tt.child;continue}if(tt===et)break;for(;tt.sibling===null;){if(tt.return===null||tt.return===et)return null;tt=tt.return}tt.sibling.return=tt.return,tt=tt.sibling}return null}var Nh=[];function Oh(){for(var et=0;etrt?rt:4,et(!0);var nt=Qh.transition;Qh.transition={};try{et(!1),tt()}finally{C$1=rt,Qh.transition=nt}}function Fi(){return di().memoizedState}function Gi(et,tt,rt){var nt=lh(et);if(rt={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null},Hi(et))Ii(tt,rt);else if(rt=Yg(et,tt,rt,nt),rt!==null){var it=L$2();mh(rt,et,nt,it),Ji(rt,tt,nt)}}function ri(et,tt,rt){var nt=lh(et),it={lane:nt,action:rt,hasEagerState:!1,eagerState:null,next:null};if(Hi(et))Ii(tt,it);else{var st=et.alternate;if(et.lanes===0&&(st===null||st.lanes===0)&&(st=tt.lastRenderedReducer,st!==null))try{var at=tt.lastRenderedState,ot=st(at,rt);if(it.hasEagerState=!0,it.eagerState=ot,He$1(ot,at)){var lt=tt.interleaved;lt===null?(it.next=it,Xg(tt)):(it.next=lt.next,lt.next=it),tt.interleaved=it;return}}catch{}finally{}rt=Yg(et,tt,it,nt),rt!==null&&(it=L$2(),mh(rt,et,nt,it),Ji(rt,tt,nt))}}function Hi(et){var tt=et.alternate;return et===N$2||tt!==null&&tt===N$2}function Ii(et,tt){Th=Sh=!0;var rt=et.pending;rt===null?tt.next=tt:(tt.next=rt.next,rt.next=tt),et.pending=tt}function Ji(et,tt,rt){if(rt&4194240){var nt=tt.lanes;nt&=et.pendingLanes,rt|=nt,tt.lanes=rt,Cc(et,rt)}}var ai={readContext:Vg,useCallback:Q$2,useContext:Q$2,useEffect:Q$2,useImperativeHandle:Q$2,useInsertionEffect:Q$2,useLayoutEffect:Q$2,useMemo:Q$2,useReducer:Q$2,useRef:Q$2,useState:Q$2,useDebugValue:Q$2,useDeferredValue:Q$2,useTransition:Q$2,useMutableSource:Q$2,useSyncExternalStore:Q$2,useId:Q$2,unstable_isNewReconciler:!1},Yh={readContext:Vg,useCallback:function(et,tt){return ci().memoizedState=[et,tt===void 0?null:tt],et},useContext:Vg,useEffect:vi,useImperativeHandle:function(et,tt,rt){return rt=rt!=null?rt.concat([et]):null,ti(4194308,4,yi.bind(null,tt,et),rt)},useLayoutEffect:function(et,tt){return ti(4194308,4,et,tt)},useInsertionEffect:function(et,tt){return ti(4,2,et,tt)},useMemo:function(et,tt){var rt=ci();return tt=tt===void 0?null:tt,et=et(),rt.memoizedState=[et,tt],et},useReducer:function(et,tt,rt){var nt=ci();return tt=rt!==void 0?rt(tt):tt,nt.memoizedState=nt.baseState=tt,et={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:et,lastRenderedState:tt},nt.queue=et,et=et.dispatch=Gi.bind(null,N$2,et),[nt.memoizedState,et]},useRef:function(et){var tt=ci();return et={current:et},tt.memoizedState=et},useState:qi,useDebugValue:Ai,useDeferredValue:function(et){return ci().memoizedState=et},useTransition:function(){var et=qi(!1),tt=et[0];return et=Ei.bind(null,et[1]),ci().memoizedState=et,[tt,et]},useMutableSource:function(){},useSyncExternalStore:function(et,tt,rt){var nt=N$2,it=ci();if(I$2){if(rt===void 0)throw Error(p$6(407));rt=rt()}else{if(rt=tt(),R$2===null)throw Error(p$6(349));Rh&30||ni(nt,tt,rt)}it.memoizedState=rt;var st={value:rt,getSnapshot:tt};return it.queue=st,vi(ki.bind(null,nt,st,et),[et]),nt.flags|=2048,li(9,mi.bind(null,nt,st,rt,tt),void 0,null),rt},useId:function(){var et=ci(),tt=R$2.identifierPrefix;if(I$2){var rt=sg,nt=rg;rt=(nt&~(1<<32-oc(nt)-1)).toString(32)+rt,tt=":"+tt+"R"+rt,rt=Uh++,0<\/script>",et=et.removeChild(et.firstChild)):typeof nt.is=="string"?et=at.createElement(rt,{is:nt.is}):(et=at.createElement(rt),rt==="select"&&(at=et,nt.multiple?at.multiple=!0:nt.size&&(at.size=nt.size))):et=at.createElementNS(et,rt),et[Of]=tt,et[Pf]=nt,Aj(et,tt,!1,!1),tt.stateNode=et;e:{switch(at=vb(rt,nt),rt){case"dialog":D$1("cancel",et),D$1("close",et),it=nt;break;case"iframe":case"object":case"embed":D$1("load",et),it=nt;break;case"video":case"audio":for(it=0;itHj&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304)}else{if(!nt)if(et=Mh(at),et!==null){if(tt.flags|=128,nt=!0,rt=et.updateQueue,rt!==null&&(tt.updateQueue=rt,tt.flags|=4),Ej(st,!0),st.tail===null&&st.tailMode==="hidden"&&!at.alternate&&!I$2)return S$2(tt),null}else 2*B$2()-st.renderingStartTime>Hj&&rt!==1073741824&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304);st.isBackwards?(at.sibling=tt.child,tt.child=at):(rt=st.last,rt!==null?rt.sibling=at:tt.child=at,st.last=at)}return st.tail!==null?(tt=st.tail,st.rendering=tt,st.tail=tt.sibling,st.renderingStartTime=B$2(),tt.sibling=null,rt=M$2.current,G$2(M$2,nt?rt&1|2:rt&1),tt):(S$2(tt),null);case 22:case 23:return Ij(),nt=tt.memoizedState!==null,et!==null&&et.memoizedState!==null!==nt&&(tt.flags|=8192),nt&&tt.mode&1?gj&1073741824&&(S$2(tt),tt.subtreeFlags&6&&(tt.flags|=8192)):S$2(tt),null;case 24:return null;case 25:return null}throw Error(p$6(156,tt.tag))}function Jj(et,tt){switch(wg(tt),tt.tag){case 1:return Zf(tt.type)&&$f(),et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),et=tt.flags,et&65536&&!(et&128)?(tt.flags=et&-65537|128,tt):null;case 5:return Lh(tt),null;case 13:if(E$2(M$2),et=tt.memoizedState,et!==null&&et.dehydrated!==null){if(tt.alternate===null)throw Error(p$6(340));Ig()}return et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(tt.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(et,tt){var rt=et.ref;if(rt!==null)if(typeof rt=="function")try{rt(null)}catch(nt){W$7(et,tt,nt)}else rt.current=null}function Nj(et,tt,rt){try{rt()}catch(nt){W$7(et,tt,nt)}}var Oj=!1;function Pj(et,tt){if(Cf=dd,et=Me$1(),Ne$1(et)){if("selectionStart"in et)var rt={start:et.selectionStart,end:et.selectionEnd};else e:{rt=(rt=et.ownerDocument)&&rt.defaultView||window;var nt=rt.getSelection&&rt.getSelection();if(nt&&nt.rangeCount!==0){rt=nt.anchorNode;var it=nt.anchorOffset,st=nt.focusNode;nt=nt.focusOffset;try{rt.nodeType,st.nodeType}catch{rt=null;break e}var at=0,ot=-1,lt=-1,ut=0,dt=0,bt=et,gt=null;t:for(;;){for(var kt;bt!==rt||it!==0&&bt.nodeType!==3||(ot=at+it),bt!==st||nt!==0&&bt.nodeType!==3||(lt=at+nt),bt.nodeType===3&&(at+=bt.nodeValue.length),(kt=bt.firstChild)!==null;)gt=bt,bt=kt;for(;;){if(bt===et)break t;if(gt===rt&&++ut===it&&(ot=at),gt===st&&++dt===nt&&(lt=at),(kt=bt.nextSibling)!==null)break;bt=gt,gt=bt.parentNode}bt=kt}rt=ot===-1||lt===-1?null:{start:ot,end:lt}}else rt=null}rt=rt||{start:0,end:0}}else rt=null;for(Df={focusedElem:et,selectionRange:rt},dd=!1,V$1=tt;V$1!==null;)if(tt=V$1,et=tt.child,(tt.subtreeFlags&1028)!==0&&et!==null)et.return=tt,V$1=et;else for(;V$1!==null;){tt=V$1;try{var pt=tt.alternate;if(tt.flags&1024)switch(tt.tag){case 0:case 11:case 15:break;case 1:if(pt!==null){var yt=pt.memoizedProps,$t=pt.memoizedState,mt=tt.stateNode,wt=mt.getSnapshotBeforeUpdate(tt.elementType===tt.type?yt:Lg(tt.type,yt),$t);mt.__reactInternalSnapshotBeforeUpdate=wt}break;case 3:var St=tt.stateNode.containerInfo;St.nodeType===1?St.textContent="":St.nodeType===9&&St.documentElement&&St.removeChild(St.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$6(163))}}catch(Bt){W$7(tt,tt.return,Bt)}if(et=tt.sibling,et!==null){et.return=tt.return,V$1=et;break}V$1=tt.return}return pt=Oj,Oj=!1,pt}function Qj(et,tt,rt){var nt=tt.updateQueue;if(nt=nt!==null?nt.lastEffect:null,nt!==null){var it=nt=nt.next;do{if((it.tag&et)===et){var st=it.destroy;it.destroy=void 0,st!==void 0&&Nj(tt,rt,st)}it=it.next}while(it!==nt)}}function Rj(et,tt){if(tt=tt.updateQueue,tt=tt!==null?tt.lastEffect:null,tt!==null){var rt=tt=tt.next;do{if((rt.tag&et)===et){var nt=rt.create;rt.destroy=nt()}rt=rt.next}while(rt!==tt)}}function Sj(et){var tt=et.ref;if(tt!==null){var rt=et.stateNode;switch(et.tag){case 5:et=rt;break;default:et=rt}typeof tt=="function"?tt(et):tt.current=et}}function Tj(et){var tt=et.alternate;tt!==null&&(et.alternate=null,Tj(tt)),et.child=null,et.deletions=null,et.sibling=null,et.tag===5&&(tt=et.stateNode,tt!==null&&(delete tt[Of],delete tt[Pf],delete tt[of],delete tt[Qf],delete tt[Rf])),et.stateNode=null,et.return=null,et.dependencies=null,et.memoizedProps=null,et.memoizedState=null,et.pendingProps=null,et.stateNode=null,et.updateQueue=null}function Uj(et){return et.tag===5||et.tag===3||et.tag===4}function Vj(et){e:for(;;){for(;et.sibling===null;){if(et.return===null||Uj(et.return))return null;et=et.return}for(et.sibling.return=et.return,et=et.sibling;et.tag!==5&&et.tag!==6&&et.tag!==18;){if(et.flags&2||et.child===null||et.tag===4)continue e;et.child.return=et,et=et.child}if(!(et.flags&2))return et.stateNode}}function Wj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.nodeType===8?rt.parentNode.insertBefore(et,tt):rt.insertBefore(et,tt):(rt.nodeType===8?(tt=rt.parentNode,tt.insertBefore(et,rt)):(tt=rt,tt.appendChild(et)),rt=rt._reactRootContainer,rt!=null||tt.onclick!==null||(tt.onclick=Bf));else if(nt!==4&&(et=et.child,et!==null))for(Wj(et,tt,rt),et=et.sibling;et!==null;)Wj(et,tt,rt),et=et.sibling}function Xj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.insertBefore(et,tt):rt.appendChild(et);else if(nt!==4&&(et=et.child,et!==null))for(Xj(et,tt,rt),et=et.sibling;et!==null;)Xj(et,tt,rt),et=et.sibling}var X$1=null,Yj=!1;function Zj(et,tt,rt){for(rt=rt.child;rt!==null;)ak(et,tt,rt),rt=rt.sibling}function ak(et,tt,rt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,rt)}catch{}switch(rt.tag){case 5:U$1||Mj(rt,tt);case 6:var nt=X$1,it=Yj;X$1=null,Zj(et,tt,rt),X$1=nt,Yj=it,X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?et.parentNode.removeChild(rt):et.removeChild(rt)):X$1.removeChild(rt.stateNode));break;case 18:X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?Kf(et.parentNode,rt):et.nodeType===1&&Kf(et,rt),bd(et)):Kf(X$1,rt.stateNode));break;case 4:nt=X$1,it=Yj,X$1=rt.stateNode.containerInfo,Yj=!0,Zj(et,tt,rt),X$1=nt,Yj=it;break;case 0:case 11:case 14:case 15:if(!U$1&&(nt=rt.updateQueue,nt!==null&&(nt=nt.lastEffect,nt!==null))){it=nt=nt.next;do{var st=it,at=st.destroy;st=st.tag,at!==void 0&&(st&2||st&4)&&Nj(rt,tt,at),it=it.next}while(it!==nt)}Zj(et,tt,rt);break;case 1:if(!U$1&&(Mj(rt,tt),nt=rt.stateNode,typeof nt.componentWillUnmount=="function"))try{nt.props=rt.memoizedProps,nt.state=rt.memoizedState,nt.componentWillUnmount()}catch(ot){W$7(rt,tt,ot)}Zj(et,tt,rt);break;case 21:Zj(et,tt,rt);break;case 22:rt.mode&1?(U$1=(nt=U$1)||rt.memoizedState!==null,Zj(et,tt,rt),U$1=nt):Zj(et,tt,rt);break;default:Zj(et,tt,rt)}}function bk(et){var tt=et.updateQueue;if(tt!==null){et.updateQueue=null;var rt=et.stateNode;rt===null&&(rt=et.stateNode=new Lj),tt.forEach(function(nt){var it=ck.bind(null,et,nt);rt.has(nt)||(rt.add(nt),nt.then(it,it))})}}function dk(et,tt){var rt=tt.deletions;if(rt!==null)for(var nt=0;ntit&&(it=at),nt&=~st}if(nt=it,nt=B$2()-nt,nt=(120>nt?120:480>nt?480:1080>nt?1080:1920>nt?1920:3e3>nt?3e3:4320>nt?4320:1960*mk(nt/1960))-nt,10et?16:et,xk===null)var nt=!1;else{if(et=xk,xk=null,yk=0,K$6&6)throw Error(p$6(331));var it=K$6;for(K$6|=4,V$1=et.current;V$1!==null;){var st=V$1,at=st.child;if(V$1.flags&16){var ot=st.deletions;if(ot!==null){for(var lt=0;ltB$2()-gk?Lk(et,0):sk|=rt),Ek(et,tt)}function Zk(et,tt){tt===0&&(et.mode&1?(tt=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):tt=1);var rt=L$2();et=Zg(et,tt),et!==null&&(Ac(et,tt,rt),Ek(et,rt))}function vj(et){var tt=et.memoizedState,rt=0;tt!==null&&(rt=tt.retryLane),Zk(et,rt)}function ck(et,tt){var rt=0;switch(et.tag){case 13:var nt=et.stateNode,it=et.memoizedState;it!==null&&(rt=it.retryLane);break;case 19:nt=et.stateNode;break;default:throw Error(p$6(314))}nt!==null&&nt.delete(tt),Zk(et,rt)}var Wk;Wk=function(et,tt,rt){if(et!==null)if(et.memoizedProps!==tt.pendingProps||Wf.current)Ug=!0;else{if(!(et.lanes&rt)&&!(tt.flags&128))return Ug=!1,zj(et,tt,rt);Ug=!!(et.flags&131072)}else Ug=!1,I$2&&tt.flags&1048576&&ug(tt,ng,tt.index);switch(tt.lanes=0,tt.tag){case 2:var nt=tt.type;jj(et,tt),et=tt.pendingProps;var it=Yf(tt,H$2.current);Tg(tt,rt),it=Xh(null,tt,nt,et,it,rt);var st=bi();return tt.flags|=1,typeof it=="object"&&it!==null&&typeof it.render=="function"&&it.$$typeof===void 0?(tt.tag=1,tt.memoizedState=null,tt.updateQueue=null,Zf(nt)?(st=!0,cg(tt)):st=!1,tt.memoizedState=it.state!==null&&it.state!==void 0?it.state:null,ah(tt),it.updater=nh,tt.stateNode=it,it._reactInternals=tt,rh$1(tt,nt,et,rt),tt=kj(null,tt,nt,!0,st,rt)):(tt.tag=0,I$2&&st&&vg(tt),Yi(null,tt,it,rt),tt=tt.child),tt;case 16:nt=tt.elementType;e:{switch(jj(et,tt),et=tt.pendingProps,it=nt._init,nt=it(nt._payload),tt.type=nt,it=tt.tag=$k(nt),et=Lg(nt,et),it){case 0:tt=dj(null,tt,nt,et,rt);break e;case 1:tt=ij(null,tt,nt,et,rt);break e;case 11:tt=Zi(null,tt,nt,et,rt);break e;case 14:tt=aj(null,tt,nt,Lg(nt.type,et),rt);break e}throw Error(p$6(306,nt,""))}return tt;case 0:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),dj(et,tt,nt,it,rt);case 1:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),ij(et,tt,nt,it,rt);case 3:e:{if(lj(tt),et===null)throw Error(p$6(387));nt=tt.pendingProps,st=tt.memoizedState,it=st.element,bh(et,tt),gh(tt,nt,null,rt);var at=tt.memoizedState;if(nt=at.element,st.isDehydrated)if(st={element:nt,isDehydrated:!1,cache:at.cache,pendingSuspenseBoundaries:at.pendingSuspenseBoundaries,transitions:at.transitions},tt.updateQueue.baseState=st,tt.memoizedState=st,tt.flags&256){it=Ki(Error(p$6(423)),tt),tt=mj(et,tt,nt,rt,it);break e}else if(nt!==it){it=Ki(Error(p$6(424)),tt),tt=mj(et,tt,nt,rt,it);break e}else for(yg=Lf(tt.stateNode.containerInfo.firstChild),xg=tt,I$2=!0,zg=null,rt=Ch$1(tt,null,nt,rt),tt.child=rt;rt;)rt.flags=rt.flags&-3|4096,rt=rt.sibling;else{if(Ig(),nt===it){tt=$i(et,tt,rt);break e}Yi(et,tt,nt,rt)}tt=tt.child}return tt;case 5:return Kh$1(tt),et===null&&Eg(tt),nt=tt.type,it=tt.pendingProps,st=et!==null?et.memoizedProps:null,at=it.children,Ef(nt,it)?at=null:st!==null&&Ef(nt,st)&&(tt.flags|=32),hj(et,tt),Yi(et,tt,at,rt),tt.child;case 6:return et===null&&Eg(tt),null;case 13:return pj(et,tt,rt);case 4:return Ih(tt,tt.stateNode.containerInfo),nt=tt.pendingProps,et===null?tt.child=Bh(tt,null,nt,rt):Yi(et,tt,nt,rt),tt.child;case 11:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),Zi(et,tt,nt,it,rt);case 7:return Yi(et,tt,tt.pendingProps,rt),tt.child;case 8:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 12:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 10:e:{if(nt=tt.type._context,it=tt.pendingProps,st=tt.memoizedProps,at=it.value,G$2(Mg,nt._currentValue),nt._currentValue=at,st!==null)if(He$1(st.value,at)){if(st.children===it.children&&!Wf.current){tt=$i(et,tt,rt);break e}}else for(st=tt.child,st!==null&&(st.return=tt);st!==null;){var ot=st.dependencies;if(ot!==null){at=st.child;for(var lt=ot.firstContext;lt!==null;){if(lt.context===nt){if(st.tag===1){lt=ch$1(-1,rt&-rt),lt.tag=2;var ut=st.updateQueue;if(ut!==null){ut=ut.shared;var dt=ut.pending;dt===null?lt.next=lt:(lt.next=dt.next,dt.next=lt),ut.pending=lt}}st.lanes|=rt,lt=st.alternate,lt!==null&&(lt.lanes|=rt),Sg(st.return,rt,tt),ot.lanes|=rt;break}lt=lt.next}}else if(st.tag===10)at=st.type===tt.type?null:st.child;else if(st.tag===18){if(at=st.return,at===null)throw Error(p$6(341));at.lanes|=rt,ot=at.alternate,ot!==null&&(ot.lanes|=rt),Sg(at,rt,tt),at=st.sibling}else at=st.child;if(at!==null)at.return=st;else for(at=st;at!==null;){if(at===tt){at=null;break}if(st=at.sibling,st!==null){st.return=at.return,at=st;break}at=at.return}st=at}Yi(et,tt,it.children,rt),tt=tt.child}return tt;case 9:return it=tt.type,nt=tt.pendingProps.children,Tg(tt,rt),it=Vg(it),nt=nt(it),tt.flags|=1,Yi(et,tt,nt,rt),tt.child;case 14:return nt=tt.type,it=Lg(nt,tt.pendingProps),it=Lg(nt.type,it),aj(et,tt,nt,it,rt);case 15:return cj(et,tt,tt.type,tt.pendingProps,rt);case 17:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),jj(et,tt),tt.tag=1,Zf(nt)?(et=!0,cg(tt)):et=!1,Tg(tt,rt),ph(tt,nt,it),rh$1(tt,nt,it,rt),kj(null,tt,nt,!0,et,rt);case 19:return yj(et,tt,rt);case 22:return ej(et,tt,rt)}throw Error(p$6(156,tt.tag))};function Gk(et,tt){return ac(et,tt)}function al(et,tt,rt,nt){this.tag=et,this.key=rt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=tt,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=nt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg$1(et,tt,rt,nt){return new al(et,tt,rt,nt)}function bj(et){return et=et.prototype,!(!et||!et.isReactComponent)}function $k(et){if(typeof et=="function")return bj(et)?1:0;if(et!=null){if(et=et.$$typeof,et===Da)return 11;if(et===Ga)return 14}return 2}function wh(et,tt){var rt=et.alternate;return rt===null?(rt=Bg$1(et.tag,tt,et.key,et.mode),rt.elementType=et.elementType,rt.type=et.type,rt.stateNode=et.stateNode,rt.alternate=et,et.alternate=rt):(rt.pendingProps=tt,rt.type=et.type,rt.flags=0,rt.subtreeFlags=0,rt.deletions=null),rt.flags=et.flags&14680064,rt.childLanes=et.childLanes,rt.lanes=et.lanes,rt.child=et.child,rt.memoizedProps=et.memoizedProps,rt.memoizedState=et.memoizedState,rt.updateQueue=et.updateQueue,tt=et.dependencies,rt.dependencies=tt===null?null:{lanes:tt.lanes,firstContext:tt.firstContext},rt.sibling=et.sibling,rt.index=et.index,rt.ref=et.ref,rt}function yh(et,tt,rt,nt,it,st){var at=2;if(nt=et,typeof et=="function")bj(et)&&(at=1);else if(typeof et=="string")at=5;else e:switch(et){case ya:return Ah(rt.children,it,st,tt);case za:at=8,it|=8;break;case Aa:return et=Bg$1(12,rt,tt,it|2),et.elementType=Aa,et.lanes=st,et;case Ea:return et=Bg$1(13,rt,tt,it),et.elementType=Ea,et.lanes=st,et;case Fa:return et=Bg$1(19,rt,tt,it),et.elementType=Fa,et.lanes=st,et;case Ia:return qj(rt,it,st,tt);default:if(typeof et=="object"&&et!==null)switch(et.$$typeof){case Ba:at=10;break e;case Ca:at=9;break e;case Da:at=11;break e;case Ga:at=14;break e;case Ha:at=16,nt=null;break e}throw Error(p$6(130,et==null?et:typeof et,""))}return tt=Bg$1(at,rt,tt,it),tt.elementType=et,tt.type=nt,tt.lanes=st,tt}function Ah(et,tt,rt,nt){return et=Bg$1(7,et,nt,tt),et.lanes=rt,et}function qj(et,tt,rt,nt){return et=Bg$1(22,et,nt,tt),et.elementType=Ia,et.lanes=rt,et.stateNode={isHidden:!1},et}function xh(et,tt,rt){return et=Bg$1(6,et,null,tt),et.lanes=rt,et}function zh(et,tt,rt){return tt=Bg$1(4,et.children!==null?et.children:[],et.key,tt),tt.lanes=rt,tt.stateNode={containerInfo:et.containerInfo,pendingChildren:null,implementation:et.implementation},tt}function bl(et,tt,rt,nt,it){this.tag=tt,this.containerInfo=et,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=nt,this.onRecoverableError=it,this.mutableSourceEagerHydrationData=null}function cl(et,tt,rt,nt,it,st,at,ot,lt){return et=new bl(et,tt,rt,ot,lt),tt===1?(tt=1,st===!0&&(tt|=8)):tt=0,st=Bg$1(3,null,null,tt),et.current=st,st.stateNode=et,st.memoizedState={element:nt,isDehydrated:rt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(st),et}function dl(et,tt,rt){var nt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(et){console.error(et)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var createRoot,m$5=reactDomExports;createRoot=client$1.createRoot=m$5.createRoot,client$1.hydrateRoot=m$5.hydrateRoot;const scriptRel="modulepreload",assetsURL=function(et){return"/"+et},seen={},__vitePreload=function(tt,rt,nt){if(!rt||rt.length===0)return tt();const it=document.getElementsByTagName("link");return Promise.all(rt.map(st=>{if(st=assetsURL(st),st in seen)return;seen[st]=!0;const at=st.endsWith(".css"),ot=at?'[rel="stylesheet"]':"";if(!!nt)for(let dt=it.length-1;dt>=0;dt--){const bt=it[dt];if(bt.href===st&&(!at||bt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${st}"]${ot}`))return;const ut=document.createElement("link");if(ut.rel=at?"stylesheet":scriptRel,at||(ut.as="script",ut.crossOrigin=""),ut.href=st,document.head.appendChild(ut),at)return new Promise((dt,bt)=>{ut.addEventListener("load",dt),ut.addEventListener("error",()=>bt(new Error(`Unable to preload CSS for ${st}`)))})})).then(()=>tt()).catch(st=>{const at=new Event("vite:preloadError",{cancelable:!0});if(at.payload=st,window.dispatchEvent(at),!at.defaultPrevented)throw st})},reportWebVitals=et=>{et&&et instanceof Function&&__vitePreload(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:tt,getFID:rt,getFCP:nt,getLCP:it,getTTFB:st})=>{tt(et),rt(et),nt(et),it(et),st(et)})};/** +`+st.stack}return{value:et,source:tt,stack:it,digest:null}}function Li(et,tt,rt){return{value:et,source:null,stack:rt??null,digest:tt??null}}function Mi(et,tt){try{console.error(tt.value)}catch(rt){setTimeout(function(){throw rt})}}var Ni=typeof WeakMap=="function"?WeakMap:Map;function Oi(et,tt,rt){rt=ch$1(-1,rt),rt.tag=3,rt.payload={element:null};var nt=tt.value;return rt.callback=function(){Pi$1||(Pi$1=!0,Qi=nt),Mi(et,tt)},rt}function Ri(et,tt,rt){rt=ch$1(-1,rt),rt.tag=3;var nt=et.type.getDerivedStateFromError;if(typeof nt=="function"){var it=tt.value;rt.payload=function(){return nt(it)},rt.callback=function(){Mi(et,tt)}}var st=et.stateNode;return st!==null&&typeof st.componentDidCatch=="function"&&(rt.callback=function(){Mi(et,tt),typeof nt!="function"&&(Si===null?Si=new Set([this]):Si.add(this));var at=tt.stack;this.componentDidCatch(tt.value,{componentStack:at!==null?at:""})}),rt}function Ti(et,tt,rt){var nt=et.pingCache;if(nt===null){nt=et.pingCache=new Ni;var it=new Set;nt.set(tt,it)}else it=nt.get(tt),it===void 0&&(it=new Set,nt.set(tt,it));it.has(rt)||(it.add(rt),et=Ui.bind(null,et,tt,rt),tt.then(et,et))}function Vi(et){do{var tt;if((tt=et.tag===13)&&(tt=et.memoizedState,tt=tt!==null?tt.dehydrated!==null:!0),tt)return et;et=et.return}while(et!==null);return null}function Wi(et,tt,rt,nt,it){return et.mode&1?(et.flags|=65536,et.lanes=it,et):(et===tt?et.flags|=65536:(et.flags|=128,rt.flags|=131072,rt.flags&=-52805,rt.tag===1&&(rt.alternate===null?rt.tag=17:(tt=ch$1(-1,1),tt.tag=2,dh$1(rt,tt,1))),rt.lanes|=1),et)}var Xi=ua.ReactCurrentOwner,Ug=!1;function Yi(et,tt,rt,nt){tt.child=et===null?Ch$1(tt,null,rt,nt):Bh(tt,et.child,rt,nt)}function Zi(et,tt,rt,nt,it){rt=rt.render;var st=tt.ref;return Tg(tt,it),nt=Xh(et,tt,rt,nt,st,it),rt=bi(),et!==null&&!Ug?(tt.updateQueue=et.updateQueue,tt.flags&=-2053,et.lanes&=~it,$i(et,tt,it)):(I$2&&rt&&vg(tt),tt.flags|=1,Yi(et,tt,nt,it),tt.child)}function aj(et,tt,rt,nt,it){if(et===null){var st=rt.type;return typeof st=="function"&&!bj(st)&&st.defaultProps===void 0&&rt.compare===null&&rt.defaultProps===void 0?(tt.tag=15,tt.type=st,cj(et,tt,st,nt,it)):(et=yh(rt.type,null,nt,tt,tt.mode,it),et.ref=tt.ref,et.return=tt,tt.child=et)}if(st=et.child,!(et.lanes&it)){var at=st.memoizedProps;if(rt=rt.compare,rt=rt!==null?rt:Ie,rt(at,nt)&&et.ref===tt.ref)return $i(et,tt,it)}return tt.flags|=1,et=wh(st,nt),et.ref=tt.ref,et.return=tt,tt.child=et}function cj(et,tt,rt,nt,it){if(et!==null){var st=et.memoizedProps;if(Ie(st,nt)&&et.ref===tt.ref)if(Ug=!1,tt.pendingProps=nt=st,(et.lanes&it)!==0)et.flags&131072&&(Ug=!0);else return tt.lanes=et.lanes,$i(et,tt,it)}return dj(et,tt,rt,nt,it)}function ej(et,tt,rt){var nt=tt.pendingProps,it=nt.children,st=et!==null?et.memoizedState:null;if(nt.mode==="hidden")if(!(tt.mode&1))tt.memoizedState={baseLanes:0,cachePool:null,transitions:null},G$2(fj,gj),gj|=rt;else{if(!(rt&1073741824))return et=st!==null?st.baseLanes|rt:rt,tt.lanes=tt.childLanes=1073741824,tt.memoizedState={baseLanes:et,cachePool:null,transitions:null},tt.updateQueue=null,G$2(fj,gj),gj|=et,null;tt.memoizedState={baseLanes:0,cachePool:null,transitions:null},nt=st!==null?st.baseLanes:rt,G$2(fj,gj),gj|=nt}else st!==null?(nt=st.baseLanes|rt,tt.memoizedState=null):nt=rt,G$2(fj,gj),gj|=nt;return Yi(et,tt,it,rt),tt.child}function hj(et,tt){var rt=tt.ref;(et===null&&rt!==null||et!==null&&et.ref!==rt)&&(tt.flags|=512,tt.flags|=2097152)}function dj(et,tt,rt,nt,it){var st=Zf(rt)?Xf:H$2.current;return st=Yf(tt,st),Tg(tt,it),rt=Xh(et,tt,rt,nt,st,it),nt=bi(),et!==null&&!Ug?(tt.updateQueue=et.updateQueue,tt.flags&=-2053,et.lanes&=~it,$i(et,tt,it)):(I$2&&nt&&vg(tt),tt.flags|=1,Yi(et,tt,rt,it),tt.child)}function ij(et,tt,rt,nt,it){if(Zf(rt)){var st=!0;cg(tt)}else st=!1;if(Tg(tt,it),tt.stateNode===null)jj(et,tt),ph(tt,rt,nt),rh$1(tt,rt,nt,it),nt=!0;else if(et===null){var at=tt.stateNode,ot=tt.memoizedProps;at.props=ot;var lt=at.context,ut=rt.contextType;typeof ut=="object"&&ut!==null?ut=Vg(ut):(ut=Zf(rt)?Xf:H$2.current,ut=Yf(tt,ut));var dt=rt.getDerivedStateFromProps,bt=typeof dt=="function"||typeof at.getSnapshotBeforeUpdate=="function";bt||typeof at.UNSAFE_componentWillReceiveProps!="function"&&typeof at.componentWillReceiveProps!="function"||(ot!==nt||lt!==ut)&&qh(tt,at,nt,ut),$g=!1;var gt=tt.memoizedState;at.state=gt,gh(tt,nt,at,it),lt=tt.memoizedState,ot!==nt||gt!==lt||Wf.current||$g?(typeof dt=="function"&&(kh(tt,rt,dt,nt),lt=tt.memoizedState),(ot=$g||oh(tt,rt,ot,nt,gt,lt,ut))?(bt||typeof at.UNSAFE_componentWillMount!="function"&&typeof at.componentWillMount!="function"||(typeof at.componentWillMount=="function"&&at.componentWillMount(),typeof at.UNSAFE_componentWillMount=="function"&&at.UNSAFE_componentWillMount()),typeof at.componentDidMount=="function"&&(tt.flags|=4194308)):(typeof at.componentDidMount=="function"&&(tt.flags|=4194308),tt.memoizedProps=nt,tt.memoizedState=lt),at.props=nt,at.state=lt,at.context=ut,nt=ot):(typeof at.componentDidMount=="function"&&(tt.flags|=4194308),nt=!1)}else{at=tt.stateNode,bh(et,tt),ot=tt.memoizedProps,ut=tt.type===tt.elementType?ot:Lg(tt.type,ot),at.props=ut,bt=tt.pendingProps,gt=at.context,lt=rt.contextType,typeof lt=="object"&<!==null?lt=Vg(lt):(lt=Zf(rt)?Xf:H$2.current,lt=Yf(tt,lt));var kt=rt.getDerivedStateFromProps;(dt=typeof kt=="function"||typeof at.getSnapshotBeforeUpdate=="function")||typeof at.UNSAFE_componentWillReceiveProps!="function"&&typeof at.componentWillReceiveProps!="function"||(ot!==bt||gt!==lt)&&qh(tt,at,nt,lt),$g=!1,gt=tt.memoizedState,at.state=gt,gh(tt,nt,at,it);var pt=tt.memoizedState;ot!==bt||gt!==pt||Wf.current||$g?(typeof kt=="function"&&(kh(tt,rt,kt,nt),pt=tt.memoizedState),(ut=$g||oh(tt,rt,ut,nt,gt,pt,lt)||!1)?(dt||typeof at.UNSAFE_componentWillUpdate!="function"&&typeof at.componentWillUpdate!="function"||(typeof at.componentWillUpdate=="function"&&at.componentWillUpdate(nt,pt,lt),typeof at.UNSAFE_componentWillUpdate=="function"&&at.UNSAFE_componentWillUpdate(nt,pt,lt)),typeof at.componentDidUpdate=="function"&&(tt.flags|=4),typeof at.getSnapshotBeforeUpdate=="function"&&(tt.flags|=1024)):(typeof at.componentDidUpdate!="function"||ot===et.memoizedProps&>===et.memoizedState||(tt.flags|=4),typeof at.getSnapshotBeforeUpdate!="function"||ot===et.memoizedProps&>===et.memoizedState||(tt.flags|=1024),tt.memoizedProps=nt,tt.memoizedState=pt),at.props=nt,at.state=pt,at.context=lt,nt=ut):(typeof at.componentDidUpdate!="function"||ot===et.memoizedProps&>===et.memoizedState||(tt.flags|=4),typeof at.getSnapshotBeforeUpdate!="function"||ot===et.memoizedProps&>===et.memoizedState||(tt.flags|=1024),nt=!1)}return kj(et,tt,rt,nt,st,it)}function kj(et,tt,rt,nt,it,st){hj(et,tt);var at=(tt.flags&128)!==0;if(!nt&&!at)return it&&dg(tt,rt,!1),$i(et,tt,st);nt=tt.stateNode,Xi.current=tt;var ot=at&&typeof rt.getDerivedStateFromError!="function"?null:nt.render();return tt.flags|=1,et!==null&&at?(tt.child=Bh(tt,et.child,null,st),tt.child=Bh(tt,null,ot,st)):Yi(et,tt,ot,st),tt.memoizedState=nt.state,it&&dg(tt,rt,!0),tt.child}function lj(et){var tt=et.stateNode;tt.pendingContext?ag(et,tt.pendingContext,tt.pendingContext!==tt.context):tt.context&&ag(et,tt.context,!1),Ih(et,tt.containerInfo)}function mj(et,tt,rt,nt,it){return Ig(),Jg(it),tt.flags|=256,Yi(et,tt,rt,nt),tt.child}var nj={dehydrated:null,treeContext:null,retryLane:0};function oj(et){return{baseLanes:et,cachePool:null,transitions:null}}function pj(et,tt,rt){var nt=tt.pendingProps,it=M$2.current,st=!1,at=(tt.flags&128)!==0,ot;if((ot=at)||(ot=et!==null&&et.memoizedState===null?!1:(it&2)!==0),ot?(st=!0,tt.flags&=-129):(et===null||et.memoizedState!==null)&&(it|=1),G$2(M$2,it&1),et===null)return Eg(tt),et=tt.memoizedState,et!==null&&(et=et.dehydrated,et!==null)?(tt.mode&1?et.data==="$!"?tt.lanes=8:tt.lanes=1073741824:tt.lanes=1,null):(at=nt.children,et=nt.fallback,st?(nt=tt.mode,st=tt.child,at={mode:"hidden",children:at},!(nt&1)&&st!==null?(st.childLanes=0,st.pendingProps=at):st=qj(at,nt,0,null),et=Ah(et,nt,rt,null),st.return=tt,et.return=tt,st.sibling=et,tt.child=st,tt.child.memoizedState=oj(rt),tt.memoizedState=nj,et):rj(tt,at));if(it=et.memoizedState,it!==null&&(ot=it.dehydrated,ot!==null))return sj(et,tt,at,nt,ot,it,rt);if(st){st=nt.fallback,at=tt.mode,it=et.child,ot=it.sibling;var lt={mode:"hidden",children:nt.children};return!(at&1)&&tt.child!==it?(nt=tt.child,nt.childLanes=0,nt.pendingProps=lt,tt.deletions=null):(nt=wh(it,lt),nt.subtreeFlags=it.subtreeFlags&14680064),ot!==null?st=wh(ot,st):(st=Ah(st,at,rt,null),st.flags|=2),st.return=tt,nt.return=tt,nt.sibling=st,tt.child=nt,nt=st,st=tt.child,at=et.child.memoizedState,at=at===null?oj(rt):{baseLanes:at.baseLanes|rt,cachePool:null,transitions:at.transitions},st.memoizedState=at,st.childLanes=et.childLanes&~rt,tt.memoizedState=nj,nt}return st=et.child,et=st.sibling,nt=wh(st,{mode:"visible",children:nt.children}),!(tt.mode&1)&&(nt.lanes=rt),nt.return=tt,nt.sibling=null,et!==null&&(rt=tt.deletions,rt===null?(tt.deletions=[et],tt.flags|=16):rt.push(et)),tt.child=nt,tt.memoizedState=null,nt}function rj(et,tt){return tt=qj({mode:"visible",children:tt},et.mode,0,null),tt.return=et,et.child=tt}function tj(et,tt,rt,nt){return nt!==null&&Jg(nt),Bh(tt,et.child,null,rt),et=rj(tt,tt.pendingProps.children),et.flags|=2,tt.memoizedState=null,et}function sj(et,tt,rt,nt,it,st,at){if(rt)return tt.flags&256?(tt.flags&=-257,nt=Li(Error(p$6(422))),tj(et,tt,at,nt)):tt.memoizedState!==null?(tt.child=et.child,tt.flags|=128,null):(st=nt.fallback,it=tt.mode,nt=qj({mode:"visible",children:nt.children},it,0,null),st=Ah(st,it,at,null),st.flags|=2,nt.return=tt,st.return=tt,nt.sibling=st,tt.child=nt,tt.mode&1&&Bh(tt,et.child,null,at),tt.child.memoizedState=oj(at),tt.memoizedState=nj,st);if(!(tt.mode&1))return tj(et,tt,at,null);if(it.data==="$!"){if(nt=it.nextSibling&&it.nextSibling.dataset,nt)var ot=nt.dgst;return nt=ot,st=Error(p$6(419)),nt=Li(st,nt,void 0),tj(et,tt,at,nt)}if(ot=(at&et.childLanes)!==0,Ug||ot){if(nt=R$2,nt!==null){switch(at&-at){case 4:it=2;break;case 16:it=8;break;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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:it=32;break;case 536870912:it=268435456;break;default:it=0}it=it&(nt.suspendedLanes|at)?0:it,it!==0&&it!==st.retryLane&&(st.retryLane=it,Zg(et,it),mh(nt,et,it,-1))}return uj(),nt=Li(Error(p$6(421))),tj(et,tt,at,nt)}return it.data==="$?"?(tt.flags|=128,tt.child=et.child,tt=vj.bind(null,et),it._reactRetry=tt,null):(et=st.treeContext,yg=Lf(it.nextSibling),xg=tt,I$2=!0,zg=null,et!==null&&(og[pg++]=rg,og[pg++]=sg,og[pg++]=qg,rg=et.id,sg=et.overflow,qg=tt),tt=rj(tt,nt.children),tt.flags|=4096,tt)}function wj(et,tt,rt){et.lanes|=tt;var nt=et.alternate;nt!==null&&(nt.lanes|=tt),Sg(et.return,tt,rt)}function xj(et,tt,rt,nt,it){var st=et.memoizedState;st===null?et.memoizedState={isBackwards:tt,rendering:null,renderingStartTime:0,last:nt,tail:rt,tailMode:it}:(st.isBackwards=tt,st.rendering=null,st.renderingStartTime=0,st.last=nt,st.tail=rt,st.tailMode=it)}function yj(et,tt,rt){var nt=tt.pendingProps,it=nt.revealOrder,st=nt.tail;if(Yi(et,tt,nt.children,rt),nt=M$2.current,nt&2)nt=nt&1|2,tt.flags|=128;else{if(et!==null&&et.flags&128)e:for(et=tt.child;et!==null;){if(et.tag===13)et.memoizedState!==null&&wj(et,rt,tt);else if(et.tag===19)wj(et,rt,tt);else if(et.child!==null){et.child.return=et,et=et.child;continue}if(et===tt)break e;for(;et.sibling===null;){if(et.return===null||et.return===tt)break e;et=et.return}et.sibling.return=et.return,et=et.sibling}nt&=1}if(G$2(M$2,nt),!(tt.mode&1))tt.memoizedState=null;else switch(it){case"forwards":for(rt=tt.child,it=null;rt!==null;)et=rt.alternate,et!==null&&Mh(et)===null&&(it=rt),rt=rt.sibling;rt=it,rt===null?(it=tt.child,tt.child=null):(it=rt.sibling,rt.sibling=null),xj(tt,!1,it,rt,st);break;case"backwards":for(rt=null,it=tt.child,tt.child=null;it!==null;){if(et=it.alternate,et!==null&&Mh(et)===null){tt.child=it;break}et=it.sibling,it.sibling=rt,rt=it,it=et}xj(tt,!0,rt,null,st);break;case"together":xj(tt,!1,null,null,void 0);break;default:tt.memoizedState=null}return tt.child}function jj(et,tt){!(tt.mode&1)&&et!==null&&(et.alternate=null,tt.alternate=null,tt.flags|=2)}function $i(et,tt,rt){if(et!==null&&(tt.dependencies=et.dependencies),hh|=tt.lanes,!(rt&tt.childLanes))return null;if(et!==null&&tt.child!==et.child)throw Error(p$6(153));if(tt.child!==null){for(et=tt.child,rt=wh(et,et.pendingProps),tt.child=rt,rt.return=tt;et.sibling!==null;)et=et.sibling,rt=rt.sibling=wh(et,et.pendingProps),rt.return=tt;rt.sibling=null}return tt.child}function zj(et,tt,rt){switch(tt.tag){case 3:lj(tt),Ig();break;case 5:Kh$1(tt);break;case 1:Zf(tt.type)&&cg(tt);break;case 4:Ih(tt,tt.stateNode.containerInfo);break;case 10:var nt=tt.type._context,it=tt.memoizedProps.value;G$2(Mg,nt._currentValue),nt._currentValue=it;break;case 13:if(nt=tt.memoizedState,nt!==null)return nt.dehydrated!==null?(G$2(M$2,M$2.current&1),tt.flags|=128,null):rt&tt.child.childLanes?pj(et,tt,rt):(G$2(M$2,M$2.current&1),et=$i(et,tt,rt),et!==null?et.sibling:null);G$2(M$2,M$2.current&1);break;case 19:if(nt=(rt&tt.childLanes)!==0,et.flags&128){if(nt)return yj(et,tt,rt);tt.flags|=128}if(it=tt.memoizedState,it!==null&&(it.rendering=null,it.tail=null,it.lastEffect=null),G$2(M$2,M$2.current),nt)break;return null;case 22:case 23:return tt.lanes=0,ej(et,tt,rt)}return $i(et,tt,rt)}var Aj,Bj,Cj,Dj;Aj=function(et,tt){for(var rt=tt.child;rt!==null;){if(rt.tag===5||rt.tag===6)et.appendChild(rt.stateNode);else if(rt.tag!==4&&rt.child!==null){rt.child.return=rt,rt=rt.child;continue}if(rt===tt)break;for(;rt.sibling===null;){if(rt.return===null||rt.return===tt)return;rt=rt.return}rt.sibling.return=rt.return,rt=rt.sibling}};Bj=function(){};Cj=function(et,tt,rt,nt){var it=et.memoizedProps;if(it!==nt){et=tt.stateNode,Hh(Eh.current);var st=null;switch(rt){case"input":it=Ya(et,it),nt=Ya(et,nt),st=[];break;case"select":it=A$3({},it,{value:void 0}),nt=A$3({},nt,{value:void 0}),st=[];break;case"textarea":it=gb(et,it),nt=gb(et,nt),st=[];break;default:typeof it.onClick!="function"&&typeof nt.onClick=="function"&&(et.onclick=Bf)}ub(rt,nt);var at;rt=null;for(ut in it)if(!nt.hasOwnProperty(ut)&&it.hasOwnProperty(ut)&&it[ut]!=null)if(ut==="style"){var ot=it[ut];for(at in ot)ot.hasOwnProperty(at)&&(rt||(rt={}),rt[at]="")}else ut!=="dangerouslySetInnerHTML"&&ut!=="children"&&ut!=="suppressContentEditableWarning"&&ut!=="suppressHydrationWarning"&&ut!=="autoFocus"&&(ea.hasOwnProperty(ut)?st||(st=[]):(st=st||[]).push(ut,null));for(ut in nt){var lt=nt[ut];if(ot=it!=null?it[ut]:void 0,nt.hasOwnProperty(ut)&<!==ot&&(lt!=null||ot!=null))if(ut==="style")if(ot){for(at in ot)!ot.hasOwnProperty(at)||lt&<.hasOwnProperty(at)||(rt||(rt={}),rt[at]="");for(at in lt)lt.hasOwnProperty(at)&&ot[at]!==lt[at]&&(rt||(rt={}),rt[at]=lt[at])}else rt||(st||(st=[]),st.push(ut,rt)),rt=lt;else ut==="dangerouslySetInnerHTML"?(lt=lt?lt.__html:void 0,ot=ot?ot.__html:void 0,lt!=null&&ot!==lt&&(st=st||[]).push(ut,lt)):ut==="children"?typeof lt!="string"&&typeof lt!="number"||(st=st||[]).push(ut,""+lt):ut!=="suppressContentEditableWarning"&&ut!=="suppressHydrationWarning"&&(ea.hasOwnProperty(ut)?(lt!=null&&ut==="onScroll"&&D$1("scroll",et),st||ot===lt||(st=[])):(st=st||[]).push(ut,lt))}rt&&(st=st||[]).push("style",rt);var ut=st;(tt.updateQueue=ut)&&(tt.flags|=4)}};Dj=function(et,tt,rt,nt){rt!==nt&&(tt.flags|=4)};function Ej(et,tt){if(!I$2)switch(et.tailMode){case"hidden":tt=et.tail;for(var rt=null;tt!==null;)tt.alternate!==null&&(rt=tt),tt=tt.sibling;rt===null?et.tail=null:rt.sibling=null;break;case"collapsed":rt=et.tail;for(var nt=null;rt!==null;)rt.alternate!==null&&(nt=rt),rt=rt.sibling;nt===null?tt||et.tail===null?et.tail=null:et.tail.sibling=null:nt.sibling=null}}function S$2(et){var tt=et.alternate!==null&&et.alternate.child===et.child,rt=0,nt=0;if(tt)for(var it=et.child;it!==null;)rt|=it.lanes|it.childLanes,nt|=it.subtreeFlags&14680064,nt|=it.flags&14680064,it.return=et,it=it.sibling;else for(it=et.child;it!==null;)rt|=it.lanes|it.childLanes,nt|=it.subtreeFlags,nt|=it.flags,it.return=et,it=it.sibling;return et.subtreeFlags|=nt,et.childLanes=rt,tt}function Fj(et,tt,rt){var nt=tt.pendingProps;switch(wg(tt),tt.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return S$2(tt),null;case 1:return Zf(tt.type)&&$f(),S$2(tt),null;case 3:return nt=tt.stateNode,Jh(),E$2(Wf),E$2(H$2),Oh(),nt.pendingContext&&(nt.context=nt.pendingContext,nt.pendingContext=null),(et===null||et.child===null)&&(Gg(tt)?tt.flags|=4:et===null||et.memoizedState.isDehydrated&&!(tt.flags&256)||(tt.flags|=1024,zg!==null&&(Gj(zg),zg=null))),Bj(et,tt),S$2(tt),null;case 5:Lh(tt);var it=Hh(Gh.current);if(rt=tt.type,et!==null&&tt.stateNode!=null)Cj(et,tt,rt,nt,it),et.ref!==tt.ref&&(tt.flags|=512,tt.flags|=2097152);else{if(!nt){if(tt.stateNode===null)throw Error(p$6(166));return S$2(tt),null}if(et=Hh(Eh.current),Gg(tt)){nt=tt.stateNode,rt=tt.type;var st=tt.memoizedProps;switch(nt[Of]=tt,nt[Pf]=st,et=(tt.mode&1)!==0,rt){case"dialog":D$1("cancel",nt),D$1("close",nt);break;case"iframe":case"object":case"embed":D$1("load",nt);break;case"video":case"audio":for(it=0;it<\/script>",et=et.removeChild(et.firstChild)):typeof nt.is=="string"?et=at.createElement(rt,{is:nt.is}):(et=at.createElement(rt),rt==="select"&&(at=et,nt.multiple?at.multiple=!0:nt.size&&(at.size=nt.size))):et=at.createElementNS(et,rt),et[Of]=tt,et[Pf]=nt,Aj(et,tt,!1,!1),tt.stateNode=et;e:{switch(at=vb(rt,nt),rt){case"dialog":D$1("cancel",et),D$1("close",et),it=nt;break;case"iframe":case"object":case"embed":D$1("load",et),it=nt;break;case"video":case"audio":for(it=0;itHj&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304)}else{if(!nt)if(et=Mh(at),et!==null){if(tt.flags|=128,nt=!0,rt=et.updateQueue,rt!==null&&(tt.updateQueue=rt,tt.flags|=4),Ej(st,!0),st.tail===null&&st.tailMode==="hidden"&&!at.alternate&&!I$2)return S$2(tt),null}else 2*B$2()-st.renderingStartTime>Hj&&rt!==1073741824&&(tt.flags|=128,nt=!0,Ej(st,!1),tt.lanes=4194304);st.isBackwards?(at.sibling=tt.child,tt.child=at):(rt=st.last,rt!==null?rt.sibling=at:tt.child=at,st.last=at)}return st.tail!==null?(tt=st.tail,st.rendering=tt,st.tail=tt.sibling,st.renderingStartTime=B$2(),tt.sibling=null,rt=M$2.current,G$2(M$2,nt?rt&1|2:rt&1),tt):(S$2(tt),null);case 22:case 23:return Ij(),nt=tt.memoizedState!==null,et!==null&&et.memoizedState!==null!==nt&&(tt.flags|=8192),nt&&tt.mode&1?gj&1073741824&&(S$2(tt),tt.subtreeFlags&6&&(tt.flags|=8192)):S$2(tt),null;case 24:return null;case 25:return null}throw Error(p$6(156,tt.tag))}function Jj(et,tt){switch(wg(tt),tt.tag){case 1:return Zf(tt.type)&&$f(),et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 3:return Jh(),E$2(Wf),E$2(H$2),Oh(),et=tt.flags,et&65536&&!(et&128)?(tt.flags=et&-65537|128,tt):null;case 5:return Lh(tt),null;case 13:if(E$2(M$2),et=tt.memoizedState,et!==null&&et.dehydrated!==null){if(tt.alternate===null)throw Error(p$6(340));Ig()}return et=tt.flags,et&65536?(tt.flags=et&-65537|128,tt):null;case 19:return E$2(M$2),null;case 4:return Jh(),null;case 10:return Rg(tt.type._context),null;case 22:case 23:return Ij(),null;case 24:return null;default:return null}}var Kj=!1,U$1=!1,Lj=typeof WeakSet=="function"?WeakSet:Set,V$1=null;function Mj(et,tt){var rt=et.ref;if(rt!==null)if(typeof rt=="function")try{rt(null)}catch(nt){W$7(et,tt,nt)}else rt.current=null}function Nj(et,tt,rt){try{rt()}catch(nt){W$7(et,tt,nt)}}var Oj=!1;function Pj(et,tt){if(Cf=dd,et=Me$1(),Ne$1(et)){if("selectionStart"in et)var rt={start:et.selectionStart,end:et.selectionEnd};else e:{rt=(rt=et.ownerDocument)&&rt.defaultView||window;var nt=rt.getSelection&&rt.getSelection();if(nt&&nt.rangeCount!==0){rt=nt.anchorNode;var it=nt.anchorOffset,st=nt.focusNode;nt=nt.focusOffset;try{rt.nodeType,st.nodeType}catch{rt=null;break e}var at=0,ot=-1,lt=-1,ut=0,dt=0,bt=et,gt=null;t:for(;;){for(var kt;bt!==rt||it!==0&&bt.nodeType!==3||(ot=at+it),bt!==st||nt!==0&&bt.nodeType!==3||(lt=at+nt),bt.nodeType===3&&(at+=bt.nodeValue.length),(kt=bt.firstChild)!==null;)gt=bt,bt=kt;for(;;){if(bt===et)break t;if(gt===rt&&++ut===it&&(ot=at),gt===st&&++dt===nt&&(lt=at),(kt=bt.nextSibling)!==null)break;bt=gt,gt=bt.parentNode}bt=kt}rt=ot===-1||lt===-1?null:{start:ot,end:lt}}else rt=null}rt=rt||{start:0,end:0}}else rt=null;for(Df={focusedElem:et,selectionRange:rt},dd=!1,V$1=tt;V$1!==null;)if(tt=V$1,et=tt.child,(tt.subtreeFlags&1028)!==0&&et!==null)et.return=tt,V$1=et;else for(;V$1!==null;){tt=V$1;try{var pt=tt.alternate;if(tt.flags&1024)switch(tt.tag){case 0:case 11:case 15:break;case 1:if(pt!==null){var yt=pt.memoizedProps,$t=pt.memoizedState,mt=tt.stateNode,wt=mt.getSnapshotBeforeUpdate(tt.elementType===tt.type?yt:Lg(tt.type,yt),$t);mt.__reactInternalSnapshotBeforeUpdate=wt}break;case 3:var St=tt.stateNode.containerInfo;St.nodeType===1?St.textContent="":St.nodeType===9&&St.documentElement&&St.removeChild(St.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(p$6(163))}}catch(Bt){W$7(tt,tt.return,Bt)}if(et=tt.sibling,et!==null){et.return=tt.return,V$1=et;break}V$1=tt.return}return pt=Oj,Oj=!1,pt}function Qj(et,tt,rt){var nt=tt.updateQueue;if(nt=nt!==null?nt.lastEffect:null,nt!==null){var it=nt=nt.next;do{if((it.tag&et)===et){var st=it.destroy;it.destroy=void 0,st!==void 0&&Nj(tt,rt,st)}it=it.next}while(it!==nt)}}function Rj(et,tt){if(tt=tt.updateQueue,tt=tt!==null?tt.lastEffect:null,tt!==null){var rt=tt=tt.next;do{if((rt.tag&et)===et){var nt=rt.create;rt.destroy=nt()}rt=rt.next}while(rt!==tt)}}function Sj(et){var tt=et.ref;if(tt!==null){var rt=et.stateNode;switch(et.tag){case 5:et=rt;break;default:et=rt}typeof tt=="function"?tt(et):tt.current=et}}function Tj(et){var tt=et.alternate;tt!==null&&(et.alternate=null,Tj(tt)),et.child=null,et.deletions=null,et.sibling=null,et.tag===5&&(tt=et.stateNode,tt!==null&&(delete tt[Of],delete tt[Pf],delete tt[of],delete tt[Qf],delete tt[Rf])),et.stateNode=null,et.return=null,et.dependencies=null,et.memoizedProps=null,et.memoizedState=null,et.pendingProps=null,et.stateNode=null,et.updateQueue=null}function Uj(et){return et.tag===5||et.tag===3||et.tag===4}function Vj(et){e:for(;;){for(;et.sibling===null;){if(et.return===null||Uj(et.return))return null;et=et.return}for(et.sibling.return=et.return,et=et.sibling;et.tag!==5&&et.tag!==6&&et.tag!==18;){if(et.flags&2||et.child===null||et.tag===4)continue e;et.child.return=et,et=et.child}if(!(et.flags&2))return et.stateNode}}function Wj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.nodeType===8?rt.parentNode.insertBefore(et,tt):rt.insertBefore(et,tt):(rt.nodeType===8?(tt=rt.parentNode,tt.insertBefore(et,rt)):(tt=rt,tt.appendChild(et)),rt=rt._reactRootContainer,rt!=null||tt.onclick!==null||(tt.onclick=Bf));else if(nt!==4&&(et=et.child,et!==null))for(Wj(et,tt,rt),et=et.sibling;et!==null;)Wj(et,tt,rt),et=et.sibling}function Xj(et,tt,rt){var nt=et.tag;if(nt===5||nt===6)et=et.stateNode,tt?rt.insertBefore(et,tt):rt.appendChild(et);else if(nt!==4&&(et=et.child,et!==null))for(Xj(et,tt,rt),et=et.sibling;et!==null;)Xj(et,tt,rt),et=et.sibling}var X$1=null,Yj=!1;function Zj(et,tt,rt){for(rt=rt.child;rt!==null;)ak(et,tt,rt),rt=rt.sibling}function ak(et,tt,rt){if(lc&&typeof lc.onCommitFiberUnmount=="function")try{lc.onCommitFiberUnmount(kc,rt)}catch{}switch(rt.tag){case 5:U$1||Mj(rt,tt);case 6:var nt=X$1,it=Yj;X$1=null,Zj(et,tt,rt),X$1=nt,Yj=it,X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?et.parentNode.removeChild(rt):et.removeChild(rt)):X$1.removeChild(rt.stateNode));break;case 18:X$1!==null&&(Yj?(et=X$1,rt=rt.stateNode,et.nodeType===8?Kf(et.parentNode,rt):et.nodeType===1&&Kf(et,rt),bd(et)):Kf(X$1,rt.stateNode));break;case 4:nt=X$1,it=Yj,X$1=rt.stateNode.containerInfo,Yj=!0,Zj(et,tt,rt),X$1=nt,Yj=it;break;case 0:case 11:case 14:case 15:if(!U$1&&(nt=rt.updateQueue,nt!==null&&(nt=nt.lastEffect,nt!==null))){it=nt=nt.next;do{var st=it,at=st.destroy;st=st.tag,at!==void 0&&(st&2||st&4)&&Nj(rt,tt,at),it=it.next}while(it!==nt)}Zj(et,tt,rt);break;case 1:if(!U$1&&(Mj(rt,tt),nt=rt.stateNode,typeof nt.componentWillUnmount=="function"))try{nt.props=rt.memoizedProps,nt.state=rt.memoizedState,nt.componentWillUnmount()}catch(ot){W$7(rt,tt,ot)}Zj(et,tt,rt);break;case 21:Zj(et,tt,rt);break;case 22:rt.mode&1?(U$1=(nt=U$1)||rt.memoizedState!==null,Zj(et,tt,rt),U$1=nt):Zj(et,tt,rt);break;default:Zj(et,tt,rt)}}function bk(et){var tt=et.updateQueue;if(tt!==null){et.updateQueue=null;var rt=et.stateNode;rt===null&&(rt=et.stateNode=new Lj),tt.forEach(function(nt){var it=ck.bind(null,et,nt);rt.has(nt)||(rt.add(nt),nt.then(it,it))})}}function dk(et,tt){var rt=tt.deletions;if(rt!==null)for(var nt=0;ntit&&(it=at),nt&=~st}if(nt=it,nt=B$2()-nt,nt=(120>nt?120:480>nt?480:1080>nt?1080:1920>nt?1920:3e3>nt?3e3:4320>nt?4320:1960*mk(nt/1960))-nt,10et?16:et,xk===null)var nt=!1;else{if(et=xk,xk=null,yk=0,K$6&6)throw Error(p$6(331));var it=K$6;for(K$6|=4,V$1=et.current;V$1!==null;){var st=V$1,at=st.child;if(V$1.flags&16){var ot=st.deletions;if(ot!==null){for(var lt=0;ltB$2()-gk?Lk(et,0):sk|=rt),Ek(et,tt)}function Zk(et,tt){tt===0&&(et.mode&1?(tt=sc,sc<<=1,!(sc&130023424)&&(sc=4194304)):tt=1);var rt=L$2();et=Zg(et,tt),et!==null&&(Ac(et,tt,rt),Ek(et,rt))}function vj(et){var tt=et.memoizedState,rt=0;tt!==null&&(rt=tt.retryLane),Zk(et,rt)}function ck(et,tt){var rt=0;switch(et.tag){case 13:var nt=et.stateNode,it=et.memoizedState;it!==null&&(rt=it.retryLane);break;case 19:nt=et.stateNode;break;default:throw Error(p$6(314))}nt!==null&&nt.delete(tt),Zk(et,rt)}var Wk;Wk=function(et,tt,rt){if(et!==null)if(et.memoizedProps!==tt.pendingProps||Wf.current)Ug=!0;else{if(!(et.lanes&rt)&&!(tt.flags&128))return Ug=!1,zj(et,tt,rt);Ug=!!(et.flags&131072)}else Ug=!1,I$2&&tt.flags&1048576&&ug(tt,ng,tt.index);switch(tt.lanes=0,tt.tag){case 2:var nt=tt.type;jj(et,tt),et=tt.pendingProps;var it=Yf(tt,H$2.current);Tg(tt,rt),it=Xh(null,tt,nt,et,it,rt);var st=bi();return tt.flags|=1,typeof it=="object"&&it!==null&&typeof it.render=="function"&&it.$$typeof===void 0?(tt.tag=1,tt.memoizedState=null,tt.updateQueue=null,Zf(nt)?(st=!0,cg(tt)):st=!1,tt.memoizedState=it.state!==null&&it.state!==void 0?it.state:null,ah(tt),it.updater=nh,tt.stateNode=it,it._reactInternals=tt,rh$1(tt,nt,et,rt),tt=kj(null,tt,nt,!0,st,rt)):(tt.tag=0,I$2&&st&&vg(tt),Yi(null,tt,it,rt),tt=tt.child),tt;case 16:nt=tt.elementType;e:{switch(jj(et,tt),et=tt.pendingProps,it=nt._init,nt=it(nt._payload),tt.type=nt,it=tt.tag=$k(nt),et=Lg(nt,et),it){case 0:tt=dj(null,tt,nt,et,rt);break e;case 1:tt=ij(null,tt,nt,et,rt);break e;case 11:tt=Zi(null,tt,nt,et,rt);break e;case 14:tt=aj(null,tt,nt,Lg(nt.type,et),rt);break e}throw Error(p$6(306,nt,""))}return tt;case 0:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),dj(et,tt,nt,it,rt);case 1:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),ij(et,tt,nt,it,rt);case 3:e:{if(lj(tt),et===null)throw Error(p$6(387));nt=tt.pendingProps,st=tt.memoizedState,it=st.element,bh(et,tt),gh(tt,nt,null,rt);var at=tt.memoizedState;if(nt=at.element,st.isDehydrated)if(st={element:nt,isDehydrated:!1,cache:at.cache,pendingSuspenseBoundaries:at.pendingSuspenseBoundaries,transitions:at.transitions},tt.updateQueue.baseState=st,tt.memoizedState=st,tt.flags&256){it=Ki(Error(p$6(423)),tt),tt=mj(et,tt,nt,rt,it);break e}else if(nt!==it){it=Ki(Error(p$6(424)),tt),tt=mj(et,tt,nt,rt,it);break e}else for(yg=Lf(tt.stateNode.containerInfo.firstChild),xg=tt,I$2=!0,zg=null,rt=Ch$1(tt,null,nt,rt),tt.child=rt;rt;)rt.flags=rt.flags&-3|4096,rt=rt.sibling;else{if(Ig(),nt===it){tt=$i(et,tt,rt);break e}Yi(et,tt,nt,rt)}tt=tt.child}return tt;case 5:return Kh$1(tt),et===null&&Eg(tt),nt=tt.type,it=tt.pendingProps,st=et!==null?et.memoizedProps:null,at=it.children,Ef(nt,it)?at=null:st!==null&&Ef(nt,st)&&(tt.flags|=32),hj(et,tt),Yi(et,tt,at,rt),tt.child;case 6:return et===null&&Eg(tt),null;case 13:return pj(et,tt,rt);case 4:return Ih(tt,tt.stateNode.containerInfo),nt=tt.pendingProps,et===null?tt.child=Bh(tt,null,nt,rt):Yi(et,tt,nt,rt),tt.child;case 11:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),Zi(et,tt,nt,it,rt);case 7:return Yi(et,tt,tt.pendingProps,rt),tt.child;case 8:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 12:return Yi(et,tt,tt.pendingProps.children,rt),tt.child;case 10:e:{if(nt=tt.type._context,it=tt.pendingProps,st=tt.memoizedProps,at=it.value,G$2(Mg,nt._currentValue),nt._currentValue=at,st!==null)if(He$1(st.value,at)){if(st.children===it.children&&!Wf.current){tt=$i(et,tt,rt);break e}}else for(st=tt.child,st!==null&&(st.return=tt);st!==null;){var ot=st.dependencies;if(ot!==null){at=st.child;for(var lt=ot.firstContext;lt!==null;){if(lt.context===nt){if(st.tag===1){lt=ch$1(-1,rt&-rt),lt.tag=2;var ut=st.updateQueue;if(ut!==null){ut=ut.shared;var dt=ut.pending;dt===null?lt.next=lt:(lt.next=dt.next,dt.next=lt),ut.pending=lt}}st.lanes|=rt,lt=st.alternate,lt!==null&&(lt.lanes|=rt),Sg(st.return,rt,tt),ot.lanes|=rt;break}lt=lt.next}}else if(st.tag===10)at=st.type===tt.type?null:st.child;else if(st.tag===18){if(at=st.return,at===null)throw Error(p$6(341));at.lanes|=rt,ot=at.alternate,ot!==null&&(ot.lanes|=rt),Sg(at,rt,tt),at=st.sibling}else at=st.child;if(at!==null)at.return=st;else for(at=st;at!==null;){if(at===tt){at=null;break}if(st=at.sibling,st!==null){st.return=at.return,at=st;break}at=at.return}st=at}Yi(et,tt,it.children,rt),tt=tt.child}return tt;case 9:return it=tt.type,nt=tt.pendingProps.children,Tg(tt,rt),it=Vg(it),nt=nt(it),tt.flags|=1,Yi(et,tt,nt,rt),tt.child;case 14:return nt=tt.type,it=Lg(nt,tt.pendingProps),it=Lg(nt.type,it),aj(et,tt,nt,it,rt);case 15:return cj(et,tt,tt.type,tt.pendingProps,rt);case 17:return nt=tt.type,it=tt.pendingProps,it=tt.elementType===nt?it:Lg(nt,it),jj(et,tt),tt.tag=1,Zf(nt)?(et=!0,cg(tt)):et=!1,Tg(tt,rt),ph(tt,nt,it),rh$1(tt,nt,it,rt),kj(null,tt,nt,!0,et,rt);case 19:return yj(et,tt,rt);case 22:return ej(et,tt,rt)}throw Error(p$6(156,tt.tag))};function Gk(et,tt){return ac(et,tt)}function al(et,tt,rt,nt){this.tag=et,this.key=rt,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=tt,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=nt,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bg$1(et,tt,rt,nt){return new al(et,tt,rt,nt)}function bj(et){return et=et.prototype,!(!et||!et.isReactComponent)}function $k(et){if(typeof et=="function")return bj(et)?1:0;if(et!=null){if(et=et.$$typeof,et===Da)return 11;if(et===Ga)return 14}return 2}function wh(et,tt){var rt=et.alternate;return rt===null?(rt=Bg$1(et.tag,tt,et.key,et.mode),rt.elementType=et.elementType,rt.type=et.type,rt.stateNode=et.stateNode,rt.alternate=et,et.alternate=rt):(rt.pendingProps=tt,rt.type=et.type,rt.flags=0,rt.subtreeFlags=0,rt.deletions=null),rt.flags=et.flags&14680064,rt.childLanes=et.childLanes,rt.lanes=et.lanes,rt.child=et.child,rt.memoizedProps=et.memoizedProps,rt.memoizedState=et.memoizedState,rt.updateQueue=et.updateQueue,tt=et.dependencies,rt.dependencies=tt===null?null:{lanes:tt.lanes,firstContext:tt.firstContext},rt.sibling=et.sibling,rt.index=et.index,rt.ref=et.ref,rt}function yh(et,tt,rt,nt,it,st){var at=2;if(nt=et,typeof et=="function")bj(et)&&(at=1);else if(typeof et=="string")at=5;else e:switch(et){case ya:return Ah(rt.children,it,st,tt);case za:at=8,it|=8;break;case Aa:return et=Bg$1(12,rt,tt,it|2),et.elementType=Aa,et.lanes=st,et;case Ea:return et=Bg$1(13,rt,tt,it),et.elementType=Ea,et.lanes=st,et;case Fa:return et=Bg$1(19,rt,tt,it),et.elementType=Fa,et.lanes=st,et;case Ia:return qj(rt,it,st,tt);default:if(typeof et=="object"&&et!==null)switch(et.$$typeof){case Ba:at=10;break e;case Ca:at=9;break e;case Da:at=11;break e;case Ga:at=14;break e;case Ha:at=16,nt=null;break e}throw Error(p$6(130,et==null?et:typeof et,""))}return tt=Bg$1(at,rt,tt,it),tt.elementType=et,tt.type=nt,tt.lanes=st,tt}function Ah(et,tt,rt,nt){return et=Bg$1(7,et,nt,tt),et.lanes=rt,et}function qj(et,tt,rt,nt){return et=Bg$1(22,et,nt,tt),et.elementType=Ia,et.lanes=rt,et.stateNode={isHidden:!1},et}function xh(et,tt,rt){return et=Bg$1(6,et,null,tt),et.lanes=rt,et}function zh(et,tt,rt){return tt=Bg$1(4,et.children!==null?et.children:[],et.key,tt),tt.lanes=rt,tt.stateNode={containerInfo:et.containerInfo,pendingChildren:null,implementation:et.implementation},tt}function bl(et,tt,rt,nt,it){this.tag=tt,this.containerInfo=et,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=zc(0),this.expirationTimes=zc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zc(0),this.identifierPrefix=nt,this.onRecoverableError=it,this.mutableSourceEagerHydrationData=null}function cl(et,tt,rt,nt,it,st,at,ot,lt){return et=new bl(et,tt,rt,ot,lt),tt===1?(tt=1,st===!0&&(tt|=8)):tt=0,st=Bg$1(3,null,null,tt),et.current=st,st.stateNode=et,st.memoizedState={element:nt,isDehydrated:rt,cache:null,transitions:null,pendingSuspenseBoundaries:null},ah(st),et}function dl(et,tt,rt){var nt=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE)}catch(et){console.error(et)}}checkDCE(),reactDom.exports=reactDom_production_min;var reactDomExports=reactDom.exports;const ReactDOM=getDefaultExportFromCjs(reactDomExports);var createRoot,m$5=reactDomExports;createRoot=client$1.createRoot=m$5.createRoot,client$1.hydrateRoot=m$5.hydrateRoot;const scriptRel="modulepreload",assetsURL=function(et){return"/"+et},seen={},__vitePreload=function(tt,rt,nt){if(!rt||rt.length===0)return tt();const it=document.getElementsByTagName("link");return Promise.all(rt.map(st=>{if(st=assetsURL(st),st in seen)return;seen[st]=!0;const at=st.endsWith(".css"),ot=at?'[rel="stylesheet"]':"";if(!!nt)for(let dt=it.length-1;dt>=0;dt--){const bt=it[dt];if(bt.href===st&&(!at||bt.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${st}"]${ot}`))return;const ut=document.createElement("link");if(ut.rel=at?"stylesheet":scriptRel,at||(ut.as="script",ut.crossOrigin=""),ut.href=st,document.head.appendChild(ut),at)return new Promise((dt,bt)=>{ut.addEventListener("load",dt),ut.addEventListener("error",()=>bt(new Error(`Unable to preload CSS for ${st}`)))})})).then(()=>tt()).catch(st=>{const at=new Event("vite:preloadError",{cancelable:!0});if(at.payload=st,window.dispatchEvent(at),!at.defaultPrevented)throw st})},reportWebVitals=et=>{et&&et instanceof Function&&__vitePreload(()=>import("./web-vitals-60d3425a.js"),[]).then(({getCLS:tt,getFID:rt,getFCP:nt,getLCP:it,getTTFB:st})=>{tt(et),rt(et),nt(et),it(et),st(et)})};/** * @remix-run/router v1.16.1 * * Copyright (c) Remix Software Inc. @@ -51,7 +51,7 @@ Error generating stack: `+st.message+` * LICENSE.md file in the root directory of this source tree. * * @license MIT - */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt"u")throw new Error(tt)}function warning(et,tt){if(!et){typeof console<"u"&&console.warn(tt);try{throw new Error(tt)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(et,tt){return{usr:et.state,key:et.key,idx:tt}}function createLocation(et,tt,rt,nt){return rt===void 0&&(rt=null),_extends$2({pathname:typeof et=="string"?et:et.pathname,search:"",hash:""},typeof tt=="string"?parsePath(tt):tt,{state:rt,key:tt&&tt.key||nt||createKey()})}function createPath(et){let{pathname:tt="/",search:rt="",hash:nt=""}=et;return rt&&rt!=="?"&&(tt+=rt.charAt(0)==="?"?rt:"?"+rt),nt&&nt!=="#"&&(tt+=nt.charAt(0)==="#"?nt:"#"+nt),tt}function parsePath(et){let tt={};if(et){let rt=et.indexOf("#");rt>=0&&(tt.hash=et.substr(rt),et=et.substr(0,rt));let nt=et.indexOf("?");nt>=0&&(tt.search=et.substr(nt),et=et.substr(0,nt)),et&&(tt.pathname=et)}return tt}function getUrlBasedHistory(et,tt,rt,nt){nt===void 0&&(nt={});let{window:it=document.defaultView,v5Compat:st=!1}=nt,at=it.history,ot=Action.Pop,lt=null,ut=dt();ut==null&&(ut=0,at.replaceState(_extends$2({},at.state,{idx:ut}),""));function dt(){return(at.state||{idx:null}).idx}function bt(){ot=Action.Pop;let $t=dt(),mt=$t==null?null:$t-ut;ut=$t,lt&<({action:ot,location:yt.location,delta:mt})}function gt($t,mt){ot=Action.Push;let wt=createLocation(yt.location,$t,mt);rt&&rt(wt,$t),ut=dt()+1;let St=getHistoryState(wt,ut),Bt=yt.createHref(wt);try{at.pushState(St,"",Bt)}catch(Ft){if(Ft instanceof DOMException&&Ft.name==="DataCloneError")throw Ft;it.location.assign(Bt)}st&<&<({action:ot,location:yt.location,delta:1})}function kt($t,mt){ot=Action.Replace;let wt=createLocation(yt.location,$t,mt);rt&&rt(wt,$t),ut=dt();let St=getHistoryState(wt,ut),Bt=yt.createHref(wt);at.replaceState(St,"",Bt),st&<&<({action:ot,location:yt.location,delta:0})}function pt($t){let mt=it.location.origin!=="null"?it.location.origin:it.location.href,wt=typeof $t=="string"?$t:createPath($t);return wt=wt.replace(/ $/,"%20"),invariant$1(mt,"No window.location.(origin|href) available to create URL for href: "+wt),new URL(wt,mt)}let yt={get action(){return ot},get location(){return et(it,at)},listen($t){if(lt)throw new Error("A history only accepts one active listener");return it.addEventListener(PopStateEventType,bt),lt=$t,()=>{it.removeEventListener(PopStateEventType,bt),lt=null}},createHref($t){return tt(it,$t)},createURL:pt,encodeLocation($t){let mt=pt($t);return{pathname:mt.pathname,search:mt.search,hash:mt.hash}},push:gt,replace:kt,go($t){return at.go($t)}};return yt}var ResultType;(function(et){et.data="data",et.deferred="deferred",et.redirect="redirect",et.error="error"})(ResultType||(ResultType={}));function matchRoutes(et,tt,rt){rt===void 0&&(rt="/");let nt=typeof tt=="string"?parsePath(tt):tt,it=stripBasename(nt.pathname||"/",rt);if(it==null)return null;let st=flattenRoutes(et);rankRouteBranches(st);let at=null;for(let ot=0;at==null&&ot{let lt={relativePath:ot===void 0?st.path||"":ot,caseSensitive:st.caseSensitive===!0,childrenIndex:at,route:st};lt.relativePath.startsWith("/")&&(invariant$1(lt.relativePath.startsWith(nt),'Absolute route path "'+lt.relativePath+'" nested under path '+('"'+nt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),lt.relativePath=lt.relativePath.slice(nt.length));let ut=joinPaths([nt,lt.relativePath]),dt=rt.concat(lt);st.children&&st.children.length>0&&(invariant$1(st.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+ut+'".')),flattenRoutes(st.children,tt,dt,ut)),!(st.path==null&&!st.index)&&tt.push({path:ut,score:computeScore(ut,st.index),routesMeta:dt})};return et.forEach((st,at)=>{var ot;if(st.path===""||!((ot=st.path)!=null&&ot.includes("?")))it(st,at);else for(let lt of explodeOptionalSegments(st.path))it(st,at,lt)}),tt}function explodeOptionalSegments(et){let tt=et.split("/");if(tt.length===0)return[];let[rt,...nt]=tt,it=rt.endsWith("?"),st=rt.replace(/\?$/,"");if(nt.length===0)return it?[st,""]:[st];let at=explodeOptionalSegments(nt.join("/")),ot=[];return ot.push(...at.map(lt=>lt===""?st:[st,lt].join("/"))),it&&ot.push(...at),ot.map(lt=>et.startsWith("/")&<===""?"/":lt)}function rankRouteBranches(et){et.sort((tt,rt)=>tt.score!==rt.score?rt.score-tt.score:compareIndexes(tt.routesMeta.map(nt=>nt.childrenIndex),rt.routesMeta.map(nt=>nt.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=et=>et==="*";function computeScore(et,tt){let rt=et.split("/"),nt=rt.length;return rt.some(isSplat)&&(nt+=splatPenalty),tt&&(nt+=indexRouteValue),rt.filter(it=>!isSplat(it)).reduce((it,st)=>it+(paramRe.test(st)?dynamicSegmentValue:st===""?emptySegmentValue:staticSegmentValue),nt)}function compareIndexes(et,tt){return et.length===tt.length&&et.slice(0,-1).every((nt,it)=>nt===tt[it])?et[et.length-1]-tt[tt.length-1]:0}function matchRouteBranch(et,tt){let{routesMeta:rt}=et,nt={},it="/",st=[];for(let at=0;at{let{paramName:gt,isOptional:kt}=dt;if(gt==="*"){let yt=ot[bt]||"";at=st.slice(0,st.length-yt.length).replace(/(.)\/+$/,"$1")}const pt=ot[bt];return kt&&!pt?ut[gt]=void 0:ut[gt]=(pt||"").replace(/%2F/g,"/"),ut},{}),pathname:st,pathnameBase:at,pattern:et}}function compilePath(et,tt,rt){tt===void 0&&(tt=!1),rt===void 0&&(rt=!0),warning(et==="*"||!et.endsWith("*")||et.endsWith("/*"),'Route path "'+et+'" will be treated as if it were '+('"'+et.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+et.replace(/\*$/,"/*")+'".'));let nt=[],it="^"+et.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(at,ot,lt)=>(nt.push({paramName:ot,isOptional:lt!=null}),lt?"/?([^\\/]+)?":"/([^\\/]+)"));return et.endsWith("*")?(nt.push({paramName:"*"}),it+=et==="*"||et==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):rt?it+="\\/*$":et!==""&&et!=="/"&&(it+="(?:(?=\\/|$))"),[new RegExp(it,tt?void 0:"i"),nt]}function decodePath(et){try{return et.split("/").map(tt=>decodeURIComponent(tt).replace(/\//g,"%2F")).join("/")}catch(tt){return warning(!1,'The URL path "'+et+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+tt+").")),et}}function stripBasename(et,tt){if(tt==="/")return et;if(!et.toLowerCase().startsWith(tt.toLowerCase()))return null;let rt=tt.endsWith("/")?tt.length-1:tt.length,nt=et.charAt(rt);return nt&&nt!=="/"?null:et.slice(rt)||"/"}function resolvePath(et,tt){tt===void 0&&(tt="/");let{pathname:rt,search:nt="",hash:it=""}=typeof et=="string"?parsePath(et):et;return{pathname:rt?rt.startsWith("/")?rt:resolvePathname(rt,tt):tt,search:normalizeSearch(nt),hash:normalizeHash(it)}}function resolvePathname(et,tt){let rt=tt.replace(/\/+$/,"").split("/");return et.split("/").forEach(it=>{it===".."?rt.length>1&&rt.pop():it!=="."&&rt.push(it)}),rt.length>1?rt.join("/"):"/"}function getInvalidPathError(et,tt,rt,nt){return"Cannot include a '"+et+"' character in a manually specified "+("`to."+tt+"` field ["+JSON.stringify(nt)+"]. Please separate it out to the ")+("`to."+rt+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(et){return et.filter((tt,rt)=>rt===0||tt.route.path&&tt.route.path.length>0)}function getResolveToMatches(et,tt){let rt=getPathContributingMatches(et);return tt?rt.map((nt,it)=>it===et.length-1?nt.pathname:nt.pathnameBase):rt.map(nt=>nt.pathnameBase)}function resolveTo(et,tt,rt,nt){nt===void 0&&(nt=!1);let it;typeof et=="string"?it=parsePath(et):(it=_extends$2({},et),invariant$1(!it.pathname||!it.pathname.includes("?"),getInvalidPathError("?","pathname","search",it)),invariant$1(!it.pathname||!it.pathname.includes("#"),getInvalidPathError("#","pathname","hash",it)),invariant$1(!it.search||!it.search.includes("#"),getInvalidPathError("#","search","hash",it)));let st=et===""||it.pathname==="",at=st?"/":it.pathname,ot;if(at==null)ot=rt;else{let bt=tt.length-1;if(!nt&&at.startsWith("..")){let gt=at.split("/");for(;gt[0]==="..";)gt.shift(),bt-=1;it.pathname=gt.join("/")}ot=bt>=0?tt[bt]:"/"}let lt=resolvePath(it,ot),ut=at&&at!=="/"&&at.endsWith("/"),dt=(st||at===".")&&rt.endsWith("/");return!lt.pathname.endsWith("/")&&(ut||dt)&&(lt.pathname+="/"),lt}const joinPaths=et=>et.join("/").replace(/\/\/+/g,"/"),normalizePathname=et=>et.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=et=>!et||et==="?"?"":et.startsWith("?")?et:"?"+et,normalizeHash=et=>!et||et==="#"?"":et.startsWith("#")?et:"#"+et;function isRouteErrorResponse(et){return et!=null&&typeof et.status=="number"&&typeof et.statusText=="string"&&typeof et.internal=="boolean"&&"data"in et}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** + */function _extends$2(){return _extends$2=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt"u")throw new Error(tt)}function warning(et,tt){if(!et){typeof console<"u"&&console.warn(tt);try{throw new Error(tt)}catch{}}}function createKey(){return Math.random().toString(36).substr(2,8)}function getHistoryState(et,tt){return{usr:et.state,key:et.key,idx:tt}}function createLocation(et,tt,rt,nt){return rt===void 0&&(rt=null),_extends$2({pathname:typeof et=="string"?et:et.pathname,search:"",hash:""},typeof tt=="string"?parsePath(tt):tt,{state:rt,key:tt&&tt.key||nt||createKey()})}function createPath(et){let{pathname:tt="/",search:rt="",hash:nt=""}=et;return rt&&rt!=="?"&&(tt+=rt.charAt(0)==="?"?rt:"?"+rt),nt&&nt!=="#"&&(tt+=nt.charAt(0)==="#"?nt:"#"+nt),tt}function parsePath(et){let tt={};if(et){let rt=et.indexOf("#");rt>=0&&(tt.hash=et.substr(rt),et=et.substr(0,rt));let nt=et.indexOf("?");nt>=0&&(tt.search=et.substr(nt),et=et.substr(0,nt)),et&&(tt.pathname=et)}return tt}function getUrlBasedHistory(et,tt,rt,nt){nt===void 0&&(nt={});let{window:it=document.defaultView,v5Compat:st=!1}=nt,at=it.history,ot=Action.Pop,lt=null,ut=dt();ut==null&&(ut=0,at.replaceState(_extends$2({},at.state,{idx:ut}),""));function dt(){return(at.state||{idx:null}).idx}function bt(){ot=Action.Pop;let $t=dt(),mt=$t==null?null:$t-ut;ut=$t,lt&<({action:ot,location:yt.location,delta:mt})}function gt($t,mt){ot=Action.Push;let wt=createLocation(yt.location,$t,mt);rt&&rt(wt,$t),ut=dt()+1;let St=getHistoryState(wt,ut),Bt=yt.createHref(wt);try{at.pushState(St,"",Bt)}catch(Ot){if(Ot instanceof DOMException&&Ot.name==="DataCloneError")throw Ot;it.location.assign(Bt)}st&<&<({action:ot,location:yt.location,delta:1})}function kt($t,mt){ot=Action.Replace;let wt=createLocation(yt.location,$t,mt);rt&&rt(wt,$t),ut=dt();let St=getHistoryState(wt,ut),Bt=yt.createHref(wt);at.replaceState(St,"",Bt),st&<&<({action:ot,location:yt.location,delta:0})}function pt($t){let mt=it.location.origin!=="null"?it.location.origin:it.location.href,wt=typeof $t=="string"?$t:createPath($t);return wt=wt.replace(/ $/,"%20"),invariant$1(mt,"No window.location.(origin|href) available to create URL for href: "+wt),new URL(wt,mt)}let yt={get action(){return ot},get location(){return et(it,at)},listen($t){if(lt)throw new Error("A history only accepts one active listener");return it.addEventListener(PopStateEventType,bt),lt=$t,()=>{it.removeEventListener(PopStateEventType,bt),lt=null}},createHref($t){return tt(it,$t)},createURL:pt,encodeLocation($t){let mt=pt($t);return{pathname:mt.pathname,search:mt.search,hash:mt.hash}},push:gt,replace:kt,go($t){return at.go($t)}};return yt}var ResultType;(function(et){et.data="data",et.deferred="deferred",et.redirect="redirect",et.error="error"})(ResultType||(ResultType={}));function matchRoutes(et,tt,rt){rt===void 0&&(rt="/");let nt=typeof tt=="string"?parsePath(tt):tt,it=stripBasename(nt.pathname||"/",rt);if(it==null)return null;let st=flattenRoutes(et);rankRouteBranches(st);let at=null;for(let ot=0;at==null&&ot{let lt={relativePath:ot===void 0?st.path||"":ot,caseSensitive:st.caseSensitive===!0,childrenIndex:at,route:st};lt.relativePath.startsWith("/")&&(invariant$1(lt.relativePath.startsWith(nt),'Absolute route path "'+lt.relativePath+'" nested under path '+('"'+nt+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),lt.relativePath=lt.relativePath.slice(nt.length));let ut=joinPaths([nt,lt.relativePath]),dt=rt.concat(lt);st.children&&st.children.length>0&&(invariant$1(st.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+ut+'".')),flattenRoutes(st.children,tt,dt,ut)),!(st.path==null&&!st.index)&&tt.push({path:ut,score:computeScore(ut,st.index),routesMeta:dt})};return et.forEach((st,at)=>{var ot;if(st.path===""||!((ot=st.path)!=null&&ot.includes("?")))it(st,at);else for(let lt of explodeOptionalSegments(st.path))it(st,at,lt)}),tt}function explodeOptionalSegments(et){let tt=et.split("/");if(tt.length===0)return[];let[rt,...nt]=tt,it=rt.endsWith("?"),st=rt.replace(/\?$/,"");if(nt.length===0)return it?[st,""]:[st];let at=explodeOptionalSegments(nt.join("/")),ot=[];return ot.push(...at.map(lt=>lt===""?st:[st,lt].join("/"))),it&&ot.push(...at),ot.map(lt=>et.startsWith("/")&<===""?"/":lt)}function rankRouteBranches(et){et.sort((tt,rt)=>tt.score!==rt.score?rt.score-tt.score:compareIndexes(tt.routesMeta.map(nt=>nt.childrenIndex),rt.routesMeta.map(nt=>nt.childrenIndex)))}const paramRe=/^:[\w-]+$/,dynamicSegmentValue=3,indexRouteValue=2,emptySegmentValue=1,staticSegmentValue=10,splatPenalty=-2,isSplat=et=>et==="*";function computeScore(et,tt){let rt=et.split("/"),nt=rt.length;return rt.some(isSplat)&&(nt+=splatPenalty),tt&&(nt+=indexRouteValue),rt.filter(it=>!isSplat(it)).reduce((it,st)=>it+(paramRe.test(st)?dynamicSegmentValue:st===""?emptySegmentValue:staticSegmentValue),nt)}function compareIndexes(et,tt){return et.length===tt.length&&et.slice(0,-1).every((nt,it)=>nt===tt[it])?et[et.length-1]-tt[tt.length-1]:0}function matchRouteBranch(et,tt){let{routesMeta:rt}=et,nt={},it="/",st=[];for(let at=0;at{let{paramName:gt,isOptional:kt}=dt;if(gt==="*"){let yt=ot[bt]||"";at=st.slice(0,st.length-yt.length).replace(/(.)\/+$/,"$1")}const pt=ot[bt];return kt&&!pt?ut[gt]=void 0:ut[gt]=(pt||"").replace(/%2F/g,"/"),ut},{}),pathname:st,pathnameBase:at,pattern:et}}function compilePath(et,tt,rt){tt===void 0&&(tt=!1),rt===void 0&&(rt=!0),warning(et==="*"||!et.endsWith("*")||et.endsWith("/*"),'Route path "'+et+'" will be treated as if it were '+('"'+et.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+et.replace(/\*$/,"/*")+'".'));let nt=[],it="^"+et.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(at,ot,lt)=>(nt.push({paramName:ot,isOptional:lt!=null}),lt?"/?([^\\/]+)?":"/([^\\/]+)"));return et.endsWith("*")?(nt.push({paramName:"*"}),it+=et==="*"||et==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):rt?it+="\\/*$":et!==""&&et!=="/"&&(it+="(?:(?=\\/|$))"),[new RegExp(it,tt?void 0:"i"),nt]}function decodePath(et){try{return et.split("/").map(tt=>decodeURIComponent(tt).replace(/\//g,"%2F")).join("/")}catch(tt){return warning(!1,'The URL path "'+et+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+tt+").")),et}}function stripBasename(et,tt){if(tt==="/")return et;if(!et.toLowerCase().startsWith(tt.toLowerCase()))return null;let rt=tt.endsWith("/")?tt.length-1:tt.length,nt=et.charAt(rt);return nt&&nt!=="/"?null:et.slice(rt)||"/"}function resolvePath(et,tt){tt===void 0&&(tt="/");let{pathname:rt,search:nt="",hash:it=""}=typeof et=="string"?parsePath(et):et;return{pathname:rt?rt.startsWith("/")?rt:resolvePathname(rt,tt):tt,search:normalizeSearch(nt),hash:normalizeHash(it)}}function resolvePathname(et,tt){let rt=tt.replace(/\/+$/,"").split("/");return et.split("/").forEach(it=>{it===".."?rt.length>1&&rt.pop():it!=="."&&rt.push(it)}),rt.length>1?rt.join("/"):"/"}function getInvalidPathError(et,tt,rt,nt){return"Cannot include a '"+et+"' character in a manually specified "+("`to."+tt+"` field ["+JSON.stringify(nt)+"]. Please separate it out to the ")+("`to."+rt+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function getPathContributingMatches(et){return et.filter((tt,rt)=>rt===0||tt.route.path&&tt.route.path.length>0)}function getResolveToMatches(et,tt){let rt=getPathContributingMatches(et);return tt?rt.map((nt,it)=>it===et.length-1?nt.pathname:nt.pathnameBase):rt.map(nt=>nt.pathnameBase)}function resolveTo(et,tt,rt,nt){nt===void 0&&(nt=!1);let it;typeof et=="string"?it=parsePath(et):(it=_extends$2({},et),invariant$1(!it.pathname||!it.pathname.includes("?"),getInvalidPathError("?","pathname","search",it)),invariant$1(!it.pathname||!it.pathname.includes("#"),getInvalidPathError("#","pathname","hash",it)),invariant$1(!it.search||!it.search.includes("#"),getInvalidPathError("#","search","hash",it)));let st=et===""||it.pathname==="",at=st?"/":it.pathname,ot;if(at==null)ot=rt;else{let bt=tt.length-1;if(!nt&&at.startsWith("..")){let gt=at.split("/");for(;gt[0]==="..";)gt.shift(),bt-=1;it.pathname=gt.join("/")}ot=bt>=0?tt[bt]:"/"}let lt=resolvePath(it,ot),ut=at&&at!=="/"&&at.endsWith("/"),dt=(st||at===".")&&rt.endsWith("/");return!lt.pathname.endsWith("/")&&(ut||dt)&&(lt.pathname+="/"),lt}const joinPaths=et=>et.join("/").replace(/\/\/+/g,"/"),normalizePathname=et=>et.replace(/\/+$/,"").replace(/^\/*/,"/"),normalizeSearch=et=>!et||et==="?"?"":et.startsWith("?")?et:"?"+et,normalizeHash=et=>!et||et==="#"?"":et.startsWith("#")?et:"#"+et;function isRouteErrorResponse(et){return et!=null&&typeof et.status=="number"&&typeof et.statusText=="string"&&typeof et.internal=="boolean"&&"data"in et}const validMutationMethodsArr=["post","put","patch","delete"];new Set(validMutationMethodsArr);const validRequestMethodsArr=["get",...validMutationMethodsArr];new Set(validRequestMethodsArr);/** * React Router v6.23.1 * * Copyright (c) Remix Software Inc. @@ -85,9 +85,9 @@ hooks.version="2.29.4";setHookCallback(createLocal);hooks.fn=proto$1;hooks.min=m * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */lodash.exports;(function(et,tt){(function(){var rt,nt="4.17.21",it=200,st="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",at="Expected a function",ot="Invalid `variable` option passed into `_.template`",lt="__lodash_hash_undefined__",ut=500,dt="__lodash_placeholder__",bt=1,gt=2,kt=4,pt=1,yt=2,$t=1,mt=2,wt=4,St=8,Bt=16,Ft=32,Lt=64,zt=128,Ht=256,Wt=512,lr=30,qt="...",Ot=800,Mt=16,ht=1,Et=2,Tt=3,Rt=1/0,At=9007199254740991,Pt=17976931348623157e292,It=0/0,Ct=4294967295,xt=Ct-1,Dt=Ct>>>1,tr=[["ary",zt],["bind",$t],["bindKey",mt],["curry",St],["curryRight",Bt],["flip",Wt],["partial",Ft],["partialRight",Lt],["rearg",Ht]],pr="[object Arguments]",Kt="[object Array]",Qt="[object AsyncFunction]",Zt="[object Boolean]",ur="[object Date]",_r="[object DOMException]",er="[object Error]",Jt="[object Function]",Ar="[object GeneratorFunction]",Er="[object Map]",Dr="[object Number]",Xr="[object Null]",Vr="[object Object]",wr="[object Promise]",br="[object Proxy]",or="[object RegExp]",xr="[object Set]",Pr="[object String]",Or="[object Symbol]",rr="[object Undefined]",gr="[object WeakMap]",Ir="[object WeakSet]",Yt="[object ArrayBuffer]",Ut="[object DataView]",Vt="[object Float32Array]",ir="[object Float64Array]",kr="[object Int8Array]",$r="[object Int16Array]",Br="[object Int32Array]",an="[object Uint8Array]",ln="[object Uint8ClampedArray]",rn="[object Uint16Array]",kn="[object Uint32Array]",fn=/\b__p \+= '';/g,gn=/\b(__p \+=) '' \+/g,fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ln=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,hs=RegExp(Ln.source),Cn=RegExp(En.source),xn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,_n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ls=/^\w*$/,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dn=/[\\^$.*+?()[\]{}|]/g,cs=RegExp(dn.source),Xt=/^\s+/,ar=/\s/,cr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jt=/\{\n\/\* \[wrapped with (.+)\] \*/,dr=/,? & /,Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cr=/[()=,{}\[\]\/\s]/,Nr=/\\(\\)?/g,Yr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tn=/\w*$/,qr=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,hn=/^\[object .+?Constructor\]$/,Tn=/^0o[0-7]+$/i,An=/^(?:0|[1-9]\d*)$/,Rn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pn=/($^)/,In=/['\n\r\u2028\u2029\\]/g,$n="\\ud800-\\udfff",Bn="\\u0300-\\u036f",pn="\\ufe20-\\ufe2f",wn="\\u20d0-\\u20ff",un=Bn+pn+wn,yn="\\u2700-\\u27bf",mn="a-z\\xdf-\\xf6\\xf8-\\xff",cn="\\xac\\xb1\\xd7\\xf7",Ur="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jr="\\u2000-\\u206f",en=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gr="A-Z\\xc0-\\xd6\\xd8-\\xde",Zr="\\ufe0e\\ufe0f",sn=cn+Ur+jr+en,On="['’]",zn="["+$n+"]",Gn="["+sn+"]",Hn="["+un+"]",Tr="\\d+",Yn="["+yn+"]",es="["+mn+"]",ts="[^"+$n+sn+Tr+yn+mn+Gr+"]",Wn="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Hn+"|"+Wn+")",Qn="[^"+$n+"]",vs="(?:\\ud83c[\\udde6-\\uddff]){2}",os="[\\ud800-\\udbff][\\udc00-\\udfff]",ps="["+Gr+"]",bs="\\u200d",xs="(?:"+es+"|"+ts+")",Ss="(?:"+ps+"|"+ts+")",As="(?:"+On+"(?:d|ll|m|re|s|t|ve))?",Ps="(?:"+On+"(?:D|LL|M|RE|S|T|VE))?",Is=rs+"?",$u="["+Zr+"]?",Lp="(?:"+bs+"(?:"+[Qn,vs,os].join("|")+")"+$u+Is+")*",Dp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Up="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tu=$u+Is+Lp,jp="(?:"+[Yn,vs,os].join("|")+")"+Tu,Vp="(?:"+[Qn+Hn+"?",Hn,vs,os,zn].join("|")+")",Hp=RegExp(On,"g"),zp=RegExp(Hn,"g"),X0=RegExp(Wn+"(?="+Wn+")|"+Vp+Tu,"g"),Gp=RegExp([ps+"?"+es+"+"+As+"(?="+[Gn,ps,"$"].join("|")+")",Ss+"+"+Ps+"(?="+[Gn,ps+xs,"$"].join("|")+")",ps+"?"+xs+"+"+As,ps+"+"+Ps,Up,Dp,Tr,jp].join("|"),"g"),Wp=RegExp("["+bs+$n+un+Zr+"]"),qp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yp=-1,ws={};ws[Vt]=ws[ir]=ws[kr]=ws[$r]=ws[Br]=ws[an]=ws[ln]=ws[rn]=ws[kn]=!0,ws[pr]=ws[Kt]=ws[Yt]=ws[Zt]=ws[Ut]=ws[ur]=ws[er]=ws[Jt]=ws[Er]=ws[Dr]=ws[Vr]=ws[or]=ws[xr]=ws[Pr]=ws[gr]=!1;var gs={};gs[pr]=gs[Kt]=gs[Yt]=gs[Ut]=gs[Zt]=gs[ur]=gs[Vt]=gs[ir]=gs[kr]=gs[$r]=gs[Br]=gs[Er]=gs[Dr]=gs[Vr]=gs[or]=gs[xr]=gs[Pr]=gs[Or]=gs[an]=gs[ln]=gs[rn]=gs[kn]=!0,gs[er]=gs[Jt]=gs[gr]=!1;var Xp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zp={"&":"&","<":"<",">":">",'"':""","'":"'"},Jp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ey=parseFloat,ty=parseInt,Au=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ry=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Au||ry||Function("return this")(),Z0=tt&&!tt.nodeType&&tt,$o=Z0&&!0&&et&&!et.nodeType&&et,Pu=$o&&$o.exports===Z0,J0=Pu&&Au.process,Zs=function(){try{var Fr=$o&&$o.require&&$o.require("util").types;return Fr||J0&&J0.binding&&J0.binding("util")}catch{}}(),Iu=Zs&&Zs.isArrayBuffer,Bu=Zs&&Zs.isDate,Mu=Zs&&Zs.isMap,Cu=Zs&&Zs.isRegExp,Ru=Zs&&Zs.isSet,Ou=Zs&&Zs.isTypedArray;function Gs(Fr,Wr,Hr){switch(Hr.length){case 0:return Fr.call(Wr);case 1:return Fr.call(Wr,Hr[0]);case 2:return Fr.call(Wr,Hr[0],Hr[1]);case 3:return Fr.call(Wr,Hr[0],Hr[1],Hr[2])}return Fr.apply(Wr,Hr)}function ny(Fr,Wr,Hr,Sn){for(var qn=-1,us=Fr==null?0:Fr.length;++qn-1}function Q0(Fr,Wr,Hr){for(var Sn=-1,qn=Fr==null?0:Fr.length;++Sn-1;);return Hr}function Hu(Fr,Wr){for(var Hr=Fr.length;Hr--&&Oo(Wr,Fr[Hr],0)>-1;);return Hr}function hy(Fr,Wr){for(var Hr=Fr.length,Sn=0;Hr--;)Fr[Hr]===Wr&&++Sn;return Sn}var dy=_l(Xp),py=_l(Zp);function yy(Fr){return"\\"+Qp[Fr]}function my(Fr,Wr){return Fr==null?rt:Fr[Wr]}function Fo(Fr){return Wp.test(Fr)}function gy(Fr){return qp.test(Fr)}function vy(Fr){for(var Wr,Hr=[];!(Wr=Fr.next()).done;)Hr.push(Wr.value);return Hr}function Tl(Fr){var Wr=-1,Hr=Array(Fr.size);return Fr.forEach(function(Sn,qn){Hr[++Wr]=[qn,Sn]}),Hr}function zu(Fr,Wr){return function(Hr){return Fr(Wr(Hr))}}function bo(Fr,Wr){for(var Hr=-1,Sn=Fr.length,qn=0,us=[];++Hr-1}function s2(ct,vt){var Nt=this.__data__,Gt=T0(Nt,ct);return Gt<0?(++this.size,Nt.push([ct,vt])):Nt[Gt][1]=vt,this}oo.prototype.clear=t2,oo.prototype.delete=r2,oo.prototype.get=n2,oo.prototype.has=i2,oo.prototype.set=s2;function fo(ct){var vt=-1,Nt=ct==null?0:ct.length;for(this.clear();++vt=vt?ct:vt)),ct}function ga(ct,vt,Nt,Gt,nr,vr){var Sr,Mr=vt&bt,Lr=vt>,Jr=vt&kt;if(Nt&&(Sr=nr?Nt(ct,Gt,nr,vr):Nt(ct)),Sr!==rt)return Sr;if(!ks(ct))return ct;var Qr=Kn(ct);if(Qr){if(Sr=cm(ct),!Mr)return js(ct,Sr)}else{var nn=Ns(ct),vn=nn==Jt||nn==Ar;if(So(ct))return $1(ct,Mr);if(nn==Vr||nn==pr||vn&&!nr){if(Sr=Lr||vn?{}:G1(ct),!Mr)return Lr?J2(ct,w2(Sr,ct)):Z2(ct,t1(Sr,ct))}else{if(!gs[nn])return nr?ct:{};Sr=um(ct,nn,Mr)}}vr||(vr=new eo);var Mn=vr.get(ct);if(Mn)return Mn;vr.set(ct,Sr),wp(ct)?ct.forEach(function(Un){Sr.add(ga(Un,vt,Nt,Un,ct,vr))}):bp(ct)&&ct.forEach(function(Un,_i){Sr.set(_i,ga(Un,vt,Nt,_i,ct,vr))});var Dn=Jr?Lr?ru:tu:Lr?Hs:Cs,Zn=Qr?rt:Dn(ct);return Js(Zn||ct,function(Un,_i){Zn&&(_i=Un,Un=ct[_i]),t0(Sr,_i,ga(Un,vt,Nt,_i,ct,vr))}),Sr}function _2(ct){var vt=Cs(ct);return function(Nt){return r1(Nt,ct,vt)}}function r1(ct,vt,Nt){var Gt=Nt.length;if(ct==null)return!Gt;for(ct=ms(ct);Gt--;){var nr=Nt[Gt],vr=vt[nr],Sr=ct[nr];if(Sr===rt&&!(nr in ct)||!vr(Sr))return!1}return!0}function n1(ct,vt,Nt){if(typeof ct!="function")throw new Qs(at);return f0(function(){ct.apply(rt,Nt)},vt)}function r0(ct,vt,Nt,Gt){var nr=-1,vr=c0,Sr=!0,Mr=ct.length,Lr=[],Jr=vt.length;if(!Mr)return Lr;Nt&&(vt=_s(vt,Ws(Nt))),Gt?(vr=Q0,Sr=!1):vt.length>=it&&(vr=Yo,Sr=!1,vt=new Po(vt));e:for(;++nrnr?0:nr+Nt),Gt=Gt===rt||Gt>nr?nr:Xn(Gt),Gt<0&&(Gt+=nr),Gt=Nt>Gt?0:kp(Gt);Nt0&&Nt(Mr)?vt>1?Os(Mr,vt-1,Nt,Gt,nr):vo(nr,Mr):Gt||(nr[nr.length]=Mr)}return nr}var Rl=M1(),a1=M1(!0);function io(ct,vt){return ct&&Rl(ct,vt,Cs)}function Ol(ct,vt){return ct&&a1(ct,vt,Cs)}function P0(ct,vt){return go(vt,function(Nt){return po(ct[Nt])})}function Bo(ct,vt){vt=ko(vt,ct);for(var Nt=0,Gt=vt.length;ct!=null&&Ntvt}function S2(ct,vt){return ct!=null&&ys.call(ct,vt)}function $2(ct,vt){return ct!=null&&vt in ms(ct)}function T2(ct,vt,Nt){return ct>=Fs(vt,Nt)&&ct=120&&Qr.length>=120)?new Po(Sr&&Qr):rt}Qr=ct[0];var nn=-1,vn=Mr[0];e:for(;++nn-1;)Mr!==ct&&x0.call(Mr,Lr,1),x0.call(ct,Lr,1);return ct}function g1(ct,vt){for(var Nt=ct?vt.length:0,Gt=Nt-1;Nt--;){var nr=vt[Nt];if(Nt==Gt||nr!==vr){var vr=nr;ho(nr)?x0.call(ct,nr,1):Yl(ct,nr)}}return ct}function Hl(ct,vt){return ct+k0(Ju()*(vt-ct+1))}function U2(ct,vt,Nt,Gt){for(var nr=-1,vr=Ms(_0((vt-ct)/(Nt||1)),0),Sr=Hr(vr);vr--;)Sr[Gt?vr:++nr]=ct,ct+=Nt;return Sr}function Gl(ct,vt){var Nt="";if(!ct||vt<1||vt>At)return Nt;do vt%2&&(Nt+=ct),vt=k0(vt/2),vt&&(ct+=ct);while(vt);return Nt}function Jn(ct,vt){return lu(K1(ct,vt,zs),ct+"")}function j2(ct){return e1(qo(ct))}function V2(ct,vt){var Nt=qo(ct);return U0(Nt,Io(vt,0,Nt.length))}function s0(ct,vt,Nt,Gt){if(!ks(ct))return ct;vt=ko(vt,ct);for(var nr=-1,vr=vt.length,Sr=vr-1,Mr=ct;Mr!=null&&++nrnr?0:nr+vt),Nt=Nt>nr?nr:Nt,Nt<0&&(Nt+=nr),nr=vt>Nt?0:Nt-vt>>>0,vt>>>=0;for(var vr=Hr(nr);++Gt>>1,Sr=ct[vr];Sr!==null&&!Ks(Sr)&&(Nt?Sr<=vt:Sr=it){var Jr=vt?null:rm(ct);if(Jr)return h0(Jr);Sr=!1,nr=Yo,Lr=new Po}else Lr=vt?[]:Mr;e:for(;++Gt=Gt?ct:ba(ct,vt,Nt)}var S1=Cy||function(ct){return Rs.clearTimeout(ct)};function $1(ct,vt){if(vt)return ct.slice();var Nt=ct.length,Gt=qu?qu(Nt):new ct.constructor(Nt);return ct.copy(Gt),Gt}function Ql(ct){var vt=new ct.constructor(ct.byteLength);return new v0(vt).set(new v0(ct)),vt}function q2(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.byteLength)}function K2(ct){var vt=new ct.constructor(ct.source,tn.exec(ct));return vt.lastIndex=ct.lastIndex,vt}function Y2(ct){return e0?ms(e0.call(ct)):{}}function T1(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.length)}function A1(ct,vt){if(ct!==vt){var Nt=ct!==rt,Gt=ct===null,nr=ct===ct,vr=Ks(ct),Sr=vt!==rt,Mr=vt===null,Lr=vt===vt,Jr=Ks(vt);if(!Mr&&!Jr&&!vr&&ct>vt||vr&&Sr&&Lr&&!Mr&&!Jr||Gt&&Sr&&Lr||!Nt&&Lr||!nr)return 1;if(!Gt&&!vr&&!Jr&&ct=Mr)return Lr;var Jr=Nt[Gt];return Lr*(Jr=="desc"?-1:1)}}return ct.index-vt.index}function P1(ct,vt,Nt,Gt){for(var nr=-1,vr=ct.length,Sr=Nt.length,Mr=-1,Lr=vt.length,Jr=Ms(vr-Sr,0),Qr=Hr(Lr+Jr),nn=!Gt;++Mr1?Nt[nr-1]:rt,Sr=nr>2?Nt[2]:rt;for(vr=ct.length>3&&typeof vr=="function"?(nr--,vr):rt,Sr&&Ds(Nt[0],Nt[1],Sr)&&(vr=nr<3?rt:vr,nr=1),vt=ms(vt);++Gt-1?nr[vr?vt[Sr]:Sr]:rt}}function O1(ct){return uo(function(vt){var Nt=vt.length,Gt=Nt,nr=na.prototype.thru;for(ct&&vt.reverse();Gt--;){var vr=vt[Gt];if(typeof vr!="function")throw new Qs(at);if(nr&&!Sr&&L0(vr)=="wrapper")var Sr=new na([],!0)}for(Gt=Sr?Gt:Nt;++Gt1&&ss.reverse(),Qr&&Lr<_i&&(ss.length=Lr),this&&this!==Rs&&this instanceof Un&&(mo=Zn||a0(mo)),mo.apply(no,ss)}return Un}function F1(ct,vt){return function(Nt,Gt){return A2(Nt,ct,vt(Gt),{})}}function O0(ct,vt){return function(Nt,Gt){var nr;if(Nt===rt&&Gt===rt)return vt;if(Nt!==rt&&(nr=Nt),Gt!==rt){if(nr===rt)return Gt;typeof Nt=="string"||typeof Gt=="string"?(Nt=qs(Nt),Gt=qs(Gt)):(Nt=x1(Nt),Gt=x1(Gt)),nr=ct(Nt,Gt)}return nr}}function _c(ct){return uo(function(vt){return vt=_s(vt,Ws(Nn())),Jn(function(Nt){var Gt=this;return ct(vt,function(nr){return Gs(nr,Gt,Nt)})})})}function F0(ct,vt){vt=vt===rt?" ":qs(vt);var Nt=vt.length;if(Nt<2)return Nt?Gl(vt,ct):vt;var Gt=Gl(vt,_0(ct/No(vt)));return Fo(vt)?Eo($a(Gt),0,ct).join(""):Gt.slice(0,ct)}function tm(ct,vt,Nt,Gt){var nr=vt&$t,vr=a0(ct);function Sr(){for(var Mr=-1,Lr=arguments.length,Jr=-1,Qr=Gt.length,nn=Hr(Qr+Lr),vn=this&&this!==Rs&&this instanceof Sr?vr:ct;++JrMr))return!1;var Jr=vr.get(ct),Qr=vr.get(vt);if(Jr&&Qr)return Jr==vt&&Qr==ct;var nn=-1,vn=!0,Mn=Nt&yt?new Po:rt;for(vr.set(ct,vt),vr.set(vt,ct);++nn1?"& ":"")+vt[Gt],vt=vt.join(Nt>2?", ":" "),ct.replace(cr,`{ + */lodash.exports;(function(et,tt){(function(){var rt,nt="4.17.21",it=200,st="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",at="Expected a function",ot="Invalid `variable` option passed into `_.template`",lt="__lodash_hash_undefined__",ut=500,dt="__lodash_placeholder__",bt=1,gt=2,kt=4,pt=1,yt=2,$t=1,mt=2,wt=4,St=8,Bt=16,Ot=32,Lt=64,zt=128,Vt=256,Wt=512,lr=30,qt="...",Ft=800,Mt=16,ht=1,Et=2,Tt=3,Rt=1/0,At=9007199254740991,Pt=17976931348623157e292,It=0/0,Ct=4294967295,xt=Ct-1,Dt=Ct>>>1,tr=[["ary",zt],["bind",$t],["bindKey",mt],["curry",St],["curryRight",Bt],["flip",Wt],["partial",Ot],["partialRight",Lt],["rearg",Vt]],pr="[object Arguments]",Kt="[object Array]",Qt="[object AsyncFunction]",Zt="[object Boolean]",ur="[object Date]",_r="[object DOMException]",er="[object Error]",Jt="[object Function]",Ar="[object GeneratorFunction]",Er="[object Map]",Dr="[object Number]",Xr="[object Null]",Vr="[object Object]",wr="[object Promise]",br="[object Proxy]",or="[object RegExp]",xr="[object Set]",Pr="[object String]",Or="[object Symbol]",rr="[object Undefined]",gr="[object WeakMap]",Ir="[object WeakSet]",Yt="[object ArrayBuffer]",Ut="[object DataView]",Ht="[object Float32Array]",ir="[object Float64Array]",kr="[object Int8Array]",$r="[object Int16Array]",Br="[object Int32Array]",an="[object Uint8Array]",ln="[object Uint8ClampedArray]",rn="[object Uint16Array]",kn="[object Uint32Array]",fn=/\b__p \+= '';/g,gn=/\b(__p \+=) '' \+/g,fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ln=/&(?:amp|lt|gt|quot|#39);/g,En=/[&<>"']/g,hs=RegExp(Ln.source),Cn=RegExp(En.source),xn=/<%-([\s\S]+?)%>/g,is=/<%([\s\S]+?)%>/g,Fn=/<%=([\s\S]+?)%>/g,_n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ls=/^\w*$/,jn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,dn=/[\\^$.*+?()[\]{}|]/g,cs=RegExp(dn.source),Xt=/^\s+/,ar=/\s/,cr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jt=/\{\n\/\* \[wrapped with (.+)\] \*/,dr=/,? & /,Rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cr=/[()=,{}\[\]\/\s]/,Nr=/\\(\\)?/g,Yr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,tn=/\w*$/,qr=/^[-+]0x[0-9a-f]+$/i,Vn=/^0b[01]+$/i,hn=/^\[object .+?Constructor\]$/,Tn=/^0o[0-7]+$/i,An=/^(?:0|[1-9]\d*)$/,Rn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Pn=/($^)/,In=/['\n\r\u2028\u2029\\]/g,$n="\\ud800-\\udfff",Bn="\\u0300-\\u036f",pn="\\ufe20-\\ufe2f",wn="\\u20d0-\\u20ff",un=Bn+pn+wn,yn="\\u2700-\\u27bf",mn="a-z\\xdf-\\xf6\\xf8-\\xff",cn="\\xac\\xb1\\xd7\\xf7",Ur="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jr="\\u2000-\\u206f",en=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Gr="A-Z\\xc0-\\xd6\\xd8-\\xde",Zr="\\ufe0e\\ufe0f",sn=cn+Ur+jr+en,On="['’]",zn="["+$n+"]",Gn="["+sn+"]",Hn="["+un+"]",Tr="\\d+",Yn="["+yn+"]",es="["+mn+"]",ts="[^"+$n+sn+Tr+yn+mn+Gr+"]",Wn="\\ud83c[\\udffb-\\udfff]",rs="(?:"+Hn+"|"+Wn+")",Qn="[^"+$n+"]",vs="(?:\\ud83c[\\udde6-\\uddff]){2}",os="[\\ud800-\\udbff][\\udc00-\\udfff]",ps="["+Gr+"]",bs="\\u200d",xs="(?:"+es+"|"+ts+")",Ss="(?:"+ps+"|"+ts+")",As="(?:"+On+"(?:d|ll|m|re|s|t|ve))?",Ps="(?:"+On+"(?:D|LL|M|RE|S|T|VE))?",Is=rs+"?",$u="["+Zr+"]?",Lp="(?:"+bs+"(?:"+[Qn,vs,os].join("|")+")"+$u+Is+")*",Dp="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Up="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tu=$u+Is+Lp,jp="(?:"+[Yn,vs,os].join("|")+")"+Tu,Vp="(?:"+[Qn+Hn+"?",Hn,vs,os,zn].join("|")+")",Hp=RegExp(On,"g"),zp=RegExp(Hn,"g"),X0=RegExp(Wn+"(?="+Wn+")|"+Vp+Tu,"g"),Gp=RegExp([ps+"?"+es+"+"+As+"(?="+[Gn,ps,"$"].join("|")+")",Ss+"+"+Ps+"(?="+[Gn,ps+xs,"$"].join("|")+")",ps+"?"+xs+"+"+As,ps+"+"+Ps,Up,Dp,Tr,jp].join("|"),"g"),Wp=RegExp("["+bs+$n+un+Zr+"]"),qp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kp=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Yp=-1,ws={};ws[Ht]=ws[ir]=ws[kr]=ws[$r]=ws[Br]=ws[an]=ws[ln]=ws[rn]=ws[kn]=!0,ws[pr]=ws[Kt]=ws[Yt]=ws[Zt]=ws[Ut]=ws[ur]=ws[er]=ws[Jt]=ws[Er]=ws[Dr]=ws[Vr]=ws[or]=ws[xr]=ws[Pr]=ws[gr]=!1;var gs={};gs[pr]=gs[Kt]=gs[Yt]=gs[Ut]=gs[Zt]=gs[ur]=gs[Ht]=gs[ir]=gs[kr]=gs[$r]=gs[Br]=gs[Er]=gs[Dr]=gs[Vr]=gs[or]=gs[xr]=gs[Pr]=gs[Or]=gs[an]=gs[ln]=gs[rn]=gs[kn]=!0,gs[er]=gs[Jt]=gs[gr]=!1;var Xp={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Zp={"&":"&","<":"<",">":">",'"':""","'":"'"},Jp={"&":"&","<":"<",">":">",""":'"',"'":"'"},Qp={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ey=parseFloat,ty=parseInt,Au=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,ry=typeof self=="object"&&self&&self.Object===Object&&self,Rs=Au||ry||Function("return this")(),Z0=tt&&!tt.nodeType&&tt,$o=Z0&&!0&&et&&!et.nodeType&&et,Pu=$o&&$o.exports===Z0,J0=Pu&&Au.process,Zs=function(){try{var Fr=$o&&$o.require&&$o.require("util").types;return Fr||J0&&J0.binding&&J0.binding("util")}catch{}}(),Iu=Zs&&Zs.isArrayBuffer,Bu=Zs&&Zs.isDate,Mu=Zs&&Zs.isMap,Cu=Zs&&Zs.isRegExp,Ru=Zs&&Zs.isSet,Ou=Zs&&Zs.isTypedArray;function Gs(Fr,Wr,Hr){switch(Hr.length){case 0:return Fr.call(Wr);case 1:return Fr.call(Wr,Hr[0]);case 2:return Fr.call(Wr,Hr[0],Hr[1]);case 3:return Fr.call(Wr,Hr[0],Hr[1],Hr[2])}return Fr.apply(Wr,Hr)}function ny(Fr,Wr,Hr,Sn){for(var qn=-1,us=Fr==null?0:Fr.length;++qn-1}function Q0(Fr,Wr,Hr){for(var Sn=-1,qn=Fr==null?0:Fr.length;++Sn-1;);return Hr}function Hu(Fr,Wr){for(var Hr=Fr.length;Hr--&&Oo(Wr,Fr[Hr],0)>-1;);return Hr}function hy(Fr,Wr){for(var Hr=Fr.length,Sn=0;Hr--;)Fr[Hr]===Wr&&++Sn;return Sn}var dy=_l(Xp),py=_l(Zp);function yy(Fr){return"\\"+Qp[Fr]}function my(Fr,Wr){return Fr==null?rt:Fr[Wr]}function Fo(Fr){return Wp.test(Fr)}function gy(Fr){return qp.test(Fr)}function vy(Fr){for(var Wr,Hr=[];!(Wr=Fr.next()).done;)Hr.push(Wr.value);return Hr}function Tl(Fr){var Wr=-1,Hr=Array(Fr.size);return Fr.forEach(function(Sn,qn){Hr[++Wr]=[qn,Sn]}),Hr}function zu(Fr,Wr){return function(Hr){return Fr(Wr(Hr))}}function bo(Fr,Wr){for(var Hr=-1,Sn=Fr.length,qn=0,us=[];++Hr-1}function s2(ct,vt){var Nt=this.__data__,Gt=T0(Nt,ct);return Gt<0?(++this.size,Nt.push([ct,vt])):Nt[Gt][1]=vt,this}oo.prototype.clear=t2,oo.prototype.delete=r2,oo.prototype.get=n2,oo.prototype.has=i2,oo.prototype.set=s2;function fo(ct){var vt=-1,Nt=ct==null?0:ct.length;for(this.clear();++vt=vt?ct:vt)),ct}function ga(ct,vt,Nt,Gt,nr,vr){var Sr,Mr=vt&bt,Lr=vt>,Jr=vt&kt;if(Nt&&(Sr=nr?Nt(ct,Gt,nr,vr):Nt(ct)),Sr!==rt)return Sr;if(!ks(ct))return ct;var Qr=Kn(ct);if(Qr){if(Sr=cm(ct),!Mr)return js(ct,Sr)}else{var nn=Ns(ct),vn=nn==Jt||nn==Ar;if(So(ct))return $1(ct,Mr);if(nn==Vr||nn==pr||vn&&!nr){if(Sr=Lr||vn?{}:G1(ct),!Mr)return Lr?J2(ct,w2(Sr,ct)):Z2(ct,t1(Sr,ct))}else{if(!gs[nn])return nr?ct:{};Sr=um(ct,nn,Mr)}}vr||(vr=new eo);var Mn=vr.get(ct);if(Mn)return Mn;vr.set(ct,Sr),wp(ct)?ct.forEach(function(Un){Sr.add(ga(Un,vt,Nt,Un,ct,vr))}):bp(ct)&&ct.forEach(function(Un,_i){Sr.set(_i,ga(Un,vt,Nt,_i,ct,vr))});var Dn=Jr?Lr?ru:tu:Lr?Hs:Cs,Zn=Qr?rt:Dn(ct);return Js(Zn||ct,function(Un,_i){Zn&&(_i=Un,Un=ct[_i]),t0(Sr,_i,ga(Un,vt,Nt,_i,ct,vr))}),Sr}function _2(ct){var vt=Cs(ct);return function(Nt){return r1(Nt,ct,vt)}}function r1(ct,vt,Nt){var Gt=Nt.length;if(ct==null)return!Gt;for(ct=ms(ct);Gt--;){var nr=Nt[Gt],vr=vt[nr],Sr=ct[nr];if(Sr===rt&&!(nr in ct)||!vr(Sr))return!1}return!0}function n1(ct,vt,Nt){if(typeof ct!="function")throw new Qs(at);return f0(function(){ct.apply(rt,Nt)},vt)}function r0(ct,vt,Nt,Gt){var nr=-1,vr=c0,Sr=!0,Mr=ct.length,Lr=[],Jr=vt.length;if(!Mr)return Lr;Nt&&(vt=_s(vt,Ws(Nt))),Gt?(vr=Q0,Sr=!1):vt.length>=it&&(vr=Yo,Sr=!1,vt=new Po(vt));e:for(;++nrnr?0:nr+Nt),Gt=Gt===rt||Gt>nr?nr:Xn(Gt),Gt<0&&(Gt+=nr),Gt=Nt>Gt?0:kp(Gt);Nt0&&Nt(Mr)?vt>1?Os(Mr,vt-1,Nt,Gt,nr):vo(nr,Mr):Gt||(nr[nr.length]=Mr)}return nr}var Rl=M1(),a1=M1(!0);function io(ct,vt){return ct&&Rl(ct,vt,Cs)}function Ol(ct,vt){return ct&&a1(ct,vt,Cs)}function P0(ct,vt){return go(vt,function(Nt){return po(ct[Nt])})}function Bo(ct,vt){vt=ko(vt,ct);for(var Nt=0,Gt=vt.length;ct!=null&&Ntvt}function S2(ct,vt){return ct!=null&&ys.call(ct,vt)}function $2(ct,vt){return ct!=null&&vt in ms(ct)}function T2(ct,vt,Nt){return ct>=Fs(vt,Nt)&&ct=120&&Qr.length>=120)?new Po(Sr&&Qr):rt}Qr=ct[0];var nn=-1,vn=Mr[0];e:for(;++nn-1;)Mr!==ct&&x0.call(Mr,Lr,1),x0.call(ct,Lr,1);return ct}function g1(ct,vt){for(var Nt=ct?vt.length:0,Gt=Nt-1;Nt--;){var nr=vt[Nt];if(Nt==Gt||nr!==vr){var vr=nr;ho(nr)?x0.call(ct,nr,1):Yl(ct,nr)}}return ct}function Hl(ct,vt){return ct+k0(Ju()*(vt-ct+1))}function U2(ct,vt,Nt,Gt){for(var nr=-1,vr=Ms(_0((vt-ct)/(Nt||1)),0),Sr=Hr(vr);vr--;)Sr[Gt?vr:++nr]=ct,ct+=Nt;return Sr}function Gl(ct,vt){var Nt="";if(!ct||vt<1||vt>At)return Nt;do vt%2&&(Nt+=ct),vt=k0(vt/2),vt&&(ct+=ct);while(vt);return Nt}function Jn(ct,vt){return lu(K1(ct,vt,zs),ct+"")}function j2(ct){return e1(qo(ct))}function V2(ct,vt){var Nt=qo(ct);return U0(Nt,Io(vt,0,Nt.length))}function s0(ct,vt,Nt,Gt){if(!ks(ct))return ct;vt=ko(vt,ct);for(var nr=-1,vr=vt.length,Sr=vr-1,Mr=ct;Mr!=null&&++nrnr?0:nr+vt),Nt=Nt>nr?nr:Nt,Nt<0&&(Nt+=nr),nr=vt>Nt?0:Nt-vt>>>0,vt>>>=0;for(var vr=Hr(nr);++Gt>>1,Sr=ct[vr];Sr!==null&&!Ks(Sr)&&(Nt?Sr<=vt:Sr=it){var Jr=vt?null:rm(ct);if(Jr)return h0(Jr);Sr=!1,nr=Yo,Lr=new Po}else Lr=vt?[]:Mr;e:for(;++Gt=Gt?ct:ba(ct,vt,Nt)}var S1=Cy||function(ct){return Rs.clearTimeout(ct)};function $1(ct,vt){if(vt)return ct.slice();var Nt=ct.length,Gt=qu?qu(Nt):new ct.constructor(Nt);return ct.copy(Gt),Gt}function Ql(ct){var vt=new ct.constructor(ct.byteLength);return new v0(vt).set(new v0(ct)),vt}function q2(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.byteLength)}function K2(ct){var vt=new ct.constructor(ct.source,tn.exec(ct));return vt.lastIndex=ct.lastIndex,vt}function Y2(ct){return e0?ms(e0.call(ct)):{}}function T1(ct,vt){var Nt=vt?Ql(ct.buffer):ct.buffer;return new ct.constructor(Nt,ct.byteOffset,ct.length)}function A1(ct,vt){if(ct!==vt){var Nt=ct!==rt,Gt=ct===null,nr=ct===ct,vr=Ks(ct),Sr=vt!==rt,Mr=vt===null,Lr=vt===vt,Jr=Ks(vt);if(!Mr&&!Jr&&!vr&&ct>vt||vr&&Sr&&Lr&&!Mr&&!Jr||Gt&&Sr&&Lr||!Nt&&Lr||!nr)return 1;if(!Gt&&!vr&&!Jr&&ct=Mr)return Lr;var Jr=Nt[Gt];return Lr*(Jr=="desc"?-1:1)}}return ct.index-vt.index}function P1(ct,vt,Nt,Gt){for(var nr=-1,vr=ct.length,Sr=Nt.length,Mr=-1,Lr=vt.length,Jr=Ms(vr-Sr,0),Qr=Hr(Lr+Jr),nn=!Gt;++Mr1?Nt[nr-1]:rt,Sr=nr>2?Nt[2]:rt;for(vr=ct.length>3&&typeof vr=="function"?(nr--,vr):rt,Sr&&Ds(Nt[0],Nt[1],Sr)&&(vr=nr<3?rt:vr,nr=1),vt=ms(vt);++Gt-1?nr[vr?vt[Sr]:Sr]:rt}}function O1(ct){return uo(function(vt){var Nt=vt.length,Gt=Nt,nr=na.prototype.thru;for(ct&&vt.reverse();Gt--;){var vr=vt[Gt];if(typeof vr!="function")throw new Qs(at);if(nr&&!Sr&&L0(vr)=="wrapper")var Sr=new na([],!0)}for(Gt=Sr?Gt:Nt;++Gt1&&ss.reverse(),Qr&&Lr<_i&&(ss.length=Lr),this&&this!==Rs&&this instanceof Un&&(mo=Zn||a0(mo)),mo.apply(no,ss)}return Un}function F1(ct,vt){return function(Nt,Gt){return A2(Nt,ct,vt(Gt),{})}}function O0(ct,vt){return function(Nt,Gt){var nr;if(Nt===rt&&Gt===rt)return vt;if(Nt!==rt&&(nr=Nt),Gt!==rt){if(nr===rt)return Gt;typeof Nt=="string"||typeof Gt=="string"?(Nt=qs(Nt),Gt=qs(Gt)):(Nt=x1(Nt),Gt=x1(Gt)),nr=ct(Nt,Gt)}return nr}}function _c(ct){return uo(function(vt){return vt=_s(vt,Ws(Nn())),Jn(function(Nt){var Gt=this;return ct(vt,function(nr){return Gs(nr,Gt,Nt)})})})}function F0(ct,vt){vt=vt===rt?" ":qs(vt);var Nt=vt.length;if(Nt<2)return Nt?Gl(vt,ct):vt;var Gt=Gl(vt,_0(ct/No(vt)));return Fo(vt)?Eo($a(Gt),0,ct).join(""):Gt.slice(0,ct)}function tm(ct,vt,Nt,Gt){var nr=vt&$t,vr=a0(ct);function Sr(){for(var Mr=-1,Lr=arguments.length,Jr=-1,Qr=Gt.length,nn=Hr(Qr+Lr),vn=this&&this!==Rs&&this instanceof Sr?vr:ct;++JrMr))return!1;var Jr=vr.get(ct),Qr=vr.get(vt);if(Jr&&Qr)return Jr==vt&&Qr==ct;var nn=-1,vn=!0,Mn=Nt&yt?new Po:rt;for(vr.set(ct,vt),vr.set(vt,ct);++nn1?"& ":"")+vt[Gt],vt=vt.join(Nt>2?", ":" "),ct.replace(cr,`{ /* [wrapped with `+vt+`] */ -`)}function dm(ct){return Kn(ct)||Ro(ct)||!!(Xu&&ct&&ct[Xu])}function ho(ct,vt){var Nt=typeof ct;return vt=vt??At,!!vt&&(Nt=="number"||Nt!="symbol"&&An.test(ct))&&ct>-1&&ct%1==0&&ct0){if(++vt>=Ot)return arguments[0]}else vt=0;return ct.apply(rt,arguments)}}function U0(ct,vt){var Nt=-1,Gt=ct.length,nr=Gt-1;for(vt=vt===rt?Gt:vt;++Nt1?ct[vt-1]:rt;return Nt=typeof Nt=="function"?(ct.pop(),Nt):rt,ap(ct,Nt)});function fp(ct){var vt=yr(ct);return vt.__chain__=!0,vt}function kv(ct,vt){return vt(ct),ct}function j0(ct,vt){return vt(ct)}var Ev=uo(function(ct){var vt=ct.length,Nt=vt?ct[0]:0,Gt=this.__wrapped__,nr=function(vr){return Cl(vr,ct)};return vt>1||this.__actions__.length||!(Gt instanceof ns)||!ho(Nt)?this.thru(nr):(Gt=Gt.slice(Nt,+Nt+(vt?1:0)),Gt.__actions__.push({func:j0,args:[nr],thisArg:rt}),new na(Gt,this.__chain__).thru(function(vr){return vt&&!vr.length&&vr.push(rt),vr}))});function Sv(){return fp(this)}function $v(){return new na(this.value(),this.__chain__)}function Tv(){this.__values__===rt&&(this.__values__=_p(this.value()));var ct=this.__index__>=this.__values__.length,vt=ct?rt:this.__values__[this.__index__++];return{done:ct,value:vt}}function Av(){return this}function Pv(ct){for(var vt,Nt=this;Nt instanceof $0;){var Gt=_d(Nt);Gt.__index__=0,Gt.__values__=rt,vt?nr.__wrapped__=Gt:vt=Gt;var nr=Gt;Nt=Nt.__wrapped__}return nr.__wrapped__=ct,vt}function Iv(){var ct=this.__wrapped__;if(ct instanceof ns){var vt=ct;return this.__actions__.length&&(vt=new ns(this)),vt=vt.reverse(),vt.__actions__.push({func:j0,args:[cu],thisArg:rt}),new na(vt,this.__chain__)}return this.thru(cu)}function Bv(){return k1(this.__wrapped__,this.__actions__)}var Mv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?++ct[Nt]:lo(ct,Nt,1)});function Cv(ct,vt,Nt){var Gt=Kn(ct)?Fu:k2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}function Rv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,Nn(vt,3))}var Ov=R1(ep),Fv=R1(tp);function Nv(ct,vt){return Os(V0(ct,vt),1)}function Lv(ct,vt){return Os(V0(ct,vt),Rt)}function Dv(ct,vt,Nt){return Nt=Nt===rt?1:Xn(Nt),Os(V0(ct,vt),Nt)}function lp(ct,vt){var Nt=Kn(ct)?Js:wo;return Nt(ct,Nn(vt,3))}function cp(ct,vt){var Nt=Kn(ct)?iy:i1;return Nt(ct,Nn(vt,3))}var Uv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?ct[Nt].push(vt):lo(ct,Nt,[vt])});function jv(ct,vt,Nt,Gt){ct=Vs(ct)?ct:qo(ct),Nt=Nt&&!Gt?Xn(Nt):0;var nr=ct.length;return Nt<0&&(Nt=Ms(nr+Nt,0)),q0(ct)?Nt<=nr&&ct.indexOf(vt,Nt)>-1:!!nr&&Oo(ct,vt,Nt)>-1}var Vv=Jn(function(ct,vt,Nt){var Gt=-1,nr=typeof vt=="function",vr=Vs(ct)?Hr(ct.length):[];return wo(ct,function(Sr){vr[++Gt]=nr?Gs(vt,Sr,Nt):n0(Sr,vt,Nt)}),vr}),Hv=C0(function(ct,vt,Nt){lo(ct,Nt,vt)});function V0(ct,vt){var Nt=Kn(ct)?_s:u1;return Nt(ct,Nn(vt,3))}function zv(ct,vt,Nt,Gt){return ct==null?[]:(Kn(vt)||(vt=vt==null?[]:[vt]),Nt=Gt?rt:Nt,Kn(Nt)||(Nt=Nt==null?[]:[Nt]),y1(ct,vt,Nt))}var Gv=C0(function(ct,vt,Nt){ct[Nt?0:1].push(vt)},function(){return[[],[]]});function Wv(ct,vt,Nt){var Gt=Kn(ct)?_f:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,wo)}function qv(ct,vt,Nt){var Gt=Kn(ct)?sy:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,i1)}function Kv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,G0(Nn(vt,3)))}function Yv(ct){var vt=Kn(ct)?e1:j2;return vt(ct)}function Xv(ct,vt,Nt){(Nt?Ds(ct,vt,Nt):vt===rt)?vt=1:vt=Xn(vt);var Gt=Kn(ct)?v2:V2;return Gt(ct,vt)}function Zv(ct){var vt=Kn(ct)?b2:z2;return vt(ct)}function Jv(ct){if(ct==null)return 0;if(Vs(ct))return q0(ct)?No(ct):ct.length;var vt=Ns(ct);return vt==Er||vt==xr?ct.size:Dl(ct).length}function Qv(ct,vt,Nt){var Gt=Kn(ct)?yl:G2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}var e3=Jn(function(ct,vt){if(ct==null)return[];var Nt=vt.length;return Nt>1&&Ds(ct,vt[0],vt[1])?vt=[]:Nt>2&&Ds(vt[0],vt[1],vt[2])&&(vt=[vt[0]]),y1(ct,Os(vt,1),[])}),H0=Ry||function(){return Rs.Date.now()};function t3(ct,vt){if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){if(--ct<1)return vt.apply(this,arguments)}}function up(ct,vt,Nt){return vt=Nt?rt:vt,vt=ct&&vt==null?ct.length:vt,co(ct,zt,rt,rt,rt,rt,vt)}function hp(ct,vt){var Nt;if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){return--ct>0&&(Nt=vt.apply(this,arguments)),ct<=1&&(vt=rt),Nt}}var hu=Jn(function(ct,vt,Nt){var Gt=$t;if(Nt.length){var nr=bo(Nt,Go(hu));Gt|=Ft}return co(ct,Gt,vt,Nt,nr)}),dp=Jn(function(ct,vt,Nt){var Gt=$t|mt;if(Nt.length){var nr=bo(Nt,Go(dp));Gt|=Ft}return co(vt,Gt,ct,Nt,nr)});function pp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,St,rt,rt,rt,rt,rt,vt);return Gt.placeholder=pp.placeholder,Gt}function yp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,Bt,rt,rt,rt,rt,rt,vt);return Gt.placeholder=yp.placeholder,Gt}function mp(ct,vt,Nt){var Gt,nr,vr,Sr,Mr,Lr,Jr=0,Qr=!1,nn=!1,vn=!0;if(typeof ct!="function")throw new Qs(at);vt=_a(vt)||0,ks(Nt)&&(Qr=!!Nt.leading,nn="maxWait"in Nt,vr=nn?Ms(_a(Nt.maxWait)||0,vt):vr,vn="trailing"in Nt?!!Nt.trailing:vn);function Mn(Ts){var no=Gt,mo=nr;return Gt=nr=rt,Jr=Ts,Sr=ct.apply(mo,no),Sr}function Dn(Ts){return Jr=Ts,Mr=f0(_i,vt),Qr?Mn(Ts):Sr}function Zn(Ts){var no=Ts-Lr,mo=Ts-Jr,Op=vt-no;return nn?Fs(Op,vr-mo):Op}function Un(Ts){var no=Ts-Lr,mo=Ts-Jr;return Lr===rt||no>=vt||no<0||nn&&mo>=vr}function _i(){var Ts=H0();if(Un(Ts))return ss(Ts);Mr=f0(_i,Zn(Ts))}function ss(Ts){return Mr=rt,vn&&Gt?Mn(Ts):(Gt=nr=rt,Sr)}function Ys(){Mr!==rt&&S1(Mr),Jr=0,Gt=Lr=nr=Mr=rt}function Us(){return Mr===rt?Sr:ss(H0())}function Xs(){var Ts=H0(),no=Un(Ts);if(Gt=arguments,nr=this,Lr=Ts,no){if(Mr===rt)return Dn(Lr);if(nn)return S1(Mr),Mr=f0(_i,vt),Mn(Lr)}return Mr===rt&&(Mr=f0(_i,vt)),Sr}return Xs.cancel=Ys,Xs.flush=Us,Xs}var r3=Jn(function(ct,vt){return n1(ct,1,vt)}),n3=Jn(function(ct,vt,Nt){return n1(ct,_a(vt)||0,Nt)});function i3(ct){return co(ct,Wt)}function z0(ct,vt){if(typeof ct!="function"||vt!=null&&typeof vt!="function")throw new Qs(at);var Nt=function(){var Gt=arguments,nr=vt?vt.apply(this,Gt):Gt[0],vr=Nt.cache;if(vr.has(nr))return vr.get(nr);var Sr=ct.apply(this,Gt);return Nt.cache=vr.set(nr,Sr)||vr,Sr};return Nt.cache=new(z0.Cache||fo),Nt}z0.Cache=fo;function G0(ct){if(typeof ct!="function")throw new Qs(at);return function(){var vt=arguments;switch(vt.length){case 0:return!ct.call(this);case 1:return!ct.call(this,vt[0]);case 2:return!ct.call(this,vt[0],vt[1]);case 3:return!ct.call(this,vt[0],vt[1],vt[2])}return!ct.apply(this,vt)}}function s3(ct){return hp(2,ct)}var a3=W2(function(ct,vt){vt=vt.length==1&&Kn(vt[0])?_s(vt[0],Ws(Nn())):_s(Os(vt,1),Ws(Nn()));var Nt=vt.length;return Jn(function(Gt){for(var nr=-1,vr=Fs(Gt.length,Nt);++nr=vt}),Ro=f1(function(){return arguments}())?f1:function(ct){return Es(ct)&&ys.call(ct,"callee")&&!Yu.call(ct,"callee")},Kn=Hr.isArray,w3=Iu?Ws(Iu):P2;function Vs(ct){return ct!=null&&W0(ct.length)&&!po(ct)}function $s(ct){return Es(ct)&&Vs(ct)}function _3(ct){return ct===!0||ct===!1||Es(ct)&&Ls(ct)==Zt}var So=Fy||Eu,k3=Bu?Ws(Bu):I2;function E3(ct){return Es(ct)&&ct.nodeType===1&&!l0(ct)}function S3(ct){if(ct==null)return!0;if(Vs(ct)&&(Kn(ct)||typeof ct=="string"||typeof ct.splice=="function"||So(ct)||Wo(ct)||Ro(ct)))return!ct.length;var vt=Ns(ct);if(vt==Er||vt==xr)return!ct.size;if(o0(ct))return!Dl(ct).length;for(var Nt in ct)if(ys.call(ct,Nt))return!1;return!0}function $3(ct,vt){return i0(ct,vt)}function T3(ct,vt,Nt){Nt=typeof Nt=="function"?Nt:rt;var Gt=Nt?Nt(ct,vt):rt;return Gt===rt?i0(ct,vt,rt,Nt):!!Gt}function pu(ct){if(!Es(ct))return!1;var vt=Ls(ct);return vt==er||vt==_r||typeof ct.message=="string"&&typeof ct.name=="string"&&!l0(ct)}function A3(ct){return typeof ct=="number"&&Zu(ct)}function po(ct){if(!ks(ct))return!1;var vt=Ls(ct);return vt==Jt||vt==Ar||vt==Qt||vt==br}function vp(ct){return typeof ct=="number"&&ct==Xn(ct)}function W0(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=At}function ks(ct){var vt=typeof ct;return ct!=null&&(vt=="object"||vt=="function")}function Es(ct){return ct!=null&&typeof ct=="object"}var bp=Mu?Ws(Mu):M2;function P3(ct,vt){return ct===vt||Ll(ct,vt,iu(vt))}function I3(ct,vt,Nt){return Nt=typeof Nt=="function"?Nt:rt,Ll(ct,vt,iu(vt),Nt)}function B3(ct){return xp(ct)&&ct!=+ct}function M3(ct){if(mm(ct))throw new qn(st);return l1(ct)}function C3(ct){return ct===null}function R3(ct){return ct==null}function xp(ct){return typeof ct=="number"||Es(ct)&&Ls(ct)==Dr}function l0(ct){if(!Es(ct)||Ls(ct)!=Vr)return!1;var vt=b0(ct);if(vt===null)return!0;var Nt=ys.call(vt,"constructor")&&vt.constructor;return typeof Nt=="function"&&Nt instanceof Nt&&y0.call(Nt)==Iy}var yu=Cu?Ws(Cu):C2;function O3(ct){return vp(ct)&&ct>=-At&&ct<=At}var wp=Ru?Ws(Ru):R2;function q0(ct){return typeof ct=="string"||!Kn(ct)&&Es(ct)&&Ls(ct)==Pr}function Ks(ct){return typeof ct=="symbol"||Es(ct)&&Ls(ct)==Or}var Wo=Ou?Ws(Ou):O2;function F3(ct){return ct===rt}function N3(ct){return Es(ct)&&Ns(ct)==gr}function L3(ct){return Es(ct)&&Ls(ct)==Ir}var D3=N0(Ul),U3=N0(function(ct,vt){return ct<=vt});function _p(ct){if(!ct)return[];if(Vs(ct))return q0(ct)?$a(ct):js(ct);if(Xo&&ct[Xo])return vy(ct[Xo]());var vt=Ns(ct),Nt=vt==Er?Tl:vt==xr?h0:qo;return Nt(ct)}function yo(ct){if(!ct)return ct===0?ct:0;if(ct=_a(ct),ct===Rt||ct===-Rt){var vt=ct<0?-1:1;return vt*Pt}return ct===ct?ct:0}function Xn(ct){var vt=yo(ct),Nt=vt%1;return vt===vt?Nt?vt-Nt:vt:0}function kp(ct){return ct?Io(Xn(ct),0,Ct):0}function _a(ct){if(typeof ct=="number")return ct;if(Ks(ct))return It;if(ks(ct)){var vt=typeof ct.valueOf=="function"?ct.valueOf():ct;ct=ks(vt)?vt+"":vt}if(typeof ct!="string")return ct===0?ct:+ct;ct=ju(ct);var Nt=Vn.test(ct);return Nt||Tn.test(ct)?ty(ct.slice(2),Nt?2:8):qr.test(ct)?It:+ct}function Ep(ct){return so(ct,Hs(ct))}function j3(ct){return ct?Io(Xn(ct),-At,At):ct===0?ct:0}function ds(ct){return ct==null?"":qs(ct)}var V3=Ho(function(ct,vt){if(o0(vt)||Vs(vt)){so(vt,Cs(vt),ct);return}for(var Nt in vt)ys.call(vt,Nt)&&t0(ct,Nt,vt[Nt])}),Sp=Ho(function(ct,vt){so(vt,Hs(vt),ct)}),K0=Ho(function(ct,vt,Nt,Gt){so(vt,Hs(vt),ct,Gt)}),H3=Ho(function(ct,vt,Nt,Gt){so(vt,Cs(vt),ct,Gt)}),z3=uo(Cl);function G3(ct,vt){var Nt=Vo(ct);return vt==null?Nt:t1(Nt,vt)}var W3=Jn(function(ct,vt){ct=ms(ct);var Nt=-1,Gt=vt.length,nr=Gt>2?vt[2]:rt;for(nr&&Ds(vt[0],vt[1],nr)&&(Gt=1);++Nt1),vr}),so(ct,ru(ct),Nt),Gt&&(Nt=ga(Nt,bt|gt|kt,im));for(var nr=vt.length;nr--;)Yl(Nt,vt[nr]);return Nt});function c4(ct,vt){return Tp(ct,G0(Nn(vt)))}var u4=uo(function(ct,vt){return ct==null?{}:L2(ct,vt)});function Tp(ct,vt){if(ct==null)return{};var Nt=_s(ru(ct),function(Gt){return[Gt]});return vt=Nn(vt),m1(ct,Nt,function(Gt,nr){return vt(Gt,nr[0])})}function h4(ct,vt,Nt){vt=ko(vt,ct);var Gt=-1,nr=vt.length;for(nr||(nr=1,ct=rt);++Gtvt){var Gt=ct;ct=vt,vt=Gt}if(Nt||ct%1||vt%1){var nr=Ju();return Fs(ct+nr*(vt-ct+ey("1e-"+((nr+"").length-1))),vt)}return Hl(ct,vt)}var E4=zo(function(ct,vt,Nt){return vt=vt.toLowerCase(),ct+(Nt?Ip(vt):vt)});function Ip(ct){return vu(ds(ct).toLowerCase())}function Bp(ct){return ct=ds(ct),ct&&ct.replace(Rn,dy).replace(zp,"")}function S4(ct,vt,Nt){ct=ds(ct),vt=qs(vt);var Gt=ct.length;Nt=Nt===rt?Gt:Io(Xn(Nt),0,Gt);var nr=Nt;return Nt-=vt.length,Nt>=0&&ct.slice(Nt,nr)==vt}function $4(ct){return ct=ds(ct),ct&&Cn.test(ct)?ct.replace(En,py):ct}function T4(ct){return ct=ds(ct),ct&&cs.test(ct)?ct.replace(dn,"\\$&"):ct}var A4=zo(function(ct,vt,Nt){return ct+(Nt?"-":"")+vt.toLowerCase()}),P4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vt.toLowerCase()}),I4=C1("toLowerCase");function B4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;if(!vt||Gt>=vt)return ct;var nr=(vt-Gt)/2;return F0(k0(nr),Nt)+ct+F0(_0(nr),Nt)}function M4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;return vt&&Gt>>0,Nt?(ct=ds(ct),ct&&(typeof vt=="string"||vt!=null&&!yu(vt))&&(vt=qs(vt),!vt&&Fo(ct))?Eo($a(ct),0,Nt):ct.split(vt,Nt)):[]}var D4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vu(vt)});function U4(ct,vt,Nt){return ct=ds(ct),Nt=Nt==null?0:Io(Xn(Nt),0,ct.length),vt=qs(vt),ct.slice(Nt,Nt+vt.length)==vt}function j4(ct,vt,Nt){var Gt=yr.templateSettings;Nt&&Ds(ct,vt,Nt)&&(vt=rt),ct=ds(ct),vt=K0({},vt,Gt,U1);var nr=K0({},vt.imports,Gt.imports,U1),vr=Cs(nr),Sr=$l(nr,vr),Mr,Lr,Jr=0,Qr=vt.interpolate||Pn,nn="__p += '",vn=Al((vt.escape||Pn).source+"|"+Qr.source+"|"+(Qr===Fn?Yr:Pn).source+"|"+(vt.evaluate||Pn).source+"|$","g"),Mn="//# sourceURL="+(ys.call(vt,"sourceURL")?(vt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yp+"]")+` +`)}function dm(ct){return Kn(ct)||Ro(ct)||!!(Xu&&ct&&ct[Xu])}function ho(ct,vt){var Nt=typeof ct;return vt=vt??At,!!vt&&(Nt=="number"||Nt!="symbol"&&An.test(ct))&&ct>-1&&ct%1==0&&ct0){if(++vt>=Ft)return arguments[0]}else vt=0;return ct.apply(rt,arguments)}}function U0(ct,vt){var Nt=-1,Gt=ct.length,nr=Gt-1;for(vt=vt===rt?Gt:vt;++Nt1?ct[vt-1]:rt;return Nt=typeof Nt=="function"?(ct.pop(),Nt):rt,ap(ct,Nt)});function fp(ct){var vt=yr(ct);return vt.__chain__=!0,vt}function kv(ct,vt){return vt(ct),ct}function j0(ct,vt){return vt(ct)}var Ev=uo(function(ct){var vt=ct.length,Nt=vt?ct[0]:0,Gt=this.__wrapped__,nr=function(vr){return Cl(vr,ct)};return vt>1||this.__actions__.length||!(Gt instanceof ns)||!ho(Nt)?this.thru(nr):(Gt=Gt.slice(Nt,+Nt+(vt?1:0)),Gt.__actions__.push({func:j0,args:[nr],thisArg:rt}),new na(Gt,this.__chain__).thru(function(vr){return vt&&!vr.length&&vr.push(rt),vr}))});function Sv(){return fp(this)}function $v(){return new na(this.value(),this.__chain__)}function Tv(){this.__values__===rt&&(this.__values__=_p(this.value()));var ct=this.__index__>=this.__values__.length,vt=ct?rt:this.__values__[this.__index__++];return{done:ct,value:vt}}function Av(){return this}function Pv(ct){for(var vt,Nt=this;Nt instanceof $0;){var Gt=_d(Nt);Gt.__index__=0,Gt.__values__=rt,vt?nr.__wrapped__=Gt:vt=Gt;var nr=Gt;Nt=Nt.__wrapped__}return nr.__wrapped__=ct,vt}function Iv(){var ct=this.__wrapped__;if(ct instanceof ns){var vt=ct;return this.__actions__.length&&(vt=new ns(this)),vt=vt.reverse(),vt.__actions__.push({func:j0,args:[cu],thisArg:rt}),new na(vt,this.__chain__)}return this.thru(cu)}function Bv(){return k1(this.__wrapped__,this.__actions__)}var Mv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?++ct[Nt]:lo(ct,Nt,1)});function Cv(ct,vt,Nt){var Gt=Kn(ct)?Fu:k2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}function Rv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,Nn(vt,3))}var Ov=R1(ep),Fv=R1(tp);function Nv(ct,vt){return Os(V0(ct,vt),1)}function Lv(ct,vt){return Os(V0(ct,vt),Rt)}function Dv(ct,vt,Nt){return Nt=Nt===rt?1:Xn(Nt),Os(V0(ct,vt),Nt)}function lp(ct,vt){var Nt=Kn(ct)?Js:wo;return Nt(ct,Nn(vt,3))}function cp(ct,vt){var Nt=Kn(ct)?iy:i1;return Nt(ct,Nn(vt,3))}var Uv=C0(function(ct,vt,Nt){ys.call(ct,Nt)?ct[Nt].push(vt):lo(ct,Nt,[vt])});function jv(ct,vt,Nt,Gt){ct=Vs(ct)?ct:qo(ct),Nt=Nt&&!Gt?Xn(Nt):0;var nr=ct.length;return Nt<0&&(Nt=Ms(nr+Nt,0)),q0(ct)?Nt<=nr&&ct.indexOf(vt,Nt)>-1:!!nr&&Oo(ct,vt,Nt)>-1}var Vv=Jn(function(ct,vt,Nt){var Gt=-1,nr=typeof vt=="function",vr=Vs(ct)?Hr(ct.length):[];return wo(ct,function(Sr){vr[++Gt]=nr?Gs(vt,Sr,Nt):n0(Sr,vt,Nt)}),vr}),Hv=C0(function(ct,vt,Nt){lo(ct,Nt,vt)});function V0(ct,vt){var Nt=Kn(ct)?_s:u1;return Nt(ct,Nn(vt,3))}function zv(ct,vt,Nt,Gt){return ct==null?[]:(Kn(vt)||(vt=vt==null?[]:[vt]),Nt=Gt?rt:Nt,Kn(Nt)||(Nt=Nt==null?[]:[Nt]),y1(ct,vt,Nt))}var Gv=C0(function(ct,vt,Nt){ct[Nt?0:1].push(vt)},function(){return[[],[]]});function Wv(ct,vt,Nt){var Gt=Kn(ct)?_f:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,wo)}function qv(ct,vt,Nt){var Gt=Kn(ct)?sy:Uu,nr=arguments.length<3;return Gt(ct,Nn(vt,4),Nt,nr,i1)}function Kv(ct,vt){var Nt=Kn(ct)?go:s1;return Nt(ct,G0(Nn(vt,3)))}function Yv(ct){var vt=Kn(ct)?e1:j2;return vt(ct)}function Xv(ct,vt,Nt){(Nt?Ds(ct,vt,Nt):vt===rt)?vt=1:vt=Xn(vt);var Gt=Kn(ct)?v2:V2;return Gt(ct,vt)}function Zv(ct){var vt=Kn(ct)?b2:z2;return vt(ct)}function Jv(ct){if(ct==null)return 0;if(Vs(ct))return q0(ct)?No(ct):ct.length;var vt=Ns(ct);return vt==Er||vt==xr?ct.size:Dl(ct).length}function Qv(ct,vt,Nt){var Gt=Kn(ct)?yl:G2;return Nt&&Ds(ct,vt,Nt)&&(vt=rt),Gt(ct,Nn(vt,3))}var e3=Jn(function(ct,vt){if(ct==null)return[];var Nt=vt.length;return Nt>1&&Ds(ct,vt[0],vt[1])?vt=[]:Nt>2&&Ds(vt[0],vt[1],vt[2])&&(vt=[vt[0]]),y1(ct,Os(vt,1),[])}),H0=Ry||function(){return Rs.Date.now()};function t3(ct,vt){if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){if(--ct<1)return vt.apply(this,arguments)}}function up(ct,vt,Nt){return vt=Nt?rt:vt,vt=ct&&vt==null?ct.length:vt,co(ct,zt,rt,rt,rt,rt,vt)}function hp(ct,vt){var Nt;if(typeof vt!="function")throw new Qs(at);return ct=Xn(ct),function(){return--ct>0&&(Nt=vt.apply(this,arguments)),ct<=1&&(vt=rt),Nt}}var hu=Jn(function(ct,vt,Nt){var Gt=$t;if(Nt.length){var nr=bo(Nt,Go(hu));Gt|=Ot}return co(ct,Gt,vt,Nt,nr)}),dp=Jn(function(ct,vt,Nt){var Gt=$t|mt;if(Nt.length){var nr=bo(Nt,Go(dp));Gt|=Ot}return co(vt,Gt,ct,Nt,nr)});function pp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,St,rt,rt,rt,rt,rt,vt);return Gt.placeholder=pp.placeholder,Gt}function yp(ct,vt,Nt){vt=Nt?rt:vt;var Gt=co(ct,Bt,rt,rt,rt,rt,rt,vt);return Gt.placeholder=yp.placeholder,Gt}function mp(ct,vt,Nt){var Gt,nr,vr,Sr,Mr,Lr,Jr=0,Qr=!1,nn=!1,vn=!0;if(typeof ct!="function")throw new Qs(at);vt=_a(vt)||0,ks(Nt)&&(Qr=!!Nt.leading,nn="maxWait"in Nt,vr=nn?Ms(_a(Nt.maxWait)||0,vt):vr,vn="trailing"in Nt?!!Nt.trailing:vn);function Mn(Ts){var no=Gt,mo=nr;return Gt=nr=rt,Jr=Ts,Sr=ct.apply(mo,no),Sr}function Dn(Ts){return Jr=Ts,Mr=f0(_i,vt),Qr?Mn(Ts):Sr}function Zn(Ts){var no=Ts-Lr,mo=Ts-Jr,Op=vt-no;return nn?Fs(Op,vr-mo):Op}function Un(Ts){var no=Ts-Lr,mo=Ts-Jr;return Lr===rt||no>=vt||no<0||nn&&mo>=vr}function _i(){var Ts=H0();if(Un(Ts))return ss(Ts);Mr=f0(_i,Zn(Ts))}function ss(Ts){return Mr=rt,vn&&Gt?Mn(Ts):(Gt=nr=rt,Sr)}function Ys(){Mr!==rt&&S1(Mr),Jr=0,Gt=Lr=nr=Mr=rt}function Us(){return Mr===rt?Sr:ss(H0())}function Xs(){var Ts=H0(),no=Un(Ts);if(Gt=arguments,nr=this,Lr=Ts,no){if(Mr===rt)return Dn(Lr);if(nn)return S1(Mr),Mr=f0(_i,vt),Mn(Lr)}return Mr===rt&&(Mr=f0(_i,vt)),Sr}return Xs.cancel=Ys,Xs.flush=Us,Xs}var r3=Jn(function(ct,vt){return n1(ct,1,vt)}),n3=Jn(function(ct,vt,Nt){return n1(ct,_a(vt)||0,Nt)});function i3(ct){return co(ct,Wt)}function z0(ct,vt){if(typeof ct!="function"||vt!=null&&typeof vt!="function")throw new Qs(at);var Nt=function(){var Gt=arguments,nr=vt?vt.apply(this,Gt):Gt[0],vr=Nt.cache;if(vr.has(nr))return vr.get(nr);var Sr=ct.apply(this,Gt);return Nt.cache=vr.set(nr,Sr)||vr,Sr};return Nt.cache=new(z0.Cache||fo),Nt}z0.Cache=fo;function G0(ct){if(typeof ct!="function")throw new Qs(at);return function(){var vt=arguments;switch(vt.length){case 0:return!ct.call(this);case 1:return!ct.call(this,vt[0]);case 2:return!ct.call(this,vt[0],vt[1]);case 3:return!ct.call(this,vt[0],vt[1],vt[2])}return!ct.apply(this,vt)}}function s3(ct){return hp(2,ct)}var a3=W2(function(ct,vt){vt=vt.length==1&&Kn(vt[0])?_s(vt[0],Ws(Nn())):_s(Os(vt,1),Ws(Nn()));var Nt=vt.length;return Jn(function(Gt){for(var nr=-1,vr=Fs(Gt.length,Nt);++nr=vt}),Ro=f1(function(){return arguments}())?f1:function(ct){return Es(ct)&&ys.call(ct,"callee")&&!Yu.call(ct,"callee")},Kn=Hr.isArray,w3=Iu?Ws(Iu):P2;function Vs(ct){return ct!=null&&W0(ct.length)&&!po(ct)}function $s(ct){return Es(ct)&&Vs(ct)}function _3(ct){return ct===!0||ct===!1||Es(ct)&&Ls(ct)==Zt}var So=Fy||Eu,k3=Bu?Ws(Bu):I2;function E3(ct){return Es(ct)&&ct.nodeType===1&&!l0(ct)}function S3(ct){if(ct==null)return!0;if(Vs(ct)&&(Kn(ct)||typeof ct=="string"||typeof ct.splice=="function"||So(ct)||Wo(ct)||Ro(ct)))return!ct.length;var vt=Ns(ct);if(vt==Er||vt==xr)return!ct.size;if(o0(ct))return!Dl(ct).length;for(var Nt in ct)if(ys.call(ct,Nt))return!1;return!0}function $3(ct,vt){return i0(ct,vt)}function T3(ct,vt,Nt){Nt=typeof Nt=="function"?Nt:rt;var Gt=Nt?Nt(ct,vt):rt;return Gt===rt?i0(ct,vt,rt,Nt):!!Gt}function pu(ct){if(!Es(ct))return!1;var vt=Ls(ct);return vt==er||vt==_r||typeof ct.message=="string"&&typeof ct.name=="string"&&!l0(ct)}function A3(ct){return typeof ct=="number"&&Zu(ct)}function po(ct){if(!ks(ct))return!1;var vt=Ls(ct);return vt==Jt||vt==Ar||vt==Qt||vt==br}function vp(ct){return typeof ct=="number"&&ct==Xn(ct)}function W0(ct){return typeof ct=="number"&&ct>-1&&ct%1==0&&ct<=At}function ks(ct){var vt=typeof ct;return ct!=null&&(vt=="object"||vt=="function")}function Es(ct){return ct!=null&&typeof ct=="object"}var bp=Mu?Ws(Mu):M2;function P3(ct,vt){return ct===vt||Ll(ct,vt,iu(vt))}function I3(ct,vt,Nt){return Nt=typeof Nt=="function"?Nt:rt,Ll(ct,vt,iu(vt),Nt)}function B3(ct){return xp(ct)&&ct!=+ct}function M3(ct){if(mm(ct))throw new qn(st);return l1(ct)}function C3(ct){return ct===null}function R3(ct){return ct==null}function xp(ct){return typeof ct=="number"||Es(ct)&&Ls(ct)==Dr}function l0(ct){if(!Es(ct)||Ls(ct)!=Vr)return!1;var vt=b0(ct);if(vt===null)return!0;var Nt=ys.call(vt,"constructor")&&vt.constructor;return typeof Nt=="function"&&Nt instanceof Nt&&y0.call(Nt)==Iy}var yu=Cu?Ws(Cu):C2;function O3(ct){return vp(ct)&&ct>=-At&&ct<=At}var wp=Ru?Ws(Ru):R2;function q0(ct){return typeof ct=="string"||!Kn(ct)&&Es(ct)&&Ls(ct)==Pr}function Ks(ct){return typeof ct=="symbol"||Es(ct)&&Ls(ct)==Or}var Wo=Ou?Ws(Ou):O2;function F3(ct){return ct===rt}function N3(ct){return Es(ct)&&Ns(ct)==gr}function L3(ct){return Es(ct)&&Ls(ct)==Ir}var D3=N0(Ul),U3=N0(function(ct,vt){return ct<=vt});function _p(ct){if(!ct)return[];if(Vs(ct))return q0(ct)?$a(ct):js(ct);if(Xo&&ct[Xo])return vy(ct[Xo]());var vt=Ns(ct),Nt=vt==Er?Tl:vt==xr?h0:qo;return Nt(ct)}function yo(ct){if(!ct)return ct===0?ct:0;if(ct=_a(ct),ct===Rt||ct===-Rt){var vt=ct<0?-1:1;return vt*Pt}return ct===ct?ct:0}function Xn(ct){var vt=yo(ct),Nt=vt%1;return vt===vt?Nt?vt-Nt:vt:0}function kp(ct){return ct?Io(Xn(ct),0,Ct):0}function _a(ct){if(typeof ct=="number")return ct;if(Ks(ct))return It;if(ks(ct)){var vt=typeof ct.valueOf=="function"?ct.valueOf():ct;ct=ks(vt)?vt+"":vt}if(typeof ct!="string")return ct===0?ct:+ct;ct=ju(ct);var Nt=Vn.test(ct);return Nt||Tn.test(ct)?ty(ct.slice(2),Nt?2:8):qr.test(ct)?It:+ct}function Ep(ct){return so(ct,Hs(ct))}function j3(ct){return ct?Io(Xn(ct),-At,At):ct===0?ct:0}function ds(ct){return ct==null?"":qs(ct)}var V3=Ho(function(ct,vt){if(o0(vt)||Vs(vt)){so(vt,Cs(vt),ct);return}for(var Nt in vt)ys.call(vt,Nt)&&t0(ct,Nt,vt[Nt])}),Sp=Ho(function(ct,vt){so(vt,Hs(vt),ct)}),K0=Ho(function(ct,vt,Nt,Gt){so(vt,Hs(vt),ct,Gt)}),H3=Ho(function(ct,vt,Nt,Gt){so(vt,Cs(vt),ct,Gt)}),z3=uo(Cl);function G3(ct,vt){var Nt=Vo(ct);return vt==null?Nt:t1(Nt,vt)}var W3=Jn(function(ct,vt){ct=ms(ct);var Nt=-1,Gt=vt.length,nr=Gt>2?vt[2]:rt;for(nr&&Ds(vt[0],vt[1],nr)&&(Gt=1);++Nt1),vr}),so(ct,ru(ct),Nt),Gt&&(Nt=ga(Nt,bt|gt|kt,im));for(var nr=vt.length;nr--;)Yl(Nt,vt[nr]);return Nt});function c4(ct,vt){return Tp(ct,G0(Nn(vt)))}var u4=uo(function(ct,vt){return ct==null?{}:L2(ct,vt)});function Tp(ct,vt){if(ct==null)return{};var Nt=_s(ru(ct),function(Gt){return[Gt]});return vt=Nn(vt),m1(ct,Nt,function(Gt,nr){return vt(Gt,nr[0])})}function h4(ct,vt,Nt){vt=ko(vt,ct);var Gt=-1,nr=vt.length;for(nr||(nr=1,ct=rt);++Gtvt){var Gt=ct;ct=vt,vt=Gt}if(Nt||ct%1||vt%1){var nr=Ju();return Fs(ct+nr*(vt-ct+ey("1e-"+((nr+"").length-1))),vt)}return Hl(ct,vt)}var E4=zo(function(ct,vt,Nt){return vt=vt.toLowerCase(),ct+(Nt?Ip(vt):vt)});function Ip(ct){return vu(ds(ct).toLowerCase())}function Bp(ct){return ct=ds(ct),ct&&ct.replace(Rn,dy).replace(zp,"")}function S4(ct,vt,Nt){ct=ds(ct),vt=qs(vt);var Gt=ct.length;Nt=Nt===rt?Gt:Io(Xn(Nt),0,Gt);var nr=Nt;return Nt-=vt.length,Nt>=0&&ct.slice(Nt,nr)==vt}function $4(ct){return ct=ds(ct),ct&&Cn.test(ct)?ct.replace(En,py):ct}function T4(ct){return ct=ds(ct),ct&&cs.test(ct)?ct.replace(dn,"\\$&"):ct}var A4=zo(function(ct,vt,Nt){return ct+(Nt?"-":"")+vt.toLowerCase()}),P4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vt.toLowerCase()}),I4=C1("toLowerCase");function B4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;if(!vt||Gt>=vt)return ct;var nr=(vt-Gt)/2;return F0(k0(nr),Nt)+ct+F0(_0(nr),Nt)}function M4(ct,vt,Nt){ct=ds(ct),vt=Xn(vt);var Gt=vt?No(ct):0;return vt&&Gt>>0,Nt?(ct=ds(ct),ct&&(typeof vt=="string"||vt!=null&&!yu(vt))&&(vt=qs(vt),!vt&&Fo(ct))?Eo($a(ct),0,Nt):ct.split(vt,Nt)):[]}var D4=zo(function(ct,vt,Nt){return ct+(Nt?" ":"")+vu(vt)});function U4(ct,vt,Nt){return ct=ds(ct),Nt=Nt==null?0:Io(Xn(Nt),0,ct.length),vt=qs(vt),ct.slice(Nt,Nt+vt.length)==vt}function j4(ct,vt,Nt){var Gt=yr.templateSettings;Nt&&Ds(ct,vt,Nt)&&(vt=rt),ct=ds(ct),vt=K0({},vt,Gt,U1);var nr=K0({},vt.imports,Gt.imports,U1),vr=Cs(nr),Sr=$l(nr,vr),Mr,Lr,Jr=0,Qr=vt.interpolate||Pn,nn="__p += '",vn=Al((vt.escape||Pn).source+"|"+Qr.source+"|"+(Qr===Fn?Yr:Pn).source+"|"+(vt.evaluate||Pn).source+"|$","g"),Mn="//# sourceURL="+(ys.call(vt,"sourceURL")?(vt.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Yp+"]")+` `;ct.replace(vn,function(Un,_i,ss,Ys,Us,Xs){return ss||(ss=Ys),nn+=ct.slice(Jr,Xs).replace(In,yy),_i&&(Mr=!0,nn+=`' + __e(`+_i+`) + '`),Us&&(Lr=!0,nn+=`'; @@ -112,7 +112,7 @@ function print() { __p += __j.call(arguments, '') } * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var b$4=Symbol.for("react.element"),c$3=Symbol.for("react.portal"),d$3=Symbol.for("react.fragment"),e$3=Symbol.for("react.strict_mode"),f$5=Symbol.for("react.profiler"),g$6=Symbol.for("react.provider"),h$7=Symbol.for("react.context"),k$5=Symbol.for("react.server_context"),l$3=Symbol.for("react.forward_ref"),m$4=Symbol.for("react.suspense"),n$4=Symbol.for("react.suspense_list"),p$5=Symbol.for("react.memo"),q$5=Symbol.for("react.lazy"),t$4=Symbol.for("react.offscreen"),u$4;u$4=Symbol.for("react.module.reference");function v$6(et){if(typeof et=="object"&&et!==null){var tt=et.$$typeof;switch(tt){case b$4:switch(et=et.type,et){case d$3:case f$5:case e$3:case m$4:case n$4:return et;default:switch(et=et&&et.$$typeof,et){case k$5:case h$7:case l$3:case q$5:case p$5:case g$6:return et;default:return tt}}case c$3:return tt}}}reactIs_production_min$1.ContextConsumer=h$7;reactIs_production_min$1.ContextProvider=g$6;reactIs_production_min$1.Element=b$4;reactIs_production_min$1.ForwardRef=l$3;reactIs_production_min$1.Fragment=d$3;reactIs_production_min$1.Lazy=q$5;reactIs_production_min$1.Memo=p$5;reactIs_production_min$1.Portal=c$3;reactIs_production_min$1.Profiler=f$5;reactIs_production_min$1.StrictMode=e$3;reactIs_production_min$1.Suspense=m$4;reactIs_production_min$1.SuspenseList=n$4;reactIs_production_min$1.isAsyncMode=function(){return!1};reactIs_production_min$1.isConcurrentMode=function(){return!1};reactIs_production_min$1.isContextConsumer=function(et){return v$6(et)===h$7};reactIs_production_min$1.isContextProvider=function(et){return v$6(et)===g$6};reactIs_production_min$1.isElement=function(et){return typeof et=="object"&&et!==null&&et.$$typeof===b$4};reactIs_production_min$1.isForwardRef=function(et){return v$6(et)===l$3};reactIs_production_min$1.isFragment=function(et){return v$6(et)===d$3};reactIs_production_min$1.isLazy=function(et){return v$6(et)===q$5};reactIs_production_min$1.isMemo=function(et){return v$6(et)===p$5};reactIs_production_min$1.isPortal=function(et){return v$6(et)===c$3};reactIs_production_min$1.isProfiler=function(et){return v$6(et)===f$5};reactIs_production_min$1.isStrictMode=function(et){return v$6(et)===e$3};reactIs_production_min$1.isSuspense=function(et){return v$6(et)===m$4};reactIs_production_min$1.isSuspenseList=function(et){return v$6(et)===n$4};reactIs_production_min$1.isValidElementType=function(et){return typeof et=="string"||typeof et=="function"||et===d$3||et===f$5||et===e$3||et===m$4||et===n$4||et===t$4||typeof et=="object"&&et!==null&&(et.$$typeof===q$5||et.$$typeof===p$5||et.$$typeof===g$6||et.$$typeof===h$7||et.$$typeof===l$3||et.$$typeof===u$4||et.getModuleId!==void 0)};reactIs_production_min$1.typeOf=v$6;reactIs$2.exports=reactIs_production_min$1;var reactIsExports$1=reactIs$2.exports;function stylis_min(et){function tt(xt,Dt,tr,pr,Kt){for(var Qt=0,Zt=0,ur=0,_r=0,er,Jt,Ar=0,Er=0,Dr,Xr=Dr=er=0,Vr=0,wr=0,br=0,or=0,xr=tr.length,Pr=xr-1,Or,rr="",gr="",Ir="",Yt="",Ut;Vrer)&&(or=(rr=rr.replace(" ",":")).length),0pr&&(pr=(Dt=Dt.trim()).charCodeAt(0)),pr){case 38:return Dt.replace(mt,"$1"+xt.trim());case 58:return xt.trim()+Dt.replace(mt,"$1"+xt.trim());default:if(0<1*tr&&0Zt.charCodeAt(8))break;case 115:Kt=Kt.replace(Zt,"-webkit-"+Zt)+";"+Kt;break;case 207:case 102:Kt=Kt.replace(Zt,"-webkit-"+(102tr.charCodeAt(0)&&(tr=tr.trim()),Ct=tr,tr=[Ct],0er)&&(or=(rr=rr.replace(" ",":")).length),0pr&&(pr=(Dt=Dt.trim()).charCodeAt(0)),pr){case 38:return Dt.replace(mt,"$1"+xt.trim());case 58:return xt.trim()+Dt.replace(mt,"$1"+xt.trim());default:if(0<1*tr&&0Zt.charCodeAt(8))break;case 115:Kt=Kt.replace(Zt,"-webkit-"+Zt)+";"+Kt;break;case 207:case 102:Kt=Kt.replace(Zt,"-webkit-"+(102tr.charCodeAt(0)&&(tr=tr.trim()),Ct=tr,tr=[Ct],01?tt-1:0),nt=1;nt0?" Args: "+rt.join(", "):""))}var T$1=function(){function et(rt){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=rt}var tt=et.prototype;return tt.indexOfGroup=function(rt){for(var nt=0,it=0;it=this.groupSizes.length){for(var it=this.groupSizes,st=it.length,at=st;rt>=at;)(at<<=1)<0&&j(16,""+rt);this.groupSizes=new Uint32Array(at),this.groupSizes.set(it),this.length=at;for(var ot=st;ot=this.length||this.groupSizes[rt]===0)return nt;for(var it=this.groupSizes[rt],st=this.indexOfGroup(rt),at=st+it,ot=st;ot=V&&(V=tt+1),x$2.set(et,tt),k$3.set(tt,et)},G$1="style["+A$1+'][data-styled-version="5.3.9"]',L$1=new RegExp("^"+A$1+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),F=function(et,tt,rt){for(var nt,it=rt.split(","),st=0,at=it.length;st=0;ut--){var dt=lt[ut];if(dt&&dt.nodeType===1&&dt.hasAttribute(A$1))return dt}}(rt),st=it!==void 0?it.nextSibling:null;nt.setAttribute(A$1,"active"),nt.setAttribute("data-styled-version","5.3.9");var at=q$3();return at&&nt.setAttribute("nonce",at),rt.insertBefore(nt,st),nt},$$1=function(){function et(rt){var nt=this.element=H$1(rt);nt.appendChild(document.createTextNode("")),this.sheet=function(it){if(it.sheet)return it.sheet;for(var st=document.styleSheets,at=0,ot=st.length;at=0){var it=document.createTextNode(nt),st=this.nodes[rt];return this.element.insertBefore(it,st||null),this.length++,!0}return!1},tt.deleteRule=function(rt){this.element.removeChild(this.nodes[rt]),this.length--},tt.getRule=function(rt){return rt0&&(bt+=gt+",")}),st+=""+ut+dt+'{content:"'+bt+`"}/*!sc*/ -`}}}return st}(this)},et}(),K$5=/(a)(d)/gi,Q$1=function(et){return String.fromCharCode(et+(et>25?39:97))};function ee(et){var tt,rt="";for(tt=Math.abs(et);tt>52;tt=tt/52|0)rt=Q$1(tt%52)+rt;return(Q$1(tt%52)+rt).replace(K$5,"$1-$2")}var te=function(et,tt){for(var rt=tt.length;rt;)et=33*et^tt.charCodeAt(--rt);return et},ne=function(et){return te(5381,et)};function re$1(et){for(var tt=0;tt>>0);if(!rt.hasNameForId(it,ot)){var lt=nt(at,"."+ot,void 0,it);rt.insertRules(it,ot,lt)}st.push(ot),this.staticRulesId=ot}else{for(var ut=this.rules.length,dt=te(this.baseHash,nt.hash),bt="",gt=0;gt>>0);if(!rt.hasNameForId(it,$t)){var mt=nt(bt,"."+$t,void 0,it);rt.insertRules(it,$t,mt)}st.push($t)}}return st.join(" ")},et}(),ie=/^\s*\/\/.*$/gm,ae=[":","[",".","#"];function ce(et){var tt,rt,nt,it,st=et===void 0?E$1:et,at=st.options,ot=at===void 0?E$1:at,lt=st.plugins,ut=lt===void 0?w$3:lt,dt=new stylis_min(ot),bt=[],gt=function(yt){function $t(mt){if(mt)try{yt(mt+"}")}catch{}}return function(mt,wt,St,Bt,Ft,Lt,zt,Ht,Wt,lr){switch(mt){case 1:if(Wt===0&&wt.charCodeAt(0)===64)return yt(wt+";"),"";break;case 2:if(Ht===0)return wt+"/*|*/";break;case 3:switch(Ht){case 102:case 112:return yt(St[0]+wt),"";default:return wt+(lr===0?"/*|*/":"")}case-2:wt.split("/*|*/}").forEach($t)}}}(function(yt){bt.push(yt)}),kt=function(yt,$t,mt){return $t===0&&ae.indexOf(mt[rt.length])!==-1||mt.match(it)?yt:"."+tt};function pt(yt,$t,mt,wt){wt===void 0&&(wt="&");var St=yt.replace(ie,""),Bt=$t&&mt?mt+" "+$t+" { "+St+" }":St;return tt=wt,rt=$t,nt=new RegExp("\\"+rt+"\\b","g"),it=new RegExp("(\\"+rt+"\\b){2,}"),dt(mt||!$t?"":$t,Bt)}return dt.use([].concat(ut,[function(yt,$t,mt){yt===2&&mt.length&&mt[0].lastIndexOf(rt)>0&&(mt[0]=mt[0].replace(nt,kt))},gt,function(yt){if(yt===-2){var $t=bt;return bt=[],$t}}])),pt.hash=ut.length?ut.reduce(function(yt,$t){return $t.name||j(15),te(yt,$t.name)},5381).toString():"",pt}var ue=React.createContext();ue.Consumer;var de=React.createContext(),he=(de.Consumer,new Z),pe=ce();function fe(){return reactExports.useContext(ue)||he}function me(){return reactExports.useContext(de)||pe}var ve=function(){function et(tt,rt){var nt=this;this.inject=function(it,st){st===void 0&&(st=pe);var at=nt.name+st.hash;it.hasNameForId(nt.id,at)||it.insertRules(nt.id,at,st(nt.rules,at,"@keyframes"))},this.toString=function(){return j(12,String(nt.name))},this.name=tt,this.id="sc-keyframes-"+tt,this.rules=rt}return et.prototype.getName=function(tt){return tt===void 0&&(tt=pe),this.name+tt.hash},et}(),ge=/([A-Z])/,Se=/([A-Z])/g,we=/^ms-/,Ee=function(et){return"-"+et.toLowerCase()};function be(et){return ge.test(et)?et.replace(Se,Ee).replace(we,"-ms-"):et}var _e=function(et){return et==null||et===!1||et===""};function Ne(et,tt,rt,nt){if(Array.isArray(et)){for(var it,st=[],at=0,ot=et.length;at1?tt-1:0),nt=1;nt?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Te(et){return et.replace(De,"-").replace(je,"")}var xe=function(et){return ee(ne(et)>>>0)};function ke(et){return typeof et=="string"&&!0}var Ve=function(et){return typeof et=="function"||typeof et=="object"&&et!==null&&!Array.isArray(et)},Be=function(et){return et!=="__proto__"&&et!=="constructor"&&et!=="prototype"};function ze(et,tt,rt){var nt=et[rt];Ve(tt)&&Ve(nt)?Me(nt,tt):et[rt]=tt}function Me(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt=0||(lr[Ht]=Lt[Ht]);return lr}(tt,["componentId"]),Ft=St&&St+"-"+(ke(wt)?wt:Te(_$3(wt)));return qe(wt,v$4({},Bt,{attrs:gt,componentId:Ft}),rt)},Object.defineProperty(pt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(wt){this._foldedDefaultProps=nt?Me({},et.defaultProps,wt):wt}}),Object.defineProperty(pt,"toString",{value:function(){return"."+pt.styledComponentId}}),it&&hoistNonReactStatics$1(pt,et,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),pt}var He=function(et){return function tt(rt,nt,it){if(it===void 0&&(it=E$1),!reactIsExports$1.isValidElementType(nt))return j(1,String(nt));var st=function(){return rt(nt,it,Ce.apply(void 0,arguments))};return st.withConfig=function(at){return tt(rt,nt,v$4({},it,{},at))},st.attrs=function(at){return tt(rt,nt,v$4({},it,{attrs:Array.prototype.concat(it.attrs,at).filter(Boolean)}))},st}(qe,et)};["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(et){He[et]=He(et)});var $e=function(){function et(rt,nt){this.rules=rt,this.componentId=nt,this.isStatic=re$1(rt),Z.registerId(this.componentId+1)}var tt=et.prototype;return tt.createStyles=function(rt,nt,it,st){var at=st(Ne(this.rules,nt,it,st).join(""),""),ot=this.componentId+rt;it.insertRules(ot,ot,at)},tt.removeStyles=function(rt,nt){nt.clearRules(this.componentId+rt)},tt.renderStyles=function(rt,nt,it,st){rt>2&&Z.registerId(this.componentId+rt),this.removeStyles(rt,it),this.createStyles(rt,nt,it,st)},et}();function We(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt1?tt-1:0),nt=1;nt(tt,...rt)=>{const nt=Ce(tt,...rt);return nt.join("").trim()?Ce` +`}}}return st}(this)},et}(),K$5=/(a)(d)/gi,Q$1=function(et){return String.fromCharCode(et+(et>25?39:97))};function ee(et){var tt,rt="";for(tt=Math.abs(et);tt>52;tt=tt/52|0)rt=Q$1(tt%52)+rt;return(Q$1(tt%52)+rt).replace(K$5,"$1-$2")}var te=function(et,tt){for(var rt=tt.length;rt;)et=33*et^tt.charCodeAt(--rt);return et},ne=function(et){return te(5381,et)};function re$1(et){for(var tt=0;tt>>0);if(!rt.hasNameForId(it,ot)){var lt=nt(at,"."+ot,void 0,it);rt.insertRules(it,ot,lt)}st.push(ot),this.staticRulesId=ot}else{for(var ut=this.rules.length,dt=te(this.baseHash,nt.hash),bt="",gt=0;gt>>0);if(!rt.hasNameForId(it,$t)){var mt=nt(bt,"."+$t,void 0,it);rt.insertRules(it,$t,mt)}st.push($t)}}return st.join(" ")},et}(),ie=/^\s*\/\/.*$/gm,ae=[":","[",".","#"];function ce(et){var tt,rt,nt,it,st=et===void 0?E$1:et,at=st.options,ot=at===void 0?E$1:at,lt=st.plugins,ut=lt===void 0?w$3:lt,dt=new stylis_min(ot),bt=[],gt=function(yt){function $t(mt){if(mt)try{yt(mt+"}")}catch{}}return function(mt,wt,St,Bt,Ot,Lt,zt,Vt,Wt,lr){switch(mt){case 1:if(Wt===0&&wt.charCodeAt(0)===64)return yt(wt+";"),"";break;case 2:if(Vt===0)return wt+"/*|*/";break;case 3:switch(Vt){case 102:case 112:return yt(St[0]+wt),"";default:return wt+(lr===0?"/*|*/":"")}case-2:wt.split("/*|*/}").forEach($t)}}}(function(yt){bt.push(yt)}),kt=function(yt,$t,mt){return $t===0&&ae.indexOf(mt[rt.length])!==-1||mt.match(it)?yt:"."+tt};function pt(yt,$t,mt,wt){wt===void 0&&(wt="&");var St=yt.replace(ie,""),Bt=$t&&mt?mt+" "+$t+" { "+St+" }":St;return tt=wt,rt=$t,nt=new RegExp("\\"+rt+"\\b","g"),it=new RegExp("(\\"+rt+"\\b){2,}"),dt(mt||!$t?"":$t,Bt)}return dt.use([].concat(ut,[function(yt,$t,mt){yt===2&&mt.length&&mt[0].lastIndexOf(rt)>0&&(mt[0]=mt[0].replace(nt,kt))},gt,function(yt){if(yt===-2){var $t=bt;return bt=[],$t}}])),pt.hash=ut.length?ut.reduce(function(yt,$t){return $t.name||j(15),te(yt,$t.name)},5381).toString():"",pt}var ue=React.createContext();ue.Consumer;var de=React.createContext(),he=(de.Consumer,new Z),pe=ce();function fe(){return reactExports.useContext(ue)||he}function me(){return reactExports.useContext(de)||pe}var ve=function(){function et(tt,rt){var nt=this;this.inject=function(it,st){st===void 0&&(st=pe);var at=nt.name+st.hash;it.hasNameForId(nt.id,at)||it.insertRules(nt.id,at,st(nt.rules,at,"@keyframes"))},this.toString=function(){return j(12,String(nt.name))},this.name=tt,this.id="sc-keyframes-"+tt,this.rules=rt}return et.prototype.getName=function(tt){return tt===void 0&&(tt=pe),this.name+tt.hash},et}(),ge=/([A-Z])/,Se=/([A-Z])/g,we=/^ms-/,Ee=function(et){return"-"+et.toLowerCase()};function be(et){return ge.test(et)?et.replace(Se,Ee).replace(we,"-ms-"):et}var _e=function(et){return et==null||et===!1||et===""};function Ne(et,tt,rt,nt){if(Array.isArray(et)){for(var it,st=[],at=0,ot=et.length;at1?tt-1:0),nt=1;nt?@[\\\]^`{|}~-]+/g,je=/(^-|-$)/g;function Te(et){return et.replace(De,"-").replace(je,"")}var xe=function(et){return ee(ne(et)>>>0)};function ke(et){return typeof et=="string"&&!0}var Ve=function(et){return typeof et=="function"||typeof et=="object"&&et!==null&&!Array.isArray(et)},Be=function(et){return et!=="__proto__"&&et!=="constructor"&&et!=="prototype"};function ze(et,tt,rt){var nt=et[rt];Ve(tt)&&Ve(nt)?Me(nt,tt):et[rt]=tt}function Me(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt=0||(lr[Vt]=Lt[Vt]);return lr}(tt,["componentId"]),Ot=St&&St+"-"+(ke(wt)?wt:Te(_$3(wt)));return qe(wt,v$4({},Bt,{attrs:gt,componentId:Ot}),rt)},Object.defineProperty(pt,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(wt){this._foldedDefaultProps=nt?Me({},et.defaultProps,wt):wt}}),Object.defineProperty(pt,"toString",{value:function(){return"."+pt.styledComponentId}}),it&&hoistNonReactStatics$1(pt,et,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),pt}var He=function(et){return function tt(rt,nt,it){if(it===void 0&&(it=E$1),!reactIsExports$1.isValidElementType(nt))return j(1,String(nt));var st=function(){return rt(nt,it,Ce.apply(void 0,arguments))};return st.withConfig=function(at){return tt(rt,nt,v$4({},it,{},at))},st.attrs=function(at){return tt(rt,nt,v$4({},it,{attrs:Array.prototype.concat(it.attrs,at).filter(Boolean)}))},st}(qe,et)};["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(et){He[et]=He(et)});var $e=function(){function et(rt,nt){this.rules=rt,this.componentId=nt,this.isStatic=re$1(rt),Z.registerId(this.componentId+1)}var tt=et.prototype;return tt.createStyles=function(rt,nt,it,st){var at=st(Ne(this.rules,nt,it,st).join(""),""),ot=this.componentId+rt;it.insertRules(ot,ot,at)},tt.removeStyles=function(rt,nt){nt.clearRules(this.componentId+rt)},tt.renderStyles=function(rt,nt,it,st){rt>2&&Z.registerId(this.componentId+rt),this.removeStyles(rt,it),this.createStyles(rt,nt,it,st)},et}();function We(et){for(var tt=arguments.length,rt=new Array(tt>1?tt-1:0),nt=1;nt1?tt-1:0),nt=1;nt(tt,...rt)=>{const nt=Ce(tt,...rt);return nt.join("").trim()?Ce` @media ${et} { ${nt} } - `:[""]},breakpoints={large:1024,medium:640,small:0},media={large:cssWithMediaQuery(`(min-width: ${breakpoints.large}px)`),medium:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px)`),mediumOnly:cssWithMediaQuery(`(min-width: ${breakpoints.medium}px) and (max-width: ${breakpoints.large-1}px)`),small:cssWithMediaQuery(`(min-width: ${breakpoints.small}px)`),smallOnly:cssWithMediaQuery(`(min-width: ${breakpoints.small}px) and (max-width: ${breakpoints.medium-1}px)`)};var dist$1={},identifier$1={},assert$o={exports:{}},errors$3={},util={},types$7={},shams$1=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var tt={},rt=Symbol("test"),nt=Object(rt);if(typeof rt=="string"||Object.prototype.toString.call(rt)!=="[object Symbol]"||Object.prototype.toString.call(nt)!=="[object Symbol]")return!1;var it=42;tt[rt]=it;for(rt in tt)return!1;if(typeof Object.keys=="function"&&Object.keys(tt).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(tt).length!==0)return!1;var st=Object.getOwnPropertySymbols(tt);if(st.length!==1||st[0]!==rt||!Object.prototype.propertyIsEnumerable.call(tt,rt))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var at=Object.getOwnPropertyDescriptor(tt,rt);if(at.value!==it||at.enumerable!==!0)return!1}return!0},hasSymbols$3=shams$1,shams=function(){return hasSymbols$3()&&!!Symbol.toStringTag},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams$1,hasSymbols$2=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},test={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test}.foo===test.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",toStr$4=Object.prototype.toString,max=Math.max,funcType="[object Function]",concatty=function(tt,rt){for(var nt=[],it=0;it"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols$1?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(et){var errorProto=getProto$1(getProto$1(et));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function et(tt){var rt;if(tt==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(tt==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(tt==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(tt==="%AsyncGenerator%"){var nt=et("%AsyncGeneratorFunction%");nt&&(rt=nt.prototype)}else if(tt==="%AsyncIteratorPrototype%"){var it=et("%AsyncGenerator%");it&&getProto$1&&(rt=getProto$1(it.prototype))}return INTRINSICS[tt]=rt,rt},LEGACY_ALIASES={"%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"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=function(tt){var rt=$strSlice(tt,0,1),nt=$strSlice(tt,-1);if(rt==="%"&&nt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&rt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var it=[];return $replace(tt,rePropName,function(st,at,ot,lt){it[it.length]=ot?$replace(lt,reEscapeChar,"$1"):at||st}),it},getBaseIntrinsic=function(tt,rt){var nt=tt,it;if(hasOwn(LEGACY_ALIASES,nt)&&(it=LEGACY_ALIASES[nt],nt="%"+it[0]+"%"),hasOwn(INTRINSICS,nt)){var st=INTRINSICS[nt];if(st===needsEval&&(st=doEval(nt)),typeof st>"u"&&!rt)throw new $TypeError$2("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:it,name:nt,value:st}}throw new $SyntaxError$1("intrinsic "+tt+" does not exist!")},getIntrinsic=function(tt,rt){if(typeof tt!="string"||tt.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,tt)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=stringToPath$1(tt),it=nt.length>0?nt[0]:"",st=getBaseIntrinsic("%"+it+"%",rt),at=st.name,ot=st.value,lt=!1,ut=st.alias;ut&&(it=ut[0],$spliceApply(nt,$concat([0,1],ut)));for(var dt=1,bt=!0;dt=nt.length){var yt=$gOPD$1(ot,gt);bt=!!yt,bt&&"get"in yt&&!("originalValue"in yt.get)?ot=yt.get:ot=ot[gt]}else bt=hasOwn(ot,gt),ot=ot[gt];bt&&!lt&&(INTRINSICS[at]=ot)}}return ot},callBind$2={exports:{}},GetIntrinsic$4=getIntrinsic,$defineProperty$1=GetIntrinsic$4("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch{return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$2=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$2("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}var $SyntaxError=GetIntrinsic$2("%SyntaxError%"),$TypeError$1=GetIntrinsic$2("%TypeError%"),gopd=gopd$1,defineDataProperty=function(tt,rt,nt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof rt!="string"&&typeof rt!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var it=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,at=arguments.length>5?arguments[5]:null,ot=arguments.length>6?arguments[6]:!1,lt=!!gopd&&gopd(tt,rt);if($defineProperty)$defineProperty(tt,rt,{configurable:at===null&<?lt.configurable:!at,enumerable:it===null&<?lt.enumerable:!it,value:nt,writable:st===null&<?lt.writable:!st});else if(ot||!it&&!st&&!at)tt[rt]=nt;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=GetIntrinsic$1("%TypeError%"),$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(tt,rt){if(typeof tt!="function")throw new $TypeError("`fn` is not a function");if(typeof rt!="number"||rt<0||rt>4294967295||$floor(rt)!==rt)throw new $TypeError("`length` must be a positive 32-bit integer");var nt=arguments.length>2&&!!arguments[2],it=!0,st=!0;if("length"in tt&&gOPD$1){var at=gOPD$1(tt,"length");at&&!at.configurable&&(it=!1),at&&!at.writable&&(st=!1)}return(it||st||!nt)&&(hasDescriptors?define(tt,"length",rt,!0,!0):define(tt,"length",rt)),tt};(function(et){var tt=functionBind,rt=getIntrinsic,nt=setFunctionLength,it=rt("%TypeError%"),st=rt("%Function.prototype.apply%"),at=rt("%Function.prototype.call%"),ot=rt("%Reflect.apply%",!0)||tt.call(at,st),lt=rt("%Object.defineProperty%",!0),ut=rt("%Math.max%");if(lt)try{lt({},"a",{value:1})}catch{lt=null}et.exports=function(gt){if(typeof gt!="function")throw new it("a function is required");var kt=ot(tt,at,arguments);return nt(kt,1+ut(0,gt.length-(arguments.length-1)),!0)};var dt=function(){return ot(tt,st,arguments)};lt?lt(et.exports,"apply",{value:dt}):et.exports.apply=dt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$3=function(tt,rt){var nt=GetIntrinsic(tt,!!rt);return typeof nt=="function"&&$indexOf$1(tt,".prototype.")>-1?callBind$1(nt):nt},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(tt){return hasToStringTag$3&&tt&&typeof tt=="object"&&Symbol.toStringTag in tt?!1:$toString$1(tt)==="[object Arguments]"},isLegacyArguments=function(tt){return isStandardArguments(tt)?!0:tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&$toString$1(tt)!=="[object Array]"&&$toString$1(tt.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$3=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(tt){if(typeof tt!="function")return!1;if(isFnRegex.test(fnToStr$1.call(tt)))return!0;if(!hasToStringTag$2){var rt=toStr$3.call(tt);return rt==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var nt=getGeneratorFunc();GeneratorFunction=nt?getProto(nt):!1}return getProto(tt)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(et){et!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(tt){try{var rt=fnToStr.call(tt);return constructorRegex.test(rt)}catch{return!1}},tryFunctionObject=function(tt){try{return isES6ClassFn(tt)?!1:(fnToStr.call(tt),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(tt){if((isIE68||!tt)&&(typeof tt>"u"||typeof tt=="object"))try{var rt=toStr$2.call(tt);return(rt===ddaClass||rt===ddaClass2||rt===ddaClass3||rt===objectClass)&&tt("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;try{reflectApply(tt,null,badArrayLike)}catch(rt){if(rt!==isCallableMarker)return!1}return!isES6ClassFn(tt)&&tryFunctionObject(tt)}:function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(tt);if(isES6ClassFn(tt))return!1;var rt=toStr$2.call(tt);return rt!==fnClass&&rt!==genClass&&!/^\[object HTML/.test(rt)?!1:tryFunctionObject(tt)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$a=Object.prototype.hasOwnProperty,forEachArray=function(tt,rt,nt){for(var it=0,st=tt.length;it=3&&(it=nt),toStr$1.call(tt)==="[object Array]"?forEachArray(tt,rt,it):typeof tt=="string"?forEachString(tt,rt,it):forEachObject(tt,rt,it)},forEach_1=forEach$1,possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g$3=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var tt=[],rt=0;rt"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound$1("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(tt,rt){for(var nt=0;nt-1?rt:rt!=="Object"?!1:trySlices(tt)}return gOPD?tryTypedArrays(tt):null},whichTypedArray=whichTypedArray$1,isTypedArray$2=function(tt){return!!whichTypedArray(tt)};(function(et){var tt=isArguments$3,rt=isGeneratorFunction,nt=whichTypedArray$1,it=isTypedArray$2;function st(br){return br.call.bind(br)}var at=typeof BigInt<"u",ot=typeof Symbol<"u",lt=st(Object.prototype.toString),ut=st(Number.prototype.valueOf),dt=st(String.prototype.valueOf),bt=st(Boolean.prototype.valueOf);if(at)var gt=st(BigInt.prototype.valueOf);if(ot)var kt=st(Symbol.prototype.valueOf);function pt(br,or){if(typeof br!="object")return!1;try{return or(br),!0}catch{return!1}}et.isArgumentsObject=tt,et.isGeneratorFunction=rt,et.isTypedArray=it;function yt(br){return typeof Promise<"u"&&br instanceof Promise||br!==null&&typeof br=="object"&&typeof br.then=="function"&&typeof br.catch=="function"}et.isPromise=yt;function $t(br){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(br):it(br)||Dt(br)}et.isArrayBufferView=$t;function mt(br){return nt(br)==="Uint8Array"}et.isUint8Array=mt;function wt(br){return nt(br)==="Uint8ClampedArray"}et.isUint8ClampedArray=wt;function St(br){return nt(br)==="Uint16Array"}et.isUint16Array=St;function Bt(br){return nt(br)==="Uint32Array"}et.isUint32Array=Bt;function Ft(br){return nt(br)==="Int8Array"}et.isInt8Array=Ft;function Lt(br){return nt(br)==="Int16Array"}et.isInt16Array=Lt;function zt(br){return nt(br)==="Int32Array"}et.isInt32Array=zt;function Ht(br){return nt(br)==="Float32Array"}et.isFloat32Array=Ht;function Wt(br){return nt(br)==="Float64Array"}et.isFloat64Array=Wt;function lr(br){return nt(br)==="BigInt64Array"}et.isBigInt64Array=lr;function qt(br){return nt(br)==="BigUint64Array"}et.isBigUint64Array=qt;function Ot(br){return lt(br)==="[object Map]"}Ot.working=typeof Map<"u"&&Ot(new Map);function Mt(br){return typeof Map>"u"?!1:Ot.working?Ot(br):br instanceof Map}et.isMap=Mt;function ht(br){return lt(br)==="[object Set]"}ht.working=typeof Set<"u"&&ht(new Set);function Et(br){return typeof Set>"u"?!1:ht.working?ht(br):br instanceof Set}et.isSet=Et;function Tt(br){return lt(br)==="[object WeakMap]"}Tt.working=typeof WeakMap<"u"&&Tt(new WeakMap);function Rt(br){return typeof WeakMap>"u"?!1:Tt.working?Tt(br):br instanceof WeakMap}et.isWeakMap=Rt;function At(br){return lt(br)==="[object WeakSet]"}At.working=typeof WeakSet<"u"&&At(new WeakSet);function Pt(br){return At(br)}et.isWeakSet=Pt;function It(br){return lt(br)==="[object ArrayBuffer]"}It.working=typeof ArrayBuffer<"u"&&It(new ArrayBuffer);function Ct(br){return typeof ArrayBuffer>"u"?!1:It.working?It(br):br instanceof ArrayBuffer}et.isArrayBuffer=Ct;function xt(br){return lt(br)==="[object DataView]"}xt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&xt(new DataView(new ArrayBuffer(1),0,1));function Dt(br){return typeof DataView>"u"?!1:xt.working?xt(br):br instanceof DataView}et.isDataView=Dt;var tr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pr(br){return lt(br)==="[object SharedArrayBuffer]"}function Kt(br){return typeof tr>"u"?!1:(typeof pr.working>"u"&&(pr.working=pr(new tr)),pr.working?pr(br):br instanceof tr)}et.isSharedArrayBuffer=Kt;function Qt(br){return lt(br)==="[object AsyncFunction]"}et.isAsyncFunction=Qt;function Zt(br){return lt(br)==="[object Map Iterator]"}et.isMapIterator=Zt;function ur(br){return lt(br)==="[object Set Iterator]"}et.isSetIterator=ur;function _r(br){return lt(br)==="[object Generator]"}et.isGeneratorObject=_r;function er(br){return lt(br)==="[object WebAssembly.Module]"}et.isWebAssemblyCompiledModule=er;function Jt(br){return pt(br,ut)}et.isNumberObject=Jt;function Ar(br){return pt(br,dt)}et.isStringObject=Ar;function Er(br){return pt(br,bt)}et.isBooleanObject=Er;function Dr(br){return at&&pt(br,gt)}et.isBigIntObject=Dr;function Xr(br){return ot&&pt(br,kt)}et.isSymbolObject=Xr;function Vr(br){return Jt(br)||Ar(br)||Er(br)||Dr(br)||Xr(br)}et.isBoxedPrimitive=Vr;function wr(br){return typeof Uint8Array<"u"&&(Ct(br)||Kt(br))}et.isAnyArrayBuffer=wr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(br){Object.defineProperty(et,br,{enumerable:!1,value:function(){throw new Error(br+" is not supported in userland")}})})})(types$7);var isBufferBrowser=function(tt){return tt&&typeof tt=="object"&&typeof tt.copy=="function"&&typeof tt.fill=="function"&&typeof tt.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(tt,rt){rt&&(tt.super_=rt,tt.prototype=Object.create(rt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(tt,rt){if(rt){tt.super_=rt;var nt=function(){};nt.prototype=rt.prototype,tt.prototype=new nt,tt.prototype.constructor=tt}};var inherits_browserExports=inherits_browser.exports;(function(et){var tt=Object.getOwnPropertyDescriptors||function(Dt){for(var tr=Object.keys(Dt),pr={},Kt=0;Kt=Kt)return ur;switch(ur){case"%s":return String(pr[tr++]);case"%d":return Number(pr[tr++]);case"%j":try{return JSON.stringify(pr[tr++])}catch{return"[Circular]"}default:return ur}}),Zt=pr[tr];tr"u")return function(){return et.deprecate(xt,Dt).apply(this,arguments)};var tr=!1;function pr(){if(!tr){if(process.throwDeprecation)throw new Error(Dt);process.traceDeprecation?console.trace(Dt):console.error(Dt),tr=!0}return xt.apply(this,arguments)}return pr};var nt={},it=/^$/;if({}.NODE_DEBUG){var st={}.NODE_DEBUG;st=st.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),it=new RegExp("^"+st+"$","i")}et.debuglog=function(xt){if(xt=xt.toUpperCase(),!nt[xt])if(it.test(xt)){var Dt=process.pid;nt[xt]=function(){var tr=et.format.apply(et,arguments);console.error("%s %d: %s",xt,Dt,tr)}}else nt[xt]=function(){};return nt[xt]};function at(xt,Dt){var tr={seen:[],stylize:lt};return arguments.length>=3&&(tr.depth=arguments[2]),arguments.length>=4&&(tr.colors=arguments[3]),mt(Dt)?tr.showHidden=Dt:Dt&&et._extend(tr,Dt),zt(tr.showHidden)&&(tr.showHidden=!1),zt(tr.depth)&&(tr.depth=2),zt(tr.colors)&&(tr.colors=!1),zt(tr.customInspect)&&(tr.customInspect=!0),tr.colors&&(tr.stylize=ot),dt(tr,xt,tr.depth)}et.inspect=at,at.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},at.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ot(xt,Dt){var tr=at.styles[Dt];return tr?"\x1B["+at.colors[tr][0]+"m"+xt+"\x1B["+at.colors[tr][1]+"m":xt}function lt(xt,Dt){return xt}function ut(xt){var Dt={};return xt.forEach(function(tr,pr){Dt[tr]=!0}),Dt}function dt(xt,Dt,tr){if(xt.customInspect&&Dt&&Ot(Dt.inspect)&&Dt.inspect!==et.inspect&&!(Dt.constructor&&Dt.constructor.prototype===Dt)){var pr=Dt.inspect(tr,xt);return Ft(pr)||(pr=dt(xt,pr,tr)),pr}var Kt=bt(xt,Dt);if(Kt)return Kt;var Qt=Object.keys(Dt),Zt=ut(Qt);if(xt.showHidden&&(Qt=Object.getOwnPropertyNames(Dt)),qt(Dt)&&(Qt.indexOf("message")>=0||Qt.indexOf("description")>=0))return gt(Dt);if(Qt.length===0){if(Ot(Dt)){var ur=Dt.name?": "+Dt.name:"";return xt.stylize("[Function"+ur+"]","special")}if(Ht(Dt))return xt.stylize(RegExp.prototype.toString.call(Dt),"regexp");if(lr(Dt))return xt.stylize(Date.prototype.toString.call(Dt),"date");if(qt(Dt))return gt(Dt)}var _r="",er=!1,Jt=["{","}"];if($t(Dt)&&(er=!0,Jt=["[","]"]),Ot(Dt)){var Ar=Dt.name?": "+Dt.name:"";_r=" [Function"+Ar+"]"}if(Ht(Dt)&&(_r=" "+RegExp.prototype.toString.call(Dt)),lr(Dt)&&(_r=" "+Date.prototype.toUTCString.call(Dt)),qt(Dt)&&(_r=" "+gt(Dt)),Qt.length===0&&(!er||Dt.length==0))return Jt[0]+_r+Jt[1];if(tr<0)return Ht(Dt)?xt.stylize(RegExp.prototype.toString.call(Dt),"regexp"):xt.stylize("[Object]","special");xt.seen.push(Dt);var Er;return er?Er=kt(xt,Dt,tr,Zt,Qt):Er=Qt.map(function(Dr){return pt(xt,Dt,tr,Zt,Dr,er)}),xt.seen.pop(),yt(Er,_r,Jt)}function bt(xt,Dt){if(zt(Dt))return xt.stylize("undefined","undefined");if(Ft(Dt)){var tr="'"+JSON.stringify(Dt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(tr,"string")}if(Bt(Dt))return xt.stylize(""+Dt,"number");if(mt(Dt))return xt.stylize(""+Dt,"boolean");if(wt(Dt))return xt.stylize("null","null")}function gt(xt){return"["+Error.prototype.toString.call(xt)+"]"}function kt(xt,Dt,tr,pr,Kt){for(var Qt=[],Zt=0,ur=Dt.length;Zt"u"||!getProto$1?undefined$1:getProto$1(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(getProto$1([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols$1||!getProto$1?undefined$1:getProto$1(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols$1&&getProto$1?getProto$1(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols$1?Symbol:undefined$1,"%SyntaxError%":$SyntaxError$1,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$2,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};if(getProto$1)try{null.error}catch(et){var errorProto=getProto$1(getProto$1(et));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function et(tt){var rt;if(tt==="%AsyncFunction%")rt=getEvalledConstructor("async function () {}");else if(tt==="%GeneratorFunction%")rt=getEvalledConstructor("function* () {}");else if(tt==="%AsyncGeneratorFunction%")rt=getEvalledConstructor("async function* () {}");else if(tt==="%AsyncGenerator%"){var nt=et("%AsyncGeneratorFunction%");nt&&(rt=nt.prototype)}else if(tt==="%AsyncIteratorPrototype%"){var it=et("%AsyncGenerator%");it&&getProto$1&&(rt=getProto$1(it.prototype))}return INTRINSICS[tt]=rt,rt},LEGACY_ALIASES={"%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"]},bind=functionBind,hasOwn=hasown,$concat=bind.call(Function.call,Array.prototype.concat),$spliceApply=bind.call(Function.apply,Array.prototype.splice),$replace=bind.call(Function.call,String.prototype.replace),$strSlice=bind.call(Function.call,String.prototype.slice),$exec=bind.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=function(tt){var rt=$strSlice(tt,0,1),nt=$strSlice(tt,-1);if(rt==="%"&&nt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected closing `%`");if(nt==="%"&&rt!=="%")throw new $SyntaxError$1("invalid intrinsic syntax, expected opening `%`");var it=[];return $replace(tt,rePropName,function(st,at,ot,lt){it[it.length]=ot?$replace(lt,reEscapeChar,"$1"):at||st}),it},getBaseIntrinsic=function(tt,rt){var nt=tt,it;if(hasOwn(LEGACY_ALIASES,nt)&&(it=LEGACY_ALIASES[nt],nt="%"+it[0]+"%"),hasOwn(INTRINSICS,nt)){var st=INTRINSICS[nt];if(st===needsEval&&(st=doEval(nt)),typeof st>"u"&&!rt)throw new $TypeError$2("intrinsic "+tt+" exists, but is not available. Please file an issue!");return{alias:it,name:nt,value:st}}throw new $SyntaxError$1("intrinsic "+tt+" does not exist!")},getIntrinsic=function(tt,rt){if(typeof tt!="string"||tt.length===0)throw new $TypeError$2("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof rt!="boolean")throw new $TypeError$2('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,tt)===null)throw new $SyntaxError$1("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var nt=stringToPath$1(tt),it=nt.length>0?nt[0]:"",st=getBaseIntrinsic("%"+it+"%",rt),at=st.name,ot=st.value,lt=!1,ut=st.alias;ut&&(it=ut[0],$spliceApply(nt,$concat([0,1],ut)));for(var dt=1,bt=!0;dt=nt.length){var yt=$gOPD$1(ot,gt);bt=!!yt,bt&&"get"in yt&&!("originalValue"in yt.get)?ot=yt.get:ot=ot[gt]}else bt=hasOwn(ot,gt),ot=ot[gt];bt&&!lt&&(INTRINSICS[at]=ot)}}return ot},callBind$2={exports:{}},GetIntrinsic$4=getIntrinsic,$defineProperty$1=GetIntrinsic$4("%Object.defineProperty%",!0),hasPropertyDescriptors$1=function(){if($defineProperty$1)try{return $defineProperty$1({},"a",{value:1}),!0}catch{return!1}return!1};hasPropertyDescriptors$1.hasArrayLengthDefineBug=function(){if(!hasPropertyDescriptors$1())return null;try{return $defineProperty$1([],"length",{value:1}).length!==1}catch{return!0}};var hasPropertyDescriptors_1=hasPropertyDescriptors$1,GetIntrinsic$3=getIntrinsic,$gOPD=GetIntrinsic$3("%Object.getOwnPropertyDescriptor%",!0);if($gOPD)try{$gOPD([],"length")}catch{$gOPD=null}var gopd$1=$gOPD,hasPropertyDescriptors=hasPropertyDescriptors_1(),GetIntrinsic$2=getIntrinsic,$defineProperty=hasPropertyDescriptors&&GetIntrinsic$2("%Object.defineProperty%",!0);if($defineProperty)try{$defineProperty({},"a",{value:1})}catch{$defineProperty=!1}var $SyntaxError=GetIntrinsic$2("%SyntaxError%"),$TypeError$1=GetIntrinsic$2("%TypeError%"),gopd=gopd$1,defineDataProperty=function(tt,rt,nt){if(!tt||typeof tt!="object"&&typeof tt!="function")throw new $TypeError$1("`obj` must be an object or a function`");if(typeof rt!="string"&&typeof rt!="symbol")throw new $TypeError$1("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new $TypeError$1("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new $TypeError$1("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new $TypeError$1("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new $TypeError$1("`loose`, if provided, must be a boolean");var it=arguments.length>3?arguments[3]:null,st=arguments.length>4?arguments[4]:null,at=arguments.length>5?arguments[5]:null,ot=arguments.length>6?arguments[6]:!1,lt=!!gopd&&gopd(tt,rt);if($defineProperty)$defineProperty(tt,rt,{configurable:at===null&<?lt.configurable:!at,enumerable:it===null&<?lt.enumerable:!it,value:nt,writable:st===null&<?lt.writable:!st});else if(ot||!it&&!st&&!at)tt[rt]=nt;else throw new $SyntaxError("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},GetIntrinsic$1=getIntrinsic,define=defineDataProperty,hasDescriptors=hasPropertyDescriptors_1(),gOPD$1=gopd$1,$TypeError=GetIntrinsic$1("%TypeError%"),$floor=GetIntrinsic$1("%Math.floor%"),setFunctionLength=function(tt,rt){if(typeof tt!="function")throw new $TypeError("`fn` is not a function");if(typeof rt!="number"||rt<0||rt>4294967295||$floor(rt)!==rt)throw new $TypeError("`length` must be a positive 32-bit integer");var nt=arguments.length>2&&!!arguments[2],it=!0,st=!0;if("length"in tt&&gOPD$1){var at=gOPD$1(tt,"length");at&&!at.configurable&&(it=!1),at&&!at.writable&&(st=!1)}return(it||st||!nt)&&(hasDescriptors?define(tt,"length",rt,!0,!0):define(tt,"length",rt)),tt};(function(et){var tt=functionBind,rt=getIntrinsic,nt=setFunctionLength,it=rt("%TypeError%"),st=rt("%Function.prototype.apply%"),at=rt("%Function.prototype.call%"),ot=rt("%Reflect.apply%",!0)||tt.call(at,st),lt=rt("%Object.defineProperty%",!0),ut=rt("%Math.max%");if(lt)try{lt({},"a",{value:1})}catch{lt=null}et.exports=function(gt){if(typeof gt!="function")throw new it("a function is required");var kt=ot(tt,at,arguments);return nt(kt,1+ut(0,gt.length-(arguments.length-1)),!0)};var dt=function(){return ot(tt,st,arguments)};lt?lt(et.exports,"apply",{value:dt}):et.exports.apply=dt})(callBind$2);var callBindExports=callBind$2.exports,GetIntrinsic=getIntrinsic,callBind$1=callBindExports,$indexOf$1=callBind$1(GetIntrinsic("String.prototype.indexOf")),callBound$3=function(tt,rt){var nt=GetIntrinsic(tt,!!rt);return typeof nt=="function"&&$indexOf$1(tt,".prototype.")>-1?callBind$1(nt):nt},hasToStringTag$3=shams(),callBound$2=callBound$3,$toString$1=callBound$2("Object.prototype.toString"),isStandardArguments=function(tt){return hasToStringTag$3&&tt&&typeof tt=="object"&&Symbol.toStringTag in tt?!1:$toString$1(tt)==="[object Arguments]"},isLegacyArguments=function(tt){return isStandardArguments(tt)?!0:tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&$toString$1(tt)!=="[object Array]"&&$toString$1(tt.callee)==="[object Function]"},supportsStandardArguments=function(){return isStandardArguments(arguments)}();isStandardArguments.isLegacyArguments=isLegacyArguments;var isArguments$3=supportsStandardArguments?isStandardArguments:isLegacyArguments,toStr$3=Object.prototype.toString,fnToStr$1=Function.prototype.toString,isFnRegex=/^\s*(?:function)?\*/,hasToStringTag$2=shams(),getProto=Object.getPrototypeOf,getGeneratorFunc=function(){if(!hasToStringTag$2)return!1;try{return Function("return function*() {}")()}catch{}},GeneratorFunction,isGeneratorFunction=function(tt){if(typeof tt!="function")return!1;if(isFnRegex.test(fnToStr$1.call(tt)))return!0;if(!hasToStringTag$2){var rt=toStr$3.call(tt);return rt==="[object GeneratorFunction]"}if(!getProto)return!1;if(typeof GeneratorFunction>"u"){var nt=getGeneratorFunc();GeneratorFunction=nt?getProto(nt):!1}return getProto(tt)===GeneratorFunction},fnToStr=Function.prototype.toString,reflectApply=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,badArrayLike,isCallableMarker;if(typeof reflectApply=="function"&&typeof Object.defineProperty=="function")try{badArrayLike=Object.defineProperty({},"length",{get:function(){throw isCallableMarker}}),isCallableMarker={},reflectApply(function(){throw 42},null,badArrayLike)}catch(et){et!==isCallableMarker&&(reflectApply=null)}else reflectApply=null;var constructorRegex=/^\s*class\b/,isES6ClassFn=function(tt){try{var rt=fnToStr.call(tt);return constructorRegex.test(rt)}catch{return!1}},tryFunctionObject=function(tt){try{return isES6ClassFn(tt)?!1:(fnToStr.call(tt),!0)}catch{return!1}},toStr$2=Object.prototype.toString,objectClass="[object Object]",fnClass="[object Function]",genClass="[object GeneratorFunction]",ddaClass="[object HTMLAllCollection]",ddaClass2="[object HTML document.all class]",ddaClass3="[object HTMLCollection]",hasToStringTag$1=typeof Symbol=="function"&&!!Symbol.toStringTag,isIE68=!(0 in[,]),isDDA=function(){return!1};if(typeof document=="object"){var all=document.all;toStr$2.call(all)===toStr$2.call(document.all)&&(isDDA=function(tt){if((isIE68||!tt)&&(typeof tt>"u"||typeof tt=="object"))try{var rt=toStr$2.call(tt);return(rt===ddaClass||rt===ddaClass2||rt===ddaClass3||rt===objectClass)&&tt("")==null}catch{}return!1})}var isCallable$1=reflectApply?function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;try{reflectApply(tt,null,badArrayLike)}catch(rt){if(rt!==isCallableMarker)return!1}return!isES6ClassFn(tt)&&tryFunctionObject(tt)}:function(tt){if(isDDA(tt))return!0;if(!tt||typeof tt!="function"&&typeof tt!="object")return!1;if(hasToStringTag$1)return tryFunctionObject(tt);if(isES6ClassFn(tt))return!1;var rt=toStr$2.call(tt);return rt!==fnClass&&rt!==genClass&&!/^\[object HTML/.test(rt)?!1:tryFunctionObject(tt)},isCallable=isCallable$1,toStr$1=Object.prototype.toString,hasOwnProperty$a=Object.prototype.hasOwnProperty,forEachArray=function(tt,rt,nt){for(var it=0,st=tt.length;it=3&&(it=nt),toStr$1.call(tt)==="[object Array]"?forEachArray(tt,rt,it):typeof tt=="string"?forEachString(tt,rt,it):forEachObject(tt,rt,it)},forEach_1=forEach$1,possibleNames=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],g$3=typeof globalThis>"u"?commonjsGlobal:globalThis,availableTypedArrays$1=function(){for(var tt=[],rt=0;rt"u"?commonjsGlobal:globalThis,typedArrays=availableTypedArrays(),$slice=callBound$1("String.prototype.slice"),getPrototypeOf=Object.getPrototypeOf,$indexOf=callBound$1("Array.prototype.indexOf",!0)||function(tt,rt){for(var nt=0;nt-1?rt:rt!=="Object"?!1:trySlices(tt)}return gOPD?tryTypedArrays(tt):null},whichTypedArray=whichTypedArray$1,isTypedArray$2=function(tt){return!!whichTypedArray(tt)};(function(et){var tt=isArguments$3,rt=isGeneratorFunction,nt=whichTypedArray$1,it=isTypedArray$2;function st(br){return br.call.bind(br)}var at=typeof BigInt<"u",ot=typeof Symbol<"u",lt=st(Object.prototype.toString),ut=st(Number.prototype.valueOf),dt=st(String.prototype.valueOf),bt=st(Boolean.prototype.valueOf);if(at)var gt=st(BigInt.prototype.valueOf);if(ot)var kt=st(Symbol.prototype.valueOf);function pt(br,or){if(typeof br!="object")return!1;try{return or(br),!0}catch{return!1}}et.isArgumentsObject=tt,et.isGeneratorFunction=rt,et.isTypedArray=it;function yt(br){return typeof Promise<"u"&&br instanceof Promise||br!==null&&typeof br=="object"&&typeof br.then=="function"&&typeof br.catch=="function"}et.isPromise=yt;function $t(br){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(br):it(br)||Dt(br)}et.isArrayBufferView=$t;function mt(br){return nt(br)==="Uint8Array"}et.isUint8Array=mt;function wt(br){return nt(br)==="Uint8ClampedArray"}et.isUint8ClampedArray=wt;function St(br){return nt(br)==="Uint16Array"}et.isUint16Array=St;function Bt(br){return nt(br)==="Uint32Array"}et.isUint32Array=Bt;function Ot(br){return nt(br)==="Int8Array"}et.isInt8Array=Ot;function Lt(br){return nt(br)==="Int16Array"}et.isInt16Array=Lt;function zt(br){return nt(br)==="Int32Array"}et.isInt32Array=zt;function Vt(br){return nt(br)==="Float32Array"}et.isFloat32Array=Vt;function Wt(br){return nt(br)==="Float64Array"}et.isFloat64Array=Wt;function lr(br){return nt(br)==="BigInt64Array"}et.isBigInt64Array=lr;function qt(br){return nt(br)==="BigUint64Array"}et.isBigUint64Array=qt;function Ft(br){return lt(br)==="[object Map]"}Ft.working=typeof Map<"u"&&Ft(new Map);function Mt(br){return typeof Map>"u"?!1:Ft.working?Ft(br):br instanceof Map}et.isMap=Mt;function ht(br){return lt(br)==="[object Set]"}ht.working=typeof Set<"u"&&ht(new Set);function Et(br){return typeof Set>"u"?!1:ht.working?ht(br):br instanceof Set}et.isSet=Et;function Tt(br){return lt(br)==="[object WeakMap]"}Tt.working=typeof WeakMap<"u"&&Tt(new WeakMap);function Rt(br){return typeof WeakMap>"u"?!1:Tt.working?Tt(br):br instanceof WeakMap}et.isWeakMap=Rt;function At(br){return lt(br)==="[object WeakSet]"}At.working=typeof WeakSet<"u"&&At(new WeakSet);function Pt(br){return At(br)}et.isWeakSet=Pt;function It(br){return lt(br)==="[object ArrayBuffer]"}It.working=typeof ArrayBuffer<"u"&&It(new ArrayBuffer);function Ct(br){return typeof ArrayBuffer>"u"?!1:It.working?It(br):br instanceof ArrayBuffer}et.isArrayBuffer=Ct;function xt(br){return lt(br)==="[object DataView]"}xt.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&xt(new DataView(new ArrayBuffer(1),0,1));function Dt(br){return typeof DataView>"u"?!1:xt.working?xt(br):br instanceof DataView}et.isDataView=Dt;var tr=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function pr(br){return lt(br)==="[object SharedArrayBuffer]"}function Kt(br){return typeof tr>"u"?!1:(typeof pr.working>"u"&&(pr.working=pr(new tr)),pr.working?pr(br):br instanceof tr)}et.isSharedArrayBuffer=Kt;function Qt(br){return lt(br)==="[object AsyncFunction]"}et.isAsyncFunction=Qt;function Zt(br){return lt(br)==="[object Map Iterator]"}et.isMapIterator=Zt;function ur(br){return lt(br)==="[object Set Iterator]"}et.isSetIterator=ur;function _r(br){return lt(br)==="[object Generator]"}et.isGeneratorObject=_r;function er(br){return lt(br)==="[object WebAssembly.Module]"}et.isWebAssemblyCompiledModule=er;function Jt(br){return pt(br,ut)}et.isNumberObject=Jt;function Ar(br){return pt(br,dt)}et.isStringObject=Ar;function Er(br){return pt(br,bt)}et.isBooleanObject=Er;function Dr(br){return at&&pt(br,gt)}et.isBigIntObject=Dr;function Xr(br){return ot&&pt(br,kt)}et.isSymbolObject=Xr;function Vr(br){return Jt(br)||Ar(br)||Er(br)||Dr(br)||Xr(br)}et.isBoxedPrimitive=Vr;function wr(br){return typeof Uint8Array<"u"&&(Ct(br)||Kt(br))}et.isAnyArrayBuffer=wr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(br){Object.defineProperty(et,br,{enumerable:!1,value:function(){throw new Error(br+" is not supported in userland")}})})})(types$7);var isBufferBrowser=function(tt){return tt&&typeof tt=="object"&&typeof tt.copy=="function"&&typeof tt.fill=="function"&&typeof tt.readUInt8=="function"},inherits_browser={exports:{}};typeof Object.create=="function"?inherits_browser.exports=function(tt,rt){rt&&(tt.super_=rt,tt.prototype=Object.create(rt.prototype,{constructor:{value:tt,enumerable:!1,writable:!0,configurable:!0}}))}:inherits_browser.exports=function(tt,rt){if(rt){tt.super_=rt;var nt=function(){};nt.prototype=rt.prototype,tt.prototype=new nt,tt.prototype.constructor=tt}};var inherits_browserExports=inherits_browser.exports;(function(et){var tt=Object.getOwnPropertyDescriptors||function(Dt){for(var tr=Object.keys(Dt),pr={},Kt=0;Kt=Kt)return ur;switch(ur){case"%s":return String(pr[tr++]);case"%d":return Number(pr[tr++]);case"%j":try{return JSON.stringify(pr[tr++])}catch{return"[Circular]"}default:return ur}}),Zt=pr[tr];tr"u")return function(){return et.deprecate(xt,Dt).apply(this,arguments)};var tr=!1;function pr(){if(!tr){if(process.throwDeprecation)throw new Error(Dt);process.traceDeprecation?console.trace(Dt):console.error(Dt),tr=!0}return xt.apply(this,arguments)}return pr};var nt={},it=/^$/;if({}.NODE_DEBUG){var st={}.NODE_DEBUG;st=st.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),it=new RegExp("^"+st+"$","i")}et.debuglog=function(xt){if(xt=xt.toUpperCase(),!nt[xt])if(it.test(xt)){var Dt=process.pid;nt[xt]=function(){var tr=et.format.apply(et,arguments);console.error("%s %d: %s",xt,Dt,tr)}}else nt[xt]=function(){};return nt[xt]};function at(xt,Dt){var tr={seen:[],stylize:lt};return arguments.length>=3&&(tr.depth=arguments[2]),arguments.length>=4&&(tr.colors=arguments[3]),mt(Dt)?tr.showHidden=Dt:Dt&&et._extend(tr,Dt),zt(tr.showHidden)&&(tr.showHidden=!1),zt(tr.depth)&&(tr.depth=2),zt(tr.colors)&&(tr.colors=!1),zt(tr.customInspect)&&(tr.customInspect=!0),tr.colors&&(tr.stylize=ot),dt(tr,xt,tr.depth)}et.inspect=at,at.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},at.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function ot(xt,Dt){var tr=at.styles[Dt];return tr?"\x1B["+at.colors[tr][0]+"m"+xt+"\x1B["+at.colors[tr][1]+"m":xt}function lt(xt,Dt){return xt}function ut(xt){var Dt={};return xt.forEach(function(tr,pr){Dt[tr]=!0}),Dt}function dt(xt,Dt,tr){if(xt.customInspect&&Dt&&Ft(Dt.inspect)&&Dt.inspect!==et.inspect&&!(Dt.constructor&&Dt.constructor.prototype===Dt)){var pr=Dt.inspect(tr,xt);return Ot(pr)||(pr=dt(xt,pr,tr)),pr}var Kt=bt(xt,Dt);if(Kt)return Kt;var Qt=Object.keys(Dt),Zt=ut(Qt);if(xt.showHidden&&(Qt=Object.getOwnPropertyNames(Dt)),qt(Dt)&&(Qt.indexOf("message")>=0||Qt.indexOf("description")>=0))return gt(Dt);if(Qt.length===0){if(Ft(Dt)){var ur=Dt.name?": "+Dt.name:"";return xt.stylize("[Function"+ur+"]","special")}if(Vt(Dt))return xt.stylize(RegExp.prototype.toString.call(Dt),"regexp");if(lr(Dt))return xt.stylize(Date.prototype.toString.call(Dt),"date");if(qt(Dt))return gt(Dt)}var _r="",er=!1,Jt=["{","}"];if($t(Dt)&&(er=!0,Jt=["[","]"]),Ft(Dt)){var Ar=Dt.name?": "+Dt.name:"";_r=" [Function"+Ar+"]"}if(Vt(Dt)&&(_r=" "+RegExp.prototype.toString.call(Dt)),lr(Dt)&&(_r=" "+Date.prototype.toUTCString.call(Dt)),qt(Dt)&&(_r=" "+gt(Dt)),Qt.length===0&&(!er||Dt.length==0))return Jt[0]+_r+Jt[1];if(tr<0)return Vt(Dt)?xt.stylize(RegExp.prototype.toString.call(Dt),"regexp"):xt.stylize("[Object]","special");xt.seen.push(Dt);var Er;return er?Er=kt(xt,Dt,tr,Zt,Qt):Er=Qt.map(function(Dr){return pt(xt,Dt,tr,Zt,Dr,er)}),xt.seen.pop(),yt(Er,_r,Jt)}function bt(xt,Dt){if(zt(Dt))return xt.stylize("undefined","undefined");if(Ot(Dt)){var tr="'"+JSON.stringify(Dt).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return xt.stylize(tr,"string")}if(Bt(Dt))return xt.stylize(""+Dt,"number");if(mt(Dt))return xt.stylize(""+Dt,"boolean");if(wt(Dt))return xt.stylize("null","null")}function gt(xt){return"["+Error.prototype.toString.call(xt)+"]"}function kt(xt,Dt,tr,pr,Kt){for(var Qt=[],Zt=0,ur=Dt.length;Zt-1&&(Qt?ur=ur.split(` `).map(function(er){return" "+er}).join(` `).slice(2):ur=` @@ -135,41 +135,41 @@ function print() { __p += __j.call(arguments, '') } `))):ur=xt.stylize("[Circular]","special")),zt(Zt)){if(Qt&&Kt.match(/^\d+$/))return ur;Zt=JSON.stringify(""+Kt),Zt.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(Zt=Zt.slice(1,-1),Zt=xt.stylize(Zt,"name")):(Zt=Zt.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),Zt=xt.stylize(Zt,"string"))}return Zt+": "+ur}function yt(xt,Dt,tr){var pr=xt.reduce(function(Kt,Qt){return Qt.indexOf(` `)>=0,Kt+Qt.replace(/\u001b\[\d\d?m/g,"").length+1},0);return pr>60?tr[0]+(Dt===""?"":Dt+` `)+" "+xt.join(`, - `)+" "+tr[1]:tr[0]+Dt+" "+xt.join(", ")+" "+tr[1]}et.types=types$7;function $t(xt){return Array.isArray(xt)}et.isArray=$t;function mt(xt){return typeof xt=="boolean"}et.isBoolean=mt;function wt(xt){return xt===null}et.isNull=wt;function St(xt){return xt==null}et.isNullOrUndefined=St;function Bt(xt){return typeof xt=="number"}et.isNumber=Bt;function Ft(xt){return typeof xt=="string"}et.isString=Ft;function Lt(xt){return typeof xt=="symbol"}et.isSymbol=Lt;function zt(xt){return xt===void 0}et.isUndefined=zt;function Ht(xt){return Wt(xt)&&ht(xt)==="[object RegExp]"}et.isRegExp=Ht,et.types.isRegExp=Ht;function Wt(xt){return typeof xt=="object"&&xt!==null}et.isObject=Wt;function lr(xt){return Wt(xt)&&ht(xt)==="[object Date]"}et.isDate=lr,et.types.isDate=lr;function qt(xt){return Wt(xt)&&(ht(xt)==="[object Error]"||xt instanceof Error)}et.isError=qt,et.types.isNativeError=qt;function Ot(xt){return typeof xt=="function"}et.isFunction=Ot;function Mt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt>"u"}et.isPrimitive=Mt,et.isBuffer=isBufferBrowser;function ht(xt){return Object.prototype.toString.call(xt)}function Et(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var Tt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Rt(){var xt=new Date,Dt=[Et(xt.getHours()),Et(xt.getMinutes()),Et(xt.getSeconds())].join(":");return[xt.getDate(),Tt[xt.getMonth()],Dt].join(" ")}et.log=function(){console.log("%s - %s",Rt(),et.format.apply(et,arguments))},et.inherits=inherits_browserExports,et._extend=function(xt,Dt){if(!Dt||!Wt(Dt))return xt;for(var tr=Object.keys(Dt),pr=tr.length;pr--;)xt[tr[pr]]=Dt[tr[pr]];return xt};function At(xt,Dt){return Object.prototype.hasOwnProperty.call(xt,Dt)}var Pt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;et.promisify=function(Dt){if(typeof Dt!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&Dt[Pt]){var tr=Dt[Pt];if(typeof tr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tr,Pt,{value:tr,enumerable:!1,writable:!1,configurable:!0}),tr}function tr(){for(var pr,Kt,Qt=new Promise(function(_r,er){pr=_r,Kt=er}),Zt=[],ur=0;ur"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 gt(Ft){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},gt(Ft)}var kt={},pt,yt;function $t(Ft,Lt,zt){zt||(zt=Error);function Ht(lr,qt,Ot){return typeof Lt=="string"?Lt:Lt(lr,qt,Ot)}var Wt=function(lr){at(Ot,lr);var qt=lt(Ot);function Ot(Mt,ht,Et){var Tt;return st(this,Ot),Tt=qt.call(this,Ht(Mt,ht,Et)),Tt.code=Ft,Tt}return rt(Ot)}(zt);kt[Ft]=Wt}function mt(Ft,Lt){if(Array.isArray(Ft)){var zt=Ft.length;return Ft=Ft.map(function(Ht){return String(Ht)}),zt>2?"one of ".concat(Lt," ").concat(Ft.slice(0,zt-1).join(", "),", or ")+Ft[zt-1]:zt===2?"one of ".concat(Lt," ").concat(Ft[0]," or ").concat(Ft[1]):"of ".concat(Lt," ").concat(Ft[0])}else return"of ".concat(Lt," ").concat(String(Ft))}function wt(Ft,Lt,zt){return Ft.substr(!zt||zt<0?0:+zt,Lt.length)===Lt}function St(Ft,Lt,zt){return(zt===void 0||zt>Ft.length)&&(zt=Ft.length),Ft.substring(zt-Lt.length,zt)===Lt}function Bt(Ft,Lt,zt){return typeof zt!="number"&&(zt=0),zt+Lt.length>Ft.length?!1:Ft.indexOf(Lt,zt)!==-1}return $t("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),$t("ERR_INVALID_ARG_TYPE",function(Ft,Lt,zt){pt===void 0&&(pt=requireAssert()),pt(typeof Ft=="string","'name' must be a string");var Ht;typeof Lt=="string"&&wt(Lt,"not ")?(Ht="must not be",Lt=Lt.replace(/^not /,"")):Ht="must be";var Wt;if(St(Ft," argument"))Wt="The ".concat(Ft," ").concat(Ht," ").concat(mt(Lt,"type"));else{var lr=Bt(Ft,".")?"property":"argument";Wt='The "'.concat(Ft,'" ').concat(lr," ").concat(Ht," ").concat(mt(Lt,"type"))}return Wt+=". Received type ".concat(et(zt)),Wt},TypeError),$t("ERR_INVALID_ARG_VALUE",function(Ft,Lt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";yt===void 0&&(yt=util);var Ht=yt.inspect(Lt);return Ht.length>128&&(Ht="".concat(Ht.slice(0,128),"...")),"The argument '".concat(Ft,"' ").concat(zt,". Received ").concat(Ht)},TypeError),$t("ERR_INVALID_RETURN_VALUE",function(Ft,Lt,zt){var Ht;return zt&&zt.constructor&&zt.constructor.name?Ht="instance of ".concat(zt.constructor.name):Ht="type ".concat(et(zt)),"Expected ".concat(Ft,' to be returned from the "').concat(Lt,'"')+" function but got ".concat(Ht,".")},TypeError),$t("ERR_MISSING_ARGS",function(){for(var Ft=arguments.length,Lt=new Array(Ft),zt=0;zt0,"At least one arg needs to be specified");var Ht="The ",Wt=Lt.length;switch(Lt=Lt.map(function(lr){return'"'.concat(lr,'"')}),Wt){case 1:Ht+="".concat(Lt[0]," argument");break;case 2:Ht+="".concat(Lt[0]," and ").concat(Lt[1]," arguments");break;default:Ht+=Lt.slice(0,Wt-1).join(", "),Ht+=", and ".concat(Lt[Wt-1]," arguments");break}return"".concat(Ht," must be specified")},TypeError),errors$3.codes=kt,errors$3}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function et(Pt,It){var Ct=Object.keys(Pt);if(Object.getOwnPropertySymbols){var xt=Object.getOwnPropertySymbols(Pt);It&&(xt=xt.filter(function(Dt){return Object.getOwnPropertyDescriptor(Pt,Dt).enumerable})),Ct.push.apply(Ct,xt)}return Ct}function tt(Pt){for(var It=1;It"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 yt(Pt){return Function.toString.call(Pt).indexOf("[native code]")!==-1}function $t(Pt,It){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xt,Dt){return xt.__proto__=Dt,xt},$t(Pt,It)}function mt(Pt){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ct){return Ct.__proto__||Object.getPrototypeOf(Ct)},mt(Pt)}function wt(Pt){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},wt(Pt)}var St=util,Bt=St.inspect,Ft=requireErrors(),Lt=Ft.codes.ERR_INVALID_ARG_TYPE;function zt(Pt,It,Ct){return(Ct===void 0||Ct>Pt.length)&&(Ct=Pt.length),Pt.substring(Ct-It.length,Ct)===It}function Ht(Pt,It){if(It=Math.floor(It),Pt.length==0||It==0)return"";var Ct=Pt.length*It;for(It=Math.floor(Math.log(It)/Math.log(2));It;)Pt+=Pt,It--;return Pt+=Pt.substring(0,Ct-Pt.length),Pt}var Wt="",lr="",qt="",Ot="",Mt={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ht=10;function Et(Pt){var It=Object.keys(Pt),Ct=Object.create(Object.getPrototypeOf(Pt));return It.forEach(function(xt){Ct[xt]=Pt[xt]}),Object.defineProperty(Ct,"message",{value:Pt.message}),Ct}function Tt(Pt){return Bt(Pt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Rt(Pt,It,Ct){var xt="",Dt="",tr=0,pr="",Kt=!1,Qt=Tt(Pt),Zt=Qt.split(` + `)+" "+tr[1]:tr[0]+Dt+" "+xt.join(", ")+" "+tr[1]}et.types=types$7;function $t(xt){return Array.isArray(xt)}et.isArray=$t;function mt(xt){return typeof xt=="boolean"}et.isBoolean=mt;function wt(xt){return xt===null}et.isNull=wt;function St(xt){return xt==null}et.isNullOrUndefined=St;function Bt(xt){return typeof xt=="number"}et.isNumber=Bt;function Ot(xt){return typeof xt=="string"}et.isString=Ot;function Lt(xt){return typeof xt=="symbol"}et.isSymbol=Lt;function zt(xt){return xt===void 0}et.isUndefined=zt;function Vt(xt){return Wt(xt)&&ht(xt)==="[object RegExp]"}et.isRegExp=Vt,et.types.isRegExp=Vt;function Wt(xt){return typeof xt=="object"&&xt!==null}et.isObject=Wt;function lr(xt){return Wt(xt)&&ht(xt)==="[object Date]"}et.isDate=lr,et.types.isDate=lr;function qt(xt){return Wt(xt)&&(ht(xt)==="[object Error]"||xt instanceof Error)}et.isError=qt,et.types.isNativeError=qt;function Ft(xt){return typeof xt=="function"}et.isFunction=Ft;function Mt(xt){return xt===null||typeof xt=="boolean"||typeof xt=="number"||typeof xt=="string"||typeof xt=="symbol"||typeof xt>"u"}et.isPrimitive=Mt,et.isBuffer=isBufferBrowser;function ht(xt){return Object.prototype.toString.call(xt)}function Et(xt){return xt<10?"0"+xt.toString(10):xt.toString(10)}var Tt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Rt(){var xt=new Date,Dt=[Et(xt.getHours()),Et(xt.getMinutes()),Et(xt.getSeconds())].join(":");return[xt.getDate(),Tt[xt.getMonth()],Dt].join(" ")}et.log=function(){console.log("%s - %s",Rt(),et.format.apply(et,arguments))},et.inherits=inherits_browserExports,et._extend=function(xt,Dt){if(!Dt||!Wt(Dt))return xt;for(var tr=Object.keys(Dt),pr=tr.length;pr--;)xt[tr[pr]]=Dt[tr[pr]];return xt};function At(xt,Dt){return Object.prototype.hasOwnProperty.call(xt,Dt)}var Pt=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;et.promisify=function(Dt){if(typeof Dt!="function")throw new TypeError('The "original" argument must be of type Function');if(Pt&&Dt[Pt]){var tr=Dt[Pt];if(typeof tr!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(tr,Pt,{value:tr,enumerable:!1,writable:!1,configurable:!0}),tr}function tr(){for(var pr,Kt,Qt=new Promise(function(_r,er){pr=_r,Kt=er}),Zt=[],ur=0;ur"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 gt(Ot){return gt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(zt){return zt.__proto__||Object.getPrototypeOf(zt)},gt(Ot)}var kt={},pt,yt;function $t(Ot,Lt,zt){zt||(zt=Error);function Vt(lr,qt,Ft){return typeof Lt=="string"?Lt:Lt(lr,qt,Ft)}var Wt=function(lr){at(Ft,lr);var qt=lt(Ft);function Ft(Mt,ht,Et){var Tt;return st(this,Ft),Tt=qt.call(this,Vt(Mt,ht,Et)),Tt.code=Ot,Tt}return rt(Ft)}(zt);kt[Ot]=Wt}function mt(Ot,Lt){if(Array.isArray(Ot)){var zt=Ot.length;return Ot=Ot.map(function(Vt){return String(Vt)}),zt>2?"one of ".concat(Lt," ").concat(Ot.slice(0,zt-1).join(", "),", or ")+Ot[zt-1]:zt===2?"one of ".concat(Lt," ").concat(Ot[0]," or ").concat(Ot[1]):"of ".concat(Lt," ").concat(Ot[0])}else return"of ".concat(Lt," ").concat(String(Ot))}function wt(Ot,Lt,zt){return Ot.substr(!zt||zt<0?0:+zt,Lt.length)===Lt}function St(Ot,Lt,zt){return(zt===void 0||zt>Ot.length)&&(zt=Ot.length),Ot.substring(zt-Lt.length,zt)===Lt}function Bt(Ot,Lt,zt){return typeof zt!="number"&&(zt=0),zt+Lt.length>Ot.length?!1:Ot.indexOf(Lt,zt)!==-1}return $t("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),$t("ERR_INVALID_ARG_TYPE",function(Ot,Lt,zt){pt===void 0&&(pt=requireAssert()),pt(typeof Ot=="string","'name' must be a string");var Vt;typeof Lt=="string"&&wt(Lt,"not ")?(Vt="must not be",Lt=Lt.replace(/^not /,"")):Vt="must be";var Wt;if(St(Ot," argument"))Wt="The ".concat(Ot," ").concat(Vt," ").concat(mt(Lt,"type"));else{var lr=Bt(Ot,".")?"property":"argument";Wt='The "'.concat(Ot,'" ').concat(lr," ").concat(Vt," ").concat(mt(Lt,"type"))}return Wt+=". Received type ".concat(et(zt)),Wt},TypeError),$t("ERR_INVALID_ARG_VALUE",function(Ot,Lt){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"is invalid";yt===void 0&&(yt=util);var Vt=yt.inspect(Lt);return Vt.length>128&&(Vt="".concat(Vt.slice(0,128),"...")),"The argument '".concat(Ot,"' ").concat(zt,". Received ").concat(Vt)},TypeError),$t("ERR_INVALID_RETURN_VALUE",function(Ot,Lt,zt){var Vt;return zt&&zt.constructor&&zt.constructor.name?Vt="instance of ".concat(zt.constructor.name):Vt="type ".concat(et(zt)),"Expected ".concat(Ot,' to be returned from the "').concat(Lt,'"')+" function but got ".concat(Vt,".")},TypeError),$t("ERR_MISSING_ARGS",function(){for(var Ot=arguments.length,Lt=new Array(Ot),zt=0;zt0,"At least one arg needs to be specified");var Vt="The ",Wt=Lt.length;switch(Lt=Lt.map(function(lr){return'"'.concat(lr,'"')}),Wt){case 1:Vt+="".concat(Lt[0]," argument");break;case 2:Vt+="".concat(Lt[0]," and ").concat(Lt[1]," arguments");break;default:Vt+=Lt.slice(0,Wt-1).join(", "),Vt+=", and ".concat(Lt[Wt-1]," arguments");break}return"".concat(Vt," must be specified")},TypeError),errors$3.codes=kt,errors$3}var assertion_error,hasRequiredAssertion_error;function requireAssertion_error(){if(hasRequiredAssertion_error)return assertion_error;hasRequiredAssertion_error=1;function et(Pt,It){var Ct=Object.keys(Pt);if(Object.getOwnPropertySymbols){var xt=Object.getOwnPropertySymbols(Pt);It&&(xt=xt.filter(function(Dt){return Object.getOwnPropertyDescriptor(Pt,Dt).enumerable})),Ct.push.apply(Ct,xt)}return Ct}function tt(Pt){for(var It=1;It"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 yt(Pt){return Function.toString.call(Pt).indexOf("[native code]")!==-1}function $t(Pt,It){return $t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(xt,Dt){return xt.__proto__=Dt,xt},$t(Pt,It)}function mt(Pt){return mt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Ct){return Ct.__proto__||Object.getPrototypeOf(Ct)},mt(Pt)}function wt(Pt){"@babel/helpers - typeof";return wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(It){return typeof It}:function(It){return It&&typeof Symbol=="function"&&It.constructor===Symbol&&It!==Symbol.prototype?"symbol":typeof It},wt(Pt)}var St=util,Bt=St.inspect,Ot=requireErrors(),Lt=Ot.codes.ERR_INVALID_ARG_TYPE;function zt(Pt,It,Ct){return(Ct===void 0||Ct>Pt.length)&&(Ct=Pt.length),Pt.substring(Ct-It.length,Ct)===It}function Vt(Pt,It){if(It=Math.floor(It),Pt.length==0||It==0)return"";var Ct=Pt.length*It;for(It=Math.floor(Math.log(It)/Math.log(2));It;)Pt+=Pt,It--;return Pt+=Pt.substring(0,Ct-Pt.length),Pt}var Wt="",lr="",qt="",Ft="",Mt={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},ht=10;function Et(Pt){var It=Object.keys(Pt),Ct=Object.create(Object.getPrototypeOf(Pt));return It.forEach(function(xt){Ct[xt]=Pt[xt]}),Object.defineProperty(Ct,"message",{value:Pt.message}),Ct}function Tt(Pt){return Bt(Pt,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function Rt(Pt,It,Ct){var xt="",Dt="",tr=0,pr="",Kt=!1,Qt=Tt(Pt),Zt=Qt.split(` `),ur=Tt(It).split(` `),_r=0,er="";if(Ct==="strictEqual"&&wt(Pt)==="object"&&wt(It)==="object"&&Pt!==null&&It!==null&&(Ct="strictEqualObject"),Zt.length===1&&ur.length===1&&Zt[0]!==ur[0]){var Jt=Zt[0].length+ur[0].length;if(Jt<=ht){if((wt(Pt)!=="object"||Pt===null)&&(wt(It)!=="object"||It===null)&&(Pt!==0||It!==0))return"".concat(Mt[Ct],` `)+"".concat(Zt[0]," !== ").concat(ur[0],` `)}else if(Ct!=="strictEqualObject"){var Ar=process.stderr&&process.stderr.isTTY?process.stderr.columns:80;if(Jt2&&(er=` - `.concat(Ht(" ",_r),"^"),_r=0)}}}for(var Er=Zt[Zt.length-1],Dr=ur[ur.length-1];Er===Dr&&(_r++<2?pr=` + `.concat(Vt(" ",_r),"^"),_r=0)}}}for(var Er=Zt[Zt.length-1],Dr=ur[ur.length-1];Er===Dr&&(_r++<2?pr=` `.concat(Er).concat(pr):xt=Er,Zt.pop(),ur.pop(),!(Zt.length===0||ur.length===0));)Er=Zt[Zt.length-1],Dr=ur[ur.length-1];var Xr=Math.max(Zt.length,ur.length);if(Xr===0){var Vr=Qt.split(` -`);if(Vr.length>30)for(Vr[26]="".concat(Wt,"...").concat(Ot);Vr.length>27;)Vr.pop();return"".concat(Mt.notIdentical,` +`);if(Vr.length>30)for(Vr[26]="".concat(Wt,"...").concat(Ft);Vr.length>27;)Vr.pop();return"".concat(Mt.notIdentical,` `).concat(Vr.join(` `),` `)}_r>3&&(pr=` -`.concat(Wt,"...").concat(Ot).concat(pr),Kt=!0),xt!==""&&(pr=` +`.concat(Wt,"...").concat(Ft).concat(pr),Kt=!0),xt!==""&&(pr=` `.concat(xt).concat(pr),xt="");var wr=0,br=Mt[Ct]+` -`.concat(lr,"+ actual").concat(Ot," ").concat(qt,"- expected").concat(Ot),or=" ".concat(Wt,"...").concat(Ot," Lines skipped");for(_r=0;_r1&&_r>2&&(xr>4?(Dt+=` -`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Dt+=` +`.concat(lr,"+ actual").concat(Ft," ").concat(qt,"- expected").concat(Ft),or=" ".concat(Wt,"...").concat(Ft," Lines skipped");for(_r=0;_r1&&_r>2&&(xr>4?(Dt+=` +`.concat(Wt,"...").concat(Ft),Kt=!0):xr>3&&(Dt+=` `.concat(ur[_r-2]),wr++),Dt+=` `.concat(ur[_r-1]),wr++),tr=_r,xt+=` -`.concat(qt,"-").concat(Ot," ").concat(ur[_r]),wr++;else if(ur.length<_r+1)xr>1&&_r>2&&(xr>4?(Dt+=` -`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Dt+=` +`.concat(qt,"-").concat(Ft," ").concat(ur[_r]),wr++;else if(ur.length<_r+1)xr>1&&_r>2&&(xr>4?(Dt+=` +`.concat(Wt,"...").concat(Ft),Kt=!0):xr>3&&(Dt+=` `.concat(Zt[_r-2]),wr++),Dt+=` `.concat(Zt[_r-1]),wr++),tr=_r,Dt+=` -`.concat(lr,"+").concat(Ot," ").concat(Zt[_r]),wr++;else{var Pr=ur[_r],Or=Zt[_r],rr=Or!==Pr&&(!zt(Or,",")||Or.slice(0,-1)!==Pr);rr&&zt(Pr,",")&&Pr.slice(0,-1)===Or&&(rr=!1,Or+=","),rr?(xr>1&&_r>2&&(xr>4?(Dt+=` -`.concat(Wt,"...").concat(Ot),Kt=!0):xr>3&&(Dt+=` +`.concat(lr,"+").concat(Ft," ").concat(Zt[_r]),wr++;else{var Pr=ur[_r],Or=Zt[_r],rr=Or!==Pr&&(!zt(Or,",")||Or.slice(0,-1)!==Pr);rr&&zt(Pr,",")&&Pr.slice(0,-1)===Or&&(rr=!1,Or+=","),rr?(xr>1&&_r>2&&(xr>4?(Dt+=` +`.concat(Wt,"...").concat(Ft),Kt=!0):xr>3&&(Dt+=` `.concat(Zt[_r-2]),wr++),Dt+=` `.concat(Zt[_r-1]),wr++),tr=_r,Dt+=` -`.concat(lr,"+").concat(Ot," ").concat(Or),xt+=` -`.concat(qt,"-").concat(Ot," ").concat(Pr),wr+=2):(Dt+=xt,xt="",(xr===1||_r===0)&&(Dt+=` +`.concat(lr,"+").concat(Ft," ").concat(Or),xt+=` +`.concat(qt,"-").concat(Ft," ").concat(Pr),wr+=2):(Dt+=xt,xt="",(xr===1||_r===0)&&(Dt+=` `.concat(Or),wr++))}if(wr>20&&_r30)for(Jt[26]="".concat(Wt,"...").concat(Ot);Jt.length>27;)Jt.pop();Jt.length===1?tr=Ct.call(this,"".concat(er," ").concat(Jt[0])):tr=Ct.call(this,"".concat(er,` +`).concat(Wt,"...").concat(Ft).concat(xt,` +`)+"".concat(Wt,"...").concat(Ft)}return"".concat(br).concat(Kt?or:"",` +`).concat(Dt).concat(xt).concat(pr).concat(er)}var At=function(Pt,It){lt(xt,Pt);var Ct=ut(xt);function xt(Dt){var tr;if(nt(this,xt),wt(Dt)!=="object"||Dt===null)throw new Lt("options","Object",Dt);var pr=Dt.message,Kt=Dt.operator,Qt=Dt.stackStartFn,Zt=Dt.actual,ur=Dt.expected,_r=Error.stackTraceLimit;if(Error.stackTraceLimit=0,pr!=null)tr=Ct.call(this,String(pr));else if(process.stderr&&process.stderr.isTTY&&(process.stderr&&process.stderr.getColorDepth&&process.stderr.getColorDepth()!==1?(Wt="\x1B[34m",lr="\x1B[32m",Ft="\x1B[39m",qt="\x1B[31m"):(Wt="",lr="",Ft="",qt="")),wt(Zt)==="object"&&Zt!==null&&wt(ur)==="object"&&ur!==null&&"stack"in Zt&&Zt instanceof Error&&"stack"in ur&&ur instanceof Error&&(Zt=Et(Zt),ur=Et(ur)),Kt==="deepStrictEqual"||Kt==="strictEqual")tr=Ct.call(this,Rt(Zt,ur,Kt));else if(Kt==="notDeepStrictEqual"||Kt==="notStrictEqual"){var er=Mt[Kt],Jt=Tt(Zt).split(` +`);if(Kt==="notStrictEqual"&&wt(Zt)==="object"&&Zt!==null&&(er=Mt.notStrictEqualObject),Jt.length>30)for(Jt[26]="".concat(Wt,"...").concat(Ft);Jt.length>27;)Jt.pop();Jt.length===1?tr=Ct.call(this,"".concat(er," ").concat(Jt[0])):tr=Ct.call(this,"".concat(er,` `).concat(Jt.join(` `),` @@ -181,19 +181,19 @@ function print() { __p += __j.call(arguments, '') } should equal -`):Er=" ".concat(Kt," ").concat(Er)),tr=Ct.call(this,"".concat(Ar).concat(Er))}return Error.stackTraceLimit=_r,tr.generatedMessage=!pr,Object.defineProperty(bt(tr),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),tr.code="ERR_ASSERTION",tr.actual=Zt,tr.expected=ur,tr.operator=Kt,Error.captureStackTrace&&Error.captureStackTrace(bt(tr),Qt),tr.stack,tr.name="AssertionError",dt(tr)}return st(xt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:It,value:function(tr,pr){return Bt(this,tt(tt({},pr),{},{customInspect:!1,depth:0}))}}]),xt}(gt(Error),Bt.custom);return assertion_error=At,assertion_error}var toStr=Object.prototype.toString,isArguments$2=function(tt){var rt=toStr.call(tt),nt=rt==="[object Arguments]";return nt||(nt=rt!=="[object Array]"&&tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&toStr.call(tt.callee)==="[object Function]"),nt},implementation$5,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$5;hasRequiredImplementation$1=1;var et;if(!Object.keys){var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.toString,nt=isArguments$2,it=Object.prototype.propertyIsEnumerable,st=!it.call({toString:null},"toString"),at=it.call(function(){},"prototype"),ot=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],lt=function(gt){var kt=gt.constructor;return kt&&kt.prototype===gt},ut={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},dt=function(){if(typeof window>"u")return!1;for(var gt in window)try{if(!ut["$"+gt]&&tt.call(window,gt)&&window[gt]!==null&&typeof window[gt]=="object")try{lt(window[gt])}catch{return!0}}catch{return!0}return!1}(),bt=function(gt){if(typeof window>"u"||!dt)return lt(gt);try{return lt(gt)}catch{return!1}};et=function(kt){var pt=kt!==null&&typeof kt=="object",yt=rt.call(kt)==="[object Function]",$t=nt(kt),mt=pt&&rt.call(kt)==="[object String]",wt=[];if(!pt&&!yt&&!$t)throw new TypeError("Object.keys called on a non-object");var St=at&&yt;if(mt&&kt.length>0&&!tt.call(kt,0))for(var Bt=0;Bt0)for(var Ft=0;Ft2?arguments[2]:{},gt=et(dt);tt&&(gt=nt.call(gt,Object.getOwnPropertySymbols(dt)));for(var kt=0;ktrr.length)&&(gr=rr.length);for(var Ir=0,Yt=new Array(gr);Ir10)return!0;for(var gr=0;gr57)return!0}return rr.length===10&&rr>=Math.pow(2,32)}function At(rr){return Object.keys(rr).filter(Rt).concat(bt(rr).filter(Object.prototype.propertyIsEnumerable.bind(rr)))}/*! +`):Er=" ".concat(Kt," ").concat(Er)),tr=Ct.call(this,"".concat(Ar).concat(Er))}return Error.stackTraceLimit=_r,tr.generatedMessage=!pr,Object.defineProperty(bt(tr),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),tr.code="ERR_ASSERTION",tr.actual=Zt,tr.expected=ur,tr.operator=Kt,Error.captureStackTrace&&Error.captureStackTrace(bt(tr),Qt),tr.stack,tr.name="AssertionError",dt(tr)}return st(xt,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:It,value:function(tr,pr){return Bt(this,tt(tt({},pr),{},{customInspect:!1,depth:0}))}}]),xt}(gt(Error),Bt.custom);return assertion_error=At,assertion_error}var toStr=Object.prototype.toString,isArguments$2=function(tt){var rt=toStr.call(tt),nt=rt==="[object Arguments]";return nt||(nt=rt!=="[object Array]"&&tt!==null&&typeof tt=="object"&&typeof tt.length=="number"&&tt.length>=0&&toStr.call(tt.callee)==="[object Function]"),nt},implementation$5,hasRequiredImplementation$1;function requireImplementation$1(){if(hasRequiredImplementation$1)return implementation$5;hasRequiredImplementation$1=1;var et;if(!Object.keys){var tt=Object.prototype.hasOwnProperty,rt=Object.prototype.toString,nt=isArguments$2,it=Object.prototype.propertyIsEnumerable,st=!it.call({toString:null},"toString"),at=it.call(function(){},"prototype"),ot=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],lt=function(gt){var kt=gt.constructor;return kt&&kt.prototype===gt},ut={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},dt=function(){if(typeof window>"u")return!1;for(var gt in window)try{if(!ut["$"+gt]&&tt.call(window,gt)&&window[gt]!==null&&typeof window[gt]=="object")try{lt(window[gt])}catch{return!0}}catch{return!0}return!1}(),bt=function(gt){if(typeof window>"u"||!dt)return lt(gt);try{return lt(gt)}catch{return!1}};et=function(kt){var pt=kt!==null&&typeof kt=="object",yt=rt.call(kt)==="[object Function]",$t=nt(kt),mt=pt&&rt.call(kt)==="[object String]",wt=[];if(!pt&&!yt&&!$t)throw new TypeError("Object.keys called on a non-object");var St=at&&yt;if(mt&&kt.length>0&&!tt.call(kt,0))for(var Bt=0;Bt0)for(var Ot=0;Ot2?arguments[2]:{},gt=et(dt);tt&&(gt=nt.call(gt,Object.getOwnPropertySymbols(dt)));for(var kt=0;ktrr.length)&&(gr=rr.length);for(var Ir=0,Yt=new Array(gr);Ir10)return!0;for(var gr=0;gr57)return!0}return rr.length===10&&rr>=Math.pow(2,32)}function At(rr){return Object.keys(rr).filter(Rt).concat(bt(rr).filter(Object.prototype.propertyIsEnumerable.bind(rr)))}/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT - */function Pt(rr,gr){if(rr===gr)return 0;for(var Ir=rr.length,Yt=gr.length,Ut=0,Vt=Math.min(Ir,Yt);Ut1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er1?ur-1:0),er=1;er>>0===nt,"off","integer"),nt+tt>rt.length)throw new EncodingError(nt,"Out of bounds read");return et(rt,nt)}}function _readn(et){return function(tt,rt,nt){if(enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),enforce$1(nt>>>0===nt,"len","integer"),rt+nt>tt.length)throw new EncodingError(rt,"Out of bounds read");return et(tt,rt,nt)}}function _readvar(et){return function(tt,rt){return enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(rt>>>0===rt,"off","integer"),et(tt,rt)}}function _write(et,tt){return function(rt,nt,it){if(enforce$1(Buffer.isBuffer(rt),"data","buffer"),enforce$1(it>>>0===it,"off","integer"),it+tt>rt.length)throw new EncodingError(it,"Out of bounds write");return et(rt,nt,it)}}function _writen(et){return function(tt,rt,nt,it){if(enforce$1(Buffer.isBuffer(tt),"data","buffer"),enforce$1(nt>>>0===nt,"off","integer"),enforce$1(it>>>0===it,"len","integer"),nt+it>tt.length)throw new EncodingError(nt,"Out of bounds write");return et(tt,rt,nt,it)}}function _writecb(et,tt){return function(rt,nt,it){if(enforce$1(Buffer.isBuffer(rt),"data","buffer"),enforce$1(it>>>0===it,"off","integer"),it+tt(nt)>rt.length)throw new EncodingError(it,"Out of bounds write");return et(rt,nt,it)}}bufio.readU=_readn(encoding.readU);bufio.readBigU256=_read(encoding.readBigU256,32);bufio.readBigU128=_read(encoding.readBigU128,16);bufio.readBigU64=_read(encoding.readBigU64,8);bufio.readBigU56=_read(encoding.readBigU56,7);bufio.readU64=_read(encoding.readU64,8);bufio.readU56=_read(encoding.readU56,7);bufio.readU48=_read(encoding.readU48,6);bufio.readU40=_read(encoding.readU40,5);bufio.readU32=_read(encoding.readU32,4);bufio.readU24=_read(encoding.readU24,3);bufio.readU16=_read(encoding.readU16,2);bufio.readU8=_read(encoding.readU8,1);bufio.readUBE=_readn(encoding.readUBE);bufio.readBigU256BE=_read(encoding.readBigU256BE,32);bufio.readBigU128BE=_read(encoding.readBigU128BE,16);bufio.readBigU64BE=_read(encoding.readBigU64BE,8);bufio.readBigU56BE=_read(encoding.readBigU56BE,7);bufio.readU64BE=_read(encoding.readU64BE,8);bufio.readU56BE=_read(encoding.readU56BE,7);bufio.readU48BE=_read(encoding.readU48BE,6);bufio.readU40BE=_read(encoding.readU40BE,5);bufio.readU32BE=_read(encoding.readU32BE,4);bufio.readU24BE=_read(encoding.readU24BE,3);bufio.readU16BE=_read(encoding.readU16BE,2);bufio.readI=_readn(encoding.readI);bufio.readBigI64=_read(encoding.readBigI64,8);bufio.readBigI56=_read(encoding.readBigI56,7);bufio.readI64=_read(encoding.readI64,8);bufio.readI56=_read(encoding.readI56,7);bufio.readI48=_read(encoding.readI48,6);bufio.readI40=_read(encoding.readI40,5);bufio.readI32=_read(encoding.readI32,4);bufio.readI24=_read(encoding.readI24,3);bufio.readI16=_read(encoding.readI16,2);bufio.readI8=_read(encoding.readI8,1);bufio.readIBE=_readn(encoding.readIBE);bufio.readBigI64BE=_read(encoding.readBigI64BE,8);bufio.readBigI56BE=_read(encoding.readBigI56BE,7);bufio.readI64BE=_read(encoding.readI64BE,8);bufio.readI56BE=_read(encoding.readI56BE,7);bufio.readI48BE=_read(encoding.readI48BE,6);bufio.readI40BE=_read(encoding.readI40BE,5);bufio.readI32BE=_read(encoding.readI32BE,4);bufio.readI24BE=_read(encoding.readI24BE,3);bufio.readI16BE=_read(encoding.readI16BE,2);bufio.readFloat=_read(encoding.readFloat,4);bufio.readFloatBE=_read(encoding.readFloatBE,4);bufio.readDouble=_read(encoding.readDouble,8);bufio.readDoubleBE=_read(encoding.readDoubleBE,8);bufio.writeU=_writen(encoding.writeU);bufio.writeBigU256=_write(encoding.writeBigU256,32);bufio.writeBigU128=_write(encoding.writeBigU128,16);bufio.writeBigU64=_write(encoding.writeBigU64,8);bufio.writeBigU56=_write(encoding.writeBigU56,7);bufio.writeU64=_write(encoding.writeU64,8);bufio.writeU56=_write(encoding.writeU56,7);bufio.writeU48=_write(encoding.writeU48,6);bufio.writeU40=_write(encoding.writeU40,5);bufio.writeU32=_write(encoding.writeU32,4);bufio.writeU24=_write(encoding.writeU24,3);bufio.writeU16=_write(encoding.writeU16,2);bufio.writeU8=_write(encoding.writeU8,1);bufio.writeUBE=_writen(encoding.writeUBE);bufio.writeBigU256BE=_write(encoding.writeBigU256BE,32);bufio.writeBigU128BE=_write(encoding.writeBigU128BE,16);bufio.writeBigU64BE=_write(encoding.writeBigU64BE,8);bufio.writeBigU56BE=_write(encoding.writeBigU56BE,7);bufio.writeU64BE=_write(encoding.writeU64BE,8);bufio.writeU56BE=_write(encoding.writeU56BE,7);bufio.writeU48BE=_write(encoding.writeU48BE,6);bufio.writeU40BE=_write(encoding.writeU40BE,5);bufio.writeU32BE=_write(encoding.writeU32BE,4);bufio.writeU24BE=_write(encoding.writeU24BE,3);bufio.writeU16BE=_write(encoding.writeU16BE,2);bufio.writeI=_writen(encoding.writeI);bufio.writeBigI64=_write(encoding.writeBigI64,8);bufio.writeBigI56=_write(encoding.writeBigI56,7);bufio.writeI64=_write(encoding.writeI64,8);bufio.writeI56=_write(encoding.writeI56,7);bufio.writeI48=_write(encoding.writeI48,6);bufio.writeI40=_write(encoding.writeI40,5);bufio.writeI32=_write(encoding.writeI32,4);bufio.writeI24=_write(encoding.writeI24,3);bufio.writeI16=_write(encoding.writeI16,2);bufio.writeI8=_write(encoding.writeI8,1);bufio.writeIBE=_writen(encoding.writeIBE);bufio.writeBigI64BE=_write(encoding.writeBigI64BE,8);bufio.writeBigI56BE=_write(encoding.writeBigI56BE,7);bufio.writeI64BE=_write(encoding.writeI64BE,8);bufio.writeI56BE=_write(encoding.writeI56BE,7);bufio.writeI48BE=_write(encoding.writeI48BE,6);bufio.writeI40BE=_write(encoding.writeI40BE,5);bufio.writeI32BE=_write(encoding.writeI32BE,4);bufio.writeI24BE=_write(encoding.writeI24BE,3);bufio.writeI16BE=_write(encoding.writeI16BE,2);bufio.writeFloat=_write(encoding.writeFloat,4);bufio.writeFloatBE=_write(encoding.writeFloatBE,4);bufio.writeDouble=_write(encoding.writeDouble,8);bufio.writeDoubleBE=_write(encoding.writeDoubleBE,8);bufio.readVarint=_readvar(encoding.readVarint);bufio.writeVarint=_writecb(encoding.writeVarint,encoding.sizeVarint);bufio.sizeVarint=encoding.sizeVarint;bufio.readVarint2=_readvar(encoding.readVarint2);bufio.writeVarint2=_writecb(encoding.writeVarint2,encoding.sizeVarint2);bufio.sizeVarint2=encoding.sizeVarint2;bufio.sliceBytes=encoding.sliceBytes;bufio.readBytes=encoding.readBytes;bufio.writeBytes=encoding.writeBytes;bufio.readString=encoding.readString;bufio.writeString=encoding.writeString;bufio.realloc=encoding.realloc;bufio.copy=encoding.copy;bufio.concat=encoding.concat;bufio.sizeVarBytes=encoding.sizeVarBytes;bufio.sizeVarlen=encoding.sizeVarlen;bufio.sizeVarString=encoding.sizeVarString;var cryptoBrowserify={},browser$c={exports:{}},safeBuffer$1={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh */(function(et,tt){var rt=buffer$2,nt=rt.Buffer;function it(at,ot){for(var lt in at)ot[lt]=at[lt]}nt.from&&nt.alloc&&nt.allocUnsafe&&nt.allocUnsafeSlow?et.exports=rt:(it(rt,tt),tt.Buffer=st);function st(at,ot,lt){return nt(at,ot,lt)}st.prototype=Object.create(nt.prototype),it(nt,st),st.from=function(at,ot,lt){if(typeof at=="number")throw new TypeError("Argument must not be a number");return nt(at,ot,lt)},st.alloc=function(at,ot,lt){if(typeof at!="number")throw new TypeError("Argument must be a number");var ut=nt(at);return ot!==void 0?typeof lt=="string"?ut.fill(ot,lt):ut.fill(ot):ut.fill(0),ut},st.allocUnsafe=function(at){if(typeof at!="number")throw new TypeError("Argument must be a number");return nt(at)},st.allocUnsafeSlow=function(at){if(typeof at!="number")throw new TypeError("Argument must be a number");return rt.SlowBuffer(at)}})(safeBuffer$1,safeBuffer$1.exports);var safeBufferExports=safeBuffer$1.exports,MAX_BYTES=65536,MAX_UINT32=4294967295;function oldBrowser$1(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var Buffer$H=safeBufferExports.Buffer,crypto$4=commonjsGlobal.crypto||commonjsGlobal.msCrypto;crypto$4&&crypto$4.getRandomValues?browser$c.exports=randomBytes$2:browser$c.exports=oldBrowser$1;function randomBytes$2(et,tt){if(et>MAX_UINT32)throw new RangeError("requested too many random bytes");var rt=Buffer$H.allocUnsafe(et);if(et>0)if(et>MAX_BYTES)for(var nt=0;nt0&&(at=rt[0]),at instanceof Error)throw at;var ot=new Error("Unhandled error."+(at?" ("+at.message+")":""));throw ot.context=at,ot}var lt=st[tt];if(lt===void 0)return!1;if(typeof lt=="function")ReflectApply(lt,this,rt);else for(var ut=lt.length,dt=arrayClone(lt,ut),nt=0;nt0&&at.length>it&&!at.warned){at.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+at.length+" "+String(tt)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=et,ot.type=tt,ot.count=at.length,ProcessEmitWarning(ot)}return et}EventEmitter.prototype.addListener=function(tt,rt){return _addListener(this,tt,rt,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(tt,rt){return _addListener(this,tt,rt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,tt,rt){var nt={fired:!1,wrapFn:void 0,target:et,type:tt,listener:rt},it=onceWrapper.bind(nt);return it.listener=rt,nt.wrapFn=it,it}EventEmitter.prototype.once=function(tt,rt){return checkListener(rt),this.on(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.prependOnceListener=function(tt,rt){return checkListener(rt),this.prependListener(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.removeListener=function(tt,rt){var nt,it,st,at,ot;if(checkListener(rt),it=this._events,it===void 0)return this;if(nt=it[tt],nt===void 0)return this;if(nt===rt||nt.listener===rt)--this._eventsCount===0?this._events=Object.create(null):(delete it[tt],it.removeListener&&this.emit("removeListener",tt,nt.listener||rt));else if(typeof nt!="function"){for(st=-1,at=nt.length-1;at>=0;at--)if(nt[at]===rt||nt[at].listener===rt){ot=nt[at].listener,st=at;break}if(st<0)return this;st===0?nt.shift():spliceOne(nt,st),nt.length===1&&(it[tt]=nt[0]),it.removeListener!==void 0&&this.emit("removeListener",tt,ot||rt)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(tt){var rt,nt,it;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[tt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[tt]),this;if(arguments.length===0){var st=Object.keys(nt),at;for(it=0;it=0;it--)this.removeListener(tt,rt[it]);return this};function _listeners(et,tt,rt){var nt=et._events;if(nt===void 0)return[];var it=nt[tt];return it===void 0?[]:typeof it=="function"?rt?[it.listener||it]:[it]:rt?unwrapListeners(it):arrayClone(it,it.length)}EventEmitter.prototype.listeners=function(tt){return _listeners(this,tt,!0)};EventEmitter.prototype.rawListeners=function(tt){return _listeners(this,tt,!1)};EventEmitter.listenerCount=function(et,tt){return typeof et.listenerCount=="function"?et.listenerCount(tt):listenerCount.call(et,tt)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(et){var tt=this._events;if(tt!==void 0){var rt=tt[et];if(typeof rt=="function")return 1;if(rt!==void 0)return rt.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(et,tt){for(var rt=new Array(tt),nt=0;nt0?this.tail.next=mt:this.head=mt,this.tail=mt,++this.length}},{key:"unshift",value:function($t){var mt={data:$t,next:this.head};this.length===0&&(this.tail=mt),this.head=mt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var $t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,$t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function($t){if(this.length===0)return"";for(var mt=this.head,wt=""+mt.data;mt=mt.next;)wt+=$t+mt.data;return wt}},{key:"concat",value:function($t){if(this.length===0)return ut.alloc(0);for(var mt=ut.allocUnsafe($t>>>0),wt=this.head,St=0;wt;)kt(wt.data,mt,St),St+=wt.data.length,wt=wt.next;return mt}},{key:"consume",value:function($t,mt){var wt;return $tBt.length?Bt.length:$t;if(Ft===Bt.length?St+=Bt:St+=Bt.slice(0,$t),$t-=Ft,$t===0){Ft===Bt.length?(++wt,mt.next?this.head=mt.next:this.head=this.tail=null):(this.head=mt,mt.data=Bt.slice(Ft));break}++wt}return this.length-=wt,St}},{key:"_getBuffer",value:function($t){var mt=ut.allocUnsafe($t),wt=this.head,St=1;for(wt.data.copy(mt),$t-=wt.data.length;wt=wt.next;){var Bt=wt.data,Ft=$t>Bt.length?Bt.length:$t;if(Bt.copy(mt,mt.length-$t,0,Ft),$t-=Ft,$t===0){Ft===Bt.length?(++St,wt.next?this.head=wt.next:this.head=this.tail=null):(this.head=wt,wt.data=Bt.slice(Ft));break}++St}return this.length-=St,mt}},{key:gt,value:function($t,mt){return bt(this,tt(tt({},mt),{},{depth:0,customInspect:!1}))}}]),pt}(),buffer_list}function destroy(et,tt){var rt=this,nt=this._readableState&&this._readableState.destroyed,it=this._writableState&&this._writableState.destroyed;return nt||it?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,et)):process.nextTick(emitErrorNT,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(st){!tt&&st?rt._writableState?rt._writableState.errorEmitted?process.nextTick(emitCloseNT,rt):(rt._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,rt,st)):process.nextTick(emitErrorAndCloseNT,rt,st):tt?(process.nextTick(emitCloseNT,rt),tt(st)):process.nextTick(emitCloseNT,rt)}),this)}function emitErrorAndCloseNT(et,tt){emitErrorNT(et,tt),emitCloseNT(et)}function emitCloseNT(et){et._writableState&&!et._writableState.emitClose||et._readableState&&!et._readableState.emitClose||et.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,tt){et.emit("error",tt)}function errorOrDestroy(et,tt){var rt=et._readableState,nt=et._writableState;rt&&rt.autoDestroy||nt&&nt.autoDestroy?et.destroy(tt):et.emit("error",tt)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose$1(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,et.__proto__=tt}var codes={};function createErrorType(et,tt,rt){rt||(rt=Error);function nt(st,at,ot){return typeof tt=="string"?tt:tt(st,at,ot)}var it=function(st){_inheritsLoose$1(at,st);function at(ot,lt,ut){return st.call(this,nt(ot,lt,ut))||this}return at}(rt);it.prototype.name=rt.name,it.prototype.code=et,codes[et]=it}function oneOf(et,tt){if(Array.isArray(et)){var rt=et.length;return et=et.map(function(nt){return String(nt)}),rt>2?"one of ".concat(tt," ").concat(et.slice(0,rt-1).join(", "),", or ")+et[rt-1]:rt===2?"one of ".concat(tt," ").concat(et[0]," or ").concat(et[1]):"of ".concat(tt," ").concat(et[0])}else return"of ".concat(tt," ").concat(String(et))}function startsWith(et,tt,rt){return et.substr(!rt||rt<0?0:+rt,tt.length)===tt}function endsWith(et,tt,rt){return(rt===void 0||rt>et.length)&&(rt=et.length),et.substring(rt-tt.length,rt)===tt}function includes(et,tt,rt){return typeof rt!="number"&&(rt=0),rt+tt.length>et.length?!1:et.indexOf(tt,rt)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(et,tt){return'The value "'+tt+'" is invalid for option "'+et+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(et,tt,rt){var nt;typeof tt=="string"&&startsWith(tt,"not ")?(nt="must not be",tt=tt.replace(/^not /,"")):nt="must be";var it;if(endsWith(et," argument"))it="The ".concat(et," ").concat(nt," ").concat(oneOf(tt,"type"));else{var st=includes(et,".")?"property":"argument";it='The "'.concat(et,'" ').concat(st," ").concat(nt," ").concat(oneOf(tt,"type"))}return it+=". Received type ".concat(typeof rt),it},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,tt,rt){return et.highWaterMark!=null?et.highWaterMark:tt?et[rt]:null}function getHighWaterMark(et,tt,rt,nt){var it=highWaterMarkFrom(tt,nt,rt);if(it!=null){if(!(isFinite(it)&&Math.floor(it)===it)||it<0){var st=nt?rt:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(st,it)}return Math.floor(it)}return et.objectMode?16:16*1024}var state={getHighWaterMark},browser$b=deprecate;function deprecate(et,tt){if(config("noDeprecation"))return et;var rt=!1;function nt(){if(!rt){if(config("throwDeprecation"))throw new Error(tt);config("traceDeprecation")?console.trace(tt):console.warn(tt),rt=!0}return et.apply(this,arguments)}return nt}function config(et){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var tt=commonjsGlobal.localStorage[et];return tt==null?!1:String(tt).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=Ht;function et(Kt){var Qt=this;this.next=null,this.entry=null,this.finish=function(){pr(Qt,Kt)}}var tt;Ht.WritableState=Lt;var rt={deprecate:browser$b},nt=streamBrowser,it=buffer$2.Buffer,st=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function at(Kt){return it.from(Kt)}function ot(Kt){return it.isBuffer(Kt)||Kt instanceof st}var lt=destroy_1,ut=state,dt=ut.getHighWaterMark,bt=errorsBrowser.codes,gt=bt.ERR_INVALID_ARG_TYPE,kt=bt.ERR_METHOD_NOT_IMPLEMENTED,pt=bt.ERR_MULTIPLE_CALLBACK,yt=bt.ERR_STREAM_CANNOT_PIPE,$t=bt.ERR_STREAM_DESTROYED,mt=bt.ERR_STREAM_NULL_VALUES,wt=bt.ERR_STREAM_WRITE_AFTER_END,St=bt.ERR_UNKNOWN_ENCODING,Bt=lt.errorOrDestroy;inherits_browserExports(Ht,nt);function Ft(){}function Lt(Kt,Qt,Zt){tt=tt||require_stream_duplex(),Kt=Kt||{},typeof Zt!="boolean"&&(Zt=Qt instanceof tt),this.objectMode=!!Kt.objectMode,Zt&&(this.objectMode=this.objectMode||!!Kt.writableObjectMode),this.highWaterMark=dt(this,Kt,"writableHighWaterMark",Zt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ur=Kt.decodeStrings===!1;this.decodeStrings=!ur,this.defaultEncoding=Kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_r){Tt(Qt,_r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Kt.emitClose!==!1,this.autoDestroy=!!Kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}Lt.prototype.getBuffer=function(){for(var Qt=this.bufferedRequest,Zt=[];Qt;)Zt.push(Qt),Qt=Qt.next;return Zt},function(){try{Object.defineProperty(Lt.prototype,"buffer",{get:rt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var zt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Ht,Symbol.hasInstance,{value:function(Qt){return zt.call(this,Qt)?!0:this!==Ht?!1:Qt&&Qt._writableState instanceof Lt}})):zt=function(Qt){return Qt instanceof this};function Ht(Kt){tt=tt||require_stream_duplex();var Qt=this instanceof tt;if(!Qt&&!zt.call(Ht,this))return new Ht(Kt);this._writableState=new Lt(Kt,this,Qt),this.writable=!0,Kt&&(typeof Kt.write=="function"&&(this._write=Kt.write),typeof Kt.writev=="function"&&(this._writev=Kt.writev),typeof Kt.destroy=="function"&&(this._destroy=Kt.destroy),typeof Kt.final=="function"&&(this._final=Kt.final)),nt.call(this)}Ht.prototype.pipe=function(){Bt(this,new yt)};function Wt(Kt,Qt){var Zt=new wt;Bt(Kt,Zt),process.nextTick(Qt,Zt)}function lr(Kt,Qt,Zt,ur){var _r;return Zt===null?_r=new mt:typeof Zt!="string"&&!Qt.objectMode&&(_r=new gt("chunk",["string","Buffer"],Zt)),_r?(Bt(Kt,_r),process.nextTick(ur,_r),!1):!0}Ht.prototype.write=function(Kt,Qt,Zt){var ur=this._writableState,_r=!1,er=!ur.objectMode&&ot(Kt);return er&&!it.isBuffer(Kt)&&(Kt=at(Kt)),typeof Qt=="function"&&(Zt=Qt,Qt=null),er?Qt="buffer":Qt||(Qt=ur.defaultEncoding),typeof Zt!="function"&&(Zt=Ft),ur.ending?Wt(this,Zt):(er||lr(this,ur,Kt,Zt))&&(ur.pendingcb++,_r=Ot(this,ur,er,Kt,Qt,Zt)),_r},Ht.prototype.cork=function(){this._writableState.corked++},Ht.prototype.uncork=function(){var Kt=this._writableState;Kt.corked&&(Kt.corked--,!Kt.writing&&!Kt.corked&&!Kt.bufferProcessing&&Kt.bufferedRequest&&Pt(this,Kt))},Ht.prototype.setDefaultEncoding=function(Qt){if(typeof Qt=="string"&&(Qt=Qt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qt+"").toLowerCase())>-1))throw new St(Qt);return this._writableState.defaultEncoding=Qt,this},Object.defineProperty(Ht.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qt(Kt,Qt,Zt){return!Kt.objectMode&&Kt.decodeStrings!==!1&&typeof Qt=="string"&&(Qt=it.from(Qt,Zt)),Qt}Object.defineProperty(Ht.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ot(Kt,Qt,Zt,ur,_r,er){if(!Zt){var Jt=qt(Qt,ur,_r);ur!==Jt&&(Zt=!0,_r="buffer",ur=Jt)}var Ar=Qt.objectMode?1:ur.length;Qt.length+=Ar;var Er=Qt.length>5===6?2:et>>4===14?3:et>>3===30?4:et>>6===2?-1:-2}function utf8CheckIncomplete(et,tt,rt){var nt=tt.length-1;if(nt=0?(it>0&&(et.lastNeed=it-1),it):--nt=0?(it>0&&(et.lastNeed=it-2),it):--nt=0?(it>0&&(it===2?it=0:et.lastNeed=it-3),it):0))}function utf8CheckExtraBytes(et,tt,rt){if((tt[0]&192)!==128)return et.lastNeed=0,"�";if(et.lastNeed>1&&tt.length>1){if((tt[1]&192)!==128)return et.lastNeed=1,"�";if(et.lastNeed>2&&tt.length>2&&(tt[2]&192)!==128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var tt=this.lastTotal-this.lastNeed,rt=utf8CheckExtraBytes(this,et);if(rt!==void 0)return rt;if(this.lastNeed<=et.length)return et.copy(this.lastChar,tt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,tt,0,et.length),this.lastNeed-=et.length}function utf8Text(et,tt){var rt=utf8CheckIncomplete(this,et,tt);if(!this.lastNeed)return et.toString("utf8",tt);this.lastTotal=rt;var nt=et.length-(rt-this.lastNeed);return et.copy(this.lastChar,0,nt),et.toString("utf8",tt,nt)}function utf8End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+"�":tt}function utf16Text(et,tt){if((et.length-tt)%2===0){var rt=et.toString("utf16le",tt);if(rt){var nt=rt.charCodeAt(rt.length-1);if(nt>=55296&&nt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",tt,et.length-1)}function utf16End(et){var tt=et&&et.length?this.write(et):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return tt+this.lastChar.toString("utf16le",0,rt)}return tt}function base64Text(et,tt){var rt=(et.length-tt)%3;return rt===0?et.toString("base64",tt):(this.lastNeed=3-rt,this.lastTotal=3,rt===1?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",tt,et.length-rt))}function base64End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+this.lastChar.toString("base64",0,3-this.lastNeed):tt}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(et){var tt=!1;return function(){if(!tt){tt=!0;for(var rt=arguments.length,nt=new Array(rt),it=0;it0)if(typeof Jt!="string"&&!Xr.objectMode&&Object.getPrototypeOf(Jt)!==nt.prototype&&(Jt=st(Jt)),Er)Xr.endEmitted?Ft(er,new mt):qt(er,Xr,Jt,!0);else if(Xr.ended)Ft(er,new yt);else{if(Xr.destroyed)return!1;Xr.reading=!1,Xr.decoder&&!Ar?(Jt=Xr.decoder.write(Jt),Xr.objectMode||Jt.length!==0?qt(er,Xr,Jt,!1):Pt(er,Xr)):qt(er,Xr,Jt,!1)}else Er||(Xr.reading=!1,Pt(er,Xr))}return!Xr.ended&&(Xr.length=Mt?er=Mt:(er--,er|=er>>>1,er|=er>>>2,er|=er>>>4,er|=er>>>8,er|=er>>>16,er++),er}function Et(er,Jt){return er<=0||Jt.length===0&&Jt.ended?0:Jt.objectMode?1:er!==er?Jt.flowing&&Jt.length?Jt.buffer.head.data.length:Jt.length:(er>Jt.highWaterMark&&(Jt.highWaterMark=ht(er)),er<=Jt.length?er:Jt.ended?Jt.length:(Jt.needReadable=!0,0))}Wt.prototype.read=function(er){lt("read",er),er=parseInt(er,10);var Jt=this._readableState,Ar=er;if(er!==0&&(Jt.emittedReadable=!1),er===0&&Jt.needReadable&&((Jt.highWaterMark!==0?Jt.length>=Jt.highWaterMark:Jt.length>0)||Jt.ended))return lt("read: emitReadable",Jt.length,Jt.ended),Jt.length===0&&Jt.ended?Zt(this):Rt(this),null;if(er=Et(er,Jt),er===0&&Jt.ended)return Jt.length===0&&Zt(this),null;var Er=Jt.needReadable;lt("need readable",Er),(Jt.length===0||Jt.length-er0?Dr=Qt(er,Jt):Dr=null,Dr===null?(Jt.needReadable=Jt.length<=Jt.highWaterMark,er=0):(Jt.length-=er,Jt.awaitDrain=0),Jt.length===0&&(Jt.ended||(Jt.needReadable=!0),Ar!==er&&Jt.ended&&Zt(this)),Dr!==null&&this.emit("data",Dr),Dr};function Tt(er,Jt){if(lt("onEofChunk"),!Jt.ended){if(Jt.decoder){var Ar=Jt.decoder.end();Ar&&Ar.length&&(Jt.buffer.push(Ar),Jt.length+=Jt.objectMode?1:Ar.length)}Jt.ended=!0,Jt.sync?Rt(er):(Jt.needReadable=!1,Jt.emittedReadable||(Jt.emittedReadable=!0,At(er)))}}function Rt(er){var Jt=er._readableState;lt("emitReadable",Jt.needReadable,Jt.emittedReadable),Jt.needReadable=!1,Jt.emittedReadable||(lt("emitReadable",Jt.flowing),Jt.emittedReadable=!0,process.nextTick(At,er))}function At(er){var Jt=er._readableState;lt("emitReadable_",Jt.destroyed,Jt.length,Jt.ended),!Jt.destroyed&&(Jt.length||Jt.ended)&&(er.emit("readable"),Jt.emittedReadable=!1),Jt.needReadable=!Jt.flowing&&!Jt.ended&&Jt.length<=Jt.highWaterMark,Kt(er)}function Pt(er,Jt){Jt.readingMore||(Jt.readingMore=!0,process.nextTick(It,er,Jt))}function It(er,Jt){for(;!Jt.reading&&!Jt.ended&&(Jt.length1&&_r(Er.pipes,er)!==-1)&&!or&&(lt("false write response, pause",Er.awaitDrain),Er.awaitDrain++),Ar.pause())}function Or(Yt){lt("onerror",Yt),Ir(),er.removeListener("error",Or),tt(er,"error")===0&&Ft(er,Yt)}zt(er,"error",Or);function rr(){er.removeListener("finish",gr),Ir()}er.once("close",rr);function gr(){lt("onfinish"),er.removeListener("close",rr),Ir()}er.once("finish",gr);function Ir(){lt("unpipe"),Ar.unpipe(er)}return er.emit("pipe",Ar),Er.flowing||(lt("pipe resume"),Ar.resume()),er};function Ct(er){return function(){var Ar=er._readableState;lt("pipeOnDrain",Ar.awaitDrain),Ar.awaitDrain&&Ar.awaitDrain--,Ar.awaitDrain===0&&tt(er,"data")&&(Ar.flowing=!0,Kt(er))}}Wt.prototype.unpipe=function(er){var Jt=this._readableState,Ar={hasUnpiped:!1};if(Jt.pipesCount===0)return this;if(Jt.pipesCount===1)return er&&er!==Jt.pipes?this:(er||(er=Jt.pipes),Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1,er&&er.emit("unpipe",this,Ar),this);if(!er){var Er=Jt.pipes,Dr=Jt.pipesCount;Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1;for(var Xr=0;Xr0,Er.flowing!==!1&&this.resume()):er==="readable"&&!Er.endEmitted&&!Er.readableListening&&(Er.readableListening=Er.needReadable=!0,Er.flowing=!1,Er.emittedReadable=!1,lt("on readable",Er.length,Er.reading),Er.length?Rt(this):Er.reading||process.nextTick(Dt,this)),Ar},Wt.prototype.addListener=Wt.prototype.on,Wt.prototype.removeListener=function(er,Jt){var Ar=rt.prototype.removeListener.call(this,er,Jt);return er==="readable"&&process.nextTick(xt,this),Ar},Wt.prototype.removeAllListeners=function(er){var Jt=rt.prototype.removeAllListeners.apply(this,arguments);return(er==="readable"||er===void 0)&&process.nextTick(xt,this),Jt};function xt(er){var Jt=er._readableState;Jt.readableListening=er.listenerCount("readable")>0,Jt.resumeScheduled&&!Jt.paused?Jt.flowing=!0:er.listenerCount("data")>0&&er.resume()}function Dt(er){lt("readable nexttick read 0"),er.read(0)}Wt.prototype.resume=function(){var er=this._readableState;return er.flowing||(lt("resume"),er.flowing=!er.readableListening,tr(this,er)),er.paused=!1,this};function tr(er,Jt){Jt.resumeScheduled||(Jt.resumeScheduled=!0,process.nextTick(pr,er,Jt))}function pr(er,Jt){lt("resume",Jt.reading),Jt.reading||er.read(0),Jt.resumeScheduled=!1,er.emit("resume"),Kt(er),Jt.flowing&&!Jt.reading&&er.read(0)}Wt.prototype.pause=function(){return lt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(lt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Kt(er){var Jt=er._readableState;for(lt("flow",Jt.flowing);Jt.flowing&&er.read()!==null;);}Wt.prototype.wrap=function(er){var Jt=this,Ar=this._readableState,Er=!1;er.on("end",function(){if(lt("wrapped end"),Ar.decoder&&!Ar.ended){var Vr=Ar.decoder.end();Vr&&Vr.length&&Jt.push(Vr)}Jt.push(null)}),er.on("data",function(Vr){if(lt("wrapped data"),Ar.decoder&&(Vr=Ar.decoder.write(Vr)),!(Ar.objectMode&&Vr==null)&&!(!Ar.objectMode&&(!Vr||!Vr.length))){var wr=Jt.push(Vr);wr||(Er=!0,er.pause())}});for(var Dr in er)this[Dr]===void 0&&typeof er[Dr]=="function"&&(this[Dr]=function(wr){return function(){return er[wr].apply(er,arguments)}}(Dr));for(var Xr=0;Xr=Jt.length?(Jt.decoder?Ar=Jt.buffer.join(""):Jt.buffer.length===1?Ar=Jt.buffer.first():Ar=Jt.buffer.concat(Jt.length),Jt.buffer.clear()):Ar=Jt.buffer.consume(er,Jt.decoder),Ar}function Zt(er){var Jt=er._readableState;lt("endReadable",Jt.endEmitted),Jt.endEmitted||(Jt.ended=!0,process.nextTick(ur,Jt,er))}function ur(er,Jt){if(lt("endReadableNT",er.endEmitted,er.length),!er.endEmitted&&er.length===0&&(er.endEmitted=!0,Jt.readable=!1,Jt.emit("end"),er.autoDestroy)){var Ar=Jt._writableState;(!Ar||Ar.autoDestroy&&Ar.finished)&&Jt.destroy()}}typeof Symbol=="function"&&(Wt.from=function(er,Jt){return Bt===void 0&&(Bt=requireFromBrowser()),Bt(Wt,er,Jt)});function _r(er,Jt){for(var Ar=0,Er=er.length;Ar0;return destroyer(at,lt,ut,function(dt){it||(it=dt),dt&&st.forEach(call),!lt&&(st.forEach(call),nt(it))})});return tt.reduce(pipe)}var pipeline_1=pipeline;(function(et,tt){tt=et.exports=require_stream_readable(),tt.Stream=tt,tt.Readable=tt,tt.Writable=require_stream_writable(),tt.Duplex=require_stream_duplex(),tt.Transform=_stream_transform,tt.PassThrough=_stream_passthrough,tt.finished=endOfStream,tt.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,Buffer$F=safeBufferExports.Buffer,Transform$5=readableBrowserExports.Transform,inherits$v=inherits_browserExports;function throwIfNotStringOrBuffer(et,tt){if(!Buffer$F.isBuffer(et)&&typeof et!="string")throw new TypeError(tt+" must be a string or a buffer")}function HashBase$2(et){Transform$5.call(this),this._block=Buffer$F.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$v(HashBase$2,Transform$5);HashBase$2.prototype._transform=function(et,tt,rt){var nt=null;try{this.update(et,tt)}catch(it){nt=it}rt(nt)};HashBase$2.prototype._flush=function(et){var tt=null;try{this.push(this.digest())}catch(rt){tt=rt}et(tt)};HashBase$2.prototype.update=function(et,tt){if(throwIfNotStringOrBuffer(et,"Data"),this._finalized)throw new Error("Digest already called");Buffer$F.isBuffer(et)||(et=Buffer$F.from(et,tt));for(var rt=this._block,nt=0;this._blockOffset+et.length-nt>=this._blockSize;){for(var it=this._blockOffset;it0;++st)this._length[st]+=at,at=this._length[st]/4294967296|0,at>0&&(this._length[st]-=4294967296*at);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(et){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var tt=this._digest();et!==void 0&&(tt=tt.toString(et)),this._block.fill(0),this._blockOffset=0;for(var rt=0;rt<4;++rt)this._length[rt]=0;return tt};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$u=inherits_browserExports,HashBase$1=hashBase,Buffer$E=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$u(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var et=ARRAY16$1,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);var rt=this._a,nt=this._b,it=this._c,st=this._d;rt=fnF(rt,nt,it,st,et[0],3614090360,7),st=fnF(st,rt,nt,it,et[1],3905402710,12),it=fnF(it,st,rt,nt,et[2],606105819,17),nt=fnF(nt,it,st,rt,et[3],3250441966,22),rt=fnF(rt,nt,it,st,et[4],4118548399,7),st=fnF(st,rt,nt,it,et[5],1200080426,12),it=fnF(it,st,rt,nt,et[6],2821735955,17),nt=fnF(nt,it,st,rt,et[7],4249261313,22),rt=fnF(rt,nt,it,st,et[8],1770035416,7),st=fnF(st,rt,nt,it,et[9],2336552879,12),it=fnF(it,st,rt,nt,et[10],4294925233,17),nt=fnF(nt,it,st,rt,et[11],2304563134,22),rt=fnF(rt,nt,it,st,et[12],1804603682,7),st=fnF(st,rt,nt,it,et[13],4254626195,12),it=fnF(it,st,rt,nt,et[14],2792965006,17),nt=fnF(nt,it,st,rt,et[15],1236535329,22),rt=fnG(rt,nt,it,st,et[1],4129170786,5),st=fnG(st,rt,nt,it,et[6],3225465664,9),it=fnG(it,st,rt,nt,et[11],643717713,14),nt=fnG(nt,it,st,rt,et[0],3921069994,20),rt=fnG(rt,nt,it,st,et[5],3593408605,5),st=fnG(st,rt,nt,it,et[10],38016083,9),it=fnG(it,st,rt,nt,et[15],3634488961,14),nt=fnG(nt,it,st,rt,et[4],3889429448,20),rt=fnG(rt,nt,it,st,et[9],568446438,5),st=fnG(st,rt,nt,it,et[14],3275163606,9),it=fnG(it,st,rt,nt,et[3],4107603335,14),nt=fnG(nt,it,st,rt,et[8],1163531501,20),rt=fnG(rt,nt,it,st,et[13],2850285829,5),st=fnG(st,rt,nt,it,et[2],4243563512,9),it=fnG(it,st,rt,nt,et[7],1735328473,14),nt=fnG(nt,it,st,rt,et[12],2368359562,20),rt=fnH(rt,nt,it,st,et[5],4294588738,4),st=fnH(st,rt,nt,it,et[8],2272392833,11),it=fnH(it,st,rt,nt,et[11],1839030562,16),nt=fnH(nt,it,st,rt,et[14],4259657740,23),rt=fnH(rt,nt,it,st,et[1],2763975236,4),st=fnH(st,rt,nt,it,et[4],1272893353,11),it=fnH(it,st,rt,nt,et[7],4139469664,16),nt=fnH(nt,it,st,rt,et[10],3200236656,23),rt=fnH(rt,nt,it,st,et[13],681279174,4),st=fnH(st,rt,nt,it,et[0],3936430074,11),it=fnH(it,st,rt,nt,et[3],3572445317,16),nt=fnH(nt,it,st,rt,et[6],76029189,23),rt=fnH(rt,nt,it,st,et[9],3654602809,4),st=fnH(st,rt,nt,it,et[12],3873151461,11),it=fnH(it,st,rt,nt,et[15],530742520,16),nt=fnH(nt,it,st,rt,et[2],3299628645,23),rt=fnI(rt,nt,it,st,et[0],4096336452,6),st=fnI(st,rt,nt,it,et[7],1126891415,10),it=fnI(it,st,rt,nt,et[14],2878612391,15),nt=fnI(nt,it,st,rt,et[5],4237533241,21),rt=fnI(rt,nt,it,st,et[12],1700485571,6),st=fnI(st,rt,nt,it,et[3],2399980690,10),it=fnI(it,st,rt,nt,et[10],4293915773,15),nt=fnI(nt,it,st,rt,et[1],2240044497,21),rt=fnI(rt,nt,it,st,et[8],1873313359,6),st=fnI(st,rt,nt,it,et[15],4264355552,10),it=fnI(it,st,rt,nt,et[6],2734768916,15),nt=fnI(nt,it,st,rt,et[13],1309151649,21),rt=fnI(rt,nt,it,st,et[4],4149444226,6),st=fnI(st,rt,nt,it,et[11],3174756917,10),it=fnI(it,st,rt,nt,et[2],718787259,15),nt=fnI(nt,it,st,rt,et[9],3951481745,21),this._a=this._a+rt|0,this._b=this._b+nt|0,this._c=this._c+it|0,this._d=this._d+st|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$E.allocUnsafe(16);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et};function rotl$3(et,tt){return et<>>32-tt}function fnF(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&rt|~tt&nt)+it+st|0,at)+tt|0}function fnG(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&nt|rt&~nt)+it+st|0,at)+tt|0}function fnH(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt^rt^nt)+it+st|0,at)+tt|0}function fnI(et,tt,rt,nt,it,st,at){return rotl$3(et+(rt^(tt|~nt))+it+st|0,at)+tt|0}var md5_js=MD5$3,Buffer$D=buffer$2.Buffer,inherits$t=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$t(RIPEMD160$5,HashBase);RIPEMD160$5.prototype._update=function(){for(var et=ARRAY16,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);for(var rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._a|0,lt=this._b|0,ut=this._c|0,dt=this._d|0,bt=this._e|0,gt=0;gt<80;gt+=1){var kt,pt;gt<16?(kt=fn1(rt,nt,it,st,at,et[zl[gt]],hl[0],sl[gt]),pt=fn5(ot,lt,ut,dt,bt,et[zr[gt]],hr[0],sr[gt])):gt<32?(kt=fn2(rt,nt,it,st,at,et[zl[gt]],hl[1],sl[gt]),pt=fn4(ot,lt,ut,dt,bt,et[zr[gt]],hr[1],sr[gt])):gt<48?(kt=fn3(rt,nt,it,st,at,et[zl[gt]],hl[2],sl[gt]),pt=fn3(ot,lt,ut,dt,bt,et[zr[gt]],hr[2],sr[gt])):gt<64?(kt=fn4(rt,nt,it,st,at,et[zl[gt]],hl[3],sl[gt]),pt=fn2(ot,lt,ut,dt,bt,et[zr[gt]],hr[3],sr[gt])):(kt=fn5(rt,nt,it,st,at,et[zl[gt]],hl[4],sl[gt]),pt=fn1(ot,lt,ut,dt,bt,et[zr[gt]],hr[4],sr[gt])),rt=at,at=st,st=rotl$2(it,10),it=nt,nt=kt,ot=bt,bt=dt,dt=rotl$2(ut,10),ut=lt,lt=pt}var yt=this._b+it+dt|0;this._b=this._c+st+bt|0,this._c=this._d+at+ot|0,this._d=this._e+rt+lt|0,this._e=this._a+nt+ut|0,this._a=yt};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$D.alloc?Buffer$D.alloc(20):new Buffer$D(20);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et.writeInt32LE(this._e,16),et};function rotl$2(et,tt){return et<>>32-tt}function fn1(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^rt^nt)+st+at|0,ot)+it|0}function fn2(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&rt|~tt&nt)+st+at|0,ot)+it|0}function fn3(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+((tt|~rt)^nt)+st+at|0,ot)+it|0}function fn4(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&nt|rt&~nt)+st+at|0,ot)+it|0}function fn5(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^(rt|~nt))+st+at|0,ot)+it|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},Buffer$C=safeBufferExports.Buffer;function Hash$9(et,tt){this._block=Buffer$C.alloc(et),this._finalSize=tt,this._blockSize=et,this._len=0}Hash$9.prototype.update=function(et,tt){typeof et=="string"&&(tt=tt||"utf8",et=Buffer$C.from(et,tt));for(var rt=this._block,nt=this._blockSize,it=et.length,st=this._len,at=0;at=this._finalSize&&(this._update(this._block),this._block.fill(0));var rt=this._len*8;if(rt<=4294967295)this._block.writeUInt32BE(rt,this._blockSize-4);else{var nt=(rt&4294967295)>>>0,it=(rt-nt)/4294967296;this._block.writeUInt32BE(it,this._blockSize-8),this._block.writeUInt32BE(nt,this._blockSize-4)}this._update(this._block);var st=this._hash();return et?st.toString(et):st};Hash$9.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$5=Hash$9,inherits$s=inherits_browserExports,Hash$8=hash$5,Buffer$B=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$8.call(this,64,56)}inherits$s(Sha,Hash$8);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(et){return et<<5|et>>>27}function rotl30$1(et){return et<<30|et>>>2}function ft$1(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16];for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5$1(rt)+ft$1(ut,nt,it,st)+at+tt[lt]+K$4[ut]|0;at=st,st=it,it=rotl30$1(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha.prototype._hash=function(){var et=Buffer$B.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha$4=Sha,inherits$r=inherits_browserExports,Hash$7=hash$5,Buffer$A=safeBufferExports.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$7.call(this,64,56)}inherits$r(Sha1,Hash$7);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(et){return et<<1|et>>>31}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=rotl1(tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16]);for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5(rt)+ft(ut,nt,it,st)+at+tt[lt]+K$3[ut]|0;at=st,st=it,it=rotl30(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha1.prototype._hash=function(){var et=Buffer$A.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha1$1=Sha1,inherits$q=inherits_browserExports,Hash$6=hash$5,Buffer$z=safeBufferExports.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$6.call(this,64,56)}inherits$q(Sha256$1,Hash$6);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(et,tt,rt){return rt^et&(tt^rt)}function maj$1(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0$1(et){return(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10)}function sigma1$1(et){return(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7)}function gamma0(et){return(et>>>7|et<<25)^(et>>>18|et<<14)^et>>>3}function gamma1(et){return(et>>>17|et<<15)^(et>>>19|et<<13)^et>>>10}Sha256$1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._f|0,lt=this._g|0,ut=this._h|0,dt=0;dt<16;++dt)tt[dt]=et.readInt32BE(dt*4);for(;dt<64;++dt)tt[dt]=gamma1(tt[dt-2])+tt[dt-7]+gamma0(tt[dt-15])+tt[dt-16]|0;for(var bt=0;bt<64;++bt){var gt=ut+sigma1$1(at)+ch(at,ot,lt)+K$2[bt]+tt[bt]|0,kt=sigma0$1(rt)+maj$1(rt,nt,it)|0;ut=lt,lt=ot,ot=at,at=st+gt|0,st=it,it=nt,nt=rt,rt=gt+kt|0}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0,this._f=ot+this._f|0,this._g=lt+this._g|0,this._h=ut+this._h|0};Sha256$1.prototype._hash=function(){var et=Buffer$z.allocUnsafe(32);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et.writeInt32BE(this._h,28),et};var sha256$4=Sha256$1,inherits$p=inherits_browserExports,Sha256=sha256$4,Hash$5=hash$5,Buffer$y=safeBufferExports.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$5.call(this,64,56)}inherits$p(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var et=Buffer$y.allocUnsafe(28);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et};var sha224$1=Sha224,inherits$o=inherits_browserExports,Hash$4=hash$5,Buffer$x=safeBufferExports.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$4.call(this,128,112)}inherits$o(Sha512,Hash$4);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(et,tt,rt){return rt^et&(tt^rt)}function maj(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0(et,tt){return(et>>>28|tt<<4)^(tt>>>2|et<<30)^(tt>>>7|et<<25)}function sigma1(et,tt){return(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23)}function Gamma0(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^et>>>7}function Gamma0l(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^(et>>>7|tt<<25)}function Gamma1(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^et>>>6}function Gamma1l(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^(et>>>6|tt<<26)}function getCarry(et,tt){return et>>>0>>0?1:0}Sha512.prototype._update=function(et){for(var tt=this._w,rt=this._ah|0,nt=this._bh|0,it=this._ch|0,st=this._dh|0,at=this._eh|0,ot=this._fh|0,lt=this._gh|0,ut=this._hh|0,dt=this._al|0,bt=this._bl|0,gt=this._cl|0,kt=this._dl|0,pt=this._el|0,yt=this._fl|0,$t=this._gl|0,mt=this._hl|0,wt=0;wt<32;wt+=2)tt[wt]=et.readInt32BE(wt*4),tt[wt+1]=et.readInt32BE(wt*4+4);for(;wt<160;wt+=2){var St=tt[wt-30],Bt=tt[wt-15*2+1],Ft=Gamma0(St,Bt),Lt=Gamma0l(Bt,St);St=tt[wt-2*2],Bt=tt[wt-2*2+1];var zt=Gamma1(St,Bt),Ht=Gamma1l(Bt,St),Wt=tt[wt-7*2],lr=tt[wt-7*2+1],qt=tt[wt-16*2],Ot=tt[wt-16*2+1],Mt=Lt+lr|0,ht=Ft+Wt+getCarry(Mt,Lt)|0;Mt=Mt+Ht|0,ht=ht+zt+getCarry(Mt,Ht)|0,Mt=Mt+Ot|0,ht=ht+qt+getCarry(Mt,Ot)|0,tt[wt]=ht,tt[wt+1]=Mt}for(var Et=0;Et<160;Et+=2){ht=tt[Et],Mt=tt[Et+1];var Tt=maj(rt,nt,it),Rt=maj(dt,bt,gt),At=sigma0(rt,dt),Pt=sigma0(dt,rt),It=sigma1(at,pt),Ct=sigma1(pt,at),xt=K$1[Et],Dt=K$1[Et+1],tr=Ch(at,ot,lt),pr=Ch(pt,yt,$t),Kt=mt+Ct|0,Qt=ut+It+getCarry(Kt,mt)|0;Kt=Kt+pr|0,Qt=Qt+tr+getCarry(Kt,pr)|0,Kt=Kt+Dt|0,Qt=Qt+xt+getCarry(Kt,Dt)|0,Kt=Kt+Mt|0,Qt=Qt+ht+getCarry(Kt,Mt)|0;var Zt=Pt+Rt|0,ur=At+Tt+getCarry(Zt,Pt)|0;ut=lt,mt=$t,lt=ot,$t=yt,ot=at,yt=pt,pt=kt+Kt|0,at=st+Qt+getCarry(pt,kt)|0,st=it,kt=gt,it=nt,gt=bt,nt=rt,bt=dt,dt=Kt+Zt|0,rt=Qt+ur+getCarry(dt,Kt)|0}this._al=this._al+dt|0,this._bl=this._bl+bt|0,this._cl=this._cl+gt|0,this._dl=this._dl+kt|0,this._el=this._el+pt|0,this._fl=this._fl+yt|0,this._gl=this._gl+$t|0,this._hl=this._hl+mt|0,this._ah=this._ah+rt+getCarry(this._al,dt)|0,this._bh=this._bh+nt+getCarry(this._bl,bt)|0,this._ch=this._ch+it+getCarry(this._cl,gt)|0,this._dh=this._dh+st+getCarry(this._dl,kt)|0,this._eh=this._eh+at+getCarry(this._el,pt)|0,this._fh=this._fh+ot+getCarry(this._fl,yt)|0,this._gh=this._gh+lt+getCarry(this._gl,$t)|0,this._hh=this._hh+ut+getCarry(this._hl,mt)|0};Sha512.prototype._hash=function(){var et=Buffer$x.allocUnsafe(64);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),tt(this._gh,this._gl,48),tt(this._hh,this._hl,56),et};var sha512$1=Sha512,inherits$n=inherits_browserExports,SHA512$2=sha512$1,Hash$3=hash$5,Buffer$w=safeBufferExports.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$3.call(this,128,112)}inherits$n(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var et=Buffer$w.allocUnsafe(48);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),et};var sha384$1=Sha384,exports$1=sha_js.exports=function(tt){tt=tt.toLowerCase();var rt=exports$1[tt];if(!rt)throw new Error(tt+" is not supported (we accept pull requests)");return new rt};exports$1.sha=sha$4;exports$1.sha1=sha1$1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$4;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$m=inherits_browserExports;inherits$m(Stream,EE);Stream.Readable=require_stream_readable();Stream.Writable=require_stream_writable();Stream.Duplex=require_stream_duplex();Stream.Transform=_stream_transform;Stream.PassThrough=_stream_passthrough;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(et,tt){var rt=this;function nt(dt){et.writable&&et.write(dt)===!1&&rt.pause&&rt.pause()}rt.on("data",nt);function it(){rt.readable&&rt.resume&&rt.resume()}et.on("drain",it),!et._isStdio&&(!tt||tt.end!==!1)&&(rt.on("end",at),rt.on("close",ot));var st=!1;function at(){st||(st=!0,et.end())}function ot(){st||(st=!0,typeof et.destroy=="function"&&et.destroy())}function lt(dt){if(ut(),EE.listenerCount(this,"error")===0)throw dt}rt.on("error",lt),et.on("error",lt);function ut(){rt.removeListener("data",nt),et.removeListener("drain",it),rt.removeListener("end",at),rt.removeListener("close",ot),rt.removeListener("error",lt),et.removeListener("error",lt),rt.removeListener("end",ut),rt.removeListener("close",ut),et.removeListener("close",ut)}return rt.on("end",ut),rt.on("close",ut),et.on("close",ut),et.emit("pipe",rt),et};var Buffer$v=safeBufferExports.Buffer,Transform$4=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$l=inherits_browserExports;function CipherBase$1(et){Transform$4.call(this),this.hashMode=typeof et=="string",this.hashMode?this[et]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$l(CipherBase$1,Transform$4);CipherBase$1.prototype.update=function(et,tt,rt){typeof et=="string"&&(et=Buffer$v.from(et,tt));var nt=this._update(et);return this.hashMode?this:(rt&&(nt=this._toString(nt,rt)),nt)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(et,tt,rt){var nt;try{this.hashMode?this._update(et):this.push(this._update(et))}catch(it){nt=it}finally{rt(nt)}};CipherBase$1.prototype._flush=function(et){var tt;try{this.push(this.__final())}catch(rt){tt=rt}et(tt)};CipherBase$1.prototype._finalOrDigest=function(et){var tt=this.__final()||Buffer$v.alloc(0);return et&&(tt=this._toString(tt,et,!0)),tt};CipherBase$1.prototype._toString=function(et,tt,rt){if(this._decoder||(this._decoder=new StringDecoder(tt),this._encoding=tt),this._encoding!==tt)throw new Error("can't switch encodings");var nt=this._decoder.write(et);return rt&&(nt+=this._decoder.end()),nt};var cipherBase=CipherBase$1,inherits$k=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash$2(et){Base$5.call(this,"digest"),this._hash=et}inherits$k(Hash$2,Base$5);Hash$2.prototype._update=function(et){this._hash.update(et)};Hash$2.prototype._final=function(){return this._hash.digest()};var browser$a=function(tt){return tt=tt.toLowerCase(),tt==="md5"?new MD5$2:tt==="rmd160"||tt==="ripemd160"?new RIPEMD160$4:new Hash$2(sha$3(tt))},inherits$j=inherits_browserExports,Buffer$u=safeBufferExports.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$u.alloc(128),blocksize=64;function Hmac$3(et,tt){Base$4.call(this,"digest"),typeof tt=="string"&&(tt=Buffer$u.from(tt)),this._alg=et,this._key=tt,tt.length>blocksize?tt=et(tt):tt.lengthrt){var nt=et==="rmd160"?new RIPEMD160$3:sha$2(et);tt=nt.update(tt).digest()}else tt.lengthMAX_ALLOC||tt!==tt)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$s=safeBufferExports.Buffer,toBuffer$3=function(et,tt,rt){if(Buffer$s.isBuffer(et))return et;if(typeof et=="string")return Buffer$s.from(et,tt);if(ArrayBuffer.isView(et))return Buffer$s.from(et.buffer);throw new TypeError(rt+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$2=ripemd160$1,sha$1=sha_jsExports,Buffer$r=safeBufferExports.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$2=toBuffer$3,ZEROS=Buffer$r.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(et,tt,rt){var nt=getDigest(et),it=et==="sha512"||et==="sha384"?128:64;tt.length>it?tt=nt(tt):tt.length>>0};utils$p.writeUInt32BE=function(tt,rt,nt){tt[0+nt]=rt>>>24,tt[1+nt]=rt>>>16&255,tt[2+nt]=rt>>>8&255,tt[3+nt]=rt&255};utils$p.ip=function(tt,rt,nt,it){for(var st=0,at=0,ot=6;ot>=0;ot-=2){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>>lt+ot&1}for(var ot=6;ot>=0;ot-=2){for(var lt=1;lt<=25;lt+=8)at<<=1,at|=rt>>>lt+ot&1;for(var lt=1;lt<=25;lt+=8)at<<=1,at|=tt>>>lt+ot&1}nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.rip=function(tt,rt,nt,it){for(var st=0,at=0,ot=0;ot<4;ot++)for(var lt=24;lt>=0;lt-=8)st<<=1,st|=rt>>>lt+ot&1,st<<=1,st|=tt>>>lt+ot&1;for(var ot=4;ot<8;ot++)for(var lt=24;lt>=0;lt-=8)at<<=1,at|=rt>>>lt+ot&1,at<<=1,at|=tt>>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.pc1=function(tt,rt,nt,it){for(var st=0,at=0,ot=7;ot>=5;ot--){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var ot=1;ot<=3;ot++){for(var lt=0;lt<=24;lt+=8)at<<=1,at|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.r28shl=function(tt,rt){return tt<>>28-rt};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$p.pc2=function(tt,rt,nt,it){for(var st=0,at=0,ot=pc2table.length>>>1,lt=0;lt>>pc2table[lt]&1;for(var lt=ot;lt>>pc2table[lt]&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.expand=function(tt,rt,nt){var it=0,st=0;it=(tt&1)<<5|tt>>>27;for(var at=23;at>=15;at-=4)it<<=6,it|=tt>>>at&63;for(var at=11;at>=3;at-=4)st|=tt>>>at&63,st<<=6;st|=(tt&31)<<1|tt>>>31,rt[nt+0]=it>>>0,rt[nt+1]=st>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$p.substitute=function(tt,rt){for(var nt=0,it=0;it<4;it++){var st=tt>>>18-it*6&63,at=sTable[it*64+st];nt<<=4,nt|=at}for(var it=0;it<4;it++){var st=rt>>>18-it*6&63,at=sTable[4*64+it*64+st];nt<<=4,nt|=at}return nt>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$p.permute=function(tt){for(var rt=0,nt=0;nt>>permuteTable[nt]&1;return rt>>>0};utils$p.padSplit=function(tt,rt,nt){for(var it=tt.toString(2);it.length0;it--)rt+=this._buffer(tt,rt),nt+=this._flushBuffer(st,nt);return rt+=this._buffer(tt,rt),st};Cipher$3.prototype.final=function(tt){var rt;tt&&(rt=this.update(tt));var nt;return this.type==="encrypt"?nt=this._finalEncrypt():nt=this._finalDecrypt(),rt?rt.concat(nt):nt};Cipher$3.prototype._pad=function(tt,rt){if(rt===0)return!1;for(;rt>>1];nt=utils$o.r28shl(nt,at),it=utils$o.r28shl(it,at),utils$o.pc2(nt,it,tt.keys,st)}};DES$3.prototype._update=function(tt,rt,nt,it){var st=this._desState,at=utils$o.readUInt32BE(tt,rt),ot=utils$o.readUInt32BE(tt,rt+4);utils$o.ip(at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],this.type==="encrypt"?this._encrypt(st,at,ot,st.tmp,0):this._decrypt(st,at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],utils$o.writeUInt32BE(nt,at,it),utils$o.writeUInt32BE(nt,ot,it+4)};DES$3.prototype._pad=function(tt,rt){if(this.padding===!1)return!1;for(var nt=tt.length-rt,it=rt;it>>0,at=kt}utils$o.rip(ot,at,it,st)};DES$3.prototype._decrypt=function(tt,rt,nt,it,st){for(var at=nt,ot=rt,lt=tt.keys.length-2;lt>=0;lt-=2){var ut=tt.keys[lt],dt=tt.keys[lt+1];utils$o.expand(at,tt.tmp,0),ut^=tt.tmp[0],dt^=tt.tmp[1];var bt=utils$o.substitute(ut,dt),gt=utils$o.permute(bt),kt=at;at=(ot^gt)>>>0,ot=kt}utils$o.rip(at,ot,it,st)};var cbc$1={},assert$k=minimalisticAssert,inherits$g=inherits_browserExports,proto={};function CBCState(et){assert$k.equal(et.length,8,"Invalid IV length"),this.iv=new Array(8);for(var tt=0;tt>it%8,et._prev=shiftIn(et._prev,rt?ot:lt);return at}function shiftIn(et,tt){var rt=et.length,nt=-1,it=Buffer$m.allocUnsafe(et.length);for(et=Buffer$m.concat([et,Buffer$m.from([tt])]);++nt>7;return it}cfb1.encrypt=function(et,tt,rt){for(var nt=tt.length,it=Buffer$m.allocUnsafe(nt),st=-1;++st>>24]^at[dt>>>16&255]^ot[bt>>>8&255]^lt[gt&255]^tt[mt++],pt=st[dt>>>24]^at[bt>>>16&255]^ot[gt>>>8&255]^lt[ut&255]^tt[mt++],yt=st[bt>>>24]^at[gt>>>16&255]^ot[ut>>>8&255]^lt[dt&255]^tt[mt++],$t=st[gt>>>24]^at[ut>>>16&255]^ot[dt>>>8&255]^lt[bt&255]^tt[mt++],ut=kt,dt=pt,bt=yt,gt=$t;return kt=(nt[ut>>>24]<<24|nt[dt>>>16&255]<<16|nt[bt>>>8&255]<<8|nt[gt&255])^tt[mt++],pt=(nt[dt>>>24]<<24|nt[bt>>>16&255]<<16|nt[gt>>>8&255]<<8|nt[ut&255])^tt[mt++],yt=(nt[bt>>>24]<<24|nt[gt>>>16&255]<<16|nt[ut>>>8&255]<<8|nt[dt&255])^tt[mt++],$t=(nt[gt>>>24]<<24|nt[ut>>>16&255]<<16|nt[dt>>>8&255]<<8|nt[bt&255])^tt[mt++],kt=kt>>>0,pt=pt>>>0,yt=yt>>>0,$t=$t>>>0,[kt,pt,yt,$t]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var et=new Array(256),tt=0;tt<256;tt++)tt<128?et[tt]=tt<<1:et[tt]=tt<<1^283;for(var rt=[],nt=[],it=[[],[],[],[]],st=[[],[],[],[]],at=0,ot=0,lt=0;lt<256;++lt){var ut=ot^ot<<1^ot<<2^ot<<3^ot<<4;ut=ut>>>8^ut&255^99,rt[at]=ut,nt[ut]=at;var dt=et[at],bt=et[dt],gt=et[bt],kt=et[ut]*257^ut*16843008;it[0][at]=kt<<24|kt>>>8,it[1][at]=kt<<16|kt>>>16,it[2][at]=kt<<8|kt>>>24,it[3][at]=kt,kt=gt*16843009^bt*65537^dt*257^at*16843008,st[0][ut]=kt<<24|kt>>>8,st[1][ut]=kt<<16|kt>>>16,st[2][ut]=kt<<8|kt>>>24,st[3][ut]=kt,at===0?at=ot=1:(at=dt^et[et[et[gt^dt]]],ot^=et[et[ot]])}return{SBOX:rt,INV_SBOX:nt,SUB_MIX:it,INV_SUB_MIX:st}}();function AES(et){this._key=asUInt32Array(et),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var et=this._key,tt=et.length,rt=tt+6,nt=(rt+1)*4,it=[],st=0;st>>24,at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255],at^=RCON[st/tt|0]<<24):tt>6&&st%tt===4&&(at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255]),it[st]=it[st-tt]^at}for(var ot=[],lt=0;lt>>24]]^G.INV_SUB_MIX[1][G.SBOX[dt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[dt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[dt&255]]}this._nRounds=rt,this._keySchedule=it,this._invKeySchedule=ot};AES.prototype.encryptBlockRaw=function(et){return et=asUInt32Array(et),cryptBlock(et,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(et){var tt=this.encryptBlockRaw(et),rt=Buffer$k.allocUnsafe(16);return rt.writeUInt32BE(tt[0],0),rt.writeUInt32BE(tt[1],4),rt.writeUInt32BE(tt[2],8),rt.writeUInt32BE(tt[3],12),rt};AES.prototype.decryptBlock=function(et){et=asUInt32Array(et);var tt=et[1];et[1]=et[3],et[3]=tt;var rt=cryptBlock(et,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),nt=Buffer$k.allocUnsafe(16);return nt.writeUInt32BE(rt[0],0),nt.writeUInt32BE(rt[3],4),nt.writeUInt32BE(rt[2],8),nt.writeUInt32BE(rt[1],12),nt};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$j=safeBufferExports.Buffer,ZEROES=Buffer$j.alloc(16,0);function toArray$2(et){return[et.readUInt32BE(0),et.readUInt32BE(4),et.readUInt32BE(8),et.readUInt32BE(12)]}function fromArray(et){var tt=Buffer$j.allocUnsafe(16);return tt.writeUInt32BE(et[0]>>>0,0),tt.writeUInt32BE(et[1]>>>0,4),tt.writeUInt32BE(et[2]>>>0,8),tt.writeUInt32BE(et[3]>>>0,12),tt}function GHASH$1(et){this.h=et,this.state=Buffer$j.alloc(16,0),this.cache=Buffer$j.allocUnsafe(0)}GHASH$1.prototype.ghash=function(et){for(var tt=-1;++tt0;rt--)et[rt]=et[rt]>>>1|(et[rt-1]&1)<<31;et[0]=et[0]>>>1,it&&(et[0]=et[0]^225<<24)}this.state=fromArray(tt)};GHASH$1.prototype.update=function(et){this.cache=Buffer$j.concat([this.cache,et]);for(var tt;this.cache.length>=16;)tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(tt)};GHASH$1.prototype.final=function(et,tt){return this.cache.length&&this.ghash(Buffer$j.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,et,0,tt])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$i=safeBufferExports.Buffer,Transform$3=cipherBase,inherits$d=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(et,tt){var rt=0;et.length!==tt.length&&rt++;for(var nt=Math.min(et.length,tt.length),it=0;it0||nt>0;){var lt=new MD5;lt.update(ot),lt.update(et),tt&<.update(tt),ot=lt.digest();var ut=0;if(it>0){var dt=st.length-it;ut=Math.min(it,ot.length),ot.copy(st,dt,0,ut),it-=ut}if(ut0){var bt=at.length-nt,gt=Math.min(nt,ot.length-ut);ot.copy(at,bt,ut,ut+gt),nt-=gt}}return ot.fill(0),{key:st,iv:at}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$f=safeBufferExports.Buffer,StreamCipher$1=streamCipher,Transform$1=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$b=inherits_browserExports;function Cipher(et,tt,rt){Transform$1.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(tt),this._prev=Buffer$f.from(rt),this._mode=et,this._autopadding=!0}inherits$b(Cipher,Transform$1);Cipher.prototype._update=function(et){this._cache.add(et);for(var tt,rt,nt=[];tt=this._cache.get();)rt=this._mode.encrypt(this,tt),nt.push(rt);return Buffer$f.concat(nt)};var PADDING=Buffer$f.alloc(16,16);Cipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return et=this._mode.encrypt(this,et),this._cipher.scrub(),et;if(!et.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this};function Splitter$1(){this.cache=Buffer$f.allocUnsafe(0)}Splitter$1.prototype.add=function(et){this.cache=Buffer$f.concat([this.cache,et])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var et=this.cache.slice(0,16);return this.cache=this.cache.slice(16),et}return null};Splitter$1.prototype.flush=function(){for(var et=16-this.cache.length,tt=Buffer$f.allocUnsafe(et),rt=-1;++rt16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt}else if(this.cache.length>=16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(et){var tt=et[15];if(tt<1||tt>16)throw new Error("unable to decrypt data");for(var rt=-1;++rt0?Ot:Mt},st.min=function(Ot,Mt){return Ot.cmp(Mt)<0?Ot:Mt},st.prototype._init=function(Ot,Mt,ht){if(typeof Ot=="number")return this._initNumber(Ot,Mt,ht);if(typeof Ot=="object")return this._initArray(Ot,Mt,ht);Mt==="hex"&&(Mt=16),nt(Mt===(Mt|0)&&Mt>=2&&Mt<=36),Ot=Ot.toString().replace(/\s+/g,"");var Et=0;Ot[0]==="-"&&(Et++,this.negative=1),Et=0;Et-=3)Rt=Ot[Et]|Ot[Et-1]<<8|Ot[Et-2]<<16,this.words[Tt]|=Rt<>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);else if(ht==="le")for(Et=0,Tt=0;Et>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);return this.strip()};function ot(qt,Ot){var Mt=qt.charCodeAt(Ot);return Mt>=65&&Mt<=70?Mt-55:Mt>=97&&Mt<=102?Mt-87:Mt-48&15}function lt(qt,Ot,Mt){var ht=ot(qt,Mt);return Mt-1>=Ot&&(ht|=ot(qt,Mt-1)<<4),ht}st.prototype._parseHex=function(Ot,Mt,ht){this.length=Math.ceil((Ot.length-Mt)/6),this.words=new Array(this.length);for(var Et=0;Et=Mt;Et-=2)At=lt(Ot,Mt,Et)<=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8;else{var Pt=Ot.length-Mt;for(Et=Pt%2===0?Mt+1:Mt;Et=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8}this.strip()};function ut(qt,Ot,Mt,ht){for(var Et=0,Tt=Math.min(qt.length,Mt),Rt=Ot;Rt=49?Et+=At-49+10:At>=17?Et+=At-17+10:Et+=At}return Et}st.prototype._parseBase=function(Ot,Mt,ht){this.words=[0],this.length=1;for(var Et=0,Tt=1;Tt<=67108863;Tt*=Mt)Et++;Et--,Tt=Tt/Mt|0;for(var Rt=Ot.length-ht,At=Rt%Et,Pt=Math.min(Rt,Rt-At)+ht,It=0,Ct=ht;Ct1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},st.prototype.inspect=function(){return(this.red?""};var dt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],bt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(Ot,Mt){Ot=Ot||10,Mt=Mt|0||1;var ht;if(Ot===16||Ot==="hex"){ht="";for(var Et=0,Tt=0,Rt=0;Rt>>24-Et&16777215,Tt!==0||Rt!==this.length-1?ht=dt[6-Pt.length]+Pt+ht:ht=Pt+ht,Et+=2,Et>=26&&(Et-=26,Rt--)}for(Tt!==0&&(ht=Tt.toString(16)+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}if(Ot===(Ot|0)&&Ot>=2&&Ot<=36){var It=bt[Ot],Ct=gt[Ot];ht="";var xt=this.clone();for(xt.negative=0;!xt.isZero();){var Dt=xt.modn(Ct).toString(Ot);xt=xt.idivn(Ct),xt.isZero()?ht=Dt+ht:ht=dt[It-Dt.length]+Dt+ht}for(this.isZero()&&(ht="0"+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var Ot=this.words[0];return this.length===2?Ot+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Ot+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Ot:Ot},st.prototype.toJSON=function(){return this.toString(16)},st.prototype.toBuffer=function(Ot,Mt){return nt(typeof at<"u"),this.toArrayLike(at,Ot,Mt)},st.prototype.toArray=function(Ot,Mt){return this.toArrayLike(Array,Ot,Mt)},st.prototype.toArrayLike=function(Ot,Mt,ht){var Et=this.byteLength(),Tt=ht||Math.max(1,Et);nt(Et<=Tt,"byte array longer than desired length"),nt(Tt>0,"Requested array length <= 0"),this.strip();var Rt=Mt==="le",At=new Ot(Tt),Pt,It,Ct=this.clone();if(Rt){for(It=0;!Ct.isZero();It++)Pt=Ct.andln(255),Ct.iushrn(8),At[It]=Pt;for(;It=4096&&(ht+=13,Mt>>>=13),Mt>=64&&(ht+=7,Mt>>>=7),Mt>=8&&(ht+=4,Mt>>>=4),Mt>=2&&(ht+=2,Mt>>>=2),ht+Mt},st.prototype._zeroBits=function(Ot){if(Ot===0)return 26;var Mt=Ot,ht=0;return Mt&8191||(ht+=13,Mt>>>=13),Mt&127||(ht+=7,Mt>>>=7),Mt&15||(ht+=4,Mt>>>=4),Mt&3||(ht+=2,Mt>>>=2),Mt&1||ht++,ht},st.prototype.bitLength=function(){var Ot=this.words[this.length-1],Mt=this._countBits(Ot);return(this.length-1)*26+Mt};function kt(qt){for(var Ot=new Array(qt.bitLength()),Mt=0;Mt>>Et}return Ot}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Ot=0,Mt=0;MtOt.length?this.clone().ior(Ot):Ot.clone().ior(this)},st.prototype.uor=function(Ot){return this.length>Ot.length?this.clone().iuor(Ot):Ot.clone().iuor(this)},st.prototype.iuand=function(Ot){var Mt;this.length>Ot.length?Mt=Ot:Mt=this;for(var ht=0;htOt.length?this.clone().iand(Ot):Ot.clone().iand(this)},st.prototype.uand=function(Ot){return this.length>Ot.length?this.clone().iuand(Ot):Ot.clone().iuand(this)},st.prototype.iuxor=function(Ot){var Mt,ht;this.length>Ot.length?(Mt=this,ht=Ot):(Mt=Ot,ht=this);for(var Et=0;EtOt.length?this.clone().ixor(Ot):Ot.clone().ixor(this)},st.prototype.uxor=function(Ot){return this.length>Ot.length?this.clone().iuxor(Ot):Ot.clone().iuxor(this)},st.prototype.inotn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Math.ceil(Ot/26)|0,ht=Ot%26;this._expand(Mt),ht>0&&Mt--;for(var Et=0;Et0&&(this.words[Et]=~this.words[Et]&67108863>>26-ht),this.strip()},st.prototype.notn=function(Ot){return this.clone().inotn(Ot)},st.prototype.setn=function(Ot,Mt){nt(typeof Ot=="number"&&Ot>=0);var ht=Ot/26|0,Et=Ot%26;return this._expand(ht+1),Mt?this.words[ht]=this.words[ht]|1<Ot.length?(ht=this,Et=Ot):(ht=Ot,Et=this);for(var Tt=0,Rt=0;Rt>>26;for(;Tt!==0&&Rt>>26;if(this.length=ht.length,Tt!==0)this.words[this.length]=Tt,this.length++;else if(ht!==this)for(;RtOt.length?this.clone().iadd(Ot):Ot.clone().iadd(this)},st.prototype.isub=function(Ot){if(Ot.negative!==0){Ot.negative=0;var Mt=this.iadd(Ot);return Ot.negative=1,Mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Ot),this.negative=1,this._normSign();var ht=this.cmp(Ot);if(ht===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Et,Tt;ht>0?(Et=this,Tt=Ot):(Et=Ot,Tt=this);for(var Rt=0,At=0;At>26,this.words[At]=Mt&67108863;for(;Rt!==0&&At>26,this.words[At]=Mt&67108863;if(Rt===0&&At>>26,xt=Pt&67108863,Dt=Math.min(It,Ot.length-1),tr=Math.max(0,It-qt.length+1);tr<=Dt;tr++){var pr=It-tr|0;Et=qt.words[pr]|0,Tt=Ot.words[tr]|0,Rt=Et*Tt+xt,Ct+=Rt/67108864|0,xt=Rt&67108863}Mt.words[It]=xt|0,Pt=Ct|0}return Pt!==0?Mt.words[It]=Pt|0:Mt.length--,Mt.strip()}var yt=function(Ot,Mt,ht){var Et=Ot.words,Tt=Mt.words,Rt=ht.words,At=0,Pt,It,Ct,xt=Et[0]|0,Dt=xt&8191,tr=xt>>>13,pr=Et[1]|0,Kt=pr&8191,Qt=pr>>>13,Zt=Et[2]|0,ur=Zt&8191,_r=Zt>>>13,er=Et[3]|0,Jt=er&8191,Ar=er>>>13,Er=Et[4]|0,Dr=Er&8191,Xr=Er>>>13,Vr=Et[5]|0,wr=Vr&8191,br=Vr>>>13,or=Et[6]|0,xr=or&8191,Pr=or>>>13,Or=Et[7]|0,rr=Or&8191,gr=Or>>>13,Ir=Et[8]|0,Yt=Ir&8191,Ut=Ir>>>13,Vt=Et[9]|0,ir=Vt&8191,kr=Vt>>>13,$r=Tt[0]|0,Br=$r&8191,an=$r>>>13,ln=Tt[1]|0,rn=ln&8191,kn=ln>>>13,fn=Tt[2]|0,gn=fn&8191,fs=fn>>>13,Ln=Tt[3]|0,En=Ln&8191,hs=Ln>>>13,Cn=Tt[4]|0,xn=Cn&8191,is=Cn>>>13,Fn=Tt[5]|0,_n=Fn&8191,ls=Fn>>>13,jn=Tt[6]|0,dn=jn&8191,cs=jn>>>13,Xt=Tt[7]|0,ar=Xt&8191,cr=Xt>>>13,jt=Tt[8]|0,dr=jt&8191,Rr=jt>>>13,Cr=Tt[9]|0,Nr=Cr&8191,Yr=Cr>>>13;ht.negative=Ot.negative^Mt.negative,ht.length=19,Pt=Math.imul(Dt,Br),It=Math.imul(Dt,an),It=It+Math.imul(tr,Br)|0,Ct=Math.imul(tr,an);var tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(tn>>>26)|0,tn&=67108863,Pt=Math.imul(Kt,Br),It=Math.imul(Kt,an),It=It+Math.imul(Qt,Br)|0,Ct=Math.imul(Qt,an),Pt=Pt+Math.imul(Dt,rn)|0,It=It+Math.imul(Dt,kn)|0,It=It+Math.imul(tr,rn)|0,Ct=Ct+Math.imul(tr,kn)|0;var qr=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(qr>>>26)|0,qr&=67108863,Pt=Math.imul(ur,Br),It=Math.imul(ur,an),It=It+Math.imul(_r,Br)|0,Ct=Math.imul(_r,an),Pt=Pt+Math.imul(Kt,rn)|0,It=It+Math.imul(Kt,kn)|0,It=It+Math.imul(Qt,rn)|0,Ct=Ct+Math.imul(Qt,kn)|0,Pt=Pt+Math.imul(Dt,gn)|0,It=It+Math.imul(Dt,fs)|0,It=It+Math.imul(tr,gn)|0,Ct=Ct+Math.imul(tr,fs)|0;var Vn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Pt=Math.imul(Jt,Br),It=Math.imul(Jt,an),It=It+Math.imul(Ar,Br)|0,Ct=Math.imul(Ar,an),Pt=Pt+Math.imul(ur,rn)|0,It=It+Math.imul(ur,kn)|0,It=It+Math.imul(_r,rn)|0,Ct=Ct+Math.imul(_r,kn)|0,Pt=Pt+Math.imul(Kt,gn)|0,It=It+Math.imul(Kt,fs)|0,It=It+Math.imul(Qt,gn)|0,Ct=Ct+Math.imul(Qt,fs)|0,Pt=Pt+Math.imul(Dt,En)|0,It=It+Math.imul(Dt,hs)|0,It=It+Math.imul(tr,En)|0,Ct=Ct+Math.imul(tr,hs)|0;var hn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(hn>>>26)|0,hn&=67108863,Pt=Math.imul(Dr,Br),It=Math.imul(Dr,an),It=It+Math.imul(Xr,Br)|0,Ct=Math.imul(Xr,an),Pt=Pt+Math.imul(Jt,rn)|0,It=It+Math.imul(Jt,kn)|0,It=It+Math.imul(Ar,rn)|0,Ct=Ct+Math.imul(Ar,kn)|0,Pt=Pt+Math.imul(ur,gn)|0,It=It+Math.imul(ur,fs)|0,It=It+Math.imul(_r,gn)|0,Ct=Ct+Math.imul(_r,fs)|0,Pt=Pt+Math.imul(Kt,En)|0,It=It+Math.imul(Kt,hs)|0,It=It+Math.imul(Qt,En)|0,Ct=Ct+Math.imul(Qt,hs)|0,Pt=Pt+Math.imul(Dt,xn)|0,It=It+Math.imul(Dt,is)|0,It=It+Math.imul(tr,xn)|0,Ct=Ct+Math.imul(tr,is)|0;var Tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Pt=Math.imul(wr,Br),It=Math.imul(wr,an),It=It+Math.imul(br,Br)|0,Ct=Math.imul(br,an),Pt=Pt+Math.imul(Dr,rn)|0,It=It+Math.imul(Dr,kn)|0,It=It+Math.imul(Xr,rn)|0,Ct=Ct+Math.imul(Xr,kn)|0,Pt=Pt+Math.imul(Jt,gn)|0,It=It+Math.imul(Jt,fs)|0,It=It+Math.imul(Ar,gn)|0,Ct=Ct+Math.imul(Ar,fs)|0,Pt=Pt+Math.imul(ur,En)|0,It=It+Math.imul(ur,hs)|0,It=It+Math.imul(_r,En)|0,Ct=Ct+Math.imul(_r,hs)|0,Pt=Pt+Math.imul(Kt,xn)|0,It=It+Math.imul(Kt,is)|0,It=It+Math.imul(Qt,xn)|0,Ct=Ct+Math.imul(Qt,is)|0,Pt=Pt+Math.imul(Dt,_n)|0,It=It+Math.imul(Dt,ls)|0,It=It+Math.imul(tr,_n)|0,Ct=Ct+Math.imul(tr,ls)|0;var An=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(An>>>26)|0,An&=67108863,Pt=Math.imul(xr,Br),It=Math.imul(xr,an),It=It+Math.imul(Pr,Br)|0,Ct=Math.imul(Pr,an),Pt=Pt+Math.imul(wr,rn)|0,It=It+Math.imul(wr,kn)|0,It=It+Math.imul(br,rn)|0,Ct=Ct+Math.imul(br,kn)|0,Pt=Pt+Math.imul(Dr,gn)|0,It=It+Math.imul(Dr,fs)|0,It=It+Math.imul(Xr,gn)|0,Ct=Ct+Math.imul(Xr,fs)|0,Pt=Pt+Math.imul(Jt,En)|0,It=It+Math.imul(Jt,hs)|0,It=It+Math.imul(Ar,En)|0,Ct=Ct+Math.imul(Ar,hs)|0,Pt=Pt+Math.imul(ur,xn)|0,It=It+Math.imul(ur,is)|0,It=It+Math.imul(_r,xn)|0,Ct=Ct+Math.imul(_r,is)|0,Pt=Pt+Math.imul(Kt,_n)|0,It=It+Math.imul(Kt,ls)|0,It=It+Math.imul(Qt,_n)|0,Ct=Ct+Math.imul(Qt,ls)|0,Pt=Pt+Math.imul(Dt,dn)|0,It=It+Math.imul(Dt,cs)|0,It=It+Math.imul(tr,dn)|0,Ct=Ct+Math.imul(tr,cs)|0;var Rn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Pt=Math.imul(rr,Br),It=Math.imul(rr,an),It=It+Math.imul(gr,Br)|0,Ct=Math.imul(gr,an),Pt=Pt+Math.imul(xr,rn)|0,It=It+Math.imul(xr,kn)|0,It=It+Math.imul(Pr,rn)|0,Ct=Ct+Math.imul(Pr,kn)|0,Pt=Pt+Math.imul(wr,gn)|0,It=It+Math.imul(wr,fs)|0,It=It+Math.imul(br,gn)|0,Ct=Ct+Math.imul(br,fs)|0,Pt=Pt+Math.imul(Dr,En)|0,It=It+Math.imul(Dr,hs)|0,It=It+Math.imul(Xr,En)|0,Ct=Ct+Math.imul(Xr,hs)|0,Pt=Pt+Math.imul(Jt,xn)|0,It=It+Math.imul(Jt,is)|0,It=It+Math.imul(Ar,xn)|0,Ct=Ct+Math.imul(Ar,is)|0,Pt=Pt+Math.imul(ur,_n)|0,It=It+Math.imul(ur,ls)|0,It=It+Math.imul(_r,_n)|0,Ct=Ct+Math.imul(_r,ls)|0,Pt=Pt+Math.imul(Kt,dn)|0,It=It+Math.imul(Kt,cs)|0,It=It+Math.imul(Qt,dn)|0,Ct=Ct+Math.imul(Qt,cs)|0,Pt=Pt+Math.imul(Dt,ar)|0,It=It+Math.imul(Dt,cr)|0,It=It+Math.imul(tr,ar)|0,Ct=Ct+Math.imul(tr,cr)|0;var Pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Pt=Math.imul(Yt,Br),It=Math.imul(Yt,an),It=It+Math.imul(Ut,Br)|0,Ct=Math.imul(Ut,an),Pt=Pt+Math.imul(rr,rn)|0,It=It+Math.imul(rr,kn)|0,It=It+Math.imul(gr,rn)|0,Ct=Ct+Math.imul(gr,kn)|0,Pt=Pt+Math.imul(xr,gn)|0,It=It+Math.imul(xr,fs)|0,It=It+Math.imul(Pr,gn)|0,Ct=Ct+Math.imul(Pr,fs)|0,Pt=Pt+Math.imul(wr,En)|0,It=It+Math.imul(wr,hs)|0,It=It+Math.imul(br,En)|0,Ct=Ct+Math.imul(br,hs)|0,Pt=Pt+Math.imul(Dr,xn)|0,It=It+Math.imul(Dr,is)|0,It=It+Math.imul(Xr,xn)|0,Ct=Ct+Math.imul(Xr,is)|0,Pt=Pt+Math.imul(Jt,_n)|0,It=It+Math.imul(Jt,ls)|0,It=It+Math.imul(Ar,_n)|0,Ct=Ct+Math.imul(Ar,ls)|0,Pt=Pt+Math.imul(ur,dn)|0,It=It+Math.imul(ur,cs)|0,It=It+Math.imul(_r,dn)|0,Ct=Ct+Math.imul(_r,cs)|0,Pt=Pt+Math.imul(Kt,ar)|0,It=It+Math.imul(Kt,cr)|0,It=It+Math.imul(Qt,ar)|0,Ct=Ct+Math.imul(Qt,cr)|0,Pt=Pt+Math.imul(Dt,dr)|0,It=It+Math.imul(Dt,Rr)|0,It=It+Math.imul(tr,dr)|0,Ct=Ct+Math.imul(tr,Rr)|0;var In=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(In>>>26)|0,In&=67108863,Pt=Math.imul(ir,Br),It=Math.imul(ir,an),It=It+Math.imul(kr,Br)|0,Ct=Math.imul(kr,an),Pt=Pt+Math.imul(Yt,rn)|0,It=It+Math.imul(Yt,kn)|0,It=It+Math.imul(Ut,rn)|0,Ct=Ct+Math.imul(Ut,kn)|0,Pt=Pt+Math.imul(rr,gn)|0,It=It+Math.imul(rr,fs)|0,It=It+Math.imul(gr,gn)|0,Ct=Ct+Math.imul(gr,fs)|0,Pt=Pt+Math.imul(xr,En)|0,It=It+Math.imul(xr,hs)|0,It=It+Math.imul(Pr,En)|0,Ct=Ct+Math.imul(Pr,hs)|0,Pt=Pt+Math.imul(wr,xn)|0,It=It+Math.imul(wr,is)|0,It=It+Math.imul(br,xn)|0,Ct=Ct+Math.imul(br,is)|0,Pt=Pt+Math.imul(Dr,_n)|0,It=It+Math.imul(Dr,ls)|0,It=It+Math.imul(Xr,_n)|0,Ct=Ct+Math.imul(Xr,ls)|0,Pt=Pt+Math.imul(Jt,dn)|0,It=It+Math.imul(Jt,cs)|0,It=It+Math.imul(Ar,dn)|0,Ct=Ct+Math.imul(Ar,cs)|0,Pt=Pt+Math.imul(ur,ar)|0,It=It+Math.imul(ur,cr)|0,It=It+Math.imul(_r,ar)|0,Ct=Ct+Math.imul(_r,cr)|0,Pt=Pt+Math.imul(Kt,dr)|0,It=It+Math.imul(Kt,Rr)|0,It=It+Math.imul(Qt,dr)|0,Ct=Ct+Math.imul(Qt,Rr)|0,Pt=Pt+Math.imul(Dt,Nr)|0,It=It+Math.imul(Dt,Yr)|0,It=It+Math.imul(tr,Nr)|0,Ct=Ct+Math.imul(tr,Yr)|0;var $n=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+($n>>>26)|0,$n&=67108863,Pt=Math.imul(ir,rn),It=Math.imul(ir,kn),It=It+Math.imul(kr,rn)|0,Ct=Math.imul(kr,kn),Pt=Pt+Math.imul(Yt,gn)|0,It=It+Math.imul(Yt,fs)|0,It=It+Math.imul(Ut,gn)|0,Ct=Ct+Math.imul(Ut,fs)|0,Pt=Pt+Math.imul(rr,En)|0,It=It+Math.imul(rr,hs)|0,It=It+Math.imul(gr,En)|0,Ct=Ct+Math.imul(gr,hs)|0,Pt=Pt+Math.imul(xr,xn)|0,It=It+Math.imul(xr,is)|0,It=It+Math.imul(Pr,xn)|0,Ct=Ct+Math.imul(Pr,is)|0,Pt=Pt+Math.imul(wr,_n)|0,It=It+Math.imul(wr,ls)|0,It=It+Math.imul(br,_n)|0,Ct=Ct+Math.imul(br,ls)|0,Pt=Pt+Math.imul(Dr,dn)|0,It=It+Math.imul(Dr,cs)|0,It=It+Math.imul(Xr,dn)|0,Ct=Ct+Math.imul(Xr,cs)|0,Pt=Pt+Math.imul(Jt,ar)|0,It=It+Math.imul(Jt,cr)|0,It=It+Math.imul(Ar,ar)|0,Ct=Ct+Math.imul(Ar,cr)|0,Pt=Pt+Math.imul(ur,dr)|0,It=It+Math.imul(ur,Rr)|0,It=It+Math.imul(_r,dr)|0,Ct=Ct+Math.imul(_r,Rr)|0,Pt=Pt+Math.imul(Kt,Nr)|0,It=It+Math.imul(Kt,Yr)|0,It=It+Math.imul(Qt,Nr)|0,Ct=Ct+Math.imul(Qt,Yr)|0;var Bn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Pt=Math.imul(ir,gn),It=Math.imul(ir,fs),It=It+Math.imul(kr,gn)|0,Ct=Math.imul(kr,fs),Pt=Pt+Math.imul(Yt,En)|0,It=It+Math.imul(Yt,hs)|0,It=It+Math.imul(Ut,En)|0,Ct=Ct+Math.imul(Ut,hs)|0,Pt=Pt+Math.imul(rr,xn)|0,It=It+Math.imul(rr,is)|0,It=It+Math.imul(gr,xn)|0,Ct=Ct+Math.imul(gr,is)|0,Pt=Pt+Math.imul(xr,_n)|0,It=It+Math.imul(xr,ls)|0,It=It+Math.imul(Pr,_n)|0,Ct=Ct+Math.imul(Pr,ls)|0,Pt=Pt+Math.imul(wr,dn)|0,It=It+Math.imul(wr,cs)|0,It=It+Math.imul(br,dn)|0,Ct=Ct+Math.imul(br,cs)|0,Pt=Pt+Math.imul(Dr,ar)|0,It=It+Math.imul(Dr,cr)|0,It=It+Math.imul(Xr,ar)|0,Ct=Ct+Math.imul(Xr,cr)|0,Pt=Pt+Math.imul(Jt,dr)|0,It=It+Math.imul(Jt,Rr)|0,It=It+Math.imul(Ar,dr)|0,Ct=Ct+Math.imul(Ar,Rr)|0,Pt=Pt+Math.imul(ur,Nr)|0,It=It+Math.imul(ur,Yr)|0,It=It+Math.imul(_r,Nr)|0,Ct=Ct+Math.imul(_r,Yr)|0;var pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(pn>>>26)|0,pn&=67108863,Pt=Math.imul(ir,En),It=Math.imul(ir,hs),It=It+Math.imul(kr,En)|0,Ct=Math.imul(kr,hs),Pt=Pt+Math.imul(Yt,xn)|0,It=It+Math.imul(Yt,is)|0,It=It+Math.imul(Ut,xn)|0,Ct=Ct+Math.imul(Ut,is)|0,Pt=Pt+Math.imul(rr,_n)|0,It=It+Math.imul(rr,ls)|0,It=It+Math.imul(gr,_n)|0,Ct=Ct+Math.imul(gr,ls)|0,Pt=Pt+Math.imul(xr,dn)|0,It=It+Math.imul(xr,cs)|0,It=It+Math.imul(Pr,dn)|0,Ct=Ct+Math.imul(Pr,cs)|0,Pt=Pt+Math.imul(wr,ar)|0,It=It+Math.imul(wr,cr)|0,It=It+Math.imul(br,ar)|0,Ct=Ct+Math.imul(br,cr)|0,Pt=Pt+Math.imul(Dr,dr)|0,It=It+Math.imul(Dr,Rr)|0,It=It+Math.imul(Xr,dr)|0,Ct=Ct+Math.imul(Xr,Rr)|0,Pt=Pt+Math.imul(Jt,Nr)|0,It=It+Math.imul(Jt,Yr)|0,It=It+Math.imul(Ar,Nr)|0,Ct=Ct+Math.imul(Ar,Yr)|0;var wn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(wn>>>26)|0,wn&=67108863,Pt=Math.imul(ir,xn),It=Math.imul(ir,is),It=It+Math.imul(kr,xn)|0,Ct=Math.imul(kr,is),Pt=Pt+Math.imul(Yt,_n)|0,It=It+Math.imul(Yt,ls)|0,It=It+Math.imul(Ut,_n)|0,Ct=Ct+Math.imul(Ut,ls)|0,Pt=Pt+Math.imul(rr,dn)|0,It=It+Math.imul(rr,cs)|0,It=It+Math.imul(gr,dn)|0,Ct=Ct+Math.imul(gr,cs)|0,Pt=Pt+Math.imul(xr,ar)|0,It=It+Math.imul(xr,cr)|0,It=It+Math.imul(Pr,ar)|0,Ct=Ct+Math.imul(Pr,cr)|0,Pt=Pt+Math.imul(wr,dr)|0,It=It+Math.imul(wr,Rr)|0,It=It+Math.imul(br,dr)|0,Ct=Ct+Math.imul(br,Rr)|0,Pt=Pt+Math.imul(Dr,Nr)|0,It=It+Math.imul(Dr,Yr)|0,It=It+Math.imul(Xr,Nr)|0,Ct=Ct+Math.imul(Xr,Yr)|0;var un=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(un>>>26)|0,un&=67108863,Pt=Math.imul(ir,_n),It=Math.imul(ir,ls),It=It+Math.imul(kr,_n)|0,Ct=Math.imul(kr,ls),Pt=Pt+Math.imul(Yt,dn)|0,It=It+Math.imul(Yt,cs)|0,It=It+Math.imul(Ut,dn)|0,Ct=Ct+Math.imul(Ut,cs)|0,Pt=Pt+Math.imul(rr,ar)|0,It=It+Math.imul(rr,cr)|0,It=It+Math.imul(gr,ar)|0,Ct=Ct+Math.imul(gr,cr)|0,Pt=Pt+Math.imul(xr,dr)|0,It=It+Math.imul(xr,Rr)|0,It=It+Math.imul(Pr,dr)|0,Ct=Ct+Math.imul(Pr,Rr)|0,Pt=Pt+Math.imul(wr,Nr)|0,It=It+Math.imul(wr,Yr)|0,It=It+Math.imul(br,Nr)|0,Ct=Ct+Math.imul(br,Yr)|0;var yn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(yn>>>26)|0,yn&=67108863,Pt=Math.imul(ir,dn),It=Math.imul(ir,cs),It=It+Math.imul(kr,dn)|0,Ct=Math.imul(kr,cs),Pt=Pt+Math.imul(Yt,ar)|0,It=It+Math.imul(Yt,cr)|0,It=It+Math.imul(Ut,ar)|0,Ct=Ct+Math.imul(Ut,cr)|0,Pt=Pt+Math.imul(rr,dr)|0,It=It+Math.imul(rr,Rr)|0,It=It+Math.imul(gr,dr)|0,Ct=Ct+Math.imul(gr,Rr)|0,Pt=Pt+Math.imul(xr,Nr)|0,It=It+Math.imul(xr,Yr)|0,It=It+Math.imul(Pr,Nr)|0,Ct=Ct+Math.imul(Pr,Yr)|0;var mn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(mn>>>26)|0,mn&=67108863,Pt=Math.imul(ir,ar),It=Math.imul(ir,cr),It=It+Math.imul(kr,ar)|0,Ct=Math.imul(kr,cr),Pt=Pt+Math.imul(Yt,dr)|0,It=It+Math.imul(Yt,Rr)|0,It=It+Math.imul(Ut,dr)|0,Ct=Ct+Math.imul(Ut,Rr)|0,Pt=Pt+Math.imul(rr,Nr)|0,It=It+Math.imul(rr,Yr)|0,It=It+Math.imul(gr,Nr)|0,Ct=Ct+Math.imul(gr,Yr)|0;var cn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(cn>>>26)|0,cn&=67108863,Pt=Math.imul(ir,dr),It=Math.imul(ir,Rr),It=It+Math.imul(kr,dr)|0,Ct=Math.imul(kr,Rr),Pt=Pt+Math.imul(Yt,Nr)|0,It=It+Math.imul(Yt,Yr)|0,It=It+Math.imul(Ut,Nr)|0,Ct=Ct+Math.imul(Ut,Yr)|0;var Ur=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Pt=Math.imul(ir,Nr),It=Math.imul(ir,Yr),It=It+Math.imul(kr,Nr)|0,Ct=Math.imul(kr,Yr);var jr=(At+Pt|0)+((It&8191)<<13)|0;return At=(Ct+(It>>>13)|0)+(jr>>>26)|0,jr&=67108863,Rt[0]=tn,Rt[1]=qr,Rt[2]=Vn,Rt[3]=hn,Rt[4]=Tn,Rt[5]=An,Rt[6]=Rn,Rt[7]=Pn,Rt[8]=In,Rt[9]=$n,Rt[10]=Bn,Rt[11]=pn,Rt[12]=wn,Rt[13]=un,Rt[14]=yn,Rt[15]=mn,Rt[16]=cn,Rt[17]=Ur,Rt[18]=jr,At!==0&&(Rt[19]=At,ht.length++),ht};Math.imul||(yt=pt);function $t(qt,Ot,Mt){Mt.negative=Ot.negative^qt.negative,Mt.length=qt.length+Ot.length;for(var ht=0,Et=0,Tt=0;Tt>>26)|0,Et+=Rt>>>26,Rt&=67108863}Mt.words[Tt]=At,ht=Rt,Rt=Et}return ht!==0?Mt.words[Tt]=ht:Mt.length--,Mt.strip()}function mt(qt,Ot,Mt){var ht=new wt;return ht.mulp(qt,Ot,Mt)}st.prototype.mulTo=function(Ot,Mt){var ht,Et=this.length+Ot.length;return this.length===10&&Ot.length===10?ht=yt(this,Ot,Mt):Et<63?ht=pt(this,Ot,Mt):Et<1024?ht=$t(this,Ot,Mt):ht=mt(this,Ot,Mt),ht};function wt(qt,Ot){this.x=qt,this.y=Ot}wt.prototype.makeRBT=function(Ot){for(var Mt=new Array(Ot),ht=st.prototype._countBits(Ot)-1,Et=0;Et>=1;return Et},wt.prototype.permute=function(Ot,Mt,ht,Et,Tt,Rt){for(var At=0;At>>1)Tt++;return 1<>>13,ht[2*Rt+1]=Tt&8191,Tt=Tt>>>13;for(Rt=2*Mt;Rt>=26,Mt+=Et/67108864|0,Mt+=Tt>>>26,this.words[ht]=Tt&67108863}return Mt!==0&&(this.words[ht]=Mt,this.length++),this},st.prototype.muln=function(Ot){return this.clone().imuln(Ot)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(Ot){var Mt=kt(Ot);if(Mt.length===0)return new st(1);for(var ht=this,Et=0;Et=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=67108863>>>26-Mt<<26-Mt,Tt;if(Mt!==0){var Rt=0;for(Tt=0;Tt>>26-Mt}Rt&&(this.words[Tt]=Rt,this.length++)}if(ht!==0){for(Tt=this.length-1;Tt>=0;Tt--)this.words[Tt+ht]=this.words[Tt];for(Tt=0;Tt=0);var Et;Mt?Et=(Mt-Mt%26)/26:Et=0;var Tt=Ot%26,Rt=Math.min((Ot-Tt)/26,this.length),At=67108863^67108863>>>Tt<Rt)for(this.length-=Rt,It=0;It=0&&(Ct!==0||It>=Et);It--){var xt=this.words[It]|0;this.words[It]=Ct<<26-Tt|xt>>>Tt,Ct=xt&At}return Pt&&Ct!==0&&(Pt.words[Pt.length++]=Ct),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},st.prototype.ishrn=function(Ot,Mt,ht){return nt(this.negative===0),this.iushrn(Ot,Mt,ht)},st.prototype.shln=function(Ot){return this.clone().ishln(Ot)},st.prototype.ushln=function(Ot){return this.clone().iushln(Ot)},st.prototype.shrn=function(Ot){return this.clone().ishrn(Ot)},st.prototype.ushrn=function(Ot){return this.clone().iushrn(Ot)},st.prototype.testn=function(Ot){nt(typeof Ot=="number"&&Ot>=0);var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<=0);var Mt=Ot%26,ht=(Ot-Mt)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=ht)return this;if(Mt!==0&&ht++,this.length=Math.min(ht,this.length),Mt!==0){var Et=67108863^67108863>>>Mt<=67108864;Mt++)this.words[Mt]-=67108864,Mt===this.length-1?this.words[Mt+1]=1:this.words[Mt+1]++;return this.length=Math.max(this.length,Mt+1),this},st.prototype.isubn=function(Ot){if(nt(typeof Ot=="number"),nt(Ot<67108864),Ot<0)return this.iaddn(-Ot);if(this.negative!==0)return this.negative=0,this.iaddn(Ot),this.negative=1,this;if(this.words[0]-=Ot,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Mt=0;Mt>26)-(Pt/67108864|0),this.words[Tt+ht]=Rt&67108863}for(;Tt>26,this.words[Tt+ht]=Rt&67108863;if(At===0)return this.strip();for(nt(At===-1),At=0,Tt=0;Tt>26,this.words[Tt]=Rt&67108863;return this.negative=1,this.strip()},st.prototype._wordDiv=function(Ot,Mt){var ht=this.length-Ot.length,Et=this.clone(),Tt=Ot,Rt=Tt.words[Tt.length-1]|0,At=this._countBits(Rt);ht=26-At,ht!==0&&(Tt=Tt.ushln(ht),Et.iushln(ht),Rt=Tt.words[Tt.length-1]|0);var Pt=Et.length-Tt.length,It;if(Mt!=="mod"){It=new st(null),It.length=Pt+1,It.words=new Array(It.length);for(var Ct=0;Ct=0;Dt--){var tr=(Et.words[Tt.length+Dt]|0)*67108864+(Et.words[Tt.length+Dt-1]|0);for(tr=Math.min(tr/Rt|0,67108863),Et._ishlnsubmul(Tt,tr,Dt);Et.negative!==0;)tr--,Et.negative=0,Et._ishlnsubmul(Tt,1,Dt),Et.isZero()||(Et.negative^=1);It&&(It.words[Dt]=tr)}return It&&It.strip(),Et.strip(),Mt!=="div"&&ht!==0&&Et.iushrn(ht),{div:It||null,mod:Et}},st.prototype.divmod=function(Ot,Mt,ht){if(nt(!Ot.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Et,Tt,Rt;return this.negative!==0&&Ot.negative===0?(Rt=this.neg().divmod(Ot,Mt),Mt!=="mod"&&(Et=Rt.div.neg()),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.iadd(Ot)),{div:Et,mod:Tt}):this.negative===0&&Ot.negative!==0?(Rt=this.divmod(Ot.neg(),Mt),Mt!=="mod"&&(Et=Rt.div.neg()),{div:Et,mod:Rt.mod}):this.negative&Ot.negative?(Rt=this.neg().divmod(Ot.neg(),Mt),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.isub(Ot)),{div:Rt.div,mod:Tt}):Ot.length>this.length||this.cmp(Ot)<0?{div:new st(0),mod:this}:Ot.length===1?Mt==="div"?{div:this.divn(Ot.words[0]),mod:null}:Mt==="mod"?{div:null,mod:new st(this.modn(Ot.words[0]))}:{div:this.divn(Ot.words[0]),mod:new st(this.modn(Ot.words[0]))}:this._wordDiv(Ot,Mt)},st.prototype.div=function(Ot){return this.divmod(Ot,"div",!1).div},st.prototype.mod=function(Ot){return this.divmod(Ot,"mod",!1).mod},st.prototype.umod=function(Ot){return this.divmod(Ot,"mod",!0).mod},st.prototype.divRound=function(Ot){var Mt=this.divmod(Ot);if(Mt.mod.isZero())return Mt.div;var ht=Mt.div.negative!==0?Mt.mod.isub(Ot):Mt.mod,Et=Ot.ushrn(1),Tt=Ot.andln(1),Rt=ht.cmp(Et);return Rt<0||Tt===1&&Rt===0?Mt.div:Mt.div.negative!==0?Mt.div.isubn(1):Mt.div.iaddn(1)},st.prototype.modn=function(Ot){nt(Ot<=67108863);for(var Mt=(1<<26)%Ot,ht=0,Et=this.length-1;Et>=0;Et--)ht=(Mt*ht+(this.words[Et]|0))%Ot;return ht},st.prototype.idivn=function(Ot){nt(Ot<=67108863);for(var Mt=0,ht=this.length-1;ht>=0;ht--){var Et=(this.words[ht]|0)+Mt*67108864;this.words[ht]=Et/Ot|0,Mt=Et%Ot}return this.strip()},st.prototype.divn=function(Ot){return this.clone().idivn(Ot)},st.prototype.egcd=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=new st(0),At=new st(1),Pt=0;Mt.isEven()&&ht.isEven();)Mt.iushrn(1),ht.iushrn(1),++Pt;for(var It=ht.clone(),Ct=Mt.clone();!Mt.isZero();){for(var xt=0,Dt=1;!(Mt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Mt.iushrn(xt);xt-- >0;)(Et.isOdd()||Tt.isOdd())&&(Et.iadd(It),Tt.isub(Ct)),Et.iushrn(1),Tt.iushrn(1);for(var tr=0,pr=1;!(ht.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(ht.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(It),At.isub(Ct)),Rt.iushrn(1),At.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Rt),Tt.isub(At)):(ht.isub(Mt),Rt.isub(Et),At.isub(Tt))}return{a:Rt,b:At,gcd:ht.iushln(Pt)}},st.prototype._invmp=function(Ot){nt(Ot.negative===0),nt(!Ot.isZero());var Mt=this,ht=Ot.clone();Mt.negative!==0?Mt=Mt.umod(Ot):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=ht.clone();Mt.cmpn(1)>0&&ht.cmpn(1)>0;){for(var At=0,Pt=1;!(Mt.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(Mt.iushrn(At);At-- >0;)Et.isOdd()&&Et.iadd(Rt),Et.iushrn(1);for(var It=0,Ct=1;!(ht.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(ht.iushrn(It);It-- >0;)Tt.isOdd()&&Tt.iadd(Rt),Tt.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Tt)):(ht.isub(Mt),Tt.isub(Et))}var xt;return Mt.cmpn(1)===0?xt=Et:xt=Tt,xt.cmpn(0)<0&&xt.iadd(Ot),xt},st.prototype.gcd=function(Ot){if(this.isZero())return Ot.abs();if(Ot.isZero())return this.abs();var Mt=this.clone(),ht=Ot.clone();Mt.negative=0,ht.negative=0;for(var Et=0;Mt.isEven()&&ht.isEven();Et++)Mt.iushrn(1),ht.iushrn(1);do{for(;Mt.isEven();)Mt.iushrn(1);for(;ht.isEven();)ht.iushrn(1);var Tt=Mt.cmp(ht);if(Tt<0){var Rt=Mt;Mt=ht,ht=Rt}else if(Tt===0||ht.cmpn(1)===0)break;Mt.isub(ht)}while(!0);return ht.iushln(Et)},st.prototype.invm=function(Ot){return this.egcd(Ot).a.umod(Ot)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(Ot){return this.words[0]&Ot},st.prototype.bincn=function(Ot){nt(typeof Ot=="number");var Mt=Ot%26,ht=(Ot-Mt)/26,Et=1<>>26,At&=67108863,this.words[Rt]=At}return Tt!==0&&(this.words[Rt]=Tt,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(Ot){var Mt=Ot<0;if(this.negative!==0&&!Mt)return-1;if(this.negative===0&&Mt)return 1;this.strip();var ht;if(this.length>1)ht=1;else{Mt&&(Ot=-Ot),nt(Ot<=67108863,"Number is too big");var Et=this.words[0]|0;ht=Et===Ot?0:EtOt.length)return 1;if(this.length=0;ht--){var Et=this.words[ht]|0,Tt=Ot.words[ht]|0;if(Et!==Tt){EtTt&&(Mt=1);break}}return Mt},st.prototype.gtn=function(Ot){return this.cmpn(Ot)===1},st.prototype.gt=function(Ot){return this.cmp(Ot)===1},st.prototype.gten=function(Ot){return this.cmpn(Ot)>=0},st.prototype.gte=function(Ot){return this.cmp(Ot)>=0},st.prototype.ltn=function(Ot){return this.cmpn(Ot)===-1},st.prototype.lt=function(Ot){return this.cmp(Ot)===-1},st.prototype.lten=function(Ot){return this.cmpn(Ot)<=0},st.prototype.lte=function(Ot){return this.cmp(Ot)<=0},st.prototype.eqn=function(Ot){return this.cmpn(Ot)===0},st.prototype.eq=function(Ot){return this.cmp(Ot)===0},st.red=function(Ot){return new Wt(Ot)},st.prototype.toRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Ot.convertTo(this)._forceRed(Ot)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(Ot){return this.red=Ot,this},st.prototype.forceRed=function(Ot){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Ot)},st.prototype.redAdd=function(Ot){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Ot)},st.prototype.redIAdd=function(Ot){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Ot)},st.prototype.redSub=function(Ot){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Ot)},st.prototype.redISub=function(Ot){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Ot)},st.prototype.redShl=function(Ot){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Ot)},st.prototype.redMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.mul(this,Ot)},st.prototype.redIMul=function(Ot){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ot),this.red.imul(this,Ot)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(Ot){return nt(this.red&&!Ot.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Ot)};var St={k256:null,p224:null,p192:null,p25519:null};function Bt(qt,Ot){this.name=qt,this.p=new st(Ot,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Bt.prototype._tmp=function(){var Ot=new st(null);return Ot.words=new Array(Math.ceil(this.n/13)),Ot},Bt.prototype.ireduce=function(Ot){var Mt=Ot,ht;do this.split(Mt,this.tmp),Mt=this.imulK(Mt),Mt=Mt.iadd(this.tmp),ht=Mt.bitLength();while(ht>this.n);var Et=ht0?Mt.isub(this.p):Mt.strip!==void 0?Mt.strip():Mt._strip(),Mt},Bt.prototype.split=function(Ot,Mt){Ot.iushrn(this.n,0,Mt)},Bt.prototype.imulK=function(Ot){return Ot.imul(this.k)};function Ft(){Bt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(Ft,Bt),Ft.prototype.split=function(Ot,Mt){for(var ht=4194303,Et=Math.min(Ot.length,9),Tt=0;Tt>>22,Rt=At}Rt>>>=22,Ot.words[Tt-10]=Rt,Rt===0&&Ot.length>10?Ot.length-=10:Ot.length-=9},Ft.prototype.imulK=function(Ot){Ot.words[Ot.length]=0,Ot.words[Ot.length+1]=0,Ot.length+=2;for(var Mt=0,ht=0;ht>>=26,Ot.words[ht]=Tt,Mt=Et}return Mt!==0&&(Ot.words[Ot.length++]=Mt),Ot},st._prime=function(Ot){if(St[Ot])return St[Ot];var Mt;if(Ot==="k256")Mt=new Ft;else if(Ot==="p224")Mt=new Lt;else if(Ot==="p192")Mt=new zt;else if(Ot==="p25519")Mt=new Ht;else throw new Error("Unknown prime "+Ot);return St[Ot]=Mt,Mt};function Wt(qt){if(typeof qt=="string"){var Ot=st._prime(qt);this.m=Ot.p,this.prime=Ot}else nt(qt.gtn(1),"modulus must be greater than 1"),this.m=qt,this.prime=null}Wt.prototype._verify1=function(Ot){nt(Ot.negative===0,"red works only with positives"),nt(Ot.red,"red works only with red numbers")},Wt.prototype._verify2=function(Ot,Mt){nt((Ot.negative|Mt.negative)===0,"red works only with positives"),nt(Ot.red&&Ot.red===Mt.red,"red works only with red numbers")},Wt.prototype.imod=function(Ot){return this.prime?this.prime.ireduce(Ot)._forceRed(this):Ot.umod(this.m)._forceRed(this)},Wt.prototype.neg=function(Ot){return Ot.isZero()?Ot.clone():this.m.sub(Ot)._forceRed(this)},Wt.prototype.add=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.add(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht._forceRed(this)},Wt.prototype.iadd=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.iadd(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht},Wt.prototype.sub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.sub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht._forceRed(this)},Wt.prototype.isub=function(Ot,Mt){this._verify2(Ot,Mt);var ht=Ot.isub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht},Wt.prototype.shl=function(Ot,Mt){return this._verify1(Ot),this.imod(Ot.ushln(Mt))},Wt.prototype.imul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.imul(Mt))},Wt.prototype.mul=function(Ot,Mt){return this._verify2(Ot,Mt),this.imod(Ot.mul(Mt))},Wt.prototype.isqr=function(Ot){return this.imul(Ot,Ot.clone())},Wt.prototype.sqr=function(Ot){return this.mul(Ot,Ot)},Wt.prototype.sqrt=function(Ot){if(Ot.isZero())return Ot.clone();var Mt=this.m.andln(3);if(nt(Mt%2===1),Mt===3){var ht=this.m.add(new st(1)).iushrn(2);return this.pow(Ot,ht)}for(var Et=this.m.subn(1),Tt=0;!Et.isZero()&&Et.andln(1)===0;)Tt++,Et.iushrn(1);nt(!Et.isZero());var Rt=new st(1).toRed(this),At=Rt.redNeg(),Pt=this.m.subn(1).iushrn(1),It=this.m.bitLength();for(It=new st(2*It*It).toRed(this);this.pow(It,Pt).cmp(At)!==0;)It.redIAdd(At);for(var Ct=this.pow(It,Et),xt=this.pow(Ot,Et.addn(1).iushrn(1)),Dt=this.pow(Ot,Et),tr=Tt;Dt.cmp(Rt)!==0;){for(var pr=Dt,Kt=0;pr.cmp(Rt)!==0;Kt++)pr=pr.redSqr();nt(Kt=0;Tt--){for(var Ct=Mt.words[Tt],xt=It-1;xt>=0;xt--){var Dt=Ct>>xt&1;if(Rt!==Et[0]&&(Rt=this.sqr(Rt)),Dt===0&&At===0){Pt=0;continue}At<<=1,At|=Dt,Pt++,!(Pt!==ht&&(Tt!==0||xt!==0))&&(Rt=this.mul(Rt,Et[At]),Pt=0,At=0)}It=26}return Rt},Wt.prototype.convertTo=function(Ot){var Mt=Ot.umod(this.m);return Mt===Ot?Mt.clone():Mt},Wt.prototype.convertFrom=function(Ot){var Mt=Ot.clone();return Mt.red=null,Mt},st.mont=function(Ot){return new lr(Ot)};function lr(qt){Wt.call(this,qt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(lr,Wt),lr.prototype.convertTo=function(Ot){return this.imod(Ot.ushln(this.shift))},lr.prototype.convertFrom=function(Ot){var Mt=this.imod(Ot.mul(this.rinv));return Mt.red=null,Mt},lr.prototype.imul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return Ot.words[0]=0,Ot.length=1,Ot;var ht=Ot.imul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.mul=function(Ot,Mt){if(Ot.isZero()||Mt.isZero())return new st(0)._forceRed(this);var ht=Ot.mul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.invm=function(Ot){var Mt=this.imod(Ot._invmp(this.m).mul(this.r2));return Mt._forceRed(this)}})(et,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var et;brorand.exports=function(it){return et||(et=new tt(null)),et.generate(it)};function tt(nt){this.rand=nt}if(brorand.exports.Rand=tt,tt.prototype.generate=function(it){return this._rand(it)},tt.prototype._rand=function(it){if(this.rand.getBytes)return this.rand.getBytes(it);for(var st=new Uint8Array(it),at=0;at=0);return ot},rt.prototype._randrange=function(it,st){var at=st.sub(it);return it.add(this._randbelow(at))},rt.prototype.test=function(it,st,at){var ot=it.bitLength(),lt=et.mont(it),ut=new et(1).toRed(lt);st||(st=Math.max(1,ot/48|0));for(var dt=it.subn(1),bt=0;!dt.testn(bt);bt++);for(var gt=it.shrn(bt),kt=dt.toRed(lt),pt=!0;st>0;st--){var yt=this._randrange(new et(2),dt);at&&at(yt);var $t=yt.toRed(lt).redPow(gt);if(!($t.cmp(ut)===0||$t.cmp(kt)===0)){for(var mt=1;mt0;st--){var kt=this._randrange(new et(2),ut),pt=it.gcd(kt);if(pt.cmpn(1)!==0)return pt;var yt=kt.toRed(ot).redPow(bt);if(!(yt.cmp(lt)===0||yt.cmp(gt)===0)){for(var $t=1;$tmt;)St.ishrn(1);if(St.isEven()&&St.iadd(st),St.testn(1)||St.iadd(at),wt.cmp(at)){if(!wt.cmp(ot))for(;St.mod(lt).cmp(ut);)St.iadd(bt)}else for(;St.mod(rt).cmp(dt);)St.iadd(bt);if(Bt=St.shrn(1),pt(Bt)&&pt(St)&&yt(Bt)&&yt(St)&&it.test(Bt)&&it.test(St))return St}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var et=bnExports$2,tt=requireMr(),rt=new tt,nt=new et(24),it=new et(11),st=new et(10),at=new et(3),ot=new et(7),lt=requireGeneratePrime(),ut=browserExports;dh=pt;function dt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._pub=new et($t),this}function bt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._priv=new et($t),this}var gt={};function kt($t,mt){var wt=mt.toString("hex"),St=[wt,$t.toString(16)].join("_");if(St in gt)return gt[St];var Bt=0;if($t.isEven()||!lt.simpleSieve||!lt.fermatTest($t)||!rt.test($t))return Bt+=1,wt==="02"||wt==="05"?Bt+=8:Bt+=4,gt[St]=Bt,Bt;rt.test($t.shrn(1))||(Bt+=2);var Ft;switch(wt){case"02":$t.mod(nt).cmp(it)&&(Bt+=8);break;case"05":Ft=$t.mod(st),Ft.cmp(at)&&Ft.cmp(ot)&&(Bt+=8);break;default:Bt+=4}return gt[St]=Bt,Bt}function pt($t,mt,wt){this.setGenerator(mt),this.__prime=new et($t),this._prime=et.mont(this.__prime),this._primeLen=$t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,wt?(this.setPublicKey=dt,this.setPrivateKey=bt):this._primeCode=8}Object.defineProperty(pt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=kt(this.__prime,this.__gen)),this._primeCode}}),pt.prototype.generateKeys=function(){return this._priv||(this._priv=new et(ut(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},pt.prototype.computeSecret=function($t){$t=new et($t),$t=$t.toRed(this._prime);var mt=$t.redPow(this._priv).fromRed(),wt=new Buffer(mt.toArray()),St=this.getPrime();if(wt.length0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Dt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Dt).toString(ht);tr=tr.idivn(Dt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Dt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Dt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Dt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Dt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Dt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Dt=Dt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Dt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Dt=Dt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Dt=Dt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Dt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Dt=Dt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Dt=Dt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Dt=Dt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Dt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Dt=Dt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Dt=Dt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Dt=Dt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Dt=Dt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Dt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Dt=Dt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Dt=Dt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Dt=Dt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Dt=Dt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Dt=Dt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Dt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Dt=Dt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Dt=Dt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Dt=Dt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Dt=Dt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Dt=Dt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Dt=Dt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Dt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Dt=Dt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Dt=Dt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Dt=Dt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Dt=Dt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Dt=Dt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Dt=Dt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Dt=Dt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Dt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Dt=Dt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Dt=Dt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Dt=Dt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Dt=Dt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Dt=Dt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Dt=Dt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Dt=Dt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Dt=Dt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Dt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Dt=Dt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Dt=Dt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Dt=Dt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Dt=Dt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Dt=Dt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Dt=Dt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Dt=Dt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Dt=Dt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Dt=Dt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Dt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Dt=Dt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Dt=Dt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Dt=Dt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Dt=Dt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Dt=Dt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Dt=Dt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Dt=Dt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Dt=Dt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Dt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Dt=Dt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Dt=Dt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Dt=Dt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Dt=Dt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Dt=Dt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Dt=Dt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Dt=Dt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Dt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Dt=Dt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Dt=Dt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Dt=Dt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Dt=Dt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Dt=Dt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Dt=Dt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Dt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Dt=Dt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Dt=Dt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Dt=Dt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Dt=Dt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Dt=Dt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Dt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Dt=Dt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Dt=Dt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Dt=Dt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Dt=Dt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Dt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Dt=Dt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Dt=Dt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Dt=Dt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Dt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Dt=Dt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Dt=Dt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Dt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Dt=Dt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Dt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Dt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Dt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Dt<<26-At|tr>>>At,Dt=tr&It}return Ct&&Dt!==0&&(Ct.words[Ct.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Dt=0;Dt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Dt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Dt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Dt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Dt=1;!(Tt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Lt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Lt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Lt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Lt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Lt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Dt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Dt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Dt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,BN$c=bnExports$1,randomBytes$1=browserExports;function blind(et){var tt=getr(et),rt=tt.toRed(BN$c.mont(et.modulus)).redPow(new BN$c(et.publicExponent)).fromRed();return{blinder:rt,unblinder:tt.invm(et.modulus)}}function getr(et){var tt=et.modulus.byteLength(),rt;do rt=new BN$c(randomBytes$1(tt));while(rt.cmp(et.modulus)>=0||!rt.umod(et.prime1)||!rt.umod(et.prime2));return rt}function crt$2(et,tt){var rt=blind(tt),nt=tt.modulus.byteLength(),it=new BN$c(et).mul(rt.blinder).umod(tt.modulus),st=it.toRed(BN$c.mont(tt.prime1)),at=it.toRed(BN$c.mont(tt.prime2)),ot=tt.coefficient,lt=tt.prime1,ut=tt.prime2,dt=st.redPow(tt.exponent1).fromRed(),bt=at.redPow(tt.exponent2).fromRed(),gt=dt.isub(bt).imul(ot).umod(lt).imul(ut);return bt.iadd(gt).imul(rt.unblinder).umod(tt.modulus).toArrayLike(Buffer,"be",nt)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$2={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$n={},utils$m={};(function(et){var tt=et;function rt(st,at){if(Array.isArray(st))return st.slice();if(!st)return[];var ot=[];if(typeof st!="string"){for(var lt=0;lt>8,bt=ut&255;dt?ot.push(dt,bt):ot.push(bt)}return ot}tt.toArray=rt;function nt(st){return st.length===1?"0"+st:st}tt.zero2=nt;function it(st){for(var at="",ot=0;ot(pt>>1)-1?mt=(pt>>1)-wt:mt=wt,yt.isubn(mt)):mt=0,kt[$t]=mt,yt.iushrn(1)}return kt}tt.getNAF=st;function at(dt,bt){var gt=[[],[]];dt=dt.clone(),bt=bt.clone();for(var kt=0,pt=0,yt;dt.cmpn(-kt)>0||bt.cmpn(-pt)>0;){var $t=dt.andln(3)+kt&3,mt=bt.andln(3)+pt&3;$t===3&&($t=-1),mt===3&&(mt=-1);var wt;$t&1?(yt=dt.andln(7)+kt&7,(yt===3||yt===5)&&mt===2?wt=-$t:wt=$t):wt=0,gt[0].push(wt);var St;mt&1?(yt=bt.andln(7)+pt&7,(yt===3||yt===5)&&$t===2?St=-mt:St=mt):St=0,gt[1].push(St),2*kt===wt+1&&(kt=1-kt),2*pt===St+1&&(pt=1-pt),dt.iushrn(1),bt.iushrn(1)}return gt}tt.getJSF=at;function ot(dt,bt,gt){var kt="_"+bt;dt.prototype[bt]=function(){return this[kt]!==void 0?this[kt]:this[kt]=gt.call(this)}}tt.cachedProperty=ot;function lt(dt){return typeof dt=="string"?tt.toArray(dt,"hex"):dt}tt.parseBytes=lt;function ut(dt){return new rt(dt,"hex","le")}tt.intFromLE=ut})(utils$n);var curve={},BN$b=bnExports$2,utils$l=utils$n,getNAF=utils$l.getNAF,getJSF=utils$l.getJSF,assert$i=utils$l.assert;function BaseCurve(et,tt){this.type=et,this.p=new BN$b(tt.p,16),this.red=tt.prime?BN$b.red(tt.prime):BN$b.mont(this.p),this.zero=new BN$b(0).toRed(this.red),this.one=new BN$b(1).toRed(this.red),this.two=new BN$b(2).toRed(this.red),this.n=tt.n&&new BN$b(tt.n,16),this.g=tt.g&&this.pointFromJSON(tt.g,tt.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var rt=this.n&&this.p.div(this.n);!rt||rt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(tt,rt){assert$i(tt.precomputed);var nt=tt._getDoubles(),it=getNAF(rt,1,this._bitLength),st=(1<=ot;ut--)lt=(lt<<1)+it[ut];at.push(lt)}for(var dt=this.jpoint(null,null,null),bt=this.jpoint(null,null,null),gt=st;gt>0;gt--){for(ot=0;ot=0;lt--){for(var ut=0;lt>=0&&at[lt]===0;lt--)ut++;if(lt>=0&&ut++,ot=ot.dblp(ut),lt<0)break;var dt=at[lt];assert$i(dt!==0),tt.type==="affine"?dt>0?ot=ot.mixedAdd(st[dt-1>>1]):ot=ot.mixedAdd(st[-dt-1>>1].neg()):dt>0?ot=ot.add(st[dt-1>>1]):ot=ot.add(st[-dt-1>>1].neg())}return tt.type==="affine"?ot.toP():ot};BaseCurve.prototype._wnafMulAdd=function(tt,rt,nt,it,st){var at=this._wnafT1,ot=this._wnafT2,lt=this._wnafT3,ut=0,dt,bt,gt;for(dt=0;dt=1;dt-=2){var pt=dt-1,yt=dt;if(at[pt]!==1||at[yt]!==1){lt[pt]=getNAF(nt[pt],at[pt],this._bitLength),lt[yt]=getNAF(nt[yt],at[yt],this._bitLength),ut=Math.max(lt[pt].length,ut),ut=Math.max(lt[yt].length,ut);continue}var $t=[rt[pt],null,null,rt[yt]];rt[pt].y.cmp(rt[yt].y)===0?($t[1]=rt[pt].add(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg())):rt[pt].y.cmp(rt[yt].y.redNeg())===0?($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].add(rt[yt].neg())):($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg()));var mt=[-3,-1,-5,-7,0,7,5,1,3],wt=getJSF(nt[pt],nt[yt]);for(ut=Math.max(wt[0].length,ut),lt[pt]=new Array(ut),lt[yt]=new Array(ut),bt=0;bt=0;dt--){for(var zt=0;dt>=0;){var Ht=!0;for(bt=0;bt=0&&zt++,Ft=Ft.dblp(zt),dt<0)break;for(bt=0;bt0?gt=ot[bt][Wt-1>>1]:Wt<0&&(gt=ot[bt][-Wt-1>>1].neg()),gt.type==="affine"?Ft=Ft.mixedAdd(gt):Ft=Ft.add(gt))}}for(dt=0;dt=Math.ceil((tt.bitLength()+1)/rt.step):!1};BasePoint.prototype._getDoubles=function(tt,rt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var nt=[this],it=this,st=0;st=0&&(kt=ut,pt=dt),bt.negative&&(bt=bt.neg(),gt=gt.neg()),kt.negative&&(kt=kt.neg(),pt=pt.neg()),[{a:bt,b:gt},{a:kt,b:pt}]};ShortCurve.prototype._endoSplit=function(tt){var rt=this.endo.basis,nt=rt[0],it=rt[1],st=it.b.mul(tt).divRound(this.n),at=nt.b.neg().mul(tt).divRound(this.n),ot=st.mul(nt.a),lt=at.mul(it.a),ut=st.mul(nt.b),dt=at.mul(it.b),bt=tt.sub(ot).sub(lt),gt=ut.add(dt).neg();return{k1:bt,k2:gt}};ShortCurve.prototype.pointFromX=function(tt,rt){tt=new BN$a(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),it=nt.redSqrt();if(it.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");var st=it.fromRed().isOdd();return(rt&&!st||!rt&&st)&&(it=it.redNeg()),this.point(tt,it)};ShortCurve.prototype.validate=function(tt){if(tt.inf)return!0;var rt=tt.x,nt=tt.y,it=this.a.redMul(rt),st=rt.redSqr().redMul(rt).redIAdd(it).redIAdd(this.b);return nt.redSqr().redISub(st).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(tt,rt,nt){for(var it=this._endoWnafT1,st=this._endoWnafT2,at=0;at":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(tt){if(this.inf)return tt;if(tt.inf)return this;if(this.eq(tt))return this.dbl();if(this.neg().eq(tt))return this.curve.point(null,null);if(this.x.cmp(tt.x)===0)return this.curve.point(null,null);var rt=this.y.redSub(tt.y);rt.cmpn(0)!==0&&(rt=rt.redMul(this.x.redSub(tt.x).redInvm()));var nt=rt.redSqr().redISub(this.x).redISub(tt.x),it=rt.redMul(this.x.redSub(nt)).redISub(this.y);return this.curve.point(nt,it)};Point$2.prototype.dbl=function(){if(this.inf)return this;var tt=this.y.redAdd(this.y);if(tt.cmpn(0)===0)return this.curve.point(null,null);var rt=this.curve.a,nt=this.x.redSqr(),it=tt.redInvm(),st=nt.redAdd(nt).redIAdd(nt).redIAdd(rt).redMul(it),at=st.redSqr().redISub(this.x.redAdd(this.x)),ot=st.redMul(this.x.redSub(at)).redISub(this.y);return this.curve.point(at,ot)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(tt){return tt=new BN$a(tt,16),this.isInfinity()?this:this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve.endo?this.curve._endoWnafMulAdd([this],[tt]):this.curve._wnafMul(this,tt)};Point$2.prototype.mulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st):this.curve._wnafMulAdd(1,it,st,2)};Point$2.prototype.jmulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st,!0):this.curve._wnafMulAdd(1,it,st,2,!0)};Point$2.prototype.eq=function(tt){return this===tt||this.inf===tt.inf&&(this.inf||this.x.cmp(tt.x)===0&&this.y.cmp(tt.y)===0)};Point$2.prototype.neg=function(tt){if(this.inf)return this;var rt=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var nt=this.precomputed,it=function(st){return st.neg()};rt.precomputed={naf:nt.naf&&{wnd:nt.naf.wnd,points:nt.naf.points.map(it)},doubles:nt.doubles&&{step:nt.doubles.step,points:nt.doubles.points.map(it)}}}return rt};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var tt=this.curve.jpoint(this.x,this.y,this.curve.one);return tt};function JPoint(et,tt,rt,nt){Base$2.BasePoint.call(this,et,"jacobian"),tt===null&&rt===null&&nt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$a(0)):(this.x=new BN$a(tt,16),this.y=new BN$a(rt,16),this.z=new BN$a(nt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$9(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(tt,rt,nt){return new JPoint(this,tt,rt,nt)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),rt=tt.redSqr(),nt=this.x.redMul(rt),it=this.y.redMul(rt).redMul(tt);return this.curve.point(nt,it)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(tt){if(this.isInfinity())return tt;if(tt.isInfinity())return this;var rt=tt.z.redSqr(),nt=this.z.redSqr(),it=this.x.redMul(rt),st=tt.x.redMul(nt),at=this.y.redMul(rt.redMul(tt.z)),ot=tt.y.redMul(nt.redMul(this.z)),lt=it.redSub(st),ut=at.redSub(ot);if(lt.cmpn(0)===0)return ut.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var dt=lt.redSqr(),bt=dt.redMul(lt),gt=it.redMul(dt),kt=ut.redSqr().redIAdd(bt).redISub(gt).redISub(gt),pt=ut.redMul(gt.redISub(kt)).redISub(at.redMul(bt)),yt=this.z.redMul(tt.z).redMul(lt);return this.curve.jpoint(kt,pt,yt)};JPoint.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var rt=this.z.redSqr(),nt=this.x,it=tt.x.redMul(rt),st=this.y,at=tt.y.redMul(rt).redMul(this.z),ot=nt.redSub(it),lt=st.redSub(at);if(ot.cmpn(0)===0)return lt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ut=ot.redSqr(),dt=ut.redMul(ot),bt=nt.redMul(ut),gt=lt.redSqr().redIAdd(dt).redISub(bt).redISub(bt),kt=lt.redMul(bt.redISub(gt)).redISub(st.redMul(dt)),pt=this.z.redMul(ot);return this.curve.jpoint(gt,kt,pt)};JPoint.prototype.dblp=function(tt){if(tt===0)return this;if(this.isInfinity())return this;if(!tt)return this.dbl();var rt;if(this.curve.zeroA||this.curve.threeA){var nt=this;for(rt=0;rt=0)return!1;if(nt.redIAdd(st),this.x.cmp(nt)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$9=bnExports$2,inherits$8=inherits_browserExports,Base$1=base$3,utils$j=utils$n;function MontCurve(et){Base$1.call(this,"mont",et),this.a=new BN$9(et.a,16).toRed(this.red),this.b=new BN$9(et.b,16).toRed(this.red),this.i4=new BN$9(4).toRed(this.red).redInvm(),this.two=new BN$9(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$8(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(tt){var rt=tt.normalize().x,nt=rt.redSqr(),it=nt.redMul(rt).redAdd(nt.redMul(this.a)).redAdd(rt),st=it.redSqrt();return st.redSqr().cmp(it)===0};function Point$1(et,tt,rt){Base$1.BasePoint.call(this,et,"projective"),tt===null&&rt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$9(tt,16),this.z=new BN$9(rt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$8(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(tt,rt){return this.point(utils$j.toArray(tt,rt),1)};MontCurve.prototype.point=function(tt,rt){return new Point$1(this,tt,rt)};MontCurve.prototype.pointFromJSON=function(tt){return Point$1.fromJSON(this,tt)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(tt,rt){return new Point$1(tt,rt[0],rt[1]||tt.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var tt=this.x.redAdd(this.z),rt=tt.redSqr(),nt=this.x.redSub(this.z),it=nt.redSqr(),st=rt.redSub(it),at=rt.redMul(it),ot=st.redMul(it.redAdd(this.curve.a24.redMul(st)));return this.curve.point(at,ot)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(tt,rt){var nt=this.x.redAdd(this.z),it=this.x.redSub(this.z),st=tt.x.redAdd(tt.z),at=tt.x.redSub(tt.z),ot=at.redMul(nt),lt=st.redMul(it),ut=rt.z.redMul(ot.redAdd(lt).redSqr()),dt=rt.x.redMul(ot.redISub(lt).redSqr());return this.curve.point(ut,dt)};Point$1.prototype.mul=function(tt){for(var rt=tt.clone(),nt=this,it=this.curve.point(null,null),st=this,at=[];rt.cmpn(0)!==0;rt.iushrn(1))at.push(rt.andln(1));for(var ot=at.length-1;ot>=0;ot--)at[ot]===0?(nt=nt.diffAdd(it,st),it=it.dbl()):(it=nt.diffAdd(it,st),nt=nt.dbl());return it};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(tt){return this.getX().cmp(tt.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$i=utils$n,BN$8=bnExports$2,inherits$7=inherits_browserExports,Base=base$3,assert$g=utils$i.assert;function EdwardsCurve(et){this.twisted=(et.a|0)!==1,this.mOneA=this.twisted&&(et.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",et),this.a=new BN$8(et.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$8(et.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$8(et.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$g(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(et.c|0)===1}inherits$7(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(tt){return this.mOneA?tt.redNeg():this.a.redMul(tt)};EdwardsCurve.prototype._mulC=function(tt){return this.oneC?tt:this.c.redMul(tt)};EdwardsCurve.prototype.jpoint=function(tt,rt,nt,it){return this.point(tt,rt,nt,it)};EdwardsCurve.prototype.pointFromX=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=this.c2.redSub(this.a.redMul(nt)),st=this.one.redSub(this.c2.redMul(this.d).redMul(nt)),at=it.redMul(st.redInvm()),ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");var lt=ot.fromRed().isOdd();return(rt&&!lt||!rt&<)&&(ot=ot.redNeg()),this.point(tt,ot)};EdwardsCurve.prototype.pointFromY=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=nt.redSub(this.c2),st=nt.redMul(this.d).redMul(this.c2).redSub(this.a),at=it.redMul(st.redInvm());if(at.cmp(this.zero)===0){if(rt)throw new Error("invalid point");return this.point(this.zero,tt)}var ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");return ot.fromRed().isOdd()!==rt&&(ot=ot.redNeg()),this.point(ot,tt)};EdwardsCurve.prototype.validate=function(tt){if(tt.isInfinity())return!0;tt.normalize();var rt=tt.x.redSqr(),nt=tt.y.redSqr(),it=rt.redMul(this.a).redAdd(nt),st=this.c2.redMul(this.one.redAdd(this.d.redMul(rt).redMul(nt)));return it.cmp(st)===0};function Point(et,tt,rt,nt,it){Base.BasePoint.call(this,et,"projective"),tt===null&&rt===null&&nt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$8(tt,16),this.y=new BN$8(rt,16),this.z=nt?new BN$8(nt,16):this.curve.one,this.t=it&&new BN$8(it,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$7(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(tt){return Point.fromJSON(this,tt)};EdwardsCurve.prototype.point=function(tt,rt,nt,it){return new Point(this,tt,rt,nt,it)};Point.fromJSON=function(tt,rt){return new Point(tt,rt[0],rt[1],rt[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var tt=this.x.redSqr(),rt=this.y.redSqr(),nt=this.z.redSqr();nt=nt.redIAdd(nt);var it=this.curve._mulA(tt),st=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(rt),at=it.redAdd(rt),ot=at.redSub(nt),lt=it.redSub(rt),ut=st.redMul(ot),dt=at.redMul(lt),bt=st.redMul(lt),gt=ot.redMul(at);return this.curve.point(ut,dt,gt,bt)};Point.prototype._projDbl=function(){var tt=this.x.redAdd(this.y).redSqr(),rt=this.x.redSqr(),nt=this.y.redSqr(),it,st,at,ot,lt,ut;if(this.curve.twisted){ot=this.curve._mulA(rt);var dt=ot.redAdd(nt);this.zOne?(it=tt.redSub(rt).redSub(nt).redMul(dt.redSub(this.curve.two)),st=dt.redMul(ot.redSub(nt)),at=dt.redSqr().redSub(dt).redSub(dt)):(lt=this.z.redSqr(),ut=dt.redSub(lt).redISub(lt),it=tt.redSub(rt).redISub(nt).redMul(ut),st=dt.redMul(ot.redSub(nt)),at=dt.redMul(ut))}else ot=rt.redAdd(nt),lt=this.curve._mulC(this.z).redSqr(),ut=ot.redSub(lt).redSub(lt),it=this.curve._mulC(tt.redISub(ot)).redMul(ut),st=this.curve._mulC(ot).redMul(rt.redISub(nt)),at=ot.redMul(ut);return this.curve.point(it,st,at)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(tt){var rt=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),nt=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),it=this.t.redMul(this.curve.dd).redMul(tt.t),st=this.z.redMul(tt.z.redAdd(tt.z)),at=nt.redSub(rt),ot=st.redSub(it),lt=st.redAdd(it),ut=nt.redAdd(rt),dt=at.redMul(ot),bt=lt.redMul(ut),gt=at.redMul(ut),kt=ot.redMul(lt);return this.curve.point(dt,bt,kt,gt)};Point.prototype._projAdd=function(tt){var rt=this.z.redMul(tt.z),nt=rt.redSqr(),it=this.x.redMul(tt.x),st=this.y.redMul(tt.y),at=this.curve.d.redMul(it).redMul(st),ot=nt.redSub(at),lt=nt.redAdd(at),ut=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(it).redISub(st),dt=rt.redMul(ot).redMul(ut),bt,gt;return this.curve.twisted?(bt=rt.redMul(lt).redMul(st.redSub(this.curve._mulA(it))),gt=ot.redMul(lt)):(bt=rt.redMul(lt).redMul(st.redSub(it)),gt=this.curve._mulC(ot).redMul(lt)),this.curve.point(dt,bt,gt)};Point.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)};Point.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)};Point.prototype.mulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!1)};Point.prototype.jmulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var tt=this.z.redInvm();return this.x=this.x.redMul(tt),this.y=this.y.redMul(tt),this.t&&(this.t=this.t.redMul(tt)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(tt){return this===tt||this.getX().cmp(tt.getX())===0&&this.getY().cmp(tt.getY())===0};Point.prototype.eqXToP=function(tt){var rt=tt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(rt)===0)return!0;for(var nt=tt.clone(),it=this.curve.redN.redMul(this.z);;){if(nt.iadd(this.curve.n),nt.cmp(this.curve.p)>=0)return!1;if(rt.redIAdd(it),this.x.cmp(rt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(et){var tt=et;tt.base=base$3,tt.short=short,tt.mont=mont,tt.edwards=edwards})(curve);var curves$1={},hash$4={},utils$h={},assert$f=minimalisticAssert,inherits$6=inherits_browserExports;utils$h.inherits=inherits$6;function isSurrogatePair(et,tt){return(et.charCodeAt(tt)&64512)!==55296||tt<0||tt+1>=et.length?!1:(et.charCodeAt(tt+1)&64512)===56320}function toArray$1(et,tt){if(Array.isArray(et))return et.slice();if(!et)return[];var rt=[];if(typeof et=="string")if(tt){if(tt==="hex")for(et=et.replace(/[^a-z0-9]+/ig,""),et.length%2!==0&&(et="0"+et),it=0;it>6|192,rt[nt++]=st&63|128):isSurrogatePair(et,it)?(st=65536+((st&1023)<<10)+(et.charCodeAt(++it)&1023),rt[nt++]=st>>18|240,rt[nt++]=st>>12&63|128,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128):(rt[nt++]=st>>12|224,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128)}else for(it=0;it>>24|et>>>8&65280|et<<8&16711680|(et&255)<<24;return tt>>>0}utils$h.htonl=htonl;function toHex32(et,tt){for(var rt="",nt=0;nt>>0}return st}utils$h.join32=join32;function split32(et,tt){for(var rt=new Array(et.length*4),nt=0,it=0;nt>>24,rt[it+1]=st>>>16&255,rt[it+2]=st>>>8&255,rt[it+3]=st&255):(rt[it+3]=st>>>24,rt[it+2]=st>>>16&255,rt[it+1]=st>>>8&255,rt[it]=st&255)}return rt}utils$h.split32=split32;function rotr32$1(et,tt){return et>>>tt|et<<32-tt}utils$h.rotr32=rotr32$1;function rotl32$2(et,tt){return et<>>32-tt}utils$h.rotl32=rotl32$2;function sum32$3(et,tt){return et+tt>>>0}utils$h.sum32=sum32$3;function sum32_3$1(et,tt,rt){return et+tt+rt>>>0}utils$h.sum32_3=sum32_3$1;function sum32_4$2(et,tt,rt,nt){return et+tt+rt+nt>>>0}utils$h.sum32_4=sum32_4$2;function sum32_5$2(et,tt,rt,nt,it){return et+tt+rt+nt+it>>>0}utils$h.sum32_5=sum32_5$2;function sum64$1(et,tt,rt,nt){var it=et[tt],st=et[tt+1],at=nt+st>>>0,ot=(at>>0,et[tt+1]=at}utils$h.sum64=sum64$1;function sum64_hi$1(et,tt,rt,nt){var it=tt+nt>>>0,st=(it>>0}utils$h.sum64_hi=sum64_hi$1;function sum64_lo$1(et,tt,rt,nt){var it=tt+nt;return it>>>0}utils$h.sum64_lo=sum64_lo$1;function sum64_4_hi$1(et,tt,rt,nt,it,st,at,ot){var lt=0,ut=tt;ut=ut+nt>>>0,lt+=ut>>0,lt+=ut>>0,lt+=ut>>0}utils$h.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(et,tt,rt,nt,it,st,at,ot){var lt=tt+nt+st+ot;return lt>>>0}utils$h.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=0,bt=tt;bt=bt+nt>>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0}utils$h.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=tt+nt+st+ot+ut;return dt>>>0}utils$h.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(et,tt,rt){var nt=tt<<32-rt|et>>>rt;return nt>>>0}utils$h.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.rotr64_lo=rotr64_lo$1;function shr64_hi$1(et,tt,rt){return et>>>rt}utils$h.shr64_hi=shr64_hi$1;function shr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.shr64_lo=shr64_lo$1;var common$7={},utils$g=utils$h,assert$e=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$7.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(tt,rt){if(tt=utils$g.toArray(tt,rt),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){tt=this.pending;var nt=tt.length%this._delta8;this.pending=tt.slice(tt.length-nt,tt.length),this.pending.length===0&&(this.pending=null),tt=utils$g.join32(tt,0,tt.length-nt,this.endian);for(var it=0;it>>24&255,it[st++]=tt>>>16&255,it[st++]=tt>>>8&255,it[st++]=tt&255}else for(it[st++]=tt&255,it[st++]=tt>>>8&255,it[st++]=tt>>>16&255,it[st++]=tt>>>24&255,it[st++]=0,it[st++]=0,it[st++]=0,it[st++]=0,at=8;at>>3}common$6.g0_256=g0_256$1;function g1_256$1(et){return rotr32(et,17)^rotr32(et,19)^et>>>10}common$6.g1_256=g1_256$1;var utils$e=utils$h,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$e.rotl32,sum32$2=utils$e.sum32,sum32_5$1=utils$e.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1$1(){if(!(this instanceof SHA1$1))return new SHA1$1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$e.inherits(SHA1$1,BlockHash$3);var _1=SHA1$1;SHA1$1.blockSize=512;SHA1$1.outSize=160;SHA1$1.hmacStrength=80;SHA1$1.padLength=64;SHA1$1.prototype._update=function(tt,rt){for(var nt=this.W,it=0;it<16;it++)nt[it]=tt[rt+it];for(;itthis.blockSize&&(tt=new this.Hash().update(tt).digest()),assert$b(tt.length<=this.blockSize);for(var rt=tt.length;rt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(tt,rt,nt)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(tt,rt,nt){var it=tt.concat(rt).concat(nt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var st=0;st=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(nt||[])),this._reseed=1};HmacDRBG.prototype.generate=function(tt,rt,nt,it){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof rt!="string"&&(it=nt,nt=rt,rt=null),nt&&(nt=utils$7.toArray(nt,it||"hex"),this._update(nt));for(var st=[];st.length"};var BN$6=bnExports$2,utils$5=utils$n,assert$8=utils$5.assert;function Signature$2(et,tt){if(et instanceof Signature$2)return et;this._importDER(et,tt)||(assert$8(et.r&&et.s,"Signature without r or s"),this.r=new BN$6(et.r,16),this.s=new BN$6(et.s,16),et.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=et.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(et,tt){var rt=et[tt.place++];if(!(rt&128))return rt;var nt=rt&15;if(nt===0||nt>4)return!1;for(var it=0,st=0,at=tt.place;st>>=0;return it<=127?!1:(tt.place=at,it)}function rmPadding(et){for(var tt=0,rt=et.length-1;!et[tt]&&!(et[tt+1]&128)&&tt>>3);for(et.push(rt|128);--rt;)et.push(tt>>>(rt<<3)&255);et.push(tt)}Signature$2.prototype.toDER=function(tt){var rt=this.r.toArray(),nt=this.s.toArray();for(rt[0]&128&&(rt=[0].concat(rt)),nt[0]&128&&(nt=[0].concat(nt)),rt=rmPadding(rt),nt=rmPadding(nt);!nt[0]&&!(nt[1]&128);)nt=nt.slice(1);var it=[2];constructLength(it,rt.length),it=it.concat(rt),it.push(2),constructLength(it,nt.length);var st=it.concat(nt),at=[48];return constructLength(at,st.length),at=at.concat(st),utils$5.encode(at,tt)};var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var et=bnExports$2,tt=hmacDrbg,rt=utils$n,nt=curves$1,it=requireBrorand(),st=rt.assert,at=key$2,ot=signature$1;function lt(ut){if(!(this instanceof lt))return new lt(ut);typeof ut=="string"&&(st(Object.prototype.hasOwnProperty.call(nt,ut),"Unknown curve "+ut),ut=nt[ut]),ut instanceof nt.PresetCurve&&(ut={curve:ut}),this.curve=ut.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=ut.curve.g,this.g.precompute(ut.curve.n.bitLength()+1),this.hash=ut.hash||ut.curve.hash}return ec$1=lt,lt.prototype.keyPair=function(dt){return new at(this,dt)},lt.prototype.keyFromPrivate=function(dt,bt){return at.fromPrivate(this,dt,bt)},lt.prototype.keyFromPublic=function(dt,bt){return at.fromPublic(this,dt,bt)},lt.prototype.genKeyPair=function(dt){dt||(dt={});for(var bt=new tt({hash:this.hash,pers:dt.pers,persEnc:dt.persEnc||"utf8",entropy:dt.entropy||it(this.hash.hmacStrength),entropyEnc:dt.entropy&&dt.entropyEnc||"utf8",nonce:this.n.toArray()}),gt=this.n.byteLength(),kt=this.n.sub(new et(2));;){var pt=new et(bt.generate(gt));if(!(pt.cmp(kt)>0))return pt.iaddn(1),this.keyFromPrivate(pt)}},lt.prototype._truncateToN=function(dt,bt){var gt=dt.byteLength()*8-this.n.bitLength();return gt>0&&(dt=dt.ushrn(gt)),!bt&&dt.cmp(this.n)>=0?dt.sub(this.n):dt},lt.prototype.sign=function(dt,bt,gt,kt){typeof gt=="object"&&(kt=gt,gt=null),kt||(kt={}),bt=this.keyFromPrivate(bt,gt),dt=this._truncateToN(new et(dt,16));for(var pt=this.n.byteLength(),yt=bt.getPrivate().toArray("be",pt),$t=dt.toArray("be",pt),mt=new tt({hash:this.hash,entropy:yt,nonce:$t,pers:kt.pers,persEnc:kt.persEnc||"utf8"}),wt=this.n.sub(new et(1)),St=0;;St++){var Bt=kt.k?kt.k(St):new et(mt.generate(this.n.byteLength()));if(Bt=this._truncateToN(Bt,!0),!(Bt.cmpn(1)<=0||Bt.cmp(wt)>=0)){var Ft=this.g.mul(Bt);if(!Ft.isInfinity()){var Lt=Ft.getX(),zt=Lt.umod(this.n);if(zt.cmpn(0)!==0){var Ht=Bt.invm(this.n).mul(zt.mul(bt.getPrivate()).iadd(dt));if(Ht=Ht.umod(this.n),Ht.cmpn(0)!==0){var Wt=(Ft.getY().isOdd()?1:0)|(Lt.cmp(zt)!==0?2:0);return kt.canonical&&Ht.cmp(this.nh)>0&&(Ht=this.n.sub(Ht),Wt^=1),new ot({r:zt,s:Ht,recoveryParam:Wt})}}}}}},lt.prototype.verify=function(dt,bt,gt,kt){dt=this._truncateToN(new et(dt,16)),gt=this.keyFromPublic(gt,kt),bt=new ot(bt,"hex");var pt=bt.r,yt=bt.s;if(pt.cmpn(1)<0||pt.cmp(this.n)>=0||yt.cmpn(1)<0||yt.cmp(this.n)>=0)return!1;var $t=yt.invm(this.n),mt=$t.mul(dt).umod(this.n),wt=$t.mul(pt).umod(this.n),St;return this.curve._maxwellTrick?(St=this.g.jmulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.eqXToP(pt)):(St=this.g.mulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.getX().umod(this.n).cmp(pt)===0)},lt.prototype.recoverPubKey=function(ut,dt,bt,gt){st((3&bt)===bt,"The recovery param is more than two bits"),dt=new ot(dt,gt);var kt=this.n,pt=new et(ut),yt=dt.r,$t=dt.s,mt=bt&1,wt=bt>>1;if(yt.cmp(this.curve.p.umod(this.curve.n))>=0&&wt)throw new Error("Unable to find sencond key candinate");wt?yt=this.curve.pointFromX(yt.add(this.curve.n),mt):yt=this.curve.pointFromX(yt,mt);var St=dt.r.invm(kt),Bt=kt.sub(pt).mul(St).umod(kt),Ft=$t.mul(St).umod(kt);return this.g.mulAdd(Bt,yt,Ft)},lt.prototype.getKeyRecoveryParam=function(ut,dt,bt,gt){if(dt=new ot(dt,gt),dt.recoveryParam!==null)return dt.recoveryParam;for(var kt=0;kt<4;kt++){var pt;try{pt=this.recoverPubKey(ut,dt,kt)}catch{continue}if(pt.eq(bt))return kt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$4=utils$n,assert$7=utils$4.assert,parseBytes$2=utils$4.parseBytes,cachedProperty$1=utils$4.cachedProperty;function KeyPair$1(et,tt){this.eddsa=et,this._secret=parseBytes$2(tt.secret),et.isPoint(tt.pub)?this._pub=tt.pub:this._pubBytes=parseBytes$2(tt.pub)}KeyPair$1.fromPublic=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{pub:rt})};KeyPair$1.fromSecret=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{secret:rt})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var tt=this.eddsa,rt=this.hash(),nt=tt.encodingLength-1,it=rt.slice(0,tt.encodingLength);return it[0]&=248,it[nt]&=127,it[nt]|=64,it});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(tt){return assert$7(this._secret,"KeyPair can only verify"),this.eddsa.sign(tt,this)};KeyPair$1.prototype.verify=function(tt,rt){return this.eddsa.verify(tt,rt,this)};KeyPair$1.prototype.getSecret=function(tt){return assert$7(this._secret,"KeyPair is public only"),utils$4.encode(this.secret(),tt)};KeyPair$1.prototype.getPublic=function(tt){return utils$4.encode(this.pubBytes(),tt)};var key$1=KeyPair$1,BN$5=bnExports$2,utils$3=utils$n,assert$6=utils$3.assert,cachedProperty=utils$3.cachedProperty,parseBytes$1=utils$3.parseBytes;function Signature$1(et,tt){this.eddsa=et,typeof tt!="object"&&(tt=parseBytes$1(tt)),Array.isArray(tt)&&(tt={R:tt.slice(0,et.encodingLength),S:tt.slice(et.encodingLength)}),assert$6(tt.R&&tt.S,"Signature without R or S"),et.isPoint(tt.R)&&(this._R=tt.R),tt.S instanceof BN$5&&(this._S=tt.S),this._Rencoded=Array.isArray(tt.R)?tt.R:tt.Rencoded,this._Sencoded=Array.isArray(tt.S)?tt.S:tt.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$3.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$1,utils$2=utils$n,assert$5=utils$2.assert,parseBytes=utils$2.parseBytes,KeyPair=key$1,Signature=signature;function EDDSA(et){if(assert$5(et==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(et);et=curves[et].curve,this.curve=et,this.g=et.g,this.g.precompute(et.n.bitLength()+1),this.pointClass=et.point().constructor,this.encodingLength=Math.ceil(et.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(tt,rt){tt=parseBytes(tt);var nt=this.keyFromSecret(rt),it=this.hashInt(nt.messagePrefix(),tt),st=this.g.mul(it),at=this.encodePoint(st),ot=this.hashInt(at,nt.pubBytes(),tt).mul(nt.priv()),lt=it.add(ot).umod(this.curve.n);return this.makeSignature({R:st,S:lt,Rencoded:at})};EDDSA.prototype.verify=function(tt,rt,nt){tt=parseBytes(tt),rt=this.makeSignature(rt);var it=this.keyFromPublic(nt),st=this.hashInt(rt.Rencoded(),it.pubBytes(),tt),at=this.g.mul(rt.S()),ot=rt.R().add(it.pub().mul(st));return ot.eq(at)};EDDSA.prototype.hashInt=function(){for(var tt=this.hash(),rt=0;rt0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Dt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Dt).toString(ht);tr=tr.idivn(Dt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Dt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Dt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Dt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Vt=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Dt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Dt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Dt=Dt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Dt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Dt=Dt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Dt=Dt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Dt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Dt=Dt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Dt=Dt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Dt=Dt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Dt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Dt=Dt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Dt=Dt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Dt=Dt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Dt=Dt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Dt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Dt=Dt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Dt=Dt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Dt=Dt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Dt=Dt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Dt=Dt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Dt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Dt=Dt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Dt=Dt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Dt=Dt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Dt=Dt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Dt=Dt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Dt=Dt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Dt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Dt=Dt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Dt=Dt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Dt=Dt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Dt=Dt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Dt=Dt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Dt=Dt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Dt=Dt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Vt,ln),xt=Math.imul(Vt,rn),xt=xt+Math.imul(ir,ln)|0,Dt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Dt=Dt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Dt=Dt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Dt=Dt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Dt=Dt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Dt=Dt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Dt=Dt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Dt=Dt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Dt=Dt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Dt=Math.imul(Br,rn),Ct=Ct+Math.imul(Vt,fn)|0,xt=xt+Math.imul(Vt,gn)|0,xt=xt+Math.imul(ir,fn)|0,Dt=Dt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Dt=Dt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Dt=Dt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Dt=Dt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Dt=Dt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Dt=Dt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Dt=Dt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Dt=Dt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Dt=Dt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Dt=Math.imul(Br,gn),Ct=Ct+Math.imul(Vt,Ln)|0,xt=xt+Math.imul(Vt,En)|0,xt=xt+Math.imul(ir,Ln)|0,Dt=Dt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Dt=Dt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Dt=Dt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Dt=Dt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Dt=Dt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Dt=Dt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Dt=Dt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Dt=Dt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Dt=Math.imul(Br,En),Ct=Ct+Math.imul(Vt,Cn)|0,xt=xt+Math.imul(Vt,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Dt=Dt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Dt=Dt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Dt=Dt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Dt=Dt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Dt=Dt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Dt=Dt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Dt=Dt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Dt=Math.imul(Br,xn),Ct=Ct+Math.imul(Vt,Fn)|0,xt=xt+Math.imul(Vt,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Dt=Dt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Dt=Dt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Dt=Dt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Dt=Dt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Dt=Dt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Dt=Dt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Dt=Math.imul(Br,_n),Ct=Ct+Math.imul(Vt,jn)|0,xt=xt+Math.imul(Vt,dn)|0,xt=xt+Math.imul(ir,jn)|0,Dt=Dt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Dt=Dt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Dt=Dt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Dt=Dt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Dt=Dt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Dt=Math.imul(Br,dn),Ct=Ct+Math.imul(Vt,Xt)|0,xt=xt+Math.imul(Vt,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Dt=Dt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Dt=Dt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Dt=Dt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Dt=Dt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Dt=Math.imul(Br,ar),Ct=Ct+Math.imul(Vt,jt)|0,xt=xt+Math.imul(Vt,dr)|0,xt=xt+Math.imul(ir,jt)|0,Dt=Dt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Dt=Dt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Dt=Dt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Dt=Math.imul(Br,dr),Ct=Ct+Math.imul(Vt,Cr)|0,xt=xt+Math.imul(Vt,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Dt=Dt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Dt=Dt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Dt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Vt,tn)|0,xt=xt+Math.imul(Vt,qr)|0,xt=xt+Math.imul(ir,tn)|0,Dt=Dt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Dt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Dt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Dt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Dt<<26-At|tr>>>At,Dt=tr&It}return Ct&&Dt!==0&&(Ct.words[Ct.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Dt=0;Dt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Dt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Dt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Dt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Dt=1;!(Tt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ft={k256:null,p224:null,p192:null,p25519:null};function Lt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Lt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Lt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Lt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Lt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ft[ht])return Ft[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Ht;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ft[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Dt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Dt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Dt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ot(ht)};function Ot(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ot,qt),Ot.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ot.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ot.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ot.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn);var bnExports=bn.exports,asn1$3={},asn1$2={},api={},encoders={},buffer$1=buffer$2,Buffer$d=buffer$1.Buffer,safer={},key;for(key in buffer$1)buffer$1.hasOwnProperty(key)&&(key==="SlowBuffer"||key==="Buffer"||(safer[key]=buffer$1[key]));var Safer=safer.Buffer={};for(key in Buffer$d)Buffer$d.hasOwnProperty(key)&&(key==="allocUnsafe"||key==="allocUnsafeSlow"||(Safer[key]=Buffer$d[key]));safer.Buffer.prototype=Buffer$d.prototype;(!Safer.from||Safer.from===Uint8Array.from)&&(Safer.from=function(et,tt,rt){if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof et);if(et&&typeof et.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);return Buffer$d(et,tt,rt)});Safer.alloc||(Safer.alloc=function(et,tt,rt){if(typeof et!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof et);if(et<0||et>=2*(1<<30))throw new RangeError('The value "'+et+'" is invalid for option "size"');var nt=Buffer$d(et);return!tt||tt.length===0?nt.fill(0):typeof rt=="string"?nt.fill(tt,rt):nt.fill(tt),nt});if(!safer.kStringMaxLength)try{safer.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}safer.constants||(safer.constants={MAX_LENGTH:safer.kMaxLength},safer.kStringMaxLength&&(safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength));var safer_1=safer,reporter={};const inherits$5=inherits_browserExports;function Reporter$2(et){this._reporterState={obj:null,path:[],options:et||{},errors:[]}}reporter.Reporter=Reporter$2;Reporter$2.prototype.isError=function(tt){return tt instanceof ReporterError};Reporter$2.prototype.save=function(){const tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}};Reporter$2.prototype.restore=function(tt){const rt=this._reporterState;rt.obj=tt.obj,rt.path=rt.path.slice(0,tt.pathLen)};Reporter$2.prototype.enterKey=function(tt){return this._reporterState.path.push(tt)};Reporter$2.prototype.exitKey=function(tt){const rt=this._reporterState;rt.path=rt.path.slice(0,tt-1)};Reporter$2.prototype.leaveKey=function(tt,rt,nt){const it=this._reporterState;this.exitKey(tt),it.obj!==null&&(it.obj[rt]=nt)};Reporter$2.prototype.path=function(){return this._reporterState.path.join("/")};Reporter$2.prototype.enterObject=function(){const tt=this._reporterState,rt=tt.obj;return tt.obj={},rt};Reporter$2.prototype.leaveObject=function(tt){const rt=this._reporterState,nt=rt.obj;return rt.obj=tt,nt};Reporter$2.prototype.error=function(tt){let rt;const nt=this._reporterState,it=tt instanceof ReporterError;if(it?rt=tt:rt=new ReporterError(nt.path.map(function(st){return"["+JSON.stringify(st)+"]"}).join(""),tt.message||tt,tt.stack),!nt.options.partial)throw rt;return it||nt.errors.push(rt),rt};Reporter$2.prototype.wrapResult=function(tt){const rt=this._reporterState;return rt.options.partial?{result:this.isError(tt)?null:tt,errors:rt.errors}:tt};function ReporterError(et,tt){this.path=et,this.rethrow(tt)}inherits$5(ReporterError,Error);ReporterError.prototype.rethrow=function(tt){if(this.message=tt+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(rt){this.stack=rt.stack}return this};var buffer={};const inherits$4=inherits_browserExports,Reporter$1=reporter.Reporter,Buffer$c=safer_1.Buffer;function DecoderBuffer$2(et,tt){if(Reporter$1.call(this,tt),!Buffer$c.isBuffer(et)){this.error("Input not Buffer");return}this.base=et,this.offset=0,this.length=et.length}inherits$4(DecoderBuffer$2,Reporter$1);buffer.DecoderBuffer=DecoderBuffer$2;DecoderBuffer$2.isDecoderBuffer=function(tt){return tt instanceof DecoderBuffer$2?!0:typeof tt=="object"&&Buffer$c.isBuffer(tt.base)&&tt.constructor.name==="DecoderBuffer"&&typeof tt.offset=="number"&&typeof tt.length=="number"&&typeof tt.save=="function"&&typeof tt.restore=="function"&&typeof tt.isEmpty=="function"&&typeof tt.readUInt8=="function"&&typeof tt.skip=="function"&&typeof tt.raw=="function"};DecoderBuffer$2.prototype.save=function(){return{offset:this.offset,reporter:Reporter$1.prototype.save.call(this)}};DecoderBuffer$2.prototype.restore=function(tt){const rt=new DecoderBuffer$2(this.base);return rt.offset=tt.offset,rt.length=this.offset,this.offset=tt.offset,Reporter$1.prototype.restore.call(this,tt.reporter),rt};DecoderBuffer$2.prototype.isEmpty=function(){return this.offset===this.length};DecoderBuffer$2.prototype.readUInt8=function(tt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(tt||"DecoderBuffer overrun")};DecoderBuffer$2.prototype.skip=function(tt,rt){if(!(this.offset+tt<=this.length))return this.error(rt||"DecoderBuffer overrun");const nt=new DecoderBuffer$2(this.base);return nt._reporterState=this._reporterState,nt.offset=this.offset,nt.length=this.offset+tt,this.offset+=tt,nt};DecoderBuffer$2.prototype.raw=function(tt){return this.base.slice(tt?tt.offset:this.offset,this.length)};function EncoderBuffer$1(et,tt){if(Array.isArray(et))this.length=0,this.value=et.map(function(rt){return EncoderBuffer$1.isEncoderBuffer(rt)||(rt=new EncoderBuffer$1(rt,tt)),this.length+=rt.length,rt},this);else if(typeof et=="number"){if(!(0<=et&&et<=255))return tt.error("non-byte EncoderBuffer value");this.value=et,this.length=1}else if(typeof et=="string")this.value=et,this.length=Buffer$c.byteLength(et);else if(Buffer$c.isBuffer(et))this.value=et,this.length=et.length;else return tt.error("Unsupported type: "+typeof et)}buffer.EncoderBuffer=EncoderBuffer$1;EncoderBuffer$1.isEncoderBuffer=function(tt){return tt instanceof EncoderBuffer$1?!0:typeof tt=="object"&&tt.constructor.name==="EncoderBuffer"&&typeof tt.length=="number"&&typeof tt.join=="function"};EncoderBuffer$1.prototype.join=function(tt,rt){return tt||(tt=Buffer$c.alloc(this.length)),rt||(rt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(nt){nt.join(tt,rt),rt+=nt.length}):(typeof this.value=="number"?tt[rt]=this.value:typeof this.value=="string"?tt.write(this.value,rt):Buffer$c.isBuffer(this.value)&&this.value.copy(tt,rt),rt+=this.length)),tt};const Reporter=reporter.Reporter,EncoderBuffer=buffer.EncoderBuffer,DecoderBuffer$1=buffer.DecoderBuffer,assert$4=minimalisticAssert,tags$1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],methods=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(tags$1),overrided=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node$2(et,tt,rt){const nt={};this._baseState=nt,nt.name=rt,nt.enc=et,nt.parent=tt||null,nt.children=null,nt.tag=null,nt.args=null,nt.reverseArgs=null,nt.choice=null,nt.optional=!1,nt.any=!1,nt.obj=!1,nt.use=null,nt.useDecoder=null,nt.key=null,nt.default=null,nt.explicit=null,nt.implicit=null,nt.contains=null,nt.parent||(nt.children=[],this._wrap())}var node$1=Node$2;const stateProps=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node$2.prototype.clone=function(){const tt=this._baseState,rt={};stateProps.forEach(function(it){rt[it]=tt[it]});const nt=new this.constructor(rt.parent);return nt._baseState=rt,nt};Node$2.prototype._wrap=function(){const tt=this._baseState;methods.forEach(function(rt){this[rt]=function(){const it=new this.constructor(this);return tt.children.push(it),it[rt].apply(it,arguments)}},this)};Node$2.prototype._init=function(tt){const rt=this._baseState;assert$4(rt.parent===null),tt.call(this),rt.children=rt.children.filter(function(nt){return nt._baseState.parent===this},this),assert$4.equal(rt.children.length,1,"Root node can have only one child")};Node$2.prototype._useArgs=function(tt){const rt=this._baseState,nt=tt.filter(function(it){return it instanceof this.constructor},this);tt=tt.filter(function(it){return!(it instanceof this.constructor)},this),nt.length!==0&&(assert$4(rt.children===null),rt.children=nt,nt.forEach(function(it){it._baseState.parent=this},this)),tt.length!==0&&(assert$4(rt.args===null),rt.args=tt,rt.reverseArgs=tt.map(function(it){if(typeof it!="object"||it.constructor!==Object)return it;const st={};return Object.keys(it).forEach(function(at){at==(at|0)&&(at|=0);const ot=it[at];st[ot]=at}),st}))};overrided.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState;throw new Error(et+" not implemented for encoding: "+rt.enc)}});tags$1.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState,nt=Array.prototype.slice.call(arguments);return assert$4(rt.tag===null),rt.tag=et,this._useArgs(nt),this}});Node$2.prototype.use=function(tt){assert$4(tt);const rt=this._baseState;return assert$4(rt.use===null),rt.use=tt,this};Node$2.prototype.optional=function(){const tt=this._baseState;return tt.optional=!0,this};Node$2.prototype.def=function(tt){const rt=this._baseState;return assert$4(rt.default===null),rt.default=tt,rt.optional=!0,this};Node$2.prototype.explicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.explicit=tt,this};Node$2.prototype.implicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.implicit=tt,this};Node$2.prototype.obj=function(){const tt=this._baseState,rt=Array.prototype.slice.call(arguments);return tt.obj=!0,rt.length!==0&&this._useArgs(rt),this};Node$2.prototype.key=function(tt){const rt=this._baseState;return assert$4(rt.key===null),rt.key=tt,this};Node$2.prototype.any=function(){const tt=this._baseState;return tt.any=!0,this};Node$2.prototype.choice=function(tt){const rt=this._baseState;return assert$4(rt.choice===null),rt.choice=tt,this._useArgs(Object.keys(tt).map(function(nt){return tt[nt]})),this};Node$2.prototype.contains=function(tt){const rt=this._baseState;return assert$4(rt.use===null),rt.contains=tt,this};Node$2.prototype._decode=function(tt,rt){const nt=this._baseState;if(nt.parent===null)return tt.wrapResult(nt.children[0]._decode(tt,rt));let it=nt.default,st=!0,at=null;if(nt.key!==null&&(at=tt.enterKey(nt.key)),nt.optional){let lt=null;if(nt.explicit!==null?lt=nt.explicit:nt.implicit!==null?lt=nt.implicit:nt.tag!==null&&(lt=nt.tag),lt===null&&!nt.any){const ut=tt.save();try{nt.choice===null?this._decodeGeneric(nt.tag,tt,rt):this._decodeChoice(tt,rt),st=!0}catch{st=!1}tt.restore(ut)}else if(st=this._peekTag(tt,lt,nt.any),tt.isError(st))return st}let ot;if(nt.obj&&st&&(ot=tt.enterObject()),st){if(nt.explicit!==null){const ut=this._decodeTag(tt,nt.explicit);if(tt.isError(ut))return ut;tt=ut}const lt=tt.offset;if(nt.use===null&&nt.choice===null){let ut;nt.any&&(ut=tt.save());const dt=this._decodeTag(tt,nt.implicit!==null?nt.implicit:nt.tag,nt.any);if(tt.isError(dt))return dt;nt.any?it=tt.raw(ut):tt=dt}if(rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),lt,tt.length,"tagged"),rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),tt.offset,tt.length,"content"),nt.any||(nt.choice===null?it=this._decodeGeneric(nt.tag,tt,rt):it=this._decodeChoice(tt,rt)),tt.isError(it))return it;if(!nt.any&&nt.choice===null&&nt.children!==null&&nt.children.forEach(function(dt){dt._decode(tt,rt)}),nt.contains&&(nt.tag==="octstr"||nt.tag==="bitstr")){const ut=new DecoderBuffer$1(it);it=this._getUse(nt.contains,tt._reporterState.obj)._decode(ut,rt)}}return nt.obj&&st&&(it=tt.leaveObject(ot)),nt.key!==null&&(it!==null||st===!0)?tt.leaveKey(at,nt.key,it):at!==null&&tt.exitKey(at),it};Node$2.prototype._decodeGeneric=function(tt,rt,nt){const it=this._baseState;return tt==="seq"||tt==="set"?null:tt==="seqof"||tt==="setof"?this._decodeList(rt,tt,it.args[0],nt):/str$/.test(tt)?this._decodeStr(rt,tt,nt):tt==="objid"&&it.args?this._decodeObjid(rt,it.args[0],it.args[1],nt):tt==="objid"?this._decodeObjid(rt,null,null,nt):tt==="gentime"||tt==="utctime"?this._decodeTime(rt,tt,nt):tt==="null_"?this._decodeNull(rt,nt):tt==="bool"?this._decodeBool(rt,nt):tt==="objDesc"?this._decodeStr(rt,tt,nt):tt==="int"||tt==="enum"?this._decodeInt(rt,it.args&&it.args[0],nt):it.use!==null?this._getUse(it.use,rt._reporterState.obj)._decode(rt,nt):rt.error("unknown tag: "+tt)};Node$2.prototype._getUse=function(tt,rt){const nt=this._baseState;return nt.useDecoder=this._use(tt,rt),assert$4(nt.useDecoder._baseState.parent===null),nt.useDecoder=nt.useDecoder._baseState.children[0],nt.implicit!==nt.useDecoder._baseState.implicit&&(nt.useDecoder=nt.useDecoder.clone(),nt.useDecoder._baseState.implicit=nt.implicit),nt.useDecoder};Node$2.prototype._decodeChoice=function(tt,rt){const nt=this._baseState;let it=null,st=!1;return Object.keys(nt.choice).some(function(at){const ot=tt.save(),lt=nt.choice[at];try{const ut=lt._decode(tt,rt);if(tt.isError(ut))return!1;it={type:at,value:ut},st=!0}catch{return tt.restore(ot),!1}return!0},this),st?it:tt.error("Choice not matched")};Node$2.prototype._createEncoderBuffer=function(tt){return new EncoderBuffer(tt,this.reporter)};Node$2.prototype._encode=function(tt,rt,nt){const it=this._baseState;if(it.default!==null&&it.default===tt)return;const st=this._encodeValue(tt,rt,nt);if(st!==void 0&&!this._skipDefault(st,rt,nt))return st};Node$2.prototype._encodeValue=function(tt,rt,nt){const it=this._baseState;if(it.parent===null)return it.children[0]._encode(tt,rt||new Reporter);let st=null;if(this.reporter=rt,it.optional&&tt===void 0)if(it.default!==null)tt=it.default;else return;let at=null,ot=!1;if(it.any)st=this._createEncoderBuffer(tt);else if(it.choice)st=this._encodeChoice(tt,rt);else if(it.contains)at=this._getUse(it.contains,nt)._encode(tt,rt),ot=!0;else if(it.children)at=it.children.map(function(lt){if(lt._baseState.tag==="null_")return lt._encode(null,rt,tt);if(lt._baseState.key===null)return rt.error("Child should have a key");const ut=rt.enterKey(lt._baseState.key);if(typeof tt!="object")return rt.error("Child expected, but input is not object");const dt=lt._encode(tt[lt._baseState.key],rt,tt);return rt.leaveKey(ut),dt},this).filter(function(lt){return lt}),at=this._createEncoderBuffer(at);else if(it.tag==="seqof"||it.tag==="setof"){if(!(it.args&&it.args.length===1))return rt.error("Too many args for : "+it.tag);if(!Array.isArray(tt))return rt.error("seqof/setof, but data is not Array");const lt=this.clone();lt._baseState.implicit=null,at=this._createEncoderBuffer(tt.map(function(ut){const dt=this._baseState;return this._getUse(dt.args[0],tt)._encode(ut,rt)},lt))}else it.use!==null?st=this._getUse(it.use,nt)._encode(tt,rt):(at=this._encodePrimitive(it.tag,tt),ot=!0);if(!it.any&&it.choice===null){const lt=it.implicit!==null?it.implicit:it.tag,ut=it.implicit===null?"universal":"context";lt===null?it.use===null&&rt.error("Tag could be omitted only for .use()"):it.use===null&&(st=this._encodeComposite(lt,ot,ut,at))}return it.explicit!==null&&(st=this._encodeComposite(it.explicit,!1,"context",st)),st};Node$2.prototype._encodeChoice=function(tt,rt){const nt=this._baseState,it=nt.choice[tt.type];return it||assert$4(!1,tt.type+" not found in "+JSON.stringify(Object.keys(nt.choice))),it._encode(tt.value,rt)};Node$2.prototype._encodePrimitive=function(tt,rt){const nt=this._baseState;if(/str$/.test(tt))return this._encodeStr(rt,tt);if(tt==="objid"&&nt.args)return this._encodeObjid(rt,nt.reverseArgs[0],nt.args[1]);if(tt==="objid")return this._encodeObjid(rt,null,null);if(tt==="gentime"||tt==="utctime")return this._encodeTime(rt,tt);if(tt==="null_")return this._encodeNull();if(tt==="int"||tt==="enum")return this._encodeInt(rt,nt.args&&nt.reverseArgs[0]);if(tt==="bool")return this._encodeBool(rt);if(tt==="objDesc")return this._encodeStr(rt,tt);throw new Error("Unsupported tag: "+tt)};Node$2.prototype._isNumstr=function(tt){return/^[0-9 ]*$/.test(tt)};Node$2.prototype._isPrintstr=function(tt){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(tt)};var der$2={};(function(et){function tt(rt){const nt={};return Object.keys(rt).forEach(function(it){(it|0)==it&&(it=it|0);const st=rt[it];nt[st]=it}),nt}et.tagClass={0:"universal",1:"application",2:"context",3:"private"},et.tagClassByName=tt(et.tagClass),et.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},et.tagByName=tt(et.tag)})(der$2);const inherits$3=inherits_browserExports,Buffer$b=safer_1.Buffer,Node$1=node$1,der$1=der$2;function DEREncoder$1(et){this.enc="der",this.name=et.name,this.entity=et,this.tree=new DERNode$1,this.tree._init(et.body)}var der_1$1=DEREncoder$1;DEREncoder$1.prototype.encode=function(tt,rt){return this.tree._encode(tt,rt).join()};function DERNode$1(et){Node$1.call(this,"der",et)}inherits$3(DERNode$1,Node$1);DERNode$1.prototype._encodeComposite=function(tt,rt,nt,it){const st=encodeTag(tt,rt,nt,this.reporter);if(it.length<128){const lt=Buffer$b.alloc(2);return lt[0]=st,lt[1]=it.length,this._createEncoderBuffer([lt,it])}let at=1;for(let lt=it.length;lt>=256;lt>>=8)at++;const ot=Buffer$b.alloc(1+1+at);ot[0]=st,ot[1]=128|at;for(let lt=1+at,ut=it.length;ut>0;lt--,ut>>=8)ot[lt]=ut&255;return this._createEncoderBuffer([ot,it])};DERNode$1.prototype._encodeStr=function(tt,rt){if(rt==="bitstr")return this._createEncoderBuffer([tt.unused|0,tt.data]);if(rt==="bmpstr"){const nt=Buffer$b.alloc(tt.length*2);for(let it=0;it=40)return this.reporter.error("Second objid identifier OOB");tt.splice(0,2,tt[0]*40+tt[1])}let it=0;for(let ot=0;ot=128;lt>>=7)it++}const st=Buffer$b.alloc(it);let at=st.length-1;for(let ot=tt.length-1;ot>=0;ot--){let lt=tt[ot];for(st[at--]=lt&127;(lt>>=7)>0;)st[at--]=128|lt&127}return this._createEncoderBuffer(st)};function two(et){return et<10?"0"+et:et}DERNode$1.prototype._encodeTime=function(tt,rt){let nt;const it=new Date(tt);return rt==="gentime"?nt=[two(it.getUTCFullYear()),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):rt==="utctime"?nt=[two(it.getUTCFullYear()%100),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+rt+" time is not supported yet"),this._encodeStr(nt,"octstr")};DERNode$1.prototype._encodeNull=function(){return this._createEncoderBuffer("")};DERNode$1.prototype._encodeInt=function(tt,rt){if(typeof tt=="string"){if(!rt)return this.reporter.error("String int or enum given, but no values map");if(!rt.hasOwnProperty(tt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(tt));tt=rt[tt]}if(typeof tt!="number"&&!Buffer$b.isBuffer(tt)){const st=tt.toArray();!tt.sign&&st[0]&128&&st.unshift(0),tt=Buffer$b.from(st)}if(Buffer$b.isBuffer(tt)){let st=tt.length;tt.length===0&&st++;const at=Buffer$b.alloc(st);return tt.copy(at),tt.length===0&&(at[0]=0),this._createEncoderBuffer(at)}if(tt<128)return this._createEncoderBuffer(tt);if(tt<256)return this._createEncoderBuffer([0,tt]);let nt=1;for(let st=tt;st>=256;st>>=8)nt++;const it=new Array(nt);for(let st=it.length-1;st>=0;st--)it[st]=tt&255,tt>>=8;return it[0]&128&&it.unshift(0),this._createEncoderBuffer(Buffer$b.from(it))};DERNode$1.prototype._encodeBool=function(tt){return this._createEncoderBuffer(tt?255:0)};DERNode$1.prototype._use=function(tt,rt){return typeof tt=="function"&&(tt=tt(rt)),tt._getEncoder("der").tree};DERNode$1.prototype._skipDefault=function(tt,rt,nt){const it=this._baseState;let st;if(it.default===null)return!1;const at=tt.join();if(it.defaultBuffer===void 0&&(it.defaultBuffer=this._encodeValue(it.default,rt,nt).join()),at.length!==it.defaultBuffer.length)return!1;for(st=0;st=31?nt.error("Multi-octet tag encoding unsupported"):(tt||(it|=32),it|=der$1.tagClassByName[rt||"universal"]<<6,it)}const inherits$2=inherits_browserExports,DEREncoder=der_1$1;function PEMEncoder(et){DEREncoder.call(this,et),this.enc="pem"}inherits$2(PEMEncoder,DEREncoder);var pem$1=PEMEncoder;PEMEncoder.prototype.encode=function(tt,rt){const it=DEREncoder.prototype.encode.call(this,tt).toString("base64"),st=["-----BEGIN "+rt.label+"-----"];for(let at=0;at>6],it=(rt&32)===0;if((rt&31)===31){let at=rt;for(rt=0;(at&128)===128;){if(at=et.readUInt8(tt),et.isError(at))return at;rt<<=7,rt|=at&127}}else rt&=31;const st=der.tag[rt];return{cls:nt,primitive:it,tag:rt,tagStr:st}}function derDecodeLen(et,tt,rt){let nt=et.readUInt8(rt);if(et.isError(nt))return nt;if(!tt&&nt===128)return null;if(!(nt&128))return nt;const it=nt&127;if(it>4)return et.error("length octect is too long");nt=0;for(let st=0;st0&&St.ishrn(Bt),St}function pt(mt,wt){mt=kt(mt,wt),mt=mt.mod(wt);var St=et.from(mt.toArray());if(St.length=0)throw new Error("invalid sig")}return verify_1=st,verify_1}var browser$4,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$4;hasRequiredBrowser$1=1;var et=safeBufferExports.Buffer,tt=browser$a,rt=readableBrowserExports,nt=inherits_browserExports,it=requireSign(),st=requireVerify(),at=require$$6;Object.keys(at).forEach(function(bt){at[bt].id=et.from(at[bt].id,"hex"),at[bt.toLowerCase()]=at[bt]});function ot(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hashType=gt.hash,this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(ot,rt.Writable),ot.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},ot.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},ot.prototype.sign=function(gt,kt){this.end();var pt=this._hash.digest(),yt=it(pt,gt,this._hashType,this._signType,this._tag);return kt?yt.toString(kt):yt};function lt(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(lt,rt.Writable),lt.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},lt.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},lt.prototype.verify=function(gt,kt,pt){var yt=typeof kt=="string"?et.from(kt,pt):kt;this.end();var $t=this._hash.digest();return st(yt,$t,gt,this._signType,this._tag)};function ut(bt){return new ot(bt)}function dt(bt){return new lt(bt)}return browser$4={Sign:ut,Verify:dt,createSign:ut,createVerify:dt},browser$4}var browser$3,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$3;hasRequiredBrowser=1;var et=requireElliptic(),tt=bnExports$2;browser$3=function(at){return new nt(at)};var rt={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};rt.p224=rt.secp224r1,rt.p256=rt.secp256r1=rt.prime256v1,rt.p192=rt.secp192r1=rt.prime192v1,rt.p384=rt.secp384r1,rt.p521=rt.secp521r1;function nt(st){this.curveType=rt[st],this.curveType||(this.curveType={name:st}),this.curve=new et.ec(this.curveType.name),this.keys=void 0}nt.prototype.generateKeys=function(st,at){return this.keys=this.curve.genKeyPair(),this.getPublicKey(st,at)},nt.prototype.computeSecret=function(st,at,ot){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var lt=this.curve.keyFromPublic(st).getPublic(),ut=lt.mul(this.keys.getPrivate()).getX();return it(ut,ot,this.curveType.byteLength)},nt.prototype.getPublicKey=function(st,at){var ot=this.keys.getPublic(at==="compressed",!0);return at==="hybrid"&&(ot[ot.length-1]%2?ot[0]=7:ot[0]=6),it(ot,st)},nt.prototype.getPrivateKey=function(st){return it(this.keys.getPrivate(),st)},nt.prototype.setPublicKey=function(st,at){return at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at)),this.keys._importPublic(st),this},nt.prototype.setPrivateKey=function(st,at){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var ot=new tt(st);return ot=ot.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ot),this};function it(st,at,ot){Array.isArray(st)||(st=st.toArray());var lt=new Buffer(st);if(ot&<.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return nt?crt$1(at,st):withPublic$1(at,st)};function oaep$1(et,tt){var rt=et.modulus.byteLength(),nt=tt.length,it=createHash$2("sha1").update(Buffer$5.alloc(0)).digest(),st=it.length,at=2*st;if(nt>rt-at-2)throw new Error("message too long");var ot=Buffer$5.alloc(rt-nt-at-2),lt=rt-st-1,ut=randomBytes(st),dt=xor$1(Buffer$5.concat([it,ot,Buffer$5.alloc(1,1),tt],lt),mgf$1(ut,lt)),bt=xor$1(ut,mgf$1(dt,st));return new BN$3(Buffer$5.concat([Buffer$5.alloc(1),bt,dt],rt))}function pkcs1$1(et,tt,rt){var nt=tt.length,it=et.modulus.byteLength();if(nt>it-11)throw new Error("message too long");var st;return rt?st=Buffer$5.alloc(it-nt-3,255):st=nonZero(it-nt-3),new BN$3(Buffer$5.concat([Buffer$5.from([0,rt?1:2]),st,Buffer$5.alloc(1),tt],it))}function nonZero(et){for(var tt=Buffer$5.allocUnsafe(et),rt=0,nt=randomBytes(et*2),it=0,st;rtat||new BN$2(rt).cmp(st.modulus)>=0)throw new Error("decryption error");var ot;nt?ot=withPublic(new BN$2(rt),st):ot=crt(rt,st);var lt=Buffer$4.alloc(at-ot.length);if(ot=Buffer$4.concat([lt,ot],at),it===4)return oaep(st,ot);if(it===1)return pkcs1(st,ot,nt);if(it===3)return ot;throw new Error("unknown padding")};function oaep(et,tt){var rt=et.modulus.byteLength(),nt=createHash$1("sha1").update(Buffer$4.alloc(0)).digest(),it=nt.length;if(tt[0]!==0)throw new Error("decryption error");var st=tt.slice(1,it+1),at=tt.slice(it+1),ot=xor(st,mgf(at,it)),lt=xor(at,mgf(ot,rt-it-1));if(compare$1(nt,lt.slice(0,it)))throw new Error("decryption error");for(var ut=it;lt[ut]===0;)ut++;if(lt[ut++]!==1)throw new Error("decryption error");return lt.slice(ut)}function pkcs1(et,tt,rt){for(var nt=tt.slice(0,2),it=2,st=0;tt[it++]!==0;)if(it>=tt.length){st++;break}var at=tt.slice(2,it-1);if((nt.toString("hex")!=="0002"&&!rt||nt.toString("hex")!=="0001"&&rt)&&st++,at.length<8&&st++,st)throw new Error("decryption error");return tt.slice(it)}function compare$1(et,tt){et=Buffer$4.from(et),tt=Buffer$4.from(tt);var rt=0,nt=et.length;et.length!==tt.length&&(rt++,nt=Math.min(et.length,tt.length));for(var it=-1;++itMAX_UINT32)throw new RangeError("requested too many random bytes");var rt=Buffer$H.allocUnsafe(et);if(et>0)if(et>MAX_BYTES)for(var nt=0;nt0&&(at=rt[0]),at instanceof Error)throw at;var ot=new Error("Unhandled error."+(at?" ("+at.message+")":""));throw ot.context=at,ot}var lt=st[tt];if(lt===void 0)return!1;if(typeof lt=="function")ReflectApply(lt,this,rt);else for(var ut=lt.length,dt=arrayClone(lt,ut),nt=0;nt0&&at.length>it&&!at.warned){at.warned=!0;var ot=new Error("Possible EventEmitter memory leak detected. "+at.length+" "+String(tt)+" listeners added. Use emitter.setMaxListeners() to increase limit");ot.name="MaxListenersExceededWarning",ot.emitter=et,ot.type=tt,ot.count=at.length,ProcessEmitWarning(ot)}return et}EventEmitter.prototype.addListener=function(tt,rt){return _addListener(this,tt,rt,!1)};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.prependListener=function(tt,rt){return _addListener(this,tt,rt,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(et,tt,rt){var nt={fired:!1,wrapFn:void 0,target:et,type:tt,listener:rt},it=onceWrapper.bind(nt);return it.listener=rt,nt.wrapFn=it,it}EventEmitter.prototype.once=function(tt,rt){return checkListener(rt),this.on(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.prependOnceListener=function(tt,rt){return checkListener(rt),this.prependListener(tt,_onceWrap(this,tt,rt)),this};EventEmitter.prototype.removeListener=function(tt,rt){var nt,it,st,at,ot;if(checkListener(rt),it=this._events,it===void 0)return this;if(nt=it[tt],nt===void 0)return this;if(nt===rt||nt.listener===rt)--this._eventsCount===0?this._events=Object.create(null):(delete it[tt],it.removeListener&&this.emit("removeListener",tt,nt.listener||rt));else if(typeof nt!="function"){for(st=-1,at=nt.length-1;at>=0;at--)if(nt[at]===rt||nt[at].listener===rt){ot=nt[at].listener,st=at;break}if(st<0)return this;st===0?nt.shift():spliceOne(nt,st),nt.length===1&&(it[tt]=nt[0]),it.removeListener!==void 0&&this.emit("removeListener",tt,ot||rt)}return this};EventEmitter.prototype.off=EventEmitter.prototype.removeListener;EventEmitter.prototype.removeAllListeners=function(tt){var rt,nt,it;if(nt=this._events,nt===void 0)return this;if(nt.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):nt[tt]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete nt[tt]),this;if(arguments.length===0){var st=Object.keys(nt),at;for(it=0;it=0;it--)this.removeListener(tt,rt[it]);return this};function _listeners(et,tt,rt){var nt=et._events;if(nt===void 0)return[];var it=nt[tt];return it===void 0?[]:typeof it=="function"?rt?[it.listener||it]:[it]:rt?unwrapListeners(it):arrayClone(it,it.length)}EventEmitter.prototype.listeners=function(tt){return _listeners(this,tt,!0)};EventEmitter.prototype.rawListeners=function(tt){return _listeners(this,tt,!1)};EventEmitter.listenerCount=function(et,tt){return typeof et.listenerCount=="function"?et.listenerCount(tt):listenerCount.call(et,tt)};EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(et){var tt=this._events;if(tt!==void 0){var rt=tt[et];if(typeof rt=="function")return 1;if(rt!==void 0)return rt.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(et,tt){for(var rt=new Array(tt),nt=0;nt0?this.tail.next=mt:this.head=mt,this.tail=mt,++this.length}},{key:"unshift",value:function($t){var mt={data:$t,next:this.head};this.length===0&&(this.tail=mt),this.head=mt,++this.length}},{key:"shift",value:function(){if(this.length!==0){var $t=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,$t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function($t){if(this.length===0)return"";for(var mt=this.head,wt=""+mt.data;mt=mt.next;)wt+=$t+mt.data;return wt}},{key:"concat",value:function($t){if(this.length===0)return ut.alloc(0);for(var mt=ut.allocUnsafe($t>>>0),wt=this.head,St=0;wt;)kt(wt.data,mt,St),St+=wt.data.length,wt=wt.next;return mt}},{key:"consume",value:function($t,mt){var wt;return $tBt.length?Bt.length:$t;if(Ot===Bt.length?St+=Bt:St+=Bt.slice(0,$t),$t-=Ot,$t===0){Ot===Bt.length?(++wt,mt.next?this.head=mt.next:this.head=this.tail=null):(this.head=mt,mt.data=Bt.slice(Ot));break}++wt}return this.length-=wt,St}},{key:"_getBuffer",value:function($t){var mt=ut.allocUnsafe($t),wt=this.head,St=1;for(wt.data.copy(mt),$t-=wt.data.length;wt=wt.next;){var Bt=wt.data,Ot=$t>Bt.length?Bt.length:$t;if(Bt.copy(mt,mt.length-$t,0,Ot),$t-=Ot,$t===0){Ot===Bt.length?(++St,wt.next?this.head=wt.next:this.head=this.tail=null):(this.head=wt,wt.data=Bt.slice(Ot));break}++St}return this.length-=St,mt}},{key:gt,value:function($t,mt){return bt(this,tt(tt({},mt),{},{depth:0,customInspect:!1}))}}]),pt}(),buffer_list}function destroy(et,tt){var rt=this,nt=this._readableState&&this._readableState.destroyed,it=this._writableState&&this._writableState.destroyed;return nt||it?(tt?tt(et):et&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(emitErrorNT,this,et)):process.nextTick(emitErrorNT,this,et)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(et||null,function(st){!tt&&st?rt._writableState?rt._writableState.errorEmitted?process.nextTick(emitCloseNT,rt):(rt._writableState.errorEmitted=!0,process.nextTick(emitErrorAndCloseNT,rt,st)):process.nextTick(emitErrorAndCloseNT,rt,st):tt?(process.nextTick(emitCloseNT,rt),tt(st)):process.nextTick(emitCloseNT,rt)}),this)}function emitErrorAndCloseNT(et,tt){emitErrorNT(et,tt),emitCloseNT(et)}function emitCloseNT(et){et._writableState&&!et._writableState.emitClose||et._readableState&&!et._readableState.emitClose||et.emit("close")}function undestroy(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function emitErrorNT(et,tt){et.emit("error",tt)}function errorOrDestroy(et,tt){var rt=et._readableState,nt=et._writableState;rt&&rt.autoDestroy||nt&&nt.autoDestroy?et.destroy(tt):et.emit("error",tt)}var destroy_1={destroy,undestroy,errorOrDestroy},errorsBrowser={};function _inheritsLoose$1(et,tt){et.prototype=Object.create(tt.prototype),et.prototype.constructor=et,et.__proto__=tt}var codes={};function createErrorType(et,tt,rt){rt||(rt=Error);function nt(st,at,ot){return typeof tt=="string"?tt:tt(st,at,ot)}var it=function(st){_inheritsLoose$1(at,st);function at(ot,lt,ut){return st.call(this,nt(ot,lt,ut))||this}return at}(rt);it.prototype.name=rt.name,it.prototype.code=et,codes[et]=it}function oneOf(et,tt){if(Array.isArray(et)){var rt=et.length;return et=et.map(function(nt){return String(nt)}),rt>2?"one of ".concat(tt," ").concat(et.slice(0,rt-1).join(", "),", or ")+et[rt-1]:rt===2?"one of ".concat(tt," ").concat(et[0]," or ").concat(et[1]):"of ".concat(tt," ").concat(et[0])}else return"of ".concat(tt," ").concat(String(et))}function startsWith(et,tt,rt){return et.substr(!rt||rt<0?0:+rt,tt.length)===tt}function endsWith(et,tt,rt){return(rt===void 0||rt>et.length)&&(rt=et.length),et.substring(rt-tt.length,rt)===tt}function includes(et,tt,rt){return typeof rt!="number"&&(rt=0),rt+tt.length>et.length?!1:et.indexOf(tt,rt)!==-1}createErrorType("ERR_INVALID_OPT_VALUE",function(et,tt){return'The value "'+tt+'" is invalid for option "'+et+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(et,tt,rt){var nt;typeof tt=="string"&&startsWith(tt,"not ")?(nt="must not be",tt=tt.replace(/^not /,"")):nt="must be";var it;if(endsWith(et," argument"))it="The ".concat(et," ").concat(nt," ").concat(oneOf(tt,"type"));else{var st=includes(et,".")?"property":"argument";it='The "'.concat(et,'" ').concat(st," ").concat(nt," ").concat(oneOf(tt,"type"))}return it+=". Received type ".concat(typeof rt),it},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(et){return"The "+et+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(et){return"Cannot call "+et+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(et){return"Unknown encoding: "+et},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");errorsBrowser.codes=codes;var ERR_INVALID_OPT_VALUE=errorsBrowser.codes.ERR_INVALID_OPT_VALUE;function highWaterMarkFrom(et,tt,rt){return et.highWaterMark!=null?et.highWaterMark:tt?et[rt]:null}function getHighWaterMark(et,tt,rt,nt){var it=highWaterMarkFrom(tt,nt,rt);if(it!=null){if(!(isFinite(it)&&Math.floor(it)===it)||it<0){var st=nt?rt:"highWaterMark";throw new ERR_INVALID_OPT_VALUE(st,it)}return Math.floor(it)}return et.objectMode?16:16*1024}var state={getHighWaterMark},browser$b=deprecate;function deprecate(et,tt){if(config("noDeprecation"))return et;var rt=!1;function nt(){if(!rt){if(config("throwDeprecation"))throw new Error(tt);config("traceDeprecation")?console.trace(tt):console.warn(tt),rt=!0}return et.apply(this,arguments)}return nt}function config(et){try{if(!commonjsGlobal.localStorage)return!1}catch{return!1}var tt=commonjsGlobal.localStorage[et];return tt==null?!1:String(tt).toLowerCase()==="true"}var _stream_writable,hasRequired_stream_writable;function require_stream_writable(){if(hasRequired_stream_writable)return _stream_writable;hasRequired_stream_writable=1,_stream_writable=Vt;function et(Kt){var Qt=this;this.next=null,this.entry=null,this.finish=function(){pr(Qt,Kt)}}var tt;Vt.WritableState=Lt;var rt={deprecate:browser$b},nt=streamBrowser,it=buffer$2.Buffer,st=(typeof commonjsGlobal<"u"?commonjsGlobal:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function at(Kt){return it.from(Kt)}function ot(Kt){return it.isBuffer(Kt)||Kt instanceof st}var lt=destroy_1,ut=state,dt=ut.getHighWaterMark,bt=errorsBrowser.codes,gt=bt.ERR_INVALID_ARG_TYPE,kt=bt.ERR_METHOD_NOT_IMPLEMENTED,pt=bt.ERR_MULTIPLE_CALLBACK,yt=bt.ERR_STREAM_CANNOT_PIPE,$t=bt.ERR_STREAM_DESTROYED,mt=bt.ERR_STREAM_NULL_VALUES,wt=bt.ERR_STREAM_WRITE_AFTER_END,St=bt.ERR_UNKNOWN_ENCODING,Bt=lt.errorOrDestroy;inherits_browserExports(Vt,nt);function Ot(){}function Lt(Kt,Qt,Zt){tt=tt||require_stream_duplex(),Kt=Kt||{},typeof Zt!="boolean"&&(Zt=Qt instanceof tt),this.objectMode=!!Kt.objectMode,Zt&&(this.objectMode=this.objectMode||!!Kt.writableObjectMode),this.highWaterMark=dt(this,Kt,"writableHighWaterMark",Zt),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ur=Kt.decodeStrings===!1;this.decodeStrings=!ur,this.defaultEncoding=Kt.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(_r){Tt(Qt,_r)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=Kt.emitClose!==!1,this.autoDestroy=!!Kt.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new et(this)}Lt.prototype.getBuffer=function(){for(var Qt=this.bufferedRequest,Zt=[];Qt;)Zt.push(Qt),Qt=Qt.next;return Zt},function(){try{Object.defineProperty(Lt.prototype,"buffer",{get:rt.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var zt;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(zt=Function.prototype[Symbol.hasInstance],Object.defineProperty(Vt,Symbol.hasInstance,{value:function(Qt){return zt.call(this,Qt)?!0:this!==Vt?!1:Qt&&Qt._writableState instanceof Lt}})):zt=function(Qt){return Qt instanceof this};function Vt(Kt){tt=tt||require_stream_duplex();var Qt=this instanceof tt;if(!Qt&&!zt.call(Vt,this))return new Vt(Kt);this._writableState=new Lt(Kt,this,Qt),this.writable=!0,Kt&&(typeof Kt.write=="function"&&(this._write=Kt.write),typeof Kt.writev=="function"&&(this._writev=Kt.writev),typeof Kt.destroy=="function"&&(this._destroy=Kt.destroy),typeof Kt.final=="function"&&(this._final=Kt.final)),nt.call(this)}Vt.prototype.pipe=function(){Bt(this,new yt)};function Wt(Kt,Qt){var Zt=new wt;Bt(Kt,Zt),process.nextTick(Qt,Zt)}function lr(Kt,Qt,Zt,ur){var _r;return Zt===null?_r=new mt:typeof Zt!="string"&&!Qt.objectMode&&(_r=new gt("chunk",["string","Buffer"],Zt)),_r?(Bt(Kt,_r),process.nextTick(ur,_r),!1):!0}Vt.prototype.write=function(Kt,Qt,Zt){var ur=this._writableState,_r=!1,er=!ur.objectMode&&ot(Kt);return er&&!it.isBuffer(Kt)&&(Kt=at(Kt)),typeof Qt=="function"&&(Zt=Qt,Qt=null),er?Qt="buffer":Qt||(Qt=ur.defaultEncoding),typeof Zt!="function"&&(Zt=Ot),ur.ending?Wt(this,Zt):(er||lr(this,ur,Kt,Zt))&&(ur.pendingcb++,_r=Ft(this,ur,er,Kt,Qt,Zt)),_r},Vt.prototype.cork=function(){this._writableState.corked++},Vt.prototype.uncork=function(){var Kt=this._writableState;Kt.corked&&(Kt.corked--,!Kt.writing&&!Kt.corked&&!Kt.bufferProcessing&&Kt.bufferedRequest&&Pt(this,Kt))},Vt.prototype.setDefaultEncoding=function(Qt){if(typeof Qt=="string"&&(Qt=Qt.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Qt+"").toLowerCase())>-1))throw new St(Qt);return this._writableState.defaultEncoding=Qt,this},Object.defineProperty(Vt.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function qt(Kt,Qt,Zt){return!Kt.objectMode&&Kt.decodeStrings!==!1&&typeof Qt=="string"&&(Qt=it.from(Qt,Zt)),Qt}Object.defineProperty(Vt.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function Ft(Kt,Qt,Zt,ur,_r,er){if(!Zt){var Jt=qt(Qt,ur,_r);ur!==Jt&&(Zt=!0,_r="buffer",ur=Jt)}var Ar=Qt.objectMode?1:ur.length;Qt.length+=Ar;var Er=Qt.length>5===6?2:et>>4===14?3:et>>3===30?4:et>>6===2?-1:-2}function utf8CheckIncomplete(et,tt,rt){var nt=tt.length-1;if(nt=0?(it>0&&(et.lastNeed=it-1),it):--nt=0?(it>0&&(et.lastNeed=it-2),it):--nt=0?(it>0&&(it===2?it=0:et.lastNeed=it-3),it):0))}function utf8CheckExtraBytes(et,tt,rt){if((tt[0]&192)!==128)return et.lastNeed=0,"�";if(et.lastNeed>1&&tt.length>1){if((tt[1]&192)!==128)return et.lastNeed=1,"�";if(et.lastNeed>2&&tt.length>2&&(tt[2]&192)!==128)return et.lastNeed=2,"�"}}function utf8FillLast(et){var tt=this.lastTotal-this.lastNeed,rt=utf8CheckExtraBytes(this,et);if(rt!==void 0)return rt;if(this.lastNeed<=et.length)return et.copy(this.lastChar,tt,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);et.copy(this.lastChar,tt,0,et.length),this.lastNeed-=et.length}function utf8Text(et,tt){var rt=utf8CheckIncomplete(this,et,tt);if(!this.lastNeed)return et.toString("utf8",tt);this.lastTotal=rt;var nt=et.length-(rt-this.lastNeed);return et.copy(this.lastChar,0,nt),et.toString("utf8",tt,nt)}function utf8End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+"�":tt}function utf16Text(et,tt){if((et.length-tt)%2===0){var rt=et.toString("utf16le",tt);if(rt){var nt=rt.charCodeAt(rt.length-1);if(nt>=55296&&nt<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1],rt.slice(0,-1)}return rt}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=et[et.length-1],et.toString("utf16le",tt,et.length-1)}function utf16End(et){var tt=et&&et.length?this.write(et):"";if(this.lastNeed){var rt=this.lastTotal-this.lastNeed;return tt+this.lastChar.toString("utf16le",0,rt)}return tt}function base64Text(et,tt){var rt=(et.length-tt)%3;return rt===0?et.toString("base64",tt):(this.lastNeed=3-rt,this.lastTotal=3,rt===1?this.lastChar[0]=et[et.length-1]:(this.lastChar[0]=et[et.length-2],this.lastChar[1]=et[et.length-1]),et.toString("base64",tt,et.length-rt))}function base64End(et){var tt=et&&et.length?this.write(et):"";return this.lastNeed?tt+this.lastChar.toString("base64",0,3-this.lastNeed):tt}function simpleWrite(et){return et.toString(this.encoding)}function simpleEnd(et){return et&&et.length?this.write(et):""}var ERR_STREAM_PREMATURE_CLOSE=errorsBrowser.codes.ERR_STREAM_PREMATURE_CLOSE;function once$1(et){var tt=!1;return function(){if(!tt){tt=!0;for(var rt=arguments.length,nt=new Array(rt),it=0;it0)if(typeof Jt!="string"&&!Xr.objectMode&&Object.getPrototypeOf(Jt)!==nt.prototype&&(Jt=st(Jt)),Er)Xr.endEmitted?Ot(er,new mt):qt(er,Xr,Jt,!0);else if(Xr.ended)Ot(er,new yt);else{if(Xr.destroyed)return!1;Xr.reading=!1,Xr.decoder&&!Ar?(Jt=Xr.decoder.write(Jt),Xr.objectMode||Jt.length!==0?qt(er,Xr,Jt,!1):Pt(er,Xr)):qt(er,Xr,Jt,!1)}else Er||(Xr.reading=!1,Pt(er,Xr))}return!Xr.ended&&(Xr.length=Mt?er=Mt:(er--,er|=er>>>1,er|=er>>>2,er|=er>>>4,er|=er>>>8,er|=er>>>16,er++),er}function Et(er,Jt){return er<=0||Jt.length===0&&Jt.ended?0:Jt.objectMode?1:er!==er?Jt.flowing&&Jt.length?Jt.buffer.head.data.length:Jt.length:(er>Jt.highWaterMark&&(Jt.highWaterMark=ht(er)),er<=Jt.length?er:Jt.ended?Jt.length:(Jt.needReadable=!0,0))}Wt.prototype.read=function(er){lt("read",er),er=parseInt(er,10);var Jt=this._readableState,Ar=er;if(er!==0&&(Jt.emittedReadable=!1),er===0&&Jt.needReadable&&((Jt.highWaterMark!==0?Jt.length>=Jt.highWaterMark:Jt.length>0)||Jt.ended))return lt("read: emitReadable",Jt.length,Jt.ended),Jt.length===0&&Jt.ended?Zt(this):Rt(this),null;if(er=Et(er,Jt),er===0&&Jt.ended)return Jt.length===0&&Zt(this),null;var Er=Jt.needReadable;lt("need readable",Er),(Jt.length===0||Jt.length-er0?Dr=Qt(er,Jt):Dr=null,Dr===null?(Jt.needReadable=Jt.length<=Jt.highWaterMark,er=0):(Jt.length-=er,Jt.awaitDrain=0),Jt.length===0&&(Jt.ended||(Jt.needReadable=!0),Ar!==er&&Jt.ended&&Zt(this)),Dr!==null&&this.emit("data",Dr),Dr};function Tt(er,Jt){if(lt("onEofChunk"),!Jt.ended){if(Jt.decoder){var Ar=Jt.decoder.end();Ar&&Ar.length&&(Jt.buffer.push(Ar),Jt.length+=Jt.objectMode?1:Ar.length)}Jt.ended=!0,Jt.sync?Rt(er):(Jt.needReadable=!1,Jt.emittedReadable||(Jt.emittedReadable=!0,At(er)))}}function Rt(er){var Jt=er._readableState;lt("emitReadable",Jt.needReadable,Jt.emittedReadable),Jt.needReadable=!1,Jt.emittedReadable||(lt("emitReadable",Jt.flowing),Jt.emittedReadable=!0,process.nextTick(At,er))}function At(er){var Jt=er._readableState;lt("emitReadable_",Jt.destroyed,Jt.length,Jt.ended),!Jt.destroyed&&(Jt.length||Jt.ended)&&(er.emit("readable"),Jt.emittedReadable=!1),Jt.needReadable=!Jt.flowing&&!Jt.ended&&Jt.length<=Jt.highWaterMark,Kt(er)}function Pt(er,Jt){Jt.readingMore||(Jt.readingMore=!0,process.nextTick(It,er,Jt))}function It(er,Jt){for(;!Jt.reading&&!Jt.ended&&(Jt.length1&&_r(Er.pipes,er)!==-1)&&!or&&(lt("false write response, pause",Er.awaitDrain),Er.awaitDrain++),Ar.pause())}function Or(Yt){lt("onerror",Yt),Ir(),er.removeListener("error",Or),tt(er,"error")===0&&Ot(er,Yt)}zt(er,"error",Or);function rr(){er.removeListener("finish",gr),Ir()}er.once("close",rr);function gr(){lt("onfinish"),er.removeListener("close",rr),Ir()}er.once("finish",gr);function Ir(){lt("unpipe"),Ar.unpipe(er)}return er.emit("pipe",Ar),Er.flowing||(lt("pipe resume"),Ar.resume()),er};function Ct(er){return function(){var Ar=er._readableState;lt("pipeOnDrain",Ar.awaitDrain),Ar.awaitDrain&&Ar.awaitDrain--,Ar.awaitDrain===0&&tt(er,"data")&&(Ar.flowing=!0,Kt(er))}}Wt.prototype.unpipe=function(er){var Jt=this._readableState,Ar={hasUnpiped:!1};if(Jt.pipesCount===0)return this;if(Jt.pipesCount===1)return er&&er!==Jt.pipes?this:(er||(er=Jt.pipes),Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1,er&&er.emit("unpipe",this,Ar),this);if(!er){var Er=Jt.pipes,Dr=Jt.pipesCount;Jt.pipes=null,Jt.pipesCount=0,Jt.flowing=!1;for(var Xr=0;Xr0,Er.flowing!==!1&&this.resume()):er==="readable"&&!Er.endEmitted&&!Er.readableListening&&(Er.readableListening=Er.needReadable=!0,Er.flowing=!1,Er.emittedReadable=!1,lt("on readable",Er.length,Er.reading),Er.length?Rt(this):Er.reading||process.nextTick(Dt,this)),Ar},Wt.prototype.addListener=Wt.prototype.on,Wt.prototype.removeListener=function(er,Jt){var Ar=rt.prototype.removeListener.call(this,er,Jt);return er==="readable"&&process.nextTick(xt,this),Ar},Wt.prototype.removeAllListeners=function(er){var Jt=rt.prototype.removeAllListeners.apply(this,arguments);return(er==="readable"||er===void 0)&&process.nextTick(xt,this),Jt};function xt(er){var Jt=er._readableState;Jt.readableListening=er.listenerCount("readable")>0,Jt.resumeScheduled&&!Jt.paused?Jt.flowing=!0:er.listenerCount("data")>0&&er.resume()}function Dt(er){lt("readable nexttick read 0"),er.read(0)}Wt.prototype.resume=function(){var er=this._readableState;return er.flowing||(lt("resume"),er.flowing=!er.readableListening,tr(this,er)),er.paused=!1,this};function tr(er,Jt){Jt.resumeScheduled||(Jt.resumeScheduled=!0,process.nextTick(pr,er,Jt))}function pr(er,Jt){lt("resume",Jt.reading),Jt.reading||er.read(0),Jt.resumeScheduled=!1,er.emit("resume"),Kt(er),Jt.flowing&&!Jt.reading&&er.read(0)}Wt.prototype.pause=function(){return lt("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(lt("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Kt(er){var Jt=er._readableState;for(lt("flow",Jt.flowing);Jt.flowing&&er.read()!==null;);}Wt.prototype.wrap=function(er){var Jt=this,Ar=this._readableState,Er=!1;er.on("end",function(){if(lt("wrapped end"),Ar.decoder&&!Ar.ended){var Vr=Ar.decoder.end();Vr&&Vr.length&&Jt.push(Vr)}Jt.push(null)}),er.on("data",function(Vr){if(lt("wrapped data"),Ar.decoder&&(Vr=Ar.decoder.write(Vr)),!(Ar.objectMode&&Vr==null)&&!(!Ar.objectMode&&(!Vr||!Vr.length))){var wr=Jt.push(Vr);wr||(Er=!0,er.pause())}});for(var Dr in er)this[Dr]===void 0&&typeof er[Dr]=="function"&&(this[Dr]=function(wr){return function(){return er[wr].apply(er,arguments)}}(Dr));for(var Xr=0;Xr=Jt.length?(Jt.decoder?Ar=Jt.buffer.join(""):Jt.buffer.length===1?Ar=Jt.buffer.first():Ar=Jt.buffer.concat(Jt.length),Jt.buffer.clear()):Ar=Jt.buffer.consume(er,Jt.decoder),Ar}function Zt(er){var Jt=er._readableState;lt("endReadable",Jt.endEmitted),Jt.endEmitted||(Jt.ended=!0,process.nextTick(ur,Jt,er))}function ur(er,Jt){if(lt("endReadableNT",er.endEmitted,er.length),!er.endEmitted&&er.length===0&&(er.endEmitted=!0,Jt.readable=!1,Jt.emit("end"),er.autoDestroy)){var Ar=Jt._writableState;(!Ar||Ar.autoDestroy&&Ar.finished)&&Jt.destroy()}}typeof Symbol=="function"&&(Wt.from=function(er,Jt){return Bt===void 0&&(Bt=requireFromBrowser()),Bt(Wt,er,Jt)});function _r(er,Jt){for(var Ar=0,Er=er.length;Ar0;return destroyer(at,lt,ut,function(dt){it||(it=dt),dt&&st.forEach(call),!lt&&(st.forEach(call),nt(it))})});return tt.reduce(pipe)}var pipeline_1=pipeline;(function(et,tt){tt=et.exports=require_stream_readable(),tt.Stream=tt,tt.Readable=tt,tt.Writable=require_stream_writable(),tt.Duplex=require_stream_duplex(),tt.Transform=_stream_transform,tt.PassThrough=_stream_passthrough,tt.finished=endOfStream,tt.pipeline=pipeline_1})(readableBrowser,readableBrowser.exports);var readableBrowserExports=readableBrowser.exports,Buffer$F=safeBufferExports.Buffer,Transform$5=readableBrowserExports.Transform,inherits$v=inherits_browserExports;function throwIfNotStringOrBuffer(et,tt){if(!Buffer$F.isBuffer(et)&&typeof et!="string")throw new TypeError(tt+" must be a string or a buffer")}function HashBase$2(et){Transform$5.call(this),this._block=Buffer$F.allocUnsafe(et),this._blockSize=et,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}inherits$v(HashBase$2,Transform$5);HashBase$2.prototype._transform=function(et,tt,rt){var nt=null;try{this.update(et,tt)}catch(it){nt=it}rt(nt)};HashBase$2.prototype._flush=function(et){var tt=null;try{this.push(this.digest())}catch(rt){tt=rt}et(tt)};HashBase$2.prototype.update=function(et,tt){if(throwIfNotStringOrBuffer(et,"Data"),this._finalized)throw new Error("Digest already called");Buffer$F.isBuffer(et)||(et=Buffer$F.from(et,tt));for(var rt=this._block,nt=0;this._blockOffset+et.length-nt>=this._blockSize;){for(var it=this._blockOffset;it0;++st)this._length[st]+=at,at=this._length[st]/4294967296|0,at>0&&(this._length[st]-=4294967296*at);return this};HashBase$2.prototype._update=function(){throw new Error("_update is not implemented")};HashBase$2.prototype.digest=function(et){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var tt=this._digest();et!==void 0&&(tt=tt.toString(et)),this._block.fill(0),this._blockOffset=0;for(var rt=0;rt<4;++rt)this._length[rt]=0;return tt};HashBase$2.prototype._digest=function(){throw new Error("_digest is not implemented")};var hashBase=HashBase$2,inherits$u=inherits_browserExports,HashBase$1=hashBase,Buffer$E=safeBufferExports.Buffer,ARRAY16$1=new Array(16);function MD5$3(){HashBase$1.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}inherits$u(MD5$3,HashBase$1);MD5$3.prototype._update=function(){for(var et=ARRAY16$1,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);var rt=this._a,nt=this._b,it=this._c,st=this._d;rt=fnF(rt,nt,it,st,et[0],3614090360,7),st=fnF(st,rt,nt,it,et[1],3905402710,12),it=fnF(it,st,rt,nt,et[2],606105819,17),nt=fnF(nt,it,st,rt,et[3],3250441966,22),rt=fnF(rt,nt,it,st,et[4],4118548399,7),st=fnF(st,rt,nt,it,et[5],1200080426,12),it=fnF(it,st,rt,nt,et[6],2821735955,17),nt=fnF(nt,it,st,rt,et[7],4249261313,22),rt=fnF(rt,nt,it,st,et[8],1770035416,7),st=fnF(st,rt,nt,it,et[9],2336552879,12),it=fnF(it,st,rt,nt,et[10],4294925233,17),nt=fnF(nt,it,st,rt,et[11],2304563134,22),rt=fnF(rt,nt,it,st,et[12],1804603682,7),st=fnF(st,rt,nt,it,et[13],4254626195,12),it=fnF(it,st,rt,nt,et[14],2792965006,17),nt=fnF(nt,it,st,rt,et[15],1236535329,22),rt=fnG(rt,nt,it,st,et[1],4129170786,5),st=fnG(st,rt,nt,it,et[6],3225465664,9),it=fnG(it,st,rt,nt,et[11],643717713,14),nt=fnG(nt,it,st,rt,et[0],3921069994,20),rt=fnG(rt,nt,it,st,et[5],3593408605,5),st=fnG(st,rt,nt,it,et[10],38016083,9),it=fnG(it,st,rt,nt,et[15],3634488961,14),nt=fnG(nt,it,st,rt,et[4],3889429448,20),rt=fnG(rt,nt,it,st,et[9],568446438,5),st=fnG(st,rt,nt,it,et[14],3275163606,9),it=fnG(it,st,rt,nt,et[3],4107603335,14),nt=fnG(nt,it,st,rt,et[8],1163531501,20),rt=fnG(rt,nt,it,st,et[13],2850285829,5),st=fnG(st,rt,nt,it,et[2],4243563512,9),it=fnG(it,st,rt,nt,et[7],1735328473,14),nt=fnG(nt,it,st,rt,et[12],2368359562,20),rt=fnH(rt,nt,it,st,et[5],4294588738,4),st=fnH(st,rt,nt,it,et[8],2272392833,11),it=fnH(it,st,rt,nt,et[11],1839030562,16),nt=fnH(nt,it,st,rt,et[14],4259657740,23),rt=fnH(rt,nt,it,st,et[1],2763975236,4),st=fnH(st,rt,nt,it,et[4],1272893353,11),it=fnH(it,st,rt,nt,et[7],4139469664,16),nt=fnH(nt,it,st,rt,et[10],3200236656,23),rt=fnH(rt,nt,it,st,et[13],681279174,4),st=fnH(st,rt,nt,it,et[0],3936430074,11),it=fnH(it,st,rt,nt,et[3],3572445317,16),nt=fnH(nt,it,st,rt,et[6],76029189,23),rt=fnH(rt,nt,it,st,et[9],3654602809,4),st=fnH(st,rt,nt,it,et[12],3873151461,11),it=fnH(it,st,rt,nt,et[15],530742520,16),nt=fnH(nt,it,st,rt,et[2],3299628645,23),rt=fnI(rt,nt,it,st,et[0],4096336452,6),st=fnI(st,rt,nt,it,et[7],1126891415,10),it=fnI(it,st,rt,nt,et[14],2878612391,15),nt=fnI(nt,it,st,rt,et[5],4237533241,21),rt=fnI(rt,nt,it,st,et[12],1700485571,6),st=fnI(st,rt,nt,it,et[3],2399980690,10),it=fnI(it,st,rt,nt,et[10],4293915773,15),nt=fnI(nt,it,st,rt,et[1],2240044497,21),rt=fnI(rt,nt,it,st,et[8],1873313359,6),st=fnI(st,rt,nt,it,et[15],4264355552,10),it=fnI(it,st,rt,nt,et[6],2734768916,15),nt=fnI(nt,it,st,rt,et[13],1309151649,21),rt=fnI(rt,nt,it,st,et[4],4149444226,6),st=fnI(st,rt,nt,it,et[11],3174756917,10),it=fnI(it,st,rt,nt,et[2],718787259,15),nt=fnI(nt,it,st,rt,et[9],3951481745,21),this._a=this._a+rt|0,this._b=this._b+nt|0,this._c=this._c+it|0,this._d=this._d+st|0};MD5$3.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$E.allocUnsafe(16);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et};function rotl$3(et,tt){return et<>>32-tt}function fnF(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&rt|~tt&nt)+it+st|0,at)+tt|0}function fnG(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt&nt|rt&~nt)+it+st|0,at)+tt|0}function fnH(et,tt,rt,nt,it,st,at){return rotl$3(et+(tt^rt^nt)+it+st|0,at)+tt|0}function fnI(et,tt,rt,nt,it,st,at){return rotl$3(et+(rt^(tt|~nt))+it+st|0,at)+tt|0}var md5_js=MD5$3,Buffer$D=buffer$2.Buffer,inherits$t=inherits_browserExports,HashBase=hashBase,ARRAY16=new Array(16),zl=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],zr=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],sl=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],sr=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],hl=[0,1518500249,1859775393,2400959708,2840853838],hr=[1352829926,1548603684,1836072691,2053994217,0];function RIPEMD160$5(){HashBase.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}inherits$t(RIPEMD160$5,HashBase);RIPEMD160$5.prototype._update=function(){for(var et=ARRAY16,tt=0;tt<16;++tt)et[tt]=this._block.readInt32LE(tt*4);for(var rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._a|0,lt=this._b|0,ut=this._c|0,dt=this._d|0,bt=this._e|0,gt=0;gt<80;gt+=1){var kt,pt;gt<16?(kt=fn1(rt,nt,it,st,at,et[zl[gt]],hl[0],sl[gt]),pt=fn5(ot,lt,ut,dt,bt,et[zr[gt]],hr[0],sr[gt])):gt<32?(kt=fn2(rt,nt,it,st,at,et[zl[gt]],hl[1],sl[gt]),pt=fn4(ot,lt,ut,dt,bt,et[zr[gt]],hr[1],sr[gt])):gt<48?(kt=fn3(rt,nt,it,st,at,et[zl[gt]],hl[2],sl[gt]),pt=fn3(ot,lt,ut,dt,bt,et[zr[gt]],hr[2],sr[gt])):gt<64?(kt=fn4(rt,nt,it,st,at,et[zl[gt]],hl[3],sl[gt]),pt=fn2(ot,lt,ut,dt,bt,et[zr[gt]],hr[3],sr[gt])):(kt=fn5(rt,nt,it,st,at,et[zl[gt]],hl[4],sl[gt]),pt=fn1(ot,lt,ut,dt,bt,et[zr[gt]],hr[4],sr[gt])),rt=at,at=st,st=rotl$2(it,10),it=nt,nt=kt,ot=bt,bt=dt,dt=rotl$2(ut,10),ut=lt,lt=pt}var yt=this._b+it+dt|0;this._b=this._c+st+bt|0,this._c=this._d+at+ot|0,this._d=this._e+rt+lt|0,this._e=this._a+nt+ut|0,this._a=yt};RIPEMD160$5.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var et=Buffer$D.alloc?Buffer$D.alloc(20):new Buffer$D(20);return et.writeInt32LE(this._a,0),et.writeInt32LE(this._b,4),et.writeInt32LE(this._c,8),et.writeInt32LE(this._d,12),et.writeInt32LE(this._e,16),et};function rotl$2(et,tt){return et<>>32-tt}function fn1(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^rt^nt)+st+at|0,ot)+it|0}function fn2(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&rt|~tt&nt)+st+at|0,ot)+it|0}function fn3(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+((tt|~rt)^nt)+st+at|0,ot)+it|0}function fn4(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt&nt|rt&~nt)+st+at|0,ot)+it|0}function fn5(et,tt,rt,nt,it,st,at,ot){return rotl$2(et+(tt^(rt|~nt))+st+at|0,ot)+it|0}var ripemd160$1=RIPEMD160$5,sha_js={exports:{}},Buffer$C=safeBufferExports.Buffer;function Hash$9(et,tt){this._block=Buffer$C.alloc(et),this._finalSize=tt,this._blockSize=et,this._len=0}Hash$9.prototype.update=function(et,tt){typeof et=="string"&&(tt=tt||"utf8",et=Buffer$C.from(et,tt));for(var rt=this._block,nt=this._blockSize,it=et.length,st=this._len,at=0;at=this._finalSize&&(this._update(this._block),this._block.fill(0));var rt=this._len*8;if(rt<=4294967295)this._block.writeUInt32BE(rt,this._blockSize-4);else{var nt=(rt&4294967295)>>>0,it=(rt-nt)/4294967296;this._block.writeUInt32BE(it,this._blockSize-8),this._block.writeUInt32BE(nt,this._blockSize-4)}this._update(this._block);var st=this._hash();return et?st.toString(et):st};Hash$9.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var hash$5=Hash$9,inherits$s=inherits_browserExports,Hash$8=hash$5,Buffer$B=safeBufferExports.Buffer,K$4=[1518500249,1859775393,-1894007588,-899497514],W$5=new Array(80);function Sha(){this.init(),this._w=W$5,Hash$8.call(this,64,56)}inherits$s(Sha,Hash$8);Sha.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl5$1(et){return et<<5|et>>>27}function rotl30$1(et){return et<<30|et>>>2}function ft$1(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16];for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5$1(rt)+ft$1(ut,nt,it,st)+at+tt[lt]+K$4[ut]|0;at=st,st=it,it=rotl30$1(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha.prototype._hash=function(){var et=Buffer$B.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha$4=Sha,inherits$r=inherits_browserExports,Hash$7=hash$5,Buffer$A=safeBufferExports.Buffer,K$3=[1518500249,1859775393,-1894007588,-899497514],W$4=new Array(80);function Sha1(){this.init(),this._w=W$4,Hash$7.call(this,64,56)}inherits$r(Sha1,Hash$7);Sha1.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function rotl1(et){return et<<1|et>>>31}function rotl5(et){return et<<5|et>>>27}function rotl30(et){return et<<30|et>>>2}function ft(et,tt,rt,nt){return et===0?tt&rt|~tt&nt:et===2?tt&rt|tt&nt|rt&nt:tt^rt^nt}Sha1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=0;ot<16;++ot)tt[ot]=et.readInt32BE(ot*4);for(;ot<80;++ot)tt[ot]=rotl1(tt[ot-3]^tt[ot-8]^tt[ot-14]^tt[ot-16]);for(var lt=0;lt<80;++lt){var ut=~~(lt/20),dt=rotl5(rt)+ft(ut,nt,it,st)+at+tt[lt]+K$3[ut]|0;at=st,st=it,it=rotl30(nt),nt=rt,rt=dt}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0};Sha1.prototype._hash=function(){var et=Buffer$A.allocUnsafe(20);return et.writeInt32BE(this._a|0,0),et.writeInt32BE(this._b|0,4),et.writeInt32BE(this._c|0,8),et.writeInt32BE(this._d|0,12),et.writeInt32BE(this._e|0,16),et};var sha1$1=Sha1,inherits$q=inherits_browserExports,Hash$6=hash$5,Buffer$z=safeBufferExports.Buffer,K$2=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],W$3=new Array(64);function Sha256$1(){this.init(),this._w=W$3,Hash$6.call(this,64,56)}inherits$q(Sha256$1,Hash$6);Sha256$1.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ch(et,tt,rt){return rt^et&(tt^rt)}function maj$1(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0$1(et){return(et>>>2|et<<30)^(et>>>13|et<<19)^(et>>>22|et<<10)}function sigma1$1(et){return(et>>>6|et<<26)^(et>>>11|et<<21)^(et>>>25|et<<7)}function gamma0(et){return(et>>>7|et<<25)^(et>>>18|et<<14)^et>>>3}function gamma1(et){return(et>>>17|et<<15)^(et>>>19|et<<13)^et>>>10}Sha256$1.prototype._update=function(et){for(var tt=this._w,rt=this._a|0,nt=this._b|0,it=this._c|0,st=this._d|0,at=this._e|0,ot=this._f|0,lt=this._g|0,ut=this._h|0,dt=0;dt<16;++dt)tt[dt]=et.readInt32BE(dt*4);for(;dt<64;++dt)tt[dt]=gamma1(tt[dt-2])+tt[dt-7]+gamma0(tt[dt-15])+tt[dt-16]|0;for(var bt=0;bt<64;++bt){var gt=ut+sigma1$1(at)+ch(at,ot,lt)+K$2[bt]+tt[bt]|0,kt=sigma0$1(rt)+maj$1(rt,nt,it)|0;ut=lt,lt=ot,ot=at,at=st+gt|0,st=it,it=nt,nt=rt,rt=gt+kt|0}this._a=rt+this._a|0,this._b=nt+this._b|0,this._c=it+this._c|0,this._d=st+this._d|0,this._e=at+this._e|0,this._f=ot+this._f|0,this._g=lt+this._g|0,this._h=ut+this._h|0};Sha256$1.prototype._hash=function(){var et=Buffer$z.allocUnsafe(32);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et.writeInt32BE(this._h,28),et};var sha256$4=Sha256$1,inherits$p=inherits_browserExports,Sha256=sha256$4,Hash$5=hash$5,Buffer$y=safeBufferExports.Buffer,W$2=new Array(64);function Sha224(){this.init(),this._w=W$2,Hash$5.call(this,64,56)}inherits$p(Sha224,Sha256);Sha224.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};Sha224.prototype._hash=function(){var et=Buffer$y.allocUnsafe(28);return et.writeInt32BE(this._a,0),et.writeInt32BE(this._b,4),et.writeInt32BE(this._c,8),et.writeInt32BE(this._d,12),et.writeInt32BE(this._e,16),et.writeInt32BE(this._f,20),et.writeInt32BE(this._g,24),et};var sha224$1=Sha224,inherits$o=inherits_browserExports,Hash$4=hash$5,Buffer$x=safeBufferExports.Buffer,K$1=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],W$1=new Array(160);function Sha512(){this.init(),this._w=W$1,Hash$4.call(this,128,112)}inherits$o(Sha512,Hash$4);Sha512.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Ch(et,tt,rt){return rt^et&(tt^rt)}function maj(et,tt,rt){return et&tt|rt&(et|tt)}function sigma0(et,tt){return(et>>>28|tt<<4)^(tt>>>2|et<<30)^(tt>>>7|et<<25)}function sigma1(et,tt){return(et>>>14|tt<<18)^(et>>>18|tt<<14)^(tt>>>9|et<<23)}function Gamma0(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^et>>>7}function Gamma0l(et,tt){return(et>>>1|tt<<31)^(et>>>8|tt<<24)^(et>>>7|tt<<25)}function Gamma1(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^et>>>6}function Gamma1l(et,tt){return(et>>>19|tt<<13)^(tt>>>29|et<<3)^(et>>>6|tt<<26)}function getCarry(et,tt){return et>>>0>>0?1:0}Sha512.prototype._update=function(et){for(var tt=this._w,rt=this._ah|0,nt=this._bh|0,it=this._ch|0,st=this._dh|0,at=this._eh|0,ot=this._fh|0,lt=this._gh|0,ut=this._hh|0,dt=this._al|0,bt=this._bl|0,gt=this._cl|0,kt=this._dl|0,pt=this._el|0,yt=this._fl|0,$t=this._gl|0,mt=this._hl|0,wt=0;wt<32;wt+=2)tt[wt]=et.readInt32BE(wt*4),tt[wt+1]=et.readInt32BE(wt*4+4);for(;wt<160;wt+=2){var St=tt[wt-30],Bt=tt[wt-15*2+1],Ot=Gamma0(St,Bt),Lt=Gamma0l(Bt,St);St=tt[wt-2*2],Bt=tt[wt-2*2+1];var zt=Gamma1(St,Bt),Vt=Gamma1l(Bt,St),Wt=tt[wt-7*2],lr=tt[wt-7*2+1],qt=tt[wt-16*2],Ft=tt[wt-16*2+1],Mt=Lt+lr|0,ht=Ot+Wt+getCarry(Mt,Lt)|0;Mt=Mt+Vt|0,ht=ht+zt+getCarry(Mt,Vt)|0,Mt=Mt+Ft|0,ht=ht+qt+getCarry(Mt,Ft)|0,tt[wt]=ht,tt[wt+1]=Mt}for(var Et=0;Et<160;Et+=2){ht=tt[Et],Mt=tt[Et+1];var Tt=maj(rt,nt,it),Rt=maj(dt,bt,gt),At=sigma0(rt,dt),Pt=sigma0(dt,rt),It=sigma1(at,pt),Ct=sigma1(pt,at),xt=K$1[Et],Dt=K$1[Et+1],tr=Ch(at,ot,lt),pr=Ch(pt,yt,$t),Kt=mt+Ct|0,Qt=ut+It+getCarry(Kt,mt)|0;Kt=Kt+pr|0,Qt=Qt+tr+getCarry(Kt,pr)|0,Kt=Kt+Dt|0,Qt=Qt+xt+getCarry(Kt,Dt)|0,Kt=Kt+Mt|0,Qt=Qt+ht+getCarry(Kt,Mt)|0;var Zt=Pt+Rt|0,ur=At+Tt+getCarry(Zt,Pt)|0;ut=lt,mt=$t,lt=ot,$t=yt,ot=at,yt=pt,pt=kt+Kt|0,at=st+Qt+getCarry(pt,kt)|0,st=it,kt=gt,it=nt,gt=bt,nt=rt,bt=dt,dt=Kt+Zt|0,rt=Qt+ur+getCarry(dt,Kt)|0}this._al=this._al+dt|0,this._bl=this._bl+bt|0,this._cl=this._cl+gt|0,this._dl=this._dl+kt|0,this._el=this._el+pt|0,this._fl=this._fl+yt|0,this._gl=this._gl+$t|0,this._hl=this._hl+mt|0,this._ah=this._ah+rt+getCarry(this._al,dt)|0,this._bh=this._bh+nt+getCarry(this._bl,bt)|0,this._ch=this._ch+it+getCarry(this._cl,gt)|0,this._dh=this._dh+st+getCarry(this._dl,kt)|0,this._eh=this._eh+at+getCarry(this._el,pt)|0,this._fh=this._fh+ot+getCarry(this._fl,yt)|0,this._gh=this._gh+lt+getCarry(this._gl,$t)|0,this._hh=this._hh+ut+getCarry(this._hl,mt)|0};Sha512.prototype._hash=function(){var et=Buffer$x.allocUnsafe(64);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),tt(this._gh,this._gl,48),tt(this._hh,this._hl,56),et};var sha512$1=Sha512,inherits$n=inherits_browserExports,SHA512$2=sha512$1,Hash$3=hash$5,Buffer$w=safeBufferExports.Buffer,W=new Array(160);function Sha384(){this.init(),this._w=W,Hash$3.call(this,128,112)}inherits$n(Sha384,SHA512$2);Sha384.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Sha384.prototype._hash=function(){var et=Buffer$w.allocUnsafe(48);function tt(rt,nt,it){et.writeInt32BE(rt,it),et.writeInt32BE(nt,it+4)}return tt(this._ah,this._al,0),tt(this._bh,this._bl,8),tt(this._ch,this._cl,16),tt(this._dh,this._dl,24),tt(this._eh,this._el,32),tt(this._fh,this._fl,40),et};var sha384$1=Sha384,exports$1=sha_js.exports=function(tt){tt=tt.toLowerCase();var rt=exports$1[tt];if(!rt)throw new Error(tt+" is not supported (we accept pull requests)");return new rt};exports$1.sha=sha$4;exports$1.sha1=sha1$1;exports$1.sha224=sha224$1;exports$1.sha256=sha256$4;exports$1.sha384=sha384$1;exports$1.sha512=sha512$1;var sha_jsExports=sha_js.exports,streamBrowserify=Stream,EE=eventsExports.EventEmitter,inherits$m=inherits_browserExports;inherits$m(Stream,EE);Stream.Readable=require_stream_readable();Stream.Writable=require_stream_writable();Stream.Duplex=require_stream_duplex();Stream.Transform=_stream_transform;Stream.PassThrough=_stream_passthrough;Stream.finished=endOfStream;Stream.pipeline=pipeline_1;Stream.Stream=Stream;function Stream(){EE.call(this)}Stream.prototype.pipe=function(et,tt){var rt=this;function nt(dt){et.writable&&et.write(dt)===!1&&rt.pause&&rt.pause()}rt.on("data",nt);function it(){rt.readable&&rt.resume&&rt.resume()}et.on("drain",it),!et._isStdio&&(!tt||tt.end!==!1)&&(rt.on("end",at),rt.on("close",ot));var st=!1;function at(){st||(st=!0,et.end())}function ot(){st||(st=!0,typeof et.destroy=="function"&&et.destroy())}function lt(dt){if(ut(),EE.listenerCount(this,"error")===0)throw dt}rt.on("error",lt),et.on("error",lt);function ut(){rt.removeListener("data",nt),et.removeListener("drain",it),rt.removeListener("end",at),rt.removeListener("close",ot),rt.removeListener("error",lt),et.removeListener("error",lt),rt.removeListener("end",ut),rt.removeListener("close",ut),et.removeListener("close",ut)}return rt.on("end",ut),rt.on("close",ut),et.on("close",ut),et.emit("pipe",rt),et};var Buffer$v=safeBufferExports.Buffer,Transform$4=streamBrowserify.Transform,StringDecoder=string_decoder.StringDecoder,inherits$l=inherits_browserExports;function CipherBase$1(et){Transform$4.call(this),this.hashMode=typeof et=="string",this.hashMode?this[et]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}inherits$l(CipherBase$1,Transform$4);CipherBase$1.prototype.update=function(et,tt,rt){typeof et=="string"&&(et=Buffer$v.from(et,tt));var nt=this._update(et);return this.hashMode?this:(rt&&(nt=this._toString(nt,rt)),nt)};CipherBase$1.prototype.setAutoPadding=function(){};CipherBase$1.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")};CipherBase$1.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")};CipherBase$1.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")};CipherBase$1.prototype._transform=function(et,tt,rt){var nt;try{this.hashMode?this._update(et):this.push(this._update(et))}catch(it){nt=it}finally{rt(nt)}};CipherBase$1.prototype._flush=function(et){var tt;try{this.push(this.__final())}catch(rt){tt=rt}et(tt)};CipherBase$1.prototype._finalOrDigest=function(et){var tt=this.__final()||Buffer$v.alloc(0);return et&&(tt=this._toString(tt,et,!0)),tt};CipherBase$1.prototype._toString=function(et,tt,rt){if(this._decoder||(this._decoder=new StringDecoder(tt),this._encoding=tt),this._encoding!==tt)throw new Error("can't switch encodings");var nt=this._decoder.write(et);return rt&&(nt+=this._decoder.end()),nt};var cipherBase=CipherBase$1,inherits$k=inherits_browserExports,MD5$2=md5_js,RIPEMD160$4=ripemd160$1,sha$3=sha_jsExports,Base$5=cipherBase;function Hash$2(et){Base$5.call(this,"digest"),this._hash=et}inherits$k(Hash$2,Base$5);Hash$2.prototype._update=function(et){this._hash.update(et)};Hash$2.prototype._final=function(){return this._hash.digest()};var browser$a=function(tt){return tt=tt.toLowerCase(),tt==="md5"?new MD5$2:tt==="rmd160"||tt==="ripemd160"?new RIPEMD160$4:new Hash$2(sha$3(tt))},inherits$j=inherits_browserExports,Buffer$u=safeBufferExports.Buffer,Base$4=cipherBase,ZEROS$2=Buffer$u.alloc(128),blocksize=64;function Hmac$3(et,tt){Base$4.call(this,"digest"),typeof tt=="string"&&(tt=Buffer$u.from(tt)),this._alg=et,this._key=tt,tt.length>blocksize?tt=et(tt):tt.lengthrt){var nt=et==="rmd160"?new RIPEMD160$3:sha$2(et);tt=nt.update(tt).digest()}else tt.lengthMAX_ALLOC||tt!==tt)throw new TypeError("Bad key length")},defaultEncoding$2;if(commonjsGlobal.process&&commonjsGlobal.process.browser)defaultEncoding$2="utf-8";else if(commonjsGlobal.process&&commonjsGlobal.process.version){var pVersionMajor=parseInt(process.version.split(".")[0].slice(1),10);defaultEncoding$2=pVersionMajor>=6?"utf-8":"binary"}else defaultEncoding$2="utf-8";var defaultEncoding_1=defaultEncoding$2,Buffer$s=safeBufferExports.Buffer,toBuffer$3=function(et,tt,rt){if(Buffer$s.isBuffer(et))return et;if(typeof et=="string")return Buffer$s.from(et,tt);if(ArrayBuffer.isView(et))return Buffer$s.from(et.buffer);throw new TypeError(rt+" must be a string, a Buffer, a typed array or a DataView")},md5=md5$2,RIPEMD160$2=ripemd160$1,sha$1=sha_jsExports,Buffer$r=safeBufferExports.Buffer,checkParameters$1=precondition,defaultEncoding$1=defaultEncoding_1,toBuffer$2=toBuffer$3,ZEROS=Buffer$r.alloc(128),sizes={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function Hmac$1(et,tt,rt){var nt=getDigest(et),it=et==="sha512"||et==="sha384"?128:64;tt.length>it?tt=nt(tt):tt.length>>0};utils$p.writeUInt32BE=function(tt,rt,nt){tt[0+nt]=rt>>>24,tt[1+nt]=rt>>>16&255,tt[2+nt]=rt>>>8&255,tt[3+nt]=rt&255};utils$p.ip=function(tt,rt,nt,it){for(var st=0,at=0,ot=6;ot>=0;ot-=2){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>>lt+ot&1}for(var ot=6;ot>=0;ot-=2){for(var lt=1;lt<=25;lt+=8)at<<=1,at|=rt>>>lt+ot&1;for(var lt=1;lt<=25;lt+=8)at<<=1,at|=tt>>>lt+ot&1}nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.rip=function(tt,rt,nt,it){for(var st=0,at=0,ot=0;ot<4;ot++)for(var lt=24;lt>=0;lt-=8)st<<=1,st|=rt>>>lt+ot&1,st<<=1,st|=tt>>>lt+ot&1;for(var ot=4;ot<8;ot++)for(var lt=24;lt>=0;lt-=8)at<<=1,at|=rt>>>lt+ot&1,at<<=1,at|=tt>>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.pc1=function(tt,rt,nt,it){for(var st=0,at=0,ot=7;ot>=5;ot--){for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)st<<=1,st|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)st<<=1,st|=rt>>lt+ot&1;for(var ot=1;ot<=3;ot++){for(var lt=0;lt<=24;lt+=8)at<<=1,at|=rt>>lt+ot&1;for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1}for(var lt=0;lt<=24;lt+=8)at<<=1,at|=tt>>lt+ot&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.r28shl=function(tt,rt){return tt<>>28-rt};var pc2table=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];utils$p.pc2=function(tt,rt,nt,it){for(var st=0,at=0,ot=pc2table.length>>>1,lt=0;lt>>pc2table[lt]&1;for(var lt=ot;lt>>pc2table[lt]&1;nt[it+0]=st>>>0,nt[it+1]=at>>>0};utils$p.expand=function(tt,rt,nt){var it=0,st=0;it=(tt&1)<<5|tt>>>27;for(var at=23;at>=15;at-=4)it<<=6,it|=tt>>>at&63;for(var at=11;at>=3;at-=4)st|=tt>>>at&63,st<<=6;st|=(tt&31)<<1|tt>>>31,rt[nt+0]=it>>>0,rt[nt+1]=st>>>0};var sTable=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];utils$p.substitute=function(tt,rt){for(var nt=0,it=0;it<4;it++){var st=tt>>>18-it*6&63,at=sTable[it*64+st];nt<<=4,nt|=at}for(var it=0;it<4;it++){var st=rt>>>18-it*6&63,at=sTable[4*64+it*64+st];nt<<=4,nt|=at}return nt>>>0};var permuteTable=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];utils$p.permute=function(tt){for(var rt=0,nt=0;nt>>permuteTable[nt]&1;return rt>>>0};utils$p.padSplit=function(tt,rt,nt){for(var it=tt.toString(2);it.length0;it--)rt+=this._buffer(tt,rt),nt+=this._flushBuffer(st,nt);return rt+=this._buffer(tt,rt),st};Cipher$3.prototype.final=function(tt){var rt;tt&&(rt=this.update(tt));var nt;return this.type==="encrypt"?nt=this._finalEncrypt():nt=this._finalDecrypt(),rt?rt.concat(nt):nt};Cipher$3.prototype._pad=function(tt,rt){if(rt===0)return!1;for(;rt>>1];nt=utils$o.r28shl(nt,at),it=utils$o.r28shl(it,at),utils$o.pc2(nt,it,tt.keys,st)}};DES$3.prototype._update=function(tt,rt,nt,it){var st=this._desState,at=utils$o.readUInt32BE(tt,rt),ot=utils$o.readUInt32BE(tt,rt+4);utils$o.ip(at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],this.type==="encrypt"?this._encrypt(st,at,ot,st.tmp,0):this._decrypt(st,at,ot,st.tmp,0),at=st.tmp[0],ot=st.tmp[1],utils$o.writeUInt32BE(nt,at,it),utils$o.writeUInt32BE(nt,ot,it+4)};DES$3.prototype._pad=function(tt,rt){if(this.padding===!1)return!1;for(var nt=tt.length-rt,it=rt;it>>0,at=kt}utils$o.rip(ot,at,it,st)};DES$3.prototype._decrypt=function(tt,rt,nt,it,st){for(var at=nt,ot=rt,lt=tt.keys.length-2;lt>=0;lt-=2){var ut=tt.keys[lt],dt=tt.keys[lt+1];utils$o.expand(at,tt.tmp,0),ut^=tt.tmp[0],dt^=tt.tmp[1];var bt=utils$o.substitute(ut,dt),gt=utils$o.permute(bt),kt=at;at=(ot^gt)>>>0,ot=kt}utils$o.rip(at,ot,it,st)};var cbc$1={},assert$k=minimalisticAssert,inherits$g=inherits_browserExports,proto={};function CBCState(et){assert$k.equal(et.length,8,"Invalid IV length"),this.iv=new Array(8);for(var tt=0;tt>it%8,et._prev=shiftIn(et._prev,rt?ot:lt);return at}function shiftIn(et,tt){var rt=et.length,nt=-1,it=Buffer$m.allocUnsafe(et.length);for(et=Buffer$m.concat([et,Buffer$m.from([tt])]);++nt>7;return it}cfb1.encrypt=function(et,tt,rt){for(var nt=tt.length,it=Buffer$m.allocUnsafe(nt),st=-1;++st>>24]^at[dt>>>16&255]^ot[bt>>>8&255]^lt[gt&255]^tt[mt++],pt=st[dt>>>24]^at[bt>>>16&255]^ot[gt>>>8&255]^lt[ut&255]^tt[mt++],yt=st[bt>>>24]^at[gt>>>16&255]^ot[ut>>>8&255]^lt[dt&255]^tt[mt++],$t=st[gt>>>24]^at[ut>>>16&255]^ot[dt>>>8&255]^lt[bt&255]^tt[mt++],ut=kt,dt=pt,bt=yt,gt=$t;return kt=(nt[ut>>>24]<<24|nt[dt>>>16&255]<<16|nt[bt>>>8&255]<<8|nt[gt&255])^tt[mt++],pt=(nt[dt>>>24]<<24|nt[bt>>>16&255]<<16|nt[gt>>>8&255]<<8|nt[ut&255])^tt[mt++],yt=(nt[bt>>>24]<<24|nt[gt>>>16&255]<<16|nt[ut>>>8&255]<<8|nt[dt&255])^tt[mt++],$t=(nt[gt>>>24]<<24|nt[ut>>>16&255]<<16|nt[dt>>>8&255]<<8|nt[bt&255])^tt[mt++],kt=kt>>>0,pt=pt>>>0,yt=yt>>>0,$t=$t>>>0,[kt,pt,yt,$t]}var RCON=[0,1,2,4,8,16,32,64,128,27,54],G=function(){for(var et=new Array(256),tt=0;tt<256;tt++)tt<128?et[tt]=tt<<1:et[tt]=tt<<1^283;for(var rt=[],nt=[],it=[[],[],[],[]],st=[[],[],[],[]],at=0,ot=0,lt=0;lt<256;++lt){var ut=ot^ot<<1^ot<<2^ot<<3^ot<<4;ut=ut>>>8^ut&255^99,rt[at]=ut,nt[ut]=at;var dt=et[at],bt=et[dt],gt=et[bt],kt=et[ut]*257^ut*16843008;it[0][at]=kt<<24|kt>>>8,it[1][at]=kt<<16|kt>>>16,it[2][at]=kt<<8|kt>>>24,it[3][at]=kt,kt=gt*16843009^bt*65537^dt*257^at*16843008,st[0][ut]=kt<<24|kt>>>8,st[1][ut]=kt<<16|kt>>>16,st[2][ut]=kt<<8|kt>>>24,st[3][ut]=kt,at===0?at=ot=1:(at=dt^et[et[et[gt^dt]]],ot^=et[et[ot]])}return{SBOX:rt,INV_SBOX:nt,SUB_MIX:it,INV_SUB_MIX:st}}();function AES(et){this._key=asUInt32Array(et),this._reset()}AES.blockSize=4*4;AES.keySize=256/8;AES.prototype.blockSize=AES.blockSize;AES.prototype.keySize=AES.keySize;AES.prototype._reset=function(){for(var et=this._key,tt=et.length,rt=tt+6,nt=(rt+1)*4,it=[],st=0;st>>24,at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255],at^=RCON[st/tt|0]<<24):tt>6&&st%tt===4&&(at=G.SBOX[at>>>24]<<24|G.SBOX[at>>>16&255]<<16|G.SBOX[at>>>8&255]<<8|G.SBOX[at&255]),it[st]=it[st-tt]^at}for(var ot=[],lt=0;lt>>24]]^G.INV_SUB_MIX[1][G.SBOX[dt>>>16&255]]^G.INV_SUB_MIX[2][G.SBOX[dt>>>8&255]]^G.INV_SUB_MIX[3][G.SBOX[dt&255]]}this._nRounds=rt,this._keySchedule=it,this._invKeySchedule=ot};AES.prototype.encryptBlockRaw=function(et){return et=asUInt32Array(et),cryptBlock(et,this._keySchedule,G.SUB_MIX,G.SBOX,this._nRounds)};AES.prototype.encryptBlock=function(et){var tt=this.encryptBlockRaw(et),rt=Buffer$k.allocUnsafe(16);return rt.writeUInt32BE(tt[0],0),rt.writeUInt32BE(tt[1],4),rt.writeUInt32BE(tt[2],8),rt.writeUInt32BE(tt[3],12),rt};AES.prototype.decryptBlock=function(et){et=asUInt32Array(et);var tt=et[1];et[1]=et[3],et[3]=tt;var rt=cryptBlock(et,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX,this._nRounds),nt=Buffer$k.allocUnsafe(16);return nt.writeUInt32BE(rt[0],0),nt.writeUInt32BE(rt[3],4),nt.writeUInt32BE(rt[2],8),nt.writeUInt32BE(rt[1],12),nt};AES.prototype.scrub=function(){scrubVec(this._keySchedule),scrubVec(this._invKeySchedule),scrubVec(this._key)};aes$5.AES=AES;var Buffer$j=safeBufferExports.Buffer,ZEROES=Buffer$j.alloc(16,0);function toArray$2(et){return[et.readUInt32BE(0),et.readUInt32BE(4),et.readUInt32BE(8),et.readUInt32BE(12)]}function fromArray(et){var tt=Buffer$j.allocUnsafe(16);return tt.writeUInt32BE(et[0]>>>0,0),tt.writeUInt32BE(et[1]>>>0,4),tt.writeUInt32BE(et[2]>>>0,8),tt.writeUInt32BE(et[3]>>>0,12),tt}function GHASH$1(et){this.h=et,this.state=Buffer$j.alloc(16,0),this.cache=Buffer$j.allocUnsafe(0)}GHASH$1.prototype.ghash=function(et){for(var tt=-1;++tt0;rt--)et[rt]=et[rt]>>>1|(et[rt-1]&1)<<31;et[0]=et[0]>>>1,it&&(et[0]=et[0]^225<<24)}this.state=fromArray(tt)};GHASH$1.prototype.update=function(et){this.cache=Buffer$j.concat([this.cache,et]);for(var tt;this.cache.length>=16;)tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(tt)};GHASH$1.prototype.final=function(et,tt){return this.cache.length&&this.ghash(Buffer$j.concat([this.cache,ZEROES],16)),this.ghash(fromArray([0,et,0,tt])),this.state};var ghash=GHASH$1,aes$4=aes$5,Buffer$i=safeBufferExports.Buffer,Transform$3=cipherBase,inherits$d=inherits_browserExports,GHASH=ghash,xor$3=bufferXor,incr32=incr32_1;function xorTest(et,tt){var rt=0;et.length!==tt.length&&rt++;for(var nt=Math.min(et.length,tt.length),it=0;it0||nt>0;){var lt=new MD5;lt.update(ot),lt.update(et),tt&<.update(tt),ot=lt.digest();var ut=0;if(it>0){var dt=st.length-it;ut=Math.min(it,ot.length),ot.copy(st,dt,0,ut),it-=ut}if(ut0){var bt=at.length-nt,gt=Math.min(nt,ot.length-ut);ot.copy(at,bt,ut,ut+gt),nt-=gt}}return ot.fill(0),{key:st,iv:at}}var evp_bytestokey=EVP_BytesToKey,MODES$1=modes_1,AuthCipher$1=authCipher,Buffer$f=safeBufferExports.Buffer,StreamCipher$1=streamCipher,Transform$1=cipherBase,aes$2=aes$5,ebtk$2=evp_bytestokey,inherits$b=inherits_browserExports;function Cipher(et,tt,rt){Transform$1.call(this),this._cache=new Splitter$1,this._cipher=new aes$2.AES(tt),this._prev=Buffer$f.from(rt),this._mode=et,this._autopadding=!0}inherits$b(Cipher,Transform$1);Cipher.prototype._update=function(et){this._cache.add(et);for(var tt,rt,nt=[];tt=this._cache.get();)rt=this._mode.encrypt(this,tt),nt.push(rt);return Buffer$f.concat(nt)};var PADDING=Buffer$f.alloc(16,16);Cipher.prototype._final=function(){var et=this._cache.flush();if(this._autopadding)return et=this._mode.encrypt(this,et),this._cipher.scrub(),et;if(!et.equals(PADDING))throw this._cipher.scrub(),new Error("data not multiple of block length")};Cipher.prototype.setAutoPadding=function(et){return this._autopadding=!!et,this};function Splitter$1(){this.cache=Buffer$f.allocUnsafe(0)}Splitter$1.prototype.add=function(et){this.cache=Buffer$f.concat([this.cache,et])};Splitter$1.prototype.get=function(){if(this.cache.length>15){var et=this.cache.slice(0,16);return this.cache=this.cache.slice(16),et}return null};Splitter$1.prototype.flush=function(){for(var et=16-this.cache.length,tt=Buffer$f.allocUnsafe(et),rt=-1;++rt16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt}else if(this.cache.length>=16)return tt=this.cache.slice(0,16),this.cache=this.cache.slice(16),tt;return null};Splitter.prototype.flush=function(){if(this.cache.length)return this.cache};function unpad(et){var tt=et[15];if(tt<1||tt>16)throw new Error("unable to decrypt data");for(var rt=-1;++rt0?Ft:Mt},st.min=function(Ft,Mt){return Ft.cmp(Mt)<0?Ft:Mt},st.prototype._init=function(Ft,Mt,ht){if(typeof Ft=="number")return this._initNumber(Ft,Mt,ht);if(typeof Ft=="object")return this._initArray(Ft,Mt,ht);Mt==="hex"&&(Mt=16),nt(Mt===(Mt|0)&&Mt>=2&&Mt<=36),Ft=Ft.toString().replace(/\s+/g,"");var Et=0;Ft[0]==="-"&&(Et++,this.negative=1),Et=0;Et-=3)Rt=Ft[Et]|Ft[Et-1]<<8|Ft[Et-2]<<16,this.words[Tt]|=Rt<>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);else if(ht==="le")for(Et=0,Tt=0;Et>>26-At&67108863,At+=24,At>=26&&(At-=26,Tt++);return this.strip()};function ot(qt,Ft){var Mt=qt.charCodeAt(Ft);return Mt>=65&&Mt<=70?Mt-55:Mt>=97&&Mt<=102?Mt-87:Mt-48&15}function lt(qt,Ft,Mt){var ht=ot(qt,Mt);return Mt-1>=Ft&&(ht|=ot(qt,Mt-1)<<4),ht}st.prototype._parseHex=function(Ft,Mt,ht){this.length=Math.ceil((Ft.length-Mt)/6),this.words=new Array(this.length);for(var Et=0;Et=Mt;Et-=2)At=lt(Ft,Mt,Et)<=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8;else{var Pt=Ft.length-Mt;for(Et=Pt%2===0?Mt+1:Mt;Et=18?(Tt-=18,Rt+=1,this.words[Rt]|=At>>>26):Tt+=8}this.strip()};function ut(qt,Ft,Mt,ht){for(var Et=0,Tt=Math.min(qt.length,Mt),Rt=Ft;Rt=49?Et+=At-49+10:At>=17?Et+=At-17+10:Et+=At}return Et}st.prototype._parseBase=function(Ft,Mt,ht){this.words=[0],this.length=1;for(var Et=0,Tt=1;Tt<=67108863;Tt*=Mt)Et++;Et--,Tt=Tt/Mt|0;for(var Rt=Ft.length-ht,At=Rt%Et,Pt=Math.min(Rt,Rt-At)+ht,It=0,Ct=ht;Ct1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},st.prototype.inspect=function(){return(this.red?""};var dt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],bt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],gt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(Ft,Mt){Ft=Ft||10,Mt=Mt|0||1;var ht;if(Ft===16||Ft==="hex"){ht="";for(var Et=0,Tt=0,Rt=0;Rt>>24-Et&16777215,Tt!==0||Rt!==this.length-1?ht=dt[6-Pt.length]+Pt+ht:ht=Pt+ht,Et+=2,Et>=26&&(Et-=26,Rt--)}for(Tt!==0&&(ht=Tt.toString(16)+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}if(Ft===(Ft|0)&&Ft>=2&&Ft<=36){var It=bt[Ft],Ct=gt[Ft];ht="";var xt=this.clone();for(xt.negative=0;!xt.isZero();){var Dt=xt.modn(Ct).toString(Ft);xt=xt.idivn(Ct),xt.isZero()?ht=Dt+ht:ht=dt[It-Dt.length]+Dt+ht}for(this.isZero()&&(ht="0"+ht);ht.length%Mt!==0;)ht="0"+ht;return this.negative!==0&&(ht="-"+ht),ht}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var Ft=this.words[0];return this.length===2?Ft+=this.words[1]*67108864:this.length===3&&this.words[2]===1?Ft+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-Ft:Ft},st.prototype.toJSON=function(){return this.toString(16)},st.prototype.toBuffer=function(Ft,Mt){return nt(typeof at<"u"),this.toArrayLike(at,Ft,Mt)},st.prototype.toArray=function(Ft,Mt){return this.toArrayLike(Array,Ft,Mt)},st.prototype.toArrayLike=function(Ft,Mt,ht){var Et=this.byteLength(),Tt=ht||Math.max(1,Et);nt(Et<=Tt,"byte array longer than desired length"),nt(Tt>0,"Requested array length <= 0"),this.strip();var Rt=Mt==="le",At=new Ft(Tt),Pt,It,Ct=this.clone();if(Rt){for(It=0;!Ct.isZero();It++)Pt=Ct.andln(255),Ct.iushrn(8),At[It]=Pt;for(;It=4096&&(ht+=13,Mt>>>=13),Mt>=64&&(ht+=7,Mt>>>=7),Mt>=8&&(ht+=4,Mt>>>=4),Mt>=2&&(ht+=2,Mt>>>=2),ht+Mt},st.prototype._zeroBits=function(Ft){if(Ft===0)return 26;var Mt=Ft,ht=0;return Mt&8191||(ht+=13,Mt>>>=13),Mt&127||(ht+=7,Mt>>>=7),Mt&15||(ht+=4,Mt>>>=4),Mt&3||(ht+=2,Mt>>>=2),Mt&1||ht++,ht},st.prototype.bitLength=function(){var Ft=this.words[this.length-1],Mt=this._countBits(Ft);return(this.length-1)*26+Mt};function kt(qt){for(var Ft=new Array(qt.bitLength()),Mt=0;Mt>>Et}return Ft}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var Ft=0,Mt=0;MtFt.length?this.clone().ior(Ft):Ft.clone().ior(this)},st.prototype.uor=function(Ft){return this.length>Ft.length?this.clone().iuor(Ft):Ft.clone().iuor(this)},st.prototype.iuand=function(Ft){var Mt;this.length>Ft.length?Mt=Ft:Mt=this;for(var ht=0;htFt.length?this.clone().iand(Ft):Ft.clone().iand(this)},st.prototype.uand=function(Ft){return this.length>Ft.length?this.clone().iuand(Ft):Ft.clone().iuand(this)},st.prototype.iuxor=function(Ft){var Mt,ht;this.length>Ft.length?(Mt=this,ht=Ft):(Mt=Ft,ht=this);for(var Et=0;EtFt.length?this.clone().ixor(Ft):Ft.clone().ixor(this)},st.prototype.uxor=function(Ft){return this.length>Ft.length?this.clone().iuxor(Ft):Ft.clone().iuxor(this)},st.prototype.inotn=function(Ft){nt(typeof Ft=="number"&&Ft>=0);var Mt=Math.ceil(Ft/26)|0,ht=Ft%26;this._expand(Mt),ht>0&&Mt--;for(var Et=0;Et0&&(this.words[Et]=~this.words[Et]&67108863>>26-ht),this.strip()},st.prototype.notn=function(Ft){return this.clone().inotn(Ft)},st.prototype.setn=function(Ft,Mt){nt(typeof Ft=="number"&&Ft>=0);var ht=Ft/26|0,Et=Ft%26;return this._expand(ht+1),Mt?this.words[ht]=this.words[ht]|1<Ft.length?(ht=this,Et=Ft):(ht=Ft,Et=this);for(var Tt=0,Rt=0;Rt>>26;for(;Tt!==0&&Rt>>26;if(this.length=ht.length,Tt!==0)this.words[this.length]=Tt,this.length++;else if(ht!==this)for(;RtFt.length?this.clone().iadd(Ft):Ft.clone().iadd(this)},st.prototype.isub=function(Ft){if(Ft.negative!==0){Ft.negative=0;var Mt=this.iadd(Ft);return Ft.negative=1,Mt._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Ft),this.negative=1,this._normSign();var ht=this.cmp(Ft);if(ht===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Et,Tt;ht>0?(Et=this,Tt=Ft):(Et=Ft,Tt=this);for(var Rt=0,At=0;At>26,this.words[At]=Mt&67108863;for(;Rt!==0&&At>26,this.words[At]=Mt&67108863;if(Rt===0&&At>>26,xt=Pt&67108863,Dt=Math.min(It,Ft.length-1),tr=Math.max(0,It-qt.length+1);tr<=Dt;tr++){var pr=It-tr|0;Et=qt.words[pr]|0,Tt=Ft.words[tr]|0,Rt=Et*Tt+xt,Ct+=Rt/67108864|0,xt=Rt&67108863}Mt.words[It]=xt|0,Pt=Ct|0}return Pt!==0?Mt.words[It]=Pt|0:Mt.length--,Mt.strip()}var yt=function(Ft,Mt,ht){var Et=Ft.words,Tt=Mt.words,Rt=ht.words,At=0,Pt,It,Ct,xt=Et[0]|0,Dt=xt&8191,tr=xt>>>13,pr=Et[1]|0,Kt=pr&8191,Qt=pr>>>13,Zt=Et[2]|0,ur=Zt&8191,_r=Zt>>>13,er=Et[3]|0,Jt=er&8191,Ar=er>>>13,Er=Et[4]|0,Dr=Er&8191,Xr=Er>>>13,Vr=Et[5]|0,wr=Vr&8191,br=Vr>>>13,or=Et[6]|0,xr=or&8191,Pr=or>>>13,Or=Et[7]|0,rr=Or&8191,gr=Or>>>13,Ir=Et[8]|0,Yt=Ir&8191,Ut=Ir>>>13,Ht=Et[9]|0,ir=Ht&8191,kr=Ht>>>13,$r=Tt[0]|0,Br=$r&8191,an=$r>>>13,ln=Tt[1]|0,rn=ln&8191,kn=ln>>>13,fn=Tt[2]|0,gn=fn&8191,fs=fn>>>13,Ln=Tt[3]|0,En=Ln&8191,hs=Ln>>>13,Cn=Tt[4]|0,xn=Cn&8191,is=Cn>>>13,Fn=Tt[5]|0,_n=Fn&8191,ls=Fn>>>13,jn=Tt[6]|0,dn=jn&8191,cs=jn>>>13,Xt=Tt[7]|0,ar=Xt&8191,cr=Xt>>>13,jt=Tt[8]|0,dr=jt&8191,Rr=jt>>>13,Cr=Tt[9]|0,Nr=Cr&8191,Yr=Cr>>>13;ht.negative=Ft.negative^Mt.negative,ht.length=19,Pt=Math.imul(Dt,Br),It=Math.imul(Dt,an),It=It+Math.imul(tr,Br)|0,Ct=Math.imul(tr,an);var tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(tn>>>26)|0,tn&=67108863,Pt=Math.imul(Kt,Br),It=Math.imul(Kt,an),It=It+Math.imul(Qt,Br)|0,Ct=Math.imul(Qt,an),Pt=Pt+Math.imul(Dt,rn)|0,It=It+Math.imul(Dt,kn)|0,It=It+Math.imul(tr,rn)|0,Ct=Ct+Math.imul(tr,kn)|0;var qr=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(qr>>>26)|0,qr&=67108863,Pt=Math.imul(ur,Br),It=Math.imul(ur,an),It=It+Math.imul(_r,Br)|0,Ct=Math.imul(_r,an),Pt=Pt+Math.imul(Kt,rn)|0,It=It+Math.imul(Kt,kn)|0,It=It+Math.imul(Qt,rn)|0,Ct=Ct+Math.imul(Qt,kn)|0,Pt=Pt+Math.imul(Dt,gn)|0,It=It+Math.imul(Dt,fs)|0,It=It+Math.imul(tr,gn)|0,Ct=Ct+Math.imul(tr,fs)|0;var Vn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Pt=Math.imul(Jt,Br),It=Math.imul(Jt,an),It=It+Math.imul(Ar,Br)|0,Ct=Math.imul(Ar,an),Pt=Pt+Math.imul(ur,rn)|0,It=It+Math.imul(ur,kn)|0,It=It+Math.imul(_r,rn)|0,Ct=Ct+Math.imul(_r,kn)|0,Pt=Pt+Math.imul(Kt,gn)|0,It=It+Math.imul(Kt,fs)|0,It=It+Math.imul(Qt,gn)|0,Ct=Ct+Math.imul(Qt,fs)|0,Pt=Pt+Math.imul(Dt,En)|0,It=It+Math.imul(Dt,hs)|0,It=It+Math.imul(tr,En)|0,Ct=Ct+Math.imul(tr,hs)|0;var hn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(hn>>>26)|0,hn&=67108863,Pt=Math.imul(Dr,Br),It=Math.imul(Dr,an),It=It+Math.imul(Xr,Br)|0,Ct=Math.imul(Xr,an),Pt=Pt+Math.imul(Jt,rn)|0,It=It+Math.imul(Jt,kn)|0,It=It+Math.imul(Ar,rn)|0,Ct=Ct+Math.imul(Ar,kn)|0,Pt=Pt+Math.imul(ur,gn)|0,It=It+Math.imul(ur,fs)|0,It=It+Math.imul(_r,gn)|0,Ct=Ct+Math.imul(_r,fs)|0,Pt=Pt+Math.imul(Kt,En)|0,It=It+Math.imul(Kt,hs)|0,It=It+Math.imul(Qt,En)|0,Ct=Ct+Math.imul(Qt,hs)|0,Pt=Pt+Math.imul(Dt,xn)|0,It=It+Math.imul(Dt,is)|0,It=It+Math.imul(tr,xn)|0,Ct=Ct+Math.imul(tr,is)|0;var Tn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Pt=Math.imul(wr,Br),It=Math.imul(wr,an),It=It+Math.imul(br,Br)|0,Ct=Math.imul(br,an),Pt=Pt+Math.imul(Dr,rn)|0,It=It+Math.imul(Dr,kn)|0,It=It+Math.imul(Xr,rn)|0,Ct=Ct+Math.imul(Xr,kn)|0,Pt=Pt+Math.imul(Jt,gn)|0,It=It+Math.imul(Jt,fs)|0,It=It+Math.imul(Ar,gn)|0,Ct=Ct+Math.imul(Ar,fs)|0,Pt=Pt+Math.imul(ur,En)|0,It=It+Math.imul(ur,hs)|0,It=It+Math.imul(_r,En)|0,Ct=Ct+Math.imul(_r,hs)|0,Pt=Pt+Math.imul(Kt,xn)|0,It=It+Math.imul(Kt,is)|0,It=It+Math.imul(Qt,xn)|0,Ct=Ct+Math.imul(Qt,is)|0,Pt=Pt+Math.imul(Dt,_n)|0,It=It+Math.imul(Dt,ls)|0,It=It+Math.imul(tr,_n)|0,Ct=Ct+Math.imul(tr,ls)|0;var An=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(An>>>26)|0,An&=67108863,Pt=Math.imul(xr,Br),It=Math.imul(xr,an),It=It+Math.imul(Pr,Br)|0,Ct=Math.imul(Pr,an),Pt=Pt+Math.imul(wr,rn)|0,It=It+Math.imul(wr,kn)|0,It=It+Math.imul(br,rn)|0,Ct=Ct+Math.imul(br,kn)|0,Pt=Pt+Math.imul(Dr,gn)|0,It=It+Math.imul(Dr,fs)|0,It=It+Math.imul(Xr,gn)|0,Ct=Ct+Math.imul(Xr,fs)|0,Pt=Pt+Math.imul(Jt,En)|0,It=It+Math.imul(Jt,hs)|0,It=It+Math.imul(Ar,En)|0,Ct=Ct+Math.imul(Ar,hs)|0,Pt=Pt+Math.imul(ur,xn)|0,It=It+Math.imul(ur,is)|0,It=It+Math.imul(_r,xn)|0,Ct=Ct+Math.imul(_r,is)|0,Pt=Pt+Math.imul(Kt,_n)|0,It=It+Math.imul(Kt,ls)|0,It=It+Math.imul(Qt,_n)|0,Ct=Ct+Math.imul(Qt,ls)|0,Pt=Pt+Math.imul(Dt,dn)|0,It=It+Math.imul(Dt,cs)|0,It=It+Math.imul(tr,dn)|0,Ct=Ct+Math.imul(tr,cs)|0;var Rn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Pt=Math.imul(rr,Br),It=Math.imul(rr,an),It=It+Math.imul(gr,Br)|0,Ct=Math.imul(gr,an),Pt=Pt+Math.imul(xr,rn)|0,It=It+Math.imul(xr,kn)|0,It=It+Math.imul(Pr,rn)|0,Ct=Ct+Math.imul(Pr,kn)|0,Pt=Pt+Math.imul(wr,gn)|0,It=It+Math.imul(wr,fs)|0,It=It+Math.imul(br,gn)|0,Ct=Ct+Math.imul(br,fs)|0,Pt=Pt+Math.imul(Dr,En)|0,It=It+Math.imul(Dr,hs)|0,It=It+Math.imul(Xr,En)|0,Ct=Ct+Math.imul(Xr,hs)|0,Pt=Pt+Math.imul(Jt,xn)|0,It=It+Math.imul(Jt,is)|0,It=It+Math.imul(Ar,xn)|0,Ct=Ct+Math.imul(Ar,is)|0,Pt=Pt+Math.imul(ur,_n)|0,It=It+Math.imul(ur,ls)|0,It=It+Math.imul(_r,_n)|0,Ct=Ct+Math.imul(_r,ls)|0,Pt=Pt+Math.imul(Kt,dn)|0,It=It+Math.imul(Kt,cs)|0,It=It+Math.imul(Qt,dn)|0,Ct=Ct+Math.imul(Qt,cs)|0,Pt=Pt+Math.imul(Dt,ar)|0,It=It+Math.imul(Dt,cr)|0,It=It+Math.imul(tr,ar)|0,Ct=Ct+Math.imul(tr,cr)|0;var Pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Pt=Math.imul(Yt,Br),It=Math.imul(Yt,an),It=It+Math.imul(Ut,Br)|0,Ct=Math.imul(Ut,an),Pt=Pt+Math.imul(rr,rn)|0,It=It+Math.imul(rr,kn)|0,It=It+Math.imul(gr,rn)|0,Ct=Ct+Math.imul(gr,kn)|0,Pt=Pt+Math.imul(xr,gn)|0,It=It+Math.imul(xr,fs)|0,It=It+Math.imul(Pr,gn)|0,Ct=Ct+Math.imul(Pr,fs)|0,Pt=Pt+Math.imul(wr,En)|0,It=It+Math.imul(wr,hs)|0,It=It+Math.imul(br,En)|0,Ct=Ct+Math.imul(br,hs)|0,Pt=Pt+Math.imul(Dr,xn)|0,It=It+Math.imul(Dr,is)|0,It=It+Math.imul(Xr,xn)|0,Ct=Ct+Math.imul(Xr,is)|0,Pt=Pt+Math.imul(Jt,_n)|0,It=It+Math.imul(Jt,ls)|0,It=It+Math.imul(Ar,_n)|0,Ct=Ct+Math.imul(Ar,ls)|0,Pt=Pt+Math.imul(ur,dn)|0,It=It+Math.imul(ur,cs)|0,It=It+Math.imul(_r,dn)|0,Ct=Ct+Math.imul(_r,cs)|0,Pt=Pt+Math.imul(Kt,ar)|0,It=It+Math.imul(Kt,cr)|0,It=It+Math.imul(Qt,ar)|0,Ct=Ct+Math.imul(Qt,cr)|0,Pt=Pt+Math.imul(Dt,dr)|0,It=It+Math.imul(Dt,Rr)|0,It=It+Math.imul(tr,dr)|0,Ct=Ct+Math.imul(tr,Rr)|0;var In=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(In>>>26)|0,In&=67108863,Pt=Math.imul(ir,Br),It=Math.imul(ir,an),It=It+Math.imul(kr,Br)|0,Ct=Math.imul(kr,an),Pt=Pt+Math.imul(Yt,rn)|0,It=It+Math.imul(Yt,kn)|0,It=It+Math.imul(Ut,rn)|0,Ct=Ct+Math.imul(Ut,kn)|0,Pt=Pt+Math.imul(rr,gn)|0,It=It+Math.imul(rr,fs)|0,It=It+Math.imul(gr,gn)|0,Ct=Ct+Math.imul(gr,fs)|0,Pt=Pt+Math.imul(xr,En)|0,It=It+Math.imul(xr,hs)|0,It=It+Math.imul(Pr,En)|0,Ct=Ct+Math.imul(Pr,hs)|0,Pt=Pt+Math.imul(wr,xn)|0,It=It+Math.imul(wr,is)|0,It=It+Math.imul(br,xn)|0,Ct=Ct+Math.imul(br,is)|0,Pt=Pt+Math.imul(Dr,_n)|0,It=It+Math.imul(Dr,ls)|0,It=It+Math.imul(Xr,_n)|0,Ct=Ct+Math.imul(Xr,ls)|0,Pt=Pt+Math.imul(Jt,dn)|0,It=It+Math.imul(Jt,cs)|0,It=It+Math.imul(Ar,dn)|0,Ct=Ct+Math.imul(Ar,cs)|0,Pt=Pt+Math.imul(ur,ar)|0,It=It+Math.imul(ur,cr)|0,It=It+Math.imul(_r,ar)|0,Ct=Ct+Math.imul(_r,cr)|0,Pt=Pt+Math.imul(Kt,dr)|0,It=It+Math.imul(Kt,Rr)|0,It=It+Math.imul(Qt,dr)|0,Ct=Ct+Math.imul(Qt,Rr)|0,Pt=Pt+Math.imul(Dt,Nr)|0,It=It+Math.imul(Dt,Yr)|0,It=It+Math.imul(tr,Nr)|0,Ct=Ct+Math.imul(tr,Yr)|0;var $n=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+($n>>>26)|0,$n&=67108863,Pt=Math.imul(ir,rn),It=Math.imul(ir,kn),It=It+Math.imul(kr,rn)|0,Ct=Math.imul(kr,kn),Pt=Pt+Math.imul(Yt,gn)|0,It=It+Math.imul(Yt,fs)|0,It=It+Math.imul(Ut,gn)|0,Ct=Ct+Math.imul(Ut,fs)|0,Pt=Pt+Math.imul(rr,En)|0,It=It+Math.imul(rr,hs)|0,It=It+Math.imul(gr,En)|0,Ct=Ct+Math.imul(gr,hs)|0,Pt=Pt+Math.imul(xr,xn)|0,It=It+Math.imul(xr,is)|0,It=It+Math.imul(Pr,xn)|0,Ct=Ct+Math.imul(Pr,is)|0,Pt=Pt+Math.imul(wr,_n)|0,It=It+Math.imul(wr,ls)|0,It=It+Math.imul(br,_n)|0,Ct=Ct+Math.imul(br,ls)|0,Pt=Pt+Math.imul(Dr,dn)|0,It=It+Math.imul(Dr,cs)|0,It=It+Math.imul(Xr,dn)|0,Ct=Ct+Math.imul(Xr,cs)|0,Pt=Pt+Math.imul(Jt,ar)|0,It=It+Math.imul(Jt,cr)|0,It=It+Math.imul(Ar,ar)|0,Ct=Ct+Math.imul(Ar,cr)|0,Pt=Pt+Math.imul(ur,dr)|0,It=It+Math.imul(ur,Rr)|0,It=It+Math.imul(_r,dr)|0,Ct=Ct+Math.imul(_r,Rr)|0,Pt=Pt+Math.imul(Kt,Nr)|0,It=It+Math.imul(Kt,Yr)|0,It=It+Math.imul(Qt,Nr)|0,Ct=Ct+Math.imul(Qt,Yr)|0;var Bn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Pt=Math.imul(ir,gn),It=Math.imul(ir,fs),It=It+Math.imul(kr,gn)|0,Ct=Math.imul(kr,fs),Pt=Pt+Math.imul(Yt,En)|0,It=It+Math.imul(Yt,hs)|0,It=It+Math.imul(Ut,En)|0,Ct=Ct+Math.imul(Ut,hs)|0,Pt=Pt+Math.imul(rr,xn)|0,It=It+Math.imul(rr,is)|0,It=It+Math.imul(gr,xn)|0,Ct=Ct+Math.imul(gr,is)|0,Pt=Pt+Math.imul(xr,_n)|0,It=It+Math.imul(xr,ls)|0,It=It+Math.imul(Pr,_n)|0,Ct=Ct+Math.imul(Pr,ls)|0,Pt=Pt+Math.imul(wr,dn)|0,It=It+Math.imul(wr,cs)|0,It=It+Math.imul(br,dn)|0,Ct=Ct+Math.imul(br,cs)|0,Pt=Pt+Math.imul(Dr,ar)|0,It=It+Math.imul(Dr,cr)|0,It=It+Math.imul(Xr,ar)|0,Ct=Ct+Math.imul(Xr,cr)|0,Pt=Pt+Math.imul(Jt,dr)|0,It=It+Math.imul(Jt,Rr)|0,It=It+Math.imul(Ar,dr)|0,Ct=Ct+Math.imul(Ar,Rr)|0,Pt=Pt+Math.imul(ur,Nr)|0,It=It+Math.imul(ur,Yr)|0,It=It+Math.imul(_r,Nr)|0,Ct=Ct+Math.imul(_r,Yr)|0;var pn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(pn>>>26)|0,pn&=67108863,Pt=Math.imul(ir,En),It=Math.imul(ir,hs),It=It+Math.imul(kr,En)|0,Ct=Math.imul(kr,hs),Pt=Pt+Math.imul(Yt,xn)|0,It=It+Math.imul(Yt,is)|0,It=It+Math.imul(Ut,xn)|0,Ct=Ct+Math.imul(Ut,is)|0,Pt=Pt+Math.imul(rr,_n)|0,It=It+Math.imul(rr,ls)|0,It=It+Math.imul(gr,_n)|0,Ct=Ct+Math.imul(gr,ls)|0,Pt=Pt+Math.imul(xr,dn)|0,It=It+Math.imul(xr,cs)|0,It=It+Math.imul(Pr,dn)|0,Ct=Ct+Math.imul(Pr,cs)|0,Pt=Pt+Math.imul(wr,ar)|0,It=It+Math.imul(wr,cr)|0,It=It+Math.imul(br,ar)|0,Ct=Ct+Math.imul(br,cr)|0,Pt=Pt+Math.imul(Dr,dr)|0,It=It+Math.imul(Dr,Rr)|0,It=It+Math.imul(Xr,dr)|0,Ct=Ct+Math.imul(Xr,Rr)|0,Pt=Pt+Math.imul(Jt,Nr)|0,It=It+Math.imul(Jt,Yr)|0,It=It+Math.imul(Ar,Nr)|0,Ct=Ct+Math.imul(Ar,Yr)|0;var wn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(wn>>>26)|0,wn&=67108863,Pt=Math.imul(ir,xn),It=Math.imul(ir,is),It=It+Math.imul(kr,xn)|0,Ct=Math.imul(kr,is),Pt=Pt+Math.imul(Yt,_n)|0,It=It+Math.imul(Yt,ls)|0,It=It+Math.imul(Ut,_n)|0,Ct=Ct+Math.imul(Ut,ls)|0,Pt=Pt+Math.imul(rr,dn)|0,It=It+Math.imul(rr,cs)|0,It=It+Math.imul(gr,dn)|0,Ct=Ct+Math.imul(gr,cs)|0,Pt=Pt+Math.imul(xr,ar)|0,It=It+Math.imul(xr,cr)|0,It=It+Math.imul(Pr,ar)|0,Ct=Ct+Math.imul(Pr,cr)|0,Pt=Pt+Math.imul(wr,dr)|0,It=It+Math.imul(wr,Rr)|0,It=It+Math.imul(br,dr)|0,Ct=Ct+Math.imul(br,Rr)|0,Pt=Pt+Math.imul(Dr,Nr)|0,It=It+Math.imul(Dr,Yr)|0,It=It+Math.imul(Xr,Nr)|0,Ct=Ct+Math.imul(Xr,Yr)|0;var un=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(un>>>26)|0,un&=67108863,Pt=Math.imul(ir,_n),It=Math.imul(ir,ls),It=It+Math.imul(kr,_n)|0,Ct=Math.imul(kr,ls),Pt=Pt+Math.imul(Yt,dn)|0,It=It+Math.imul(Yt,cs)|0,It=It+Math.imul(Ut,dn)|0,Ct=Ct+Math.imul(Ut,cs)|0,Pt=Pt+Math.imul(rr,ar)|0,It=It+Math.imul(rr,cr)|0,It=It+Math.imul(gr,ar)|0,Ct=Ct+Math.imul(gr,cr)|0,Pt=Pt+Math.imul(xr,dr)|0,It=It+Math.imul(xr,Rr)|0,It=It+Math.imul(Pr,dr)|0,Ct=Ct+Math.imul(Pr,Rr)|0,Pt=Pt+Math.imul(wr,Nr)|0,It=It+Math.imul(wr,Yr)|0,It=It+Math.imul(br,Nr)|0,Ct=Ct+Math.imul(br,Yr)|0;var yn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(yn>>>26)|0,yn&=67108863,Pt=Math.imul(ir,dn),It=Math.imul(ir,cs),It=It+Math.imul(kr,dn)|0,Ct=Math.imul(kr,cs),Pt=Pt+Math.imul(Yt,ar)|0,It=It+Math.imul(Yt,cr)|0,It=It+Math.imul(Ut,ar)|0,Ct=Ct+Math.imul(Ut,cr)|0,Pt=Pt+Math.imul(rr,dr)|0,It=It+Math.imul(rr,Rr)|0,It=It+Math.imul(gr,dr)|0,Ct=Ct+Math.imul(gr,Rr)|0,Pt=Pt+Math.imul(xr,Nr)|0,It=It+Math.imul(xr,Yr)|0,It=It+Math.imul(Pr,Nr)|0,Ct=Ct+Math.imul(Pr,Yr)|0;var mn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(mn>>>26)|0,mn&=67108863,Pt=Math.imul(ir,ar),It=Math.imul(ir,cr),It=It+Math.imul(kr,ar)|0,Ct=Math.imul(kr,cr),Pt=Pt+Math.imul(Yt,dr)|0,It=It+Math.imul(Yt,Rr)|0,It=It+Math.imul(Ut,dr)|0,Ct=Ct+Math.imul(Ut,Rr)|0,Pt=Pt+Math.imul(rr,Nr)|0,It=It+Math.imul(rr,Yr)|0,It=It+Math.imul(gr,Nr)|0,Ct=Ct+Math.imul(gr,Yr)|0;var cn=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(cn>>>26)|0,cn&=67108863,Pt=Math.imul(ir,dr),It=Math.imul(ir,Rr),It=It+Math.imul(kr,dr)|0,Ct=Math.imul(kr,Rr),Pt=Pt+Math.imul(Yt,Nr)|0,It=It+Math.imul(Yt,Yr)|0,It=It+Math.imul(Ut,Nr)|0,Ct=Ct+Math.imul(Ut,Yr)|0;var Ur=(At+Pt|0)+((It&8191)<<13)|0;At=(Ct+(It>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Pt=Math.imul(ir,Nr),It=Math.imul(ir,Yr),It=It+Math.imul(kr,Nr)|0,Ct=Math.imul(kr,Yr);var jr=(At+Pt|0)+((It&8191)<<13)|0;return At=(Ct+(It>>>13)|0)+(jr>>>26)|0,jr&=67108863,Rt[0]=tn,Rt[1]=qr,Rt[2]=Vn,Rt[3]=hn,Rt[4]=Tn,Rt[5]=An,Rt[6]=Rn,Rt[7]=Pn,Rt[8]=In,Rt[9]=$n,Rt[10]=Bn,Rt[11]=pn,Rt[12]=wn,Rt[13]=un,Rt[14]=yn,Rt[15]=mn,Rt[16]=cn,Rt[17]=Ur,Rt[18]=jr,At!==0&&(Rt[19]=At,ht.length++),ht};Math.imul||(yt=pt);function $t(qt,Ft,Mt){Mt.negative=Ft.negative^qt.negative,Mt.length=qt.length+Ft.length;for(var ht=0,Et=0,Tt=0;Tt>>26)|0,Et+=Rt>>>26,Rt&=67108863}Mt.words[Tt]=At,ht=Rt,Rt=Et}return ht!==0?Mt.words[Tt]=ht:Mt.length--,Mt.strip()}function mt(qt,Ft,Mt){var ht=new wt;return ht.mulp(qt,Ft,Mt)}st.prototype.mulTo=function(Ft,Mt){var ht,Et=this.length+Ft.length;return this.length===10&&Ft.length===10?ht=yt(this,Ft,Mt):Et<63?ht=pt(this,Ft,Mt):Et<1024?ht=$t(this,Ft,Mt):ht=mt(this,Ft,Mt),ht};function wt(qt,Ft){this.x=qt,this.y=Ft}wt.prototype.makeRBT=function(Ft){for(var Mt=new Array(Ft),ht=st.prototype._countBits(Ft)-1,Et=0;Et>=1;return Et},wt.prototype.permute=function(Ft,Mt,ht,Et,Tt,Rt){for(var At=0;At>>1)Tt++;return 1<>>13,ht[2*Rt+1]=Tt&8191,Tt=Tt>>>13;for(Rt=2*Mt;Rt>=26,Mt+=Et/67108864|0,Mt+=Tt>>>26,this.words[ht]=Tt&67108863}return Mt!==0&&(this.words[ht]=Mt,this.length++),this},st.prototype.muln=function(Ft){return this.clone().imuln(Ft)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(Ft){var Mt=kt(Ft);if(Mt.length===0)return new st(1);for(var ht=this,Et=0;Et=0);var Mt=Ft%26,ht=(Ft-Mt)/26,Et=67108863>>>26-Mt<<26-Mt,Tt;if(Mt!==0){var Rt=0;for(Tt=0;Tt>>26-Mt}Rt&&(this.words[Tt]=Rt,this.length++)}if(ht!==0){for(Tt=this.length-1;Tt>=0;Tt--)this.words[Tt+ht]=this.words[Tt];for(Tt=0;Tt=0);var Et;Mt?Et=(Mt-Mt%26)/26:Et=0;var Tt=Ft%26,Rt=Math.min((Ft-Tt)/26,this.length),At=67108863^67108863>>>Tt<Rt)for(this.length-=Rt,It=0;It=0&&(Ct!==0||It>=Et);It--){var xt=this.words[It]|0;this.words[It]=Ct<<26-Tt|xt>>>Tt,Ct=xt&At}return Pt&&Ct!==0&&(Pt.words[Pt.length++]=Ct),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},st.prototype.ishrn=function(Ft,Mt,ht){return nt(this.negative===0),this.iushrn(Ft,Mt,ht)},st.prototype.shln=function(Ft){return this.clone().ishln(Ft)},st.prototype.ushln=function(Ft){return this.clone().iushln(Ft)},st.prototype.shrn=function(Ft){return this.clone().ishrn(Ft)},st.prototype.ushrn=function(Ft){return this.clone().iushrn(Ft)},st.prototype.testn=function(Ft){nt(typeof Ft=="number"&&Ft>=0);var Mt=Ft%26,ht=(Ft-Mt)/26,Et=1<=0);var Mt=Ft%26,ht=(Ft-Mt)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=ht)return this;if(Mt!==0&&ht++,this.length=Math.min(ht,this.length),Mt!==0){var Et=67108863^67108863>>>Mt<=67108864;Mt++)this.words[Mt]-=67108864,Mt===this.length-1?this.words[Mt+1]=1:this.words[Mt+1]++;return this.length=Math.max(this.length,Mt+1),this},st.prototype.isubn=function(Ft){if(nt(typeof Ft=="number"),nt(Ft<67108864),Ft<0)return this.iaddn(-Ft);if(this.negative!==0)return this.negative=0,this.iaddn(Ft),this.negative=1,this;if(this.words[0]-=Ft,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Mt=0;Mt>26)-(Pt/67108864|0),this.words[Tt+ht]=Rt&67108863}for(;Tt>26,this.words[Tt+ht]=Rt&67108863;if(At===0)return this.strip();for(nt(At===-1),At=0,Tt=0;Tt>26,this.words[Tt]=Rt&67108863;return this.negative=1,this.strip()},st.prototype._wordDiv=function(Ft,Mt){var ht=this.length-Ft.length,Et=this.clone(),Tt=Ft,Rt=Tt.words[Tt.length-1]|0,At=this._countBits(Rt);ht=26-At,ht!==0&&(Tt=Tt.ushln(ht),Et.iushln(ht),Rt=Tt.words[Tt.length-1]|0);var Pt=Et.length-Tt.length,It;if(Mt!=="mod"){It=new st(null),It.length=Pt+1,It.words=new Array(It.length);for(var Ct=0;Ct=0;Dt--){var tr=(Et.words[Tt.length+Dt]|0)*67108864+(Et.words[Tt.length+Dt-1]|0);for(tr=Math.min(tr/Rt|0,67108863),Et._ishlnsubmul(Tt,tr,Dt);Et.negative!==0;)tr--,Et.negative=0,Et._ishlnsubmul(Tt,1,Dt),Et.isZero()||(Et.negative^=1);It&&(It.words[Dt]=tr)}return It&&It.strip(),Et.strip(),Mt!=="div"&&ht!==0&&Et.iushrn(ht),{div:It||null,mod:Et}},st.prototype.divmod=function(Ft,Mt,ht){if(nt(!Ft.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Et,Tt,Rt;return this.negative!==0&&Ft.negative===0?(Rt=this.neg().divmod(Ft,Mt),Mt!=="mod"&&(Et=Rt.div.neg()),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.iadd(Ft)),{div:Et,mod:Tt}):this.negative===0&&Ft.negative!==0?(Rt=this.divmod(Ft.neg(),Mt),Mt!=="mod"&&(Et=Rt.div.neg()),{div:Et,mod:Rt.mod}):this.negative&Ft.negative?(Rt=this.neg().divmod(Ft.neg(),Mt),Mt!=="div"&&(Tt=Rt.mod.neg(),ht&&Tt.negative!==0&&Tt.isub(Ft)),{div:Rt.div,mod:Tt}):Ft.length>this.length||this.cmp(Ft)<0?{div:new st(0),mod:this}:Ft.length===1?Mt==="div"?{div:this.divn(Ft.words[0]),mod:null}:Mt==="mod"?{div:null,mod:new st(this.modn(Ft.words[0]))}:{div:this.divn(Ft.words[0]),mod:new st(this.modn(Ft.words[0]))}:this._wordDiv(Ft,Mt)},st.prototype.div=function(Ft){return this.divmod(Ft,"div",!1).div},st.prototype.mod=function(Ft){return this.divmod(Ft,"mod",!1).mod},st.prototype.umod=function(Ft){return this.divmod(Ft,"mod",!0).mod},st.prototype.divRound=function(Ft){var Mt=this.divmod(Ft);if(Mt.mod.isZero())return Mt.div;var ht=Mt.div.negative!==0?Mt.mod.isub(Ft):Mt.mod,Et=Ft.ushrn(1),Tt=Ft.andln(1),Rt=ht.cmp(Et);return Rt<0||Tt===1&&Rt===0?Mt.div:Mt.div.negative!==0?Mt.div.isubn(1):Mt.div.iaddn(1)},st.prototype.modn=function(Ft){nt(Ft<=67108863);for(var Mt=(1<<26)%Ft,ht=0,Et=this.length-1;Et>=0;Et--)ht=(Mt*ht+(this.words[Et]|0))%Ft;return ht},st.prototype.idivn=function(Ft){nt(Ft<=67108863);for(var Mt=0,ht=this.length-1;ht>=0;ht--){var Et=(this.words[ht]|0)+Mt*67108864;this.words[ht]=Et/Ft|0,Mt=Et%Ft}return this.strip()},st.prototype.divn=function(Ft){return this.clone().idivn(Ft)},st.prototype.egcd=function(Ft){nt(Ft.negative===0),nt(!Ft.isZero());var Mt=this,ht=Ft.clone();Mt.negative!==0?Mt=Mt.umod(Ft):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=new st(0),At=new st(1),Pt=0;Mt.isEven()&&ht.isEven();)Mt.iushrn(1),ht.iushrn(1),++Pt;for(var It=ht.clone(),Ct=Mt.clone();!Mt.isZero();){for(var xt=0,Dt=1;!(Mt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Mt.iushrn(xt);xt-- >0;)(Et.isOdd()||Tt.isOdd())&&(Et.iadd(It),Tt.isub(Ct)),Et.iushrn(1),Tt.iushrn(1);for(var tr=0,pr=1;!(ht.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(ht.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(It),At.isub(Ct)),Rt.iushrn(1),At.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Rt),Tt.isub(At)):(ht.isub(Mt),Rt.isub(Et),At.isub(Tt))}return{a:Rt,b:At,gcd:ht.iushln(Pt)}},st.prototype._invmp=function(Ft){nt(Ft.negative===0),nt(!Ft.isZero());var Mt=this,ht=Ft.clone();Mt.negative!==0?Mt=Mt.umod(Ft):Mt=Mt.clone();for(var Et=new st(1),Tt=new st(0),Rt=ht.clone();Mt.cmpn(1)>0&&ht.cmpn(1)>0;){for(var At=0,Pt=1;!(Mt.words[0]&Pt)&&At<26;++At,Pt<<=1);if(At>0)for(Mt.iushrn(At);At-- >0;)Et.isOdd()&&Et.iadd(Rt),Et.iushrn(1);for(var It=0,Ct=1;!(ht.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(ht.iushrn(It);It-- >0;)Tt.isOdd()&&Tt.iadd(Rt),Tt.iushrn(1);Mt.cmp(ht)>=0?(Mt.isub(ht),Et.isub(Tt)):(ht.isub(Mt),Tt.isub(Et))}var xt;return Mt.cmpn(1)===0?xt=Et:xt=Tt,xt.cmpn(0)<0&&xt.iadd(Ft),xt},st.prototype.gcd=function(Ft){if(this.isZero())return Ft.abs();if(Ft.isZero())return this.abs();var Mt=this.clone(),ht=Ft.clone();Mt.negative=0,ht.negative=0;for(var Et=0;Mt.isEven()&&ht.isEven();Et++)Mt.iushrn(1),ht.iushrn(1);do{for(;Mt.isEven();)Mt.iushrn(1);for(;ht.isEven();)ht.iushrn(1);var Tt=Mt.cmp(ht);if(Tt<0){var Rt=Mt;Mt=ht,ht=Rt}else if(Tt===0||ht.cmpn(1)===0)break;Mt.isub(ht)}while(!0);return ht.iushln(Et)},st.prototype.invm=function(Ft){return this.egcd(Ft).a.umod(Ft)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(Ft){return this.words[0]&Ft},st.prototype.bincn=function(Ft){nt(typeof Ft=="number");var Mt=Ft%26,ht=(Ft-Mt)/26,Et=1<>>26,At&=67108863,this.words[Rt]=At}return Tt!==0&&(this.words[Rt]=Tt,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(Ft){var Mt=Ft<0;if(this.negative!==0&&!Mt)return-1;if(this.negative===0&&Mt)return 1;this.strip();var ht;if(this.length>1)ht=1;else{Mt&&(Ft=-Ft),nt(Ft<=67108863,"Number is too big");var Et=this.words[0]|0;ht=Et===Ft?0:EtFt.length)return 1;if(this.length=0;ht--){var Et=this.words[ht]|0,Tt=Ft.words[ht]|0;if(Et!==Tt){EtTt&&(Mt=1);break}}return Mt},st.prototype.gtn=function(Ft){return this.cmpn(Ft)===1},st.prototype.gt=function(Ft){return this.cmp(Ft)===1},st.prototype.gten=function(Ft){return this.cmpn(Ft)>=0},st.prototype.gte=function(Ft){return this.cmp(Ft)>=0},st.prototype.ltn=function(Ft){return this.cmpn(Ft)===-1},st.prototype.lt=function(Ft){return this.cmp(Ft)===-1},st.prototype.lten=function(Ft){return this.cmpn(Ft)<=0},st.prototype.lte=function(Ft){return this.cmp(Ft)<=0},st.prototype.eqn=function(Ft){return this.cmpn(Ft)===0},st.prototype.eq=function(Ft){return this.cmp(Ft)===0},st.red=function(Ft){return new Wt(Ft)},st.prototype.toRed=function(Ft){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),Ft.convertTo(this)._forceRed(Ft)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(Ft){return this.red=Ft,this},st.prototype.forceRed=function(Ft){return nt(!this.red,"Already a number in reduction context"),this._forceRed(Ft)},st.prototype.redAdd=function(Ft){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,Ft)},st.prototype.redIAdd=function(Ft){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Ft)},st.prototype.redSub=function(Ft){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,Ft)},st.prototype.redISub=function(Ft){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,Ft)},st.prototype.redShl=function(Ft){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,Ft)},st.prototype.redMul=function(Ft){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ft),this.red.mul(this,Ft)},st.prototype.redIMul=function(Ft){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,Ft),this.red.imul(this,Ft)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(Ft){return nt(this.red&&!Ft.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Ft)};var St={k256:null,p224:null,p192:null,p25519:null};function Bt(qt,Ft){this.name=qt,this.p=new st(Ft,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Bt.prototype._tmp=function(){var Ft=new st(null);return Ft.words=new Array(Math.ceil(this.n/13)),Ft},Bt.prototype.ireduce=function(Ft){var Mt=Ft,ht;do this.split(Mt,this.tmp),Mt=this.imulK(Mt),Mt=Mt.iadd(this.tmp),ht=Mt.bitLength();while(ht>this.n);var Et=ht0?Mt.isub(this.p):Mt.strip!==void 0?Mt.strip():Mt._strip(),Mt},Bt.prototype.split=function(Ft,Mt){Ft.iushrn(this.n,0,Mt)},Bt.prototype.imulK=function(Ft){return Ft.imul(this.k)};function Ot(){Bt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(Ot,Bt),Ot.prototype.split=function(Ft,Mt){for(var ht=4194303,Et=Math.min(Ft.length,9),Tt=0;Tt>>22,Rt=At}Rt>>>=22,Ft.words[Tt-10]=Rt,Rt===0&&Ft.length>10?Ft.length-=10:Ft.length-=9},Ot.prototype.imulK=function(Ft){Ft.words[Ft.length]=0,Ft.words[Ft.length+1]=0,Ft.length+=2;for(var Mt=0,ht=0;ht>>=26,Ft.words[ht]=Tt,Mt=Et}return Mt!==0&&(Ft.words[Ft.length++]=Mt),Ft},st._prime=function(Ft){if(St[Ft])return St[Ft];var Mt;if(Ft==="k256")Mt=new Ot;else if(Ft==="p224")Mt=new Lt;else if(Ft==="p192")Mt=new zt;else if(Ft==="p25519")Mt=new Vt;else throw new Error("Unknown prime "+Ft);return St[Ft]=Mt,Mt};function Wt(qt){if(typeof qt=="string"){var Ft=st._prime(qt);this.m=Ft.p,this.prime=Ft}else nt(qt.gtn(1),"modulus must be greater than 1"),this.m=qt,this.prime=null}Wt.prototype._verify1=function(Ft){nt(Ft.negative===0,"red works only with positives"),nt(Ft.red,"red works only with red numbers")},Wt.prototype._verify2=function(Ft,Mt){nt((Ft.negative|Mt.negative)===0,"red works only with positives"),nt(Ft.red&&Ft.red===Mt.red,"red works only with red numbers")},Wt.prototype.imod=function(Ft){return this.prime?this.prime.ireduce(Ft)._forceRed(this):Ft.umod(this.m)._forceRed(this)},Wt.prototype.neg=function(Ft){return Ft.isZero()?Ft.clone():this.m.sub(Ft)._forceRed(this)},Wt.prototype.add=function(Ft,Mt){this._verify2(Ft,Mt);var ht=Ft.add(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht._forceRed(this)},Wt.prototype.iadd=function(Ft,Mt){this._verify2(Ft,Mt);var ht=Ft.iadd(Mt);return ht.cmp(this.m)>=0&&ht.isub(this.m),ht},Wt.prototype.sub=function(Ft,Mt){this._verify2(Ft,Mt);var ht=Ft.sub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht._forceRed(this)},Wt.prototype.isub=function(Ft,Mt){this._verify2(Ft,Mt);var ht=Ft.isub(Mt);return ht.cmpn(0)<0&&ht.iadd(this.m),ht},Wt.prototype.shl=function(Ft,Mt){return this._verify1(Ft),this.imod(Ft.ushln(Mt))},Wt.prototype.imul=function(Ft,Mt){return this._verify2(Ft,Mt),this.imod(Ft.imul(Mt))},Wt.prototype.mul=function(Ft,Mt){return this._verify2(Ft,Mt),this.imod(Ft.mul(Mt))},Wt.prototype.isqr=function(Ft){return this.imul(Ft,Ft.clone())},Wt.prototype.sqr=function(Ft){return this.mul(Ft,Ft)},Wt.prototype.sqrt=function(Ft){if(Ft.isZero())return Ft.clone();var Mt=this.m.andln(3);if(nt(Mt%2===1),Mt===3){var ht=this.m.add(new st(1)).iushrn(2);return this.pow(Ft,ht)}for(var Et=this.m.subn(1),Tt=0;!Et.isZero()&&Et.andln(1)===0;)Tt++,Et.iushrn(1);nt(!Et.isZero());var Rt=new st(1).toRed(this),At=Rt.redNeg(),Pt=this.m.subn(1).iushrn(1),It=this.m.bitLength();for(It=new st(2*It*It).toRed(this);this.pow(It,Pt).cmp(At)!==0;)It.redIAdd(At);for(var Ct=this.pow(It,Et),xt=this.pow(Ft,Et.addn(1).iushrn(1)),Dt=this.pow(Ft,Et),tr=Tt;Dt.cmp(Rt)!==0;){for(var pr=Dt,Kt=0;pr.cmp(Rt)!==0;Kt++)pr=pr.redSqr();nt(Kt=0;Tt--){for(var Ct=Mt.words[Tt],xt=It-1;xt>=0;xt--){var Dt=Ct>>xt&1;if(Rt!==Et[0]&&(Rt=this.sqr(Rt)),Dt===0&&At===0){Pt=0;continue}At<<=1,At|=Dt,Pt++,!(Pt!==ht&&(Tt!==0||xt!==0))&&(Rt=this.mul(Rt,Et[At]),Pt=0,At=0)}It=26}return Rt},Wt.prototype.convertTo=function(Ft){var Mt=Ft.umod(this.m);return Mt===Ft?Mt.clone():Mt},Wt.prototype.convertFrom=function(Ft){var Mt=Ft.clone();return Mt.red=null,Mt},st.mont=function(Ft){return new lr(Ft)};function lr(qt){Wt.call(this,qt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(lr,Wt),lr.prototype.convertTo=function(Ft){return this.imod(Ft.ushln(this.shift))},lr.prototype.convertFrom=function(Ft){var Mt=this.imod(Ft.mul(this.rinv));return Mt.red=null,Mt},lr.prototype.imul=function(Ft,Mt){if(Ft.isZero()||Mt.isZero())return Ft.words[0]=0,Ft.length=1,Ft;var ht=Ft.imul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.mul=function(Ft,Mt){if(Ft.isZero()||Mt.isZero())return new st(0)._forceRed(this);var ht=Ft.mul(Mt),Et=ht.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),Tt=ht.isub(Et).iushrn(this.shift),Rt=Tt;return Tt.cmp(this.m)>=0?Rt=Tt.isub(this.m):Tt.cmpn(0)<0&&(Rt=Tt.iadd(this.m)),Rt._forceRed(this)},lr.prototype.invm=function(Ft){var Mt=this.imod(Ft._invmp(this.m).mul(this.r2));return Mt._forceRed(this)}})(et,commonjsGlobal)})(bn$2);var bnExports$2=bn$2.exports,brorand={exports:{}},hasRequiredBrorand;function requireBrorand(){if(hasRequiredBrorand)return brorand.exports;hasRequiredBrorand=1;var et;brorand.exports=function(it){return et||(et=new tt(null)),et.generate(it)};function tt(nt){this.rand=nt}if(brorand.exports.Rand=tt,tt.prototype.generate=function(it){return this._rand(it)},tt.prototype._rand=function(it){if(this.rand.getBytes)return this.rand.getBytes(it);for(var st=new Uint8Array(it),at=0;at=0);return ot},rt.prototype._randrange=function(it,st){var at=st.sub(it);return it.add(this._randbelow(at))},rt.prototype.test=function(it,st,at){var ot=it.bitLength(),lt=et.mont(it),ut=new et(1).toRed(lt);st||(st=Math.max(1,ot/48|0));for(var dt=it.subn(1),bt=0;!dt.testn(bt);bt++);for(var gt=it.shrn(bt),kt=dt.toRed(lt),pt=!0;st>0;st--){var yt=this._randrange(new et(2),dt);at&&at(yt);var $t=yt.toRed(lt).redPow(gt);if(!($t.cmp(ut)===0||$t.cmp(kt)===0)){for(var mt=1;mt0;st--){var kt=this._randrange(new et(2),ut),pt=it.gcd(kt);if(pt.cmpn(1)!==0)return pt;var yt=kt.toRed(ot).redPow(bt);if(!(yt.cmp(lt)===0||yt.cmp(gt)===0)){for(var $t=1;$tmt;)St.ishrn(1);if(St.isEven()&&St.iadd(st),St.testn(1)||St.iadd(at),wt.cmp(at)){if(!wt.cmp(ot))for(;St.mod(lt).cmp(ut);)St.iadd(bt)}else for(;St.mod(rt).cmp(dt);)St.iadd(bt);if(Bt=St.shrn(1),pt(Bt)&&pt(St)&&yt(Bt)&&yt(St)&&it.test(Bt)&&it.test(St))return St}}return generatePrime}const modp1={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18={gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"},require$$1$1={modp1,modp2,modp5,modp14,modp15,modp16,modp17,modp18};var dh,hasRequiredDh;function requireDh(){if(hasRequiredDh)return dh;hasRequiredDh=1;var et=bnExports$2,tt=requireMr(),rt=new tt,nt=new et(24),it=new et(11),st=new et(10),at=new et(3),ot=new et(7),lt=requireGeneratePrime(),ut=browserExports;dh=pt;function dt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._pub=new et($t),this}function bt($t,mt){return mt=mt||"utf8",Buffer.isBuffer($t)||($t=new Buffer($t,mt)),this._priv=new et($t),this}var gt={};function kt($t,mt){var wt=mt.toString("hex"),St=[wt,$t.toString(16)].join("_");if(St in gt)return gt[St];var Bt=0;if($t.isEven()||!lt.simpleSieve||!lt.fermatTest($t)||!rt.test($t))return Bt+=1,wt==="02"||wt==="05"?Bt+=8:Bt+=4,gt[St]=Bt,Bt;rt.test($t.shrn(1))||(Bt+=2);var Ot;switch(wt){case"02":$t.mod(nt).cmp(it)&&(Bt+=8);break;case"05":Ot=$t.mod(st),Ot.cmp(at)&&Ot.cmp(ot)&&(Bt+=8);break;default:Bt+=4}return gt[St]=Bt,Bt}function pt($t,mt,wt){this.setGenerator(mt),this.__prime=new et($t),this._prime=et.mont(this.__prime),this._primeLen=$t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,wt?(this.setPublicKey=dt,this.setPrivateKey=bt):this._primeCode=8}Object.defineProperty(pt.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=kt(this.__prime,this.__gen)),this._primeCode}}),pt.prototype.generateKeys=function(){return this._priv||(this._priv=new et(ut(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},pt.prototype.computeSecret=function($t){$t=new et($t),$t=$t.toRed(this._prime);var mt=$t.redPow(this._priv).fromRed(),wt=new Buffer(mt.toArray()),St=this.getPrime();if(wt.length0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Dt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Dt).toString(ht);tr=tr.idivn(Dt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Dt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Dt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Dt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Ht=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Dt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Dt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Dt=Dt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Dt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Dt=Dt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Dt=Dt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Dt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Dt=Dt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Dt=Dt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Dt=Dt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Dt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Dt=Dt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Dt=Dt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Dt=Dt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Dt=Dt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Dt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Dt=Dt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Dt=Dt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Dt=Dt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Dt=Dt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Dt=Dt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Dt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Dt=Dt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Dt=Dt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Dt=Dt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Dt=Dt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Dt=Dt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Dt=Dt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Dt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Dt=Dt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Dt=Dt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Dt=Dt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Dt=Dt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Dt=Dt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Dt=Dt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Dt=Dt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Ht,ln),xt=Math.imul(Ht,rn),xt=xt+Math.imul(ir,ln)|0,Dt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Dt=Dt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Dt=Dt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Dt=Dt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Dt=Dt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Dt=Dt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Dt=Dt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Dt=Dt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Dt=Dt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Dt=Math.imul(Br,rn),Ct=Ct+Math.imul(Ht,fn)|0,xt=xt+Math.imul(Ht,gn)|0,xt=xt+Math.imul(ir,fn)|0,Dt=Dt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Dt=Dt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Dt=Dt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Dt=Dt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Dt=Dt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Dt=Dt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Dt=Dt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Dt=Dt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Dt=Dt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Dt=Math.imul(Br,gn),Ct=Ct+Math.imul(Ht,Ln)|0,xt=xt+Math.imul(Ht,En)|0,xt=xt+Math.imul(ir,Ln)|0,Dt=Dt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Dt=Dt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Dt=Dt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Dt=Dt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Dt=Dt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Dt=Dt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Dt=Dt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Dt=Dt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Dt=Math.imul(Br,En),Ct=Ct+Math.imul(Ht,Cn)|0,xt=xt+Math.imul(Ht,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Dt=Dt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Dt=Dt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Dt=Dt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Dt=Dt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Dt=Dt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Dt=Dt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Dt=Dt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Dt=Math.imul(Br,xn),Ct=Ct+Math.imul(Ht,Fn)|0,xt=xt+Math.imul(Ht,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Dt=Dt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Dt=Dt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Dt=Dt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Dt=Dt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Dt=Dt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Dt=Dt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Dt=Math.imul(Br,_n),Ct=Ct+Math.imul(Ht,jn)|0,xt=xt+Math.imul(Ht,dn)|0,xt=xt+Math.imul(ir,jn)|0,Dt=Dt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Dt=Dt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Dt=Dt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Dt=Dt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Dt=Dt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Dt=Math.imul(Br,dn),Ct=Ct+Math.imul(Ht,Xt)|0,xt=xt+Math.imul(Ht,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Dt=Dt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Dt=Dt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Dt=Dt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Dt=Dt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Dt=Math.imul(Br,ar),Ct=Ct+Math.imul(Ht,jt)|0,xt=xt+Math.imul(Ht,dr)|0,xt=xt+Math.imul(ir,jt)|0,Dt=Dt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Dt=Dt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Dt=Dt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Dt=Math.imul(Br,dr),Ct=Ct+Math.imul(Ht,Cr)|0,xt=xt+Math.imul(Ht,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Dt=Dt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Dt=Dt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Dt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Ht,tn)|0,xt=xt+Math.imul(Ht,qr)|0,xt=xt+Math.imul(ir,tn)|0,Dt=Dt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Dt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Dt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Dt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Dt<<26-At|tr>>>At,Dt=tr&It}return Ct&&Dt!==0&&(Ct.words[Ct.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Dt=0;Dt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Dt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Dt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Dt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Dt=1;!(Tt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ot={k256:null,p224:null,p192:null,p25519:null};function Lt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Lt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Lt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Lt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Lt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ot[ht])return Ot[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Vt;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ot[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Dt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Dt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Dt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ft(ht)};function Ft(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ft,qt),Ft.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ft.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ft.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ft.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ft.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn$1);var bnExports$1=bn$1.exports,BN$c=bnExports$1,randomBytes$1=browserExports;function blind(et){var tt=getr(et),rt=tt.toRed(BN$c.mont(et.modulus)).redPow(new BN$c(et.publicExponent)).fromRed();return{blinder:rt,unblinder:tt.invm(et.modulus)}}function getr(et){var tt=et.modulus.byteLength(),rt;do rt=new BN$c(randomBytes$1(tt));while(rt.cmp(et.modulus)>=0||!rt.umod(et.prime1)||!rt.umod(et.prime2));return rt}function crt$2(et,tt){var rt=blind(tt),nt=tt.modulus.byteLength(),it=new BN$c(et).mul(rt.blinder).umod(tt.modulus),st=it.toRed(BN$c.mont(tt.prime1)),at=it.toRed(BN$c.mont(tt.prime2)),ot=tt.coefficient,lt=tt.prime1,ut=tt.prime2,dt=st.redPow(tt.exponent1).fromRed(),bt=at.redPow(tt.exponent2).fromRed(),gt=dt.isub(bt).imul(ot).umod(lt).imul(ut);return bt.iadd(gt).imul(rt.unblinder).umod(tt.modulus).toArrayLike(Buffer,"be",nt)}crt$2.getr=getr;var browserifyRsa=crt$2,elliptic$2={};const name="elliptic",version="6.5.4",description="EC cryptography",main="lib/elliptic.js",files=["lib"],scripts={lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository={type:"git",url:"git@github.com:indutny/elliptic"},keywords=["EC","Elliptic","curve","Cryptography"],author="Fedor Indutny ",license="MIT",bugs={url:"https://github.com/indutny/elliptic/issues"},homepage="https://github.com/indutny/elliptic",devDependencies={brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies={"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"},require$$0={name,version,description,main,files,scripts,repository,keywords,author,license,bugs,homepage,devDependencies,dependencies};var utils$n={},utils$m={};(function(et){var tt=et;function rt(st,at){if(Array.isArray(st))return st.slice();if(!st)return[];var ot=[];if(typeof st!="string"){for(var lt=0;lt>8,bt=ut&255;dt?ot.push(dt,bt):ot.push(bt)}return ot}tt.toArray=rt;function nt(st){return st.length===1?"0"+st:st}tt.zero2=nt;function it(st){for(var at="",ot=0;ot(pt>>1)-1?mt=(pt>>1)-wt:mt=wt,yt.isubn(mt)):mt=0,kt[$t]=mt,yt.iushrn(1)}return kt}tt.getNAF=st;function at(dt,bt){var gt=[[],[]];dt=dt.clone(),bt=bt.clone();for(var kt=0,pt=0,yt;dt.cmpn(-kt)>0||bt.cmpn(-pt)>0;){var $t=dt.andln(3)+kt&3,mt=bt.andln(3)+pt&3;$t===3&&($t=-1),mt===3&&(mt=-1);var wt;$t&1?(yt=dt.andln(7)+kt&7,(yt===3||yt===5)&&mt===2?wt=-$t:wt=$t):wt=0,gt[0].push(wt);var St;mt&1?(yt=bt.andln(7)+pt&7,(yt===3||yt===5)&&$t===2?St=-mt:St=mt):St=0,gt[1].push(St),2*kt===wt+1&&(kt=1-kt),2*pt===St+1&&(pt=1-pt),dt.iushrn(1),bt.iushrn(1)}return gt}tt.getJSF=at;function ot(dt,bt,gt){var kt="_"+bt;dt.prototype[bt]=function(){return this[kt]!==void 0?this[kt]:this[kt]=gt.call(this)}}tt.cachedProperty=ot;function lt(dt){return typeof dt=="string"?tt.toArray(dt,"hex"):dt}tt.parseBytes=lt;function ut(dt){return new rt(dt,"hex","le")}tt.intFromLE=ut})(utils$n);var curve={},BN$b=bnExports$2,utils$l=utils$n,getNAF=utils$l.getNAF,getJSF=utils$l.getJSF,assert$i=utils$l.assert;function BaseCurve(et,tt){this.type=et,this.p=new BN$b(tt.p,16),this.red=tt.prime?BN$b.red(tt.prime):BN$b.mont(this.p),this.zero=new BN$b(0).toRed(this.red),this.one=new BN$b(1).toRed(this.red),this.two=new BN$b(2).toRed(this.red),this.n=tt.n&&new BN$b(tt.n,16),this.g=tt.g&&this.pointFromJSON(tt.g,tt.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var rt=this.n&&this.p.div(this.n);!rt||rt.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var base$3=BaseCurve;BaseCurve.prototype.point=function(){throw new Error("Not implemented")};BaseCurve.prototype.validate=function(){throw new Error("Not implemented")};BaseCurve.prototype._fixedNafMul=function(tt,rt){assert$i(tt.precomputed);var nt=tt._getDoubles(),it=getNAF(rt,1,this._bitLength),st=(1<=ot;ut--)lt=(lt<<1)+it[ut];at.push(lt)}for(var dt=this.jpoint(null,null,null),bt=this.jpoint(null,null,null),gt=st;gt>0;gt--){for(ot=0;ot=0;lt--){for(var ut=0;lt>=0&&at[lt]===0;lt--)ut++;if(lt>=0&&ut++,ot=ot.dblp(ut),lt<0)break;var dt=at[lt];assert$i(dt!==0),tt.type==="affine"?dt>0?ot=ot.mixedAdd(st[dt-1>>1]):ot=ot.mixedAdd(st[-dt-1>>1].neg()):dt>0?ot=ot.add(st[dt-1>>1]):ot=ot.add(st[-dt-1>>1].neg())}return tt.type==="affine"?ot.toP():ot};BaseCurve.prototype._wnafMulAdd=function(tt,rt,nt,it,st){var at=this._wnafT1,ot=this._wnafT2,lt=this._wnafT3,ut=0,dt,bt,gt;for(dt=0;dt=1;dt-=2){var pt=dt-1,yt=dt;if(at[pt]!==1||at[yt]!==1){lt[pt]=getNAF(nt[pt],at[pt],this._bitLength),lt[yt]=getNAF(nt[yt],at[yt],this._bitLength),ut=Math.max(lt[pt].length,ut),ut=Math.max(lt[yt].length,ut);continue}var $t=[rt[pt],null,null,rt[yt]];rt[pt].y.cmp(rt[yt].y)===0?($t[1]=rt[pt].add(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg())):rt[pt].y.cmp(rt[yt].y.redNeg())===0?($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].add(rt[yt].neg())):($t[1]=rt[pt].toJ().mixedAdd(rt[yt]),$t[2]=rt[pt].toJ().mixedAdd(rt[yt].neg()));var mt=[-3,-1,-5,-7,0,7,5,1,3],wt=getJSF(nt[pt],nt[yt]);for(ut=Math.max(wt[0].length,ut),lt[pt]=new Array(ut),lt[yt]=new Array(ut),bt=0;bt=0;dt--){for(var zt=0;dt>=0;){var Vt=!0;for(bt=0;bt=0&&zt++,Ot=Ot.dblp(zt),dt<0)break;for(bt=0;bt0?gt=ot[bt][Wt-1>>1]:Wt<0&&(gt=ot[bt][-Wt-1>>1].neg()),gt.type==="affine"?Ot=Ot.mixedAdd(gt):Ot=Ot.add(gt))}}for(dt=0;dt=Math.ceil((tt.bitLength()+1)/rt.step):!1};BasePoint.prototype._getDoubles=function(tt,rt){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var nt=[this],it=this,st=0;st=0&&(kt=ut,pt=dt),bt.negative&&(bt=bt.neg(),gt=gt.neg()),kt.negative&&(kt=kt.neg(),pt=pt.neg()),[{a:bt,b:gt},{a:kt,b:pt}]};ShortCurve.prototype._endoSplit=function(tt){var rt=this.endo.basis,nt=rt[0],it=rt[1],st=it.b.mul(tt).divRound(this.n),at=nt.b.neg().mul(tt).divRound(this.n),ot=st.mul(nt.a),lt=at.mul(it.a),ut=st.mul(nt.b),dt=at.mul(it.b),bt=tt.sub(ot).sub(lt),gt=ut.add(dt).neg();return{k1:bt,k2:gt}};ShortCurve.prototype.pointFromX=function(tt,rt){tt=new BN$a(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr().redMul(tt).redIAdd(tt.redMul(this.a)).redIAdd(this.b),it=nt.redSqrt();if(it.redSqr().redSub(nt).cmp(this.zero)!==0)throw new Error("invalid point");var st=it.fromRed().isOdd();return(rt&&!st||!rt&&st)&&(it=it.redNeg()),this.point(tt,it)};ShortCurve.prototype.validate=function(tt){if(tt.inf)return!0;var rt=tt.x,nt=tt.y,it=this.a.redMul(rt),st=rt.redSqr().redMul(rt).redIAdd(it).redIAdd(this.b);return nt.redSqr().redISub(st).cmpn(0)===0};ShortCurve.prototype._endoWnafMulAdd=function(tt,rt,nt){for(var it=this._endoWnafT1,st=this._endoWnafT2,at=0;at":""};Point$2.prototype.isInfinity=function(){return this.inf};Point$2.prototype.add=function(tt){if(this.inf)return tt;if(tt.inf)return this;if(this.eq(tt))return this.dbl();if(this.neg().eq(tt))return this.curve.point(null,null);if(this.x.cmp(tt.x)===0)return this.curve.point(null,null);var rt=this.y.redSub(tt.y);rt.cmpn(0)!==0&&(rt=rt.redMul(this.x.redSub(tt.x).redInvm()));var nt=rt.redSqr().redISub(this.x).redISub(tt.x),it=rt.redMul(this.x.redSub(nt)).redISub(this.y);return this.curve.point(nt,it)};Point$2.prototype.dbl=function(){if(this.inf)return this;var tt=this.y.redAdd(this.y);if(tt.cmpn(0)===0)return this.curve.point(null,null);var rt=this.curve.a,nt=this.x.redSqr(),it=tt.redInvm(),st=nt.redAdd(nt).redIAdd(nt).redIAdd(rt).redMul(it),at=st.redSqr().redISub(this.x.redAdd(this.x)),ot=st.redMul(this.x.redSub(at)).redISub(this.y);return this.curve.point(at,ot)};Point$2.prototype.getX=function(){return this.x.fromRed()};Point$2.prototype.getY=function(){return this.y.fromRed()};Point$2.prototype.mul=function(tt){return tt=new BN$a(tt,16),this.isInfinity()?this:this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve.endo?this.curve._endoWnafMulAdd([this],[tt]):this.curve._wnafMul(this,tt)};Point$2.prototype.mulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st):this.curve._wnafMulAdd(1,it,st,2)};Point$2.prototype.jmulAdd=function(tt,rt,nt){var it=[this,rt],st=[tt,nt];return this.curve.endo?this.curve._endoWnafMulAdd(it,st,!0):this.curve._wnafMulAdd(1,it,st,2,!0)};Point$2.prototype.eq=function(tt){return this===tt||this.inf===tt.inf&&(this.inf||this.x.cmp(tt.x)===0&&this.y.cmp(tt.y)===0)};Point$2.prototype.neg=function(tt){if(this.inf)return this;var rt=this.curve.point(this.x,this.y.redNeg());if(tt&&this.precomputed){var nt=this.precomputed,it=function(st){return st.neg()};rt.precomputed={naf:nt.naf&&{wnd:nt.naf.wnd,points:nt.naf.points.map(it)},doubles:nt.doubles&&{step:nt.doubles.step,points:nt.doubles.points.map(it)}}}return rt};Point$2.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var tt=this.curve.jpoint(this.x,this.y,this.curve.one);return tt};function JPoint(et,tt,rt,nt){Base$2.BasePoint.call(this,et,"jacobian"),tt===null&&rt===null&&nt===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new BN$a(0)):(this.x=new BN$a(tt,16),this.y=new BN$a(rt,16),this.z=new BN$a(nt,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}inherits$9(JPoint,Base$2.BasePoint);ShortCurve.prototype.jpoint=function(tt,rt,nt){return new JPoint(this,tt,rt,nt)};JPoint.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var tt=this.z.redInvm(),rt=tt.redSqr(),nt=this.x.redMul(rt),it=this.y.redMul(rt).redMul(tt);return this.curve.point(nt,it)};JPoint.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)};JPoint.prototype.add=function(tt){if(this.isInfinity())return tt;if(tt.isInfinity())return this;var rt=tt.z.redSqr(),nt=this.z.redSqr(),it=this.x.redMul(rt),st=tt.x.redMul(nt),at=this.y.redMul(rt.redMul(tt.z)),ot=tt.y.redMul(nt.redMul(this.z)),lt=it.redSub(st),ut=at.redSub(ot);if(lt.cmpn(0)===0)return ut.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var dt=lt.redSqr(),bt=dt.redMul(lt),gt=it.redMul(dt),kt=ut.redSqr().redIAdd(bt).redISub(gt).redISub(gt),pt=ut.redMul(gt.redISub(kt)).redISub(at.redMul(bt)),yt=this.z.redMul(tt.z).redMul(lt);return this.curve.jpoint(kt,pt,yt)};JPoint.prototype.mixedAdd=function(tt){if(this.isInfinity())return tt.toJ();if(tt.isInfinity())return this;var rt=this.z.redSqr(),nt=this.x,it=tt.x.redMul(rt),st=this.y,at=tt.y.redMul(rt).redMul(this.z),ot=nt.redSub(it),lt=st.redSub(at);if(ot.cmpn(0)===0)return lt.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var ut=ot.redSqr(),dt=ut.redMul(ot),bt=nt.redMul(ut),gt=lt.redSqr().redIAdd(dt).redISub(bt).redISub(bt),kt=lt.redMul(bt.redISub(gt)).redISub(st.redMul(dt)),pt=this.z.redMul(ot);return this.curve.jpoint(gt,kt,pt)};JPoint.prototype.dblp=function(tt){if(tt===0)return this;if(this.isInfinity())return this;if(!tt)return this.dbl();var rt;if(this.curve.zeroA||this.curve.threeA){var nt=this;for(rt=0;rt=0)return!1;if(nt.redIAdd(st),this.x.cmp(nt)===0)return!0}};JPoint.prototype.inspect=function(){return this.isInfinity()?"":""};JPoint.prototype.isInfinity=function(){return this.z.cmpn(0)===0};var BN$9=bnExports$2,inherits$8=inherits_browserExports,Base$1=base$3,utils$j=utils$n;function MontCurve(et){Base$1.call(this,"mont",et),this.a=new BN$9(et.a,16).toRed(this.red),this.b=new BN$9(et.b,16).toRed(this.red),this.i4=new BN$9(4).toRed(this.red).redInvm(),this.two=new BN$9(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}inherits$8(MontCurve,Base$1);var mont=MontCurve;MontCurve.prototype.validate=function(tt){var rt=tt.normalize().x,nt=rt.redSqr(),it=nt.redMul(rt).redAdd(nt.redMul(this.a)).redAdd(rt),st=it.redSqrt();return st.redSqr().cmp(it)===0};function Point$1(et,tt,rt){Base$1.BasePoint.call(this,et,"projective"),tt===null&&rt===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new BN$9(tt,16),this.z=new BN$9(rt,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}inherits$8(Point$1,Base$1.BasePoint);MontCurve.prototype.decodePoint=function(tt,rt){return this.point(utils$j.toArray(tt,rt),1)};MontCurve.prototype.point=function(tt,rt){return new Point$1(this,tt,rt)};MontCurve.prototype.pointFromJSON=function(tt){return Point$1.fromJSON(this,tt)};Point$1.prototype.precompute=function(){};Point$1.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())};Point$1.fromJSON=function(tt,rt){return new Point$1(tt,rt[0],rt[1]||tt.one)};Point$1.prototype.inspect=function(){return this.isInfinity()?"":""};Point$1.prototype.isInfinity=function(){return this.z.cmpn(0)===0};Point$1.prototype.dbl=function(){var tt=this.x.redAdd(this.z),rt=tt.redSqr(),nt=this.x.redSub(this.z),it=nt.redSqr(),st=rt.redSub(it),at=rt.redMul(it),ot=st.redMul(it.redAdd(this.curve.a24.redMul(st)));return this.curve.point(at,ot)};Point$1.prototype.add=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.diffAdd=function(tt,rt){var nt=this.x.redAdd(this.z),it=this.x.redSub(this.z),st=tt.x.redAdd(tt.z),at=tt.x.redSub(tt.z),ot=at.redMul(nt),lt=st.redMul(it),ut=rt.z.redMul(ot.redAdd(lt).redSqr()),dt=rt.x.redMul(ot.redISub(lt).redSqr());return this.curve.point(ut,dt)};Point$1.prototype.mul=function(tt){for(var rt=tt.clone(),nt=this,it=this.curve.point(null,null),st=this,at=[];rt.cmpn(0)!==0;rt.iushrn(1))at.push(rt.andln(1));for(var ot=at.length-1;ot>=0;ot--)at[ot]===0?(nt=nt.diffAdd(it,st),it=it.dbl()):(it=nt.diffAdd(it,st),nt=nt.dbl());return it};Point$1.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")};Point$1.prototype.eq=function(tt){return this.getX().cmp(tt.getX())===0};Point$1.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this};Point$1.prototype.getX=function(){return this.normalize(),this.x.fromRed()};var utils$i=utils$n,BN$8=bnExports$2,inherits$7=inherits_browserExports,Base=base$3,assert$g=utils$i.assert;function EdwardsCurve(et){this.twisted=(et.a|0)!==1,this.mOneA=this.twisted&&(et.a|0)===-1,this.extended=this.mOneA,Base.call(this,"edwards",et),this.a=new BN$8(et.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new BN$8(et.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new BN$8(et.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),assert$g(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(et.c|0)===1}inherits$7(EdwardsCurve,Base);var edwards=EdwardsCurve;EdwardsCurve.prototype._mulA=function(tt){return this.mOneA?tt.redNeg():this.a.redMul(tt)};EdwardsCurve.prototype._mulC=function(tt){return this.oneC?tt:this.c.redMul(tt)};EdwardsCurve.prototype.jpoint=function(tt,rt,nt,it){return this.point(tt,rt,nt,it)};EdwardsCurve.prototype.pointFromX=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=this.c2.redSub(this.a.redMul(nt)),st=this.one.redSub(this.c2.redMul(this.d).redMul(nt)),at=it.redMul(st.redInvm()),ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");var lt=ot.fromRed().isOdd();return(rt&&!lt||!rt&<)&&(ot=ot.redNeg()),this.point(tt,ot)};EdwardsCurve.prototype.pointFromY=function(tt,rt){tt=new BN$8(tt,16),tt.red||(tt=tt.toRed(this.red));var nt=tt.redSqr(),it=nt.redSub(this.c2),st=nt.redMul(this.d).redMul(this.c2).redSub(this.a),at=it.redMul(st.redInvm());if(at.cmp(this.zero)===0){if(rt)throw new Error("invalid point");return this.point(this.zero,tt)}var ot=at.redSqrt();if(ot.redSqr().redSub(at).cmp(this.zero)!==0)throw new Error("invalid point");return ot.fromRed().isOdd()!==rt&&(ot=ot.redNeg()),this.point(ot,tt)};EdwardsCurve.prototype.validate=function(tt){if(tt.isInfinity())return!0;tt.normalize();var rt=tt.x.redSqr(),nt=tt.y.redSqr(),it=rt.redMul(this.a).redAdd(nt),st=this.c2.redMul(this.one.redAdd(this.d.redMul(rt).redMul(nt)));return it.cmp(st)===0};function Point(et,tt,rt,nt,it){Base.BasePoint.call(this,et,"projective"),tt===null&&rt===null&&nt===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new BN$8(tt,16),this.y=new BN$8(rt,16),this.z=nt?new BN$8(nt,16):this.curve.one,this.t=it&&new BN$8(it,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}inherits$7(Point,Base.BasePoint);EdwardsCurve.prototype.pointFromJSON=function(tt){return Point.fromJSON(this,tt)};EdwardsCurve.prototype.point=function(tt,rt,nt,it){return new Point(this,tt,rt,nt,it)};Point.fromJSON=function(tt,rt){return new Point(tt,rt[0],rt[1],rt[2])};Point.prototype.inspect=function(){return this.isInfinity()?"":""};Point.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)};Point.prototype._extDbl=function(){var tt=this.x.redSqr(),rt=this.y.redSqr(),nt=this.z.redSqr();nt=nt.redIAdd(nt);var it=this.curve._mulA(tt),st=this.x.redAdd(this.y).redSqr().redISub(tt).redISub(rt),at=it.redAdd(rt),ot=at.redSub(nt),lt=it.redSub(rt),ut=st.redMul(ot),dt=at.redMul(lt),bt=st.redMul(lt),gt=ot.redMul(at);return this.curve.point(ut,dt,gt,bt)};Point.prototype._projDbl=function(){var tt=this.x.redAdd(this.y).redSqr(),rt=this.x.redSqr(),nt=this.y.redSqr(),it,st,at,ot,lt,ut;if(this.curve.twisted){ot=this.curve._mulA(rt);var dt=ot.redAdd(nt);this.zOne?(it=tt.redSub(rt).redSub(nt).redMul(dt.redSub(this.curve.two)),st=dt.redMul(ot.redSub(nt)),at=dt.redSqr().redSub(dt).redSub(dt)):(lt=this.z.redSqr(),ut=dt.redSub(lt).redISub(lt),it=tt.redSub(rt).redISub(nt).redMul(ut),st=dt.redMul(ot.redSub(nt)),at=dt.redMul(ut))}else ot=rt.redAdd(nt),lt=this.curve._mulC(this.z).redSqr(),ut=ot.redSub(lt).redSub(lt),it=this.curve._mulC(tt.redISub(ot)).redMul(ut),st=this.curve._mulC(ot).redMul(rt.redISub(nt)),at=ot.redMul(ut);return this.curve.point(it,st,at)};Point.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()};Point.prototype._extAdd=function(tt){var rt=this.y.redSub(this.x).redMul(tt.y.redSub(tt.x)),nt=this.y.redAdd(this.x).redMul(tt.y.redAdd(tt.x)),it=this.t.redMul(this.curve.dd).redMul(tt.t),st=this.z.redMul(tt.z.redAdd(tt.z)),at=nt.redSub(rt),ot=st.redSub(it),lt=st.redAdd(it),ut=nt.redAdd(rt),dt=at.redMul(ot),bt=lt.redMul(ut),gt=at.redMul(ut),kt=ot.redMul(lt);return this.curve.point(dt,bt,kt,gt)};Point.prototype._projAdd=function(tt){var rt=this.z.redMul(tt.z),nt=rt.redSqr(),it=this.x.redMul(tt.x),st=this.y.redMul(tt.y),at=this.curve.d.redMul(it).redMul(st),ot=nt.redSub(at),lt=nt.redAdd(at),ut=this.x.redAdd(this.y).redMul(tt.x.redAdd(tt.y)).redISub(it).redISub(st),dt=rt.redMul(ot).redMul(ut),bt,gt;return this.curve.twisted?(bt=rt.redMul(lt).redMul(st.redSub(this.curve._mulA(it))),gt=ot.redMul(lt)):(bt=rt.redMul(lt).redMul(st.redSub(it)),gt=this.curve._mulC(ot).redMul(lt)),this.curve.point(dt,bt,gt)};Point.prototype.add=function(tt){return this.isInfinity()?tt:tt.isInfinity()?this:this.curve.extended?this._extAdd(tt):this._projAdd(tt)};Point.prototype.mul=function(tt){return this._hasDoubles(tt)?this.curve._fixedNafMul(this,tt):this.curve._wnafMul(this,tt)};Point.prototype.mulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!1)};Point.prototype.jmulAdd=function(tt,rt,nt){return this.curve._wnafMulAdd(1,[this,rt],[tt,nt],2,!0)};Point.prototype.normalize=function(){if(this.zOne)return this;var tt=this.z.redInvm();return this.x=this.x.redMul(tt),this.y=this.y.redMul(tt),this.t&&(this.t=this.t.redMul(tt)),this.z=this.curve.one,this.zOne=!0,this};Point.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())};Point.prototype.getX=function(){return this.normalize(),this.x.fromRed()};Point.prototype.getY=function(){return this.normalize(),this.y.fromRed()};Point.prototype.eq=function(tt){return this===tt||this.getX().cmp(tt.getX())===0&&this.getY().cmp(tt.getY())===0};Point.prototype.eqXToP=function(tt){var rt=tt.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(rt)===0)return!0;for(var nt=tt.clone(),it=this.curve.redN.redMul(this.z);;){if(nt.iadd(this.curve.n),nt.cmp(this.curve.p)>=0)return!1;if(rt.redIAdd(it),this.x.cmp(rt)===0)return!0}};Point.prototype.toP=Point.prototype.normalize;Point.prototype.mixedAdd=Point.prototype.add;(function(et){var tt=et;tt.base=base$3,tt.short=short,tt.mont=mont,tt.edwards=edwards})(curve);var curves$1={},hash$4={},utils$h={},assert$f=minimalisticAssert,inherits$6=inherits_browserExports;utils$h.inherits=inherits$6;function isSurrogatePair(et,tt){return(et.charCodeAt(tt)&64512)!==55296||tt<0||tt+1>=et.length?!1:(et.charCodeAt(tt+1)&64512)===56320}function toArray$1(et,tt){if(Array.isArray(et))return et.slice();if(!et)return[];var rt=[];if(typeof et=="string")if(tt){if(tt==="hex")for(et=et.replace(/[^a-z0-9]+/ig,""),et.length%2!==0&&(et="0"+et),it=0;it>6|192,rt[nt++]=st&63|128):isSurrogatePair(et,it)?(st=65536+((st&1023)<<10)+(et.charCodeAt(++it)&1023),rt[nt++]=st>>18|240,rt[nt++]=st>>12&63|128,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128):(rt[nt++]=st>>12|224,rt[nt++]=st>>6&63|128,rt[nt++]=st&63|128)}else for(it=0;it>>24|et>>>8&65280|et<<8&16711680|(et&255)<<24;return tt>>>0}utils$h.htonl=htonl;function toHex32(et,tt){for(var rt="",nt=0;nt>>0}return st}utils$h.join32=join32;function split32(et,tt){for(var rt=new Array(et.length*4),nt=0,it=0;nt>>24,rt[it+1]=st>>>16&255,rt[it+2]=st>>>8&255,rt[it+3]=st&255):(rt[it+3]=st>>>24,rt[it+2]=st>>>16&255,rt[it+1]=st>>>8&255,rt[it]=st&255)}return rt}utils$h.split32=split32;function rotr32$1(et,tt){return et>>>tt|et<<32-tt}utils$h.rotr32=rotr32$1;function rotl32$2(et,tt){return et<>>32-tt}utils$h.rotl32=rotl32$2;function sum32$3(et,tt){return et+tt>>>0}utils$h.sum32=sum32$3;function sum32_3$1(et,tt,rt){return et+tt+rt>>>0}utils$h.sum32_3=sum32_3$1;function sum32_4$2(et,tt,rt,nt){return et+tt+rt+nt>>>0}utils$h.sum32_4=sum32_4$2;function sum32_5$2(et,tt,rt,nt,it){return et+tt+rt+nt+it>>>0}utils$h.sum32_5=sum32_5$2;function sum64$1(et,tt,rt,nt){var it=et[tt],st=et[tt+1],at=nt+st>>>0,ot=(at>>0,et[tt+1]=at}utils$h.sum64=sum64$1;function sum64_hi$1(et,tt,rt,nt){var it=tt+nt>>>0,st=(it>>0}utils$h.sum64_hi=sum64_hi$1;function sum64_lo$1(et,tt,rt,nt){var it=tt+nt;return it>>>0}utils$h.sum64_lo=sum64_lo$1;function sum64_4_hi$1(et,tt,rt,nt,it,st,at,ot){var lt=0,ut=tt;ut=ut+nt>>>0,lt+=ut>>0,lt+=ut>>0,lt+=ut>>0}utils$h.sum64_4_hi=sum64_4_hi$1;function sum64_4_lo$1(et,tt,rt,nt,it,st,at,ot){var lt=tt+nt+st+ot;return lt>>>0}utils$h.sum64_4_lo=sum64_4_lo$1;function sum64_5_hi$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=0,bt=tt;bt=bt+nt>>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0,dt+=bt>>0}utils$h.sum64_5_hi=sum64_5_hi$1;function sum64_5_lo$1(et,tt,rt,nt,it,st,at,ot,lt,ut){var dt=tt+nt+st+ot+ut;return dt>>>0}utils$h.sum64_5_lo=sum64_5_lo$1;function rotr64_hi$1(et,tt,rt){var nt=tt<<32-rt|et>>>rt;return nt>>>0}utils$h.rotr64_hi=rotr64_hi$1;function rotr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.rotr64_lo=rotr64_lo$1;function shr64_hi$1(et,tt,rt){return et>>>rt}utils$h.shr64_hi=shr64_hi$1;function shr64_lo$1(et,tt,rt){var nt=et<<32-rt|tt>>>rt;return nt>>>0}utils$h.shr64_lo=shr64_lo$1;var common$7={},utils$g=utils$h,assert$e=minimalisticAssert;function BlockHash$4(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}common$7.BlockHash=BlockHash$4;BlockHash$4.prototype.update=function(tt,rt){if(tt=utils$g.toArray(tt,rt),this.pending?this.pending=this.pending.concat(tt):this.pending=tt,this.pendingTotal+=tt.length,this.pending.length>=this._delta8){tt=this.pending;var nt=tt.length%this._delta8;this.pending=tt.slice(tt.length-nt,tt.length),this.pending.length===0&&(this.pending=null),tt=utils$g.join32(tt,0,tt.length-nt,this.endian);for(var it=0;it>>24&255,it[st++]=tt>>>16&255,it[st++]=tt>>>8&255,it[st++]=tt&255}else for(it[st++]=tt&255,it[st++]=tt>>>8&255,it[st++]=tt>>>16&255,it[st++]=tt>>>24&255,it[st++]=0,it[st++]=0,it[st++]=0,it[st++]=0,at=8;at>>3}common$6.g0_256=g0_256$1;function g1_256$1(et){return rotr32(et,17)^rotr32(et,19)^et>>>10}common$6.g1_256=g1_256$1;var utils$e=utils$h,common$5=common$7,shaCommon$1=common$6,rotl32$1=utils$e.rotl32,sum32$2=utils$e.sum32,sum32_5$1=utils$e.sum32_5,ft_1=shaCommon$1.ft_1,BlockHash$3=common$5.BlockHash,sha1_K=[1518500249,1859775393,2400959708,3395469782];function SHA1$1(){if(!(this instanceof SHA1$1))return new SHA1$1;BlockHash$3.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}utils$e.inherits(SHA1$1,BlockHash$3);var _1=SHA1$1;SHA1$1.blockSize=512;SHA1$1.outSize=160;SHA1$1.hmacStrength=80;SHA1$1.padLength=64;SHA1$1.prototype._update=function(tt,rt){for(var nt=this.W,it=0;it<16;it++)nt[it]=tt[rt+it];for(;itthis.blockSize&&(tt=new this.Hash().update(tt).digest()),assert$b(tt.length<=this.blockSize);for(var rt=tt.length;rt=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(tt,rt,nt)}var hmacDrbg=HmacDRBG;HmacDRBG.prototype._init=function(tt,rt,nt){var it=tt.concat(rt).concat(nt);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var st=0;st=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(tt.concat(nt||[])),this._reseed=1};HmacDRBG.prototype.generate=function(tt,rt,nt,it){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof rt!="string"&&(it=nt,nt=rt,rt=null),nt&&(nt=utils$7.toArray(nt,it||"hex"),this._update(nt));for(var st=[];st.length"};var BN$6=bnExports$2,utils$5=utils$n,assert$8=utils$5.assert;function Signature$2(et,tt){if(et instanceof Signature$2)return et;this._importDER(et,tt)||(assert$8(et.r&&et.s,"Signature without r or s"),this.r=new BN$6(et.r,16),this.s=new BN$6(et.s,16),et.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=et.recoveryParam)}var signature$1=Signature$2;function Position(){this.place=0}function getLength(et,tt){var rt=et[tt.place++];if(!(rt&128))return rt;var nt=rt&15;if(nt===0||nt>4)return!1;for(var it=0,st=0,at=tt.place;st>>=0;return it<=127?!1:(tt.place=at,it)}function rmPadding(et){for(var tt=0,rt=et.length-1;!et[tt]&&!(et[tt+1]&128)&&tt>>3);for(et.push(rt|128);--rt;)et.push(tt>>>(rt<<3)&255);et.push(tt)}Signature$2.prototype.toDER=function(tt){var rt=this.r.toArray(),nt=this.s.toArray();for(rt[0]&128&&(rt=[0].concat(rt)),nt[0]&128&&(nt=[0].concat(nt)),rt=rmPadding(rt),nt=rmPadding(nt);!nt[0]&&!(nt[1]&128);)nt=nt.slice(1);var it=[2];constructLength(it,rt.length),it=it.concat(rt),it.push(2),constructLength(it,nt.length);var st=it.concat(nt),at=[48];return constructLength(at,st.length),at=at.concat(st),utils$5.encode(at,tt)};var ec$1,hasRequiredEc;function requireEc(){if(hasRequiredEc)return ec$1;hasRequiredEc=1;var et=bnExports$2,tt=hmacDrbg,rt=utils$n,nt=curves$1,it=requireBrorand(),st=rt.assert,at=key$2,ot=signature$1;function lt(ut){if(!(this instanceof lt))return new lt(ut);typeof ut=="string"&&(st(Object.prototype.hasOwnProperty.call(nt,ut),"Unknown curve "+ut),ut=nt[ut]),ut instanceof nt.PresetCurve&&(ut={curve:ut}),this.curve=ut.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=ut.curve.g,this.g.precompute(ut.curve.n.bitLength()+1),this.hash=ut.hash||ut.curve.hash}return ec$1=lt,lt.prototype.keyPair=function(dt){return new at(this,dt)},lt.prototype.keyFromPrivate=function(dt,bt){return at.fromPrivate(this,dt,bt)},lt.prototype.keyFromPublic=function(dt,bt){return at.fromPublic(this,dt,bt)},lt.prototype.genKeyPair=function(dt){dt||(dt={});for(var bt=new tt({hash:this.hash,pers:dt.pers,persEnc:dt.persEnc||"utf8",entropy:dt.entropy||it(this.hash.hmacStrength),entropyEnc:dt.entropy&&dt.entropyEnc||"utf8",nonce:this.n.toArray()}),gt=this.n.byteLength(),kt=this.n.sub(new et(2));;){var pt=new et(bt.generate(gt));if(!(pt.cmp(kt)>0))return pt.iaddn(1),this.keyFromPrivate(pt)}},lt.prototype._truncateToN=function(dt,bt){var gt=dt.byteLength()*8-this.n.bitLength();return gt>0&&(dt=dt.ushrn(gt)),!bt&&dt.cmp(this.n)>=0?dt.sub(this.n):dt},lt.prototype.sign=function(dt,bt,gt,kt){typeof gt=="object"&&(kt=gt,gt=null),kt||(kt={}),bt=this.keyFromPrivate(bt,gt),dt=this._truncateToN(new et(dt,16));for(var pt=this.n.byteLength(),yt=bt.getPrivate().toArray("be",pt),$t=dt.toArray("be",pt),mt=new tt({hash:this.hash,entropy:yt,nonce:$t,pers:kt.pers,persEnc:kt.persEnc||"utf8"}),wt=this.n.sub(new et(1)),St=0;;St++){var Bt=kt.k?kt.k(St):new et(mt.generate(this.n.byteLength()));if(Bt=this._truncateToN(Bt,!0),!(Bt.cmpn(1)<=0||Bt.cmp(wt)>=0)){var Ot=this.g.mul(Bt);if(!Ot.isInfinity()){var Lt=Ot.getX(),zt=Lt.umod(this.n);if(zt.cmpn(0)!==0){var Vt=Bt.invm(this.n).mul(zt.mul(bt.getPrivate()).iadd(dt));if(Vt=Vt.umod(this.n),Vt.cmpn(0)!==0){var Wt=(Ot.getY().isOdd()?1:0)|(Lt.cmp(zt)!==0?2:0);return kt.canonical&&Vt.cmp(this.nh)>0&&(Vt=this.n.sub(Vt),Wt^=1),new ot({r:zt,s:Vt,recoveryParam:Wt})}}}}}},lt.prototype.verify=function(dt,bt,gt,kt){dt=this._truncateToN(new et(dt,16)),gt=this.keyFromPublic(gt,kt),bt=new ot(bt,"hex");var pt=bt.r,yt=bt.s;if(pt.cmpn(1)<0||pt.cmp(this.n)>=0||yt.cmpn(1)<0||yt.cmp(this.n)>=0)return!1;var $t=yt.invm(this.n),mt=$t.mul(dt).umod(this.n),wt=$t.mul(pt).umod(this.n),St;return this.curve._maxwellTrick?(St=this.g.jmulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.eqXToP(pt)):(St=this.g.mulAdd(mt,gt.getPublic(),wt),St.isInfinity()?!1:St.getX().umod(this.n).cmp(pt)===0)},lt.prototype.recoverPubKey=function(ut,dt,bt,gt){st((3&bt)===bt,"The recovery param is more than two bits"),dt=new ot(dt,gt);var kt=this.n,pt=new et(ut),yt=dt.r,$t=dt.s,mt=bt&1,wt=bt>>1;if(yt.cmp(this.curve.p.umod(this.curve.n))>=0&&wt)throw new Error("Unable to find sencond key candinate");wt?yt=this.curve.pointFromX(yt.add(this.curve.n),mt):yt=this.curve.pointFromX(yt,mt);var St=dt.r.invm(kt),Bt=kt.sub(pt).mul(St).umod(kt),Ot=$t.mul(St).umod(kt);return this.g.mulAdd(Bt,yt,Ot)},lt.prototype.getKeyRecoveryParam=function(ut,dt,bt,gt){if(dt=new ot(dt,gt),dt.recoveryParam!==null)return dt.recoveryParam;for(var kt=0;kt<4;kt++){var pt;try{pt=this.recoverPubKey(ut,dt,kt)}catch{continue}if(pt.eq(bt))return kt}throw new Error("Unable to find valid recovery factor")},ec$1}var utils$4=utils$n,assert$7=utils$4.assert,parseBytes$2=utils$4.parseBytes,cachedProperty$1=utils$4.cachedProperty;function KeyPair$1(et,tt){this.eddsa=et,this._secret=parseBytes$2(tt.secret),et.isPoint(tt.pub)?this._pub=tt.pub:this._pubBytes=parseBytes$2(tt.pub)}KeyPair$1.fromPublic=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{pub:rt})};KeyPair$1.fromSecret=function(tt,rt){return rt instanceof KeyPair$1?rt:new KeyPair$1(tt,{secret:rt})};KeyPair$1.prototype.secret=function(){return this._secret};cachedProperty$1(KeyPair$1,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())});cachedProperty$1(KeyPair$1,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())});cachedProperty$1(KeyPair$1,"privBytes",function(){var tt=this.eddsa,rt=this.hash(),nt=tt.encodingLength-1,it=rt.slice(0,tt.encodingLength);return it[0]&=248,it[nt]&=127,it[nt]|=64,it});cachedProperty$1(KeyPair$1,"priv",function(){return this.eddsa.decodeInt(this.privBytes())});cachedProperty$1(KeyPair$1,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()});cachedProperty$1(KeyPair$1,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)});KeyPair$1.prototype.sign=function(tt){return assert$7(this._secret,"KeyPair can only verify"),this.eddsa.sign(tt,this)};KeyPair$1.prototype.verify=function(tt,rt){return this.eddsa.verify(tt,rt,this)};KeyPair$1.prototype.getSecret=function(tt){return assert$7(this._secret,"KeyPair is public only"),utils$4.encode(this.secret(),tt)};KeyPair$1.prototype.getPublic=function(tt){return utils$4.encode(this.pubBytes(),tt)};var key$1=KeyPair$1,BN$5=bnExports$2,utils$3=utils$n,assert$6=utils$3.assert,cachedProperty=utils$3.cachedProperty,parseBytes$1=utils$3.parseBytes;function Signature$1(et,tt){this.eddsa=et,typeof tt!="object"&&(tt=parseBytes$1(tt)),Array.isArray(tt)&&(tt={R:tt.slice(0,et.encodingLength),S:tt.slice(et.encodingLength)}),assert$6(tt.R&&tt.S,"Signature without R or S"),et.isPoint(tt.R)&&(this._R=tt.R),tt.S instanceof BN$5&&(this._S=tt.S),this._Rencoded=Array.isArray(tt.R)?tt.R:tt.Rencoded,this._Sencoded=Array.isArray(tt.S)?tt.S:tt.Sencoded}cachedProperty(Signature$1,"S",function(){return this.eddsa.decodeInt(this.Sencoded())});cachedProperty(Signature$1,"R",function(){return this.eddsa.decodePoint(this.Rencoded())});cachedProperty(Signature$1,"Rencoded",function(){return this.eddsa.encodePoint(this.R())});cachedProperty(Signature$1,"Sencoded",function(){return this.eddsa.encodeInt(this.S())});Signature$1.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())};Signature$1.prototype.toHex=function(){return utils$3.encode(this.toBytes(),"hex").toUpperCase()};var signature=Signature$1,hash$2=hash$4,curves=curves$1,utils$2=utils$n,assert$5=utils$2.assert,parseBytes=utils$2.parseBytes,KeyPair=key$1,Signature=signature;function EDDSA(et){if(assert$5(et==="ed25519","only tested with ed25519 so far"),!(this instanceof EDDSA))return new EDDSA(et);et=curves[et].curve,this.curve=et,this.g=et.g,this.g.precompute(et.n.bitLength()+1),this.pointClass=et.point().constructor,this.encodingLength=Math.ceil(et.n.bitLength()/8),this.hash=hash$2.sha512}var eddsa=EDDSA;EDDSA.prototype.sign=function(tt,rt){tt=parseBytes(tt);var nt=this.keyFromSecret(rt),it=this.hashInt(nt.messagePrefix(),tt),st=this.g.mul(it),at=this.encodePoint(st),ot=this.hashInt(at,nt.pubBytes(),tt).mul(nt.priv()),lt=it.add(ot).umod(this.curve.n);return this.makeSignature({R:st,S:lt,Rencoded:at})};EDDSA.prototype.verify=function(tt,rt,nt){tt=parseBytes(tt),rt=this.makeSignature(rt);var it=this.keyFromPublic(nt),st=this.hashInt(rt.Rencoded(),it.pubBytes(),tt),at=this.g.mul(rt.S()),ot=rt.R().add(it.pub().mul(st));return ot.eq(at)};EDDSA.prototype.hashInt=function(){for(var tt=this.hash(),rt=0;rt0?ht:Et},st.min=function(ht,Et){return ht.cmp(Et)<0?ht:Et},st.prototype._init=function(ht,Et,Tt){if(typeof ht=="number")return this._initNumber(ht,Et,Tt);if(typeof ht=="object")return this._initArray(ht,Et,Tt);Et==="hex"&&(Et=16),nt(Et===(Et|0)&&Et>=2&&Et<=36),ht=ht.toString().replace(/\s+/g,"");var Rt=0;ht[0]==="-"&&(Rt++,this.negative=1),Rt=0;Rt-=3)Pt=ht[Rt]|ht[Rt-1]<<8|ht[Rt-2]<<16,this.words[At]|=Pt<>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);else if(Tt==="le")for(Rt=0,At=0;Rt>>26-It&67108863,It+=24,It>=26&&(It-=26,At++);return this._strip()};function ot(Mt,ht){var Et=Mt.charCodeAt(ht);if(Et>=48&&Et<=57)return Et-48;if(Et>=65&&Et<=70)return Et-55;if(Et>=97&&Et<=102)return Et-87;nt(!1,"Invalid character in "+Mt)}function lt(Mt,ht,Et){var Tt=ot(Mt,Et);return Et-1>=ht&&(Tt|=ot(Mt,Et-1)<<4),Tt}st.prototype._parseHex=function(ht,Et,Tt){this.length=Math.ceil((ht.length-Et)/6),this.words=new Array(this.length);for(var Rt=0;Rt=Et;Rt-=2)It=lt(ht,Et,Rt)<=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8;else{var Ct=ht.length-Et;for(Rt=Ct%2===0?Et+1:Et;Rt=18?(At-=18,Pt+=1,this.words[Pt]|=It>>>26):At+=8}this._strip()};function ut(Mt,ht,Et,Tt){for(var Rt=0,At=0,Pt=Math.min(Mt.length,Et),It=ht;It=49?At=Ct-49+10:Ct>=17?At=Ct-17+10:At=Ct,nt(Ct>=0&&At1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},st.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{st.prototype[Symbol.for("nodejs.util.inspect.custom")]=bt}catch{st.prototype.inspect=bt}else st.prototype.inspect=bt;function bt(){return(this.red?""}var gt=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],kt=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],pt=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];st.prototype.toString=function(ht,Et){ht=ht||10,Et=Et|0||1;var Tt;if(ht===16||ht==="hex"){Tt="";for(var Rt=0,At=0,Pt=0;Pt>>24-Rt&16777215,Rt+=2,Rt>=26&&(Rt-=26,Pt--),At!==0||Pt!==this.length-1?Tt=gt[6-Ct.length]+Ct+Tt:Tt=Ct+Tt}for(At!==0&&(Tt=At.toString(16)+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}if(ht===(ht|0)&&ht>=2&&ht<=36){var xt=kt[ht],Dt=pt[ht];Tt="";var tr=this.clone();for(tr.negative=0;!tr.isZero();){var pr=tr.modrn(Dt).toString(ht);tr=tr.idivn(Dt),tr.isZero()?Tt=pr+Tt:Tt=gt[xt-pr.length]+pr+Tt}for(this.isZero()&&(Tt="0"+Tt);Tt.length%Et!==0;)Tt="0"+Tt;return this.negative!==0&&(Tt="-"+Tt),Tt}nt(!1,"Base should be between 2 and 36")},st.prototype.toNumber=function(){var ht=this.words[0];return this.length===2?ht+=this.words[1]*67108864:this.length===3&&this.words[2]===1?ht+=4503599627370496+this.words[1]*67108864:this.length>2&&nt(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-ht:ht},st.prototype.toJSON=function(){return this.toString(16,2)},at&&(st.prototype.toBuffer=function(ht,Et){return this.toArrayLike(at,ht,Et)}),st.prototype.toArray=function(ht,Et){return this.toArrayLike(Array,ht,Et)};var yt=function(ht,Et){return ht.allocUnsafe?ht.allocUnsafe(Et):new ht(Et)};st.prototype.toArrayLike=function(ht,Et,Tt){this._strip();var Rt=this.byteLength(),At=Tt||Math.max(1,Rt);nt(Rt<=At,"byte array longer than desired length"),nt(At>0,"Requested array length <= 0");var Pt=yt(ht,At),It=Et==="le"?"LE":"BE";return this["_toArrayLike"+It](Pt,Rt),Pt},st.prototype._toArrayLikeLE=function(ht,Et){for(var Tt=0,Rt=0,At=0,Pt=0;At>8&255),Tt>16&255),Pt===6?(Tt>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt=0&&(ht[Tt--]=It>>8&255),Tt>=0&&(ht[Tt--]=It>>16&255),Pt===6?(Tt>=0&&(ht[Tt--]=It>>24&255),Rt=0,Pt=0):(Rt=It>>>24,Pt+=2)}if(Tt>=0)for(ht[Tt--]=Rt;Tt>=0;)ht[Tt--]=0},Math.clz32?st.prototype._countBits=function(ht){return 32-Math.clz32(ht)}:st.prototype._countBits=function(ht){var Et=ht,Tt=0;return Et>=4096&&(Tt+=13,Et>>>=13),Et>=64&&(Tt+=7,Et>>>=7),Et>=8&&(Tt+=4,Et>>>=4),Et>=2&&(Tt+=2,Et>>>=2),Tt+Et},st.prototype._zeroBits=function(ht){if(ht===0)return 26;var Et=ht,Tt=0;return Et&8191||(Tt+=13,Et>>>=13),Et&127||(Tt+=7,Et>>>=7),Et&15||(Tt+=4,Et>>>=4),Et&3||(Tt+=2,Et>>>=2),Et&1||Tt++,Tt},st.prototype.bitLength=function(){var ht=this.words[this.length-1],Et=this._countBits(ht);return(this.length-1)*26+Et};function $t(Mt){for(var ht=new Array(Mt.bitLength()),Et=0;Et>>Rt&1}return ht}st.prototype.zeroBits=function(){if(this.isZero())return 0;for(var ht=0,Et=0;Etht.length?this.clone().ior(ht):ht.clone().ior(this)},st.prototype.uor=function(ht){return this.length>ht.length?this.clone().iuor(ht):ht.clone().iuor(this)},st.prototype.iuand=function(ht){var Et;this.length>ht.length?Et=ht:Et=this;for(var Tt=0;Ttht.length?this.clone().iand(ht):ht.clone().iand(this)},st.prototype.uand=function(ht){return this.length>ht.length?this.clone().iuand(ht):ht.clone().iuand(this)},st.prototype.iuxor=function(ht){var Et,Tt;this.length>ht.length?(Et=this,Tt=ht):(Et=ht,Tt=this);for(var Rt=0;Rtht.length?this.clone().ixor(ht):ht.clone().ixor(this)},st.prototype.uxor=function(ht){return this.length>ht.length?this.clone().iuxor(ht):ht.clone().iuxor(this)},st.prototype.inotn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=Math.ceil(ht/26)|0,Tt=ht%26;this._expand(Et),Tt>0&&Et--;for(var Rt=0;Rt0&&(this.words[Rt]=~this.words[Rt]&67108863>>26-Tt),this._strip()},st.prototype.notn=function(ht){return this.clone().inotn(ht)},st.prototype.setn=function(ht,Et){nt(typeof ht=="number"&&ht>=0);var Tt=ht/26|0,Rt=ht%26;return this._expand(Tt+1),Et?this.words[Tt]=this.words[Tt]|1<ht.length?(Tt=this,Rt=ht):(Tt=ht,Rt=this);for(var At=0,Pt=0;Pt>>26;for(;At!==0&&Pt>>26;if(this.length=Tt.length,At!==0)this.words[this.length]=At,this.length++;else if(Tt!==this)for(;Ptht.length?this.clone().iadd(ht):ht.clone().iadd(this)},st.prototype.isub=function(ht){if(ht.negative!==0){ht.negative=0;var Et=this.iadd(ht);return ht.negative=1,Et._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(ht),this.negative=1,this._normSign();var Tt=this.cmp(ht);if(Tt===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Rt,At;Tt>0?(Rt=this,At=ht):(Rt=ht,At=this);for(var Pt=0,It=0;It>26,this.words[It]=Et&67108863;for(;Pt!==0&&It>26,this.words[It]=Et&67108863;if(Pt===0&&It>>26,tr=Ct&67108863,pr=Math.min(xt,ht.length-1),Kt=Math.max(0,xt-Mt.length+1);Kt<=pr;Kt++){var Qt=xt-Kt|0;Rt=Mt.words[Qt]|0,At=ht.words[Kt]|0,Pt=Rt*At+tr,Dt+=Pt/67108864|0,tr=Pt&67108863}Et.words[xt]=tr|0,Ct=Dt|0}return Ct!==0?Et.words[xt]=Ct|0:Et.length--,Et._strip()}var wt=function(ht,Et,Tt){var Rt=ht.words,At=Et.words,Pt=Tt.words,It=0,Ct,xt,Dt,tr=Rt[0]|0,pr=tr&8191,Kt=tr>>>13,Qt=Rt[1]|0,Zt=Qt&8191,ur=Qt>>>13,_r=Rt[2]|0,er=_r&8191,Jt=_r>>>13,Ar=Rt[3]|0,Er=Ar&8191,Dr=Ar>>>13,Xr=Rt[4]|0,Vr=Xr&8191,wr=Xr>>>13,br=Rt[5]|0,or=br&8191,xr=br>>>13,Pr=Rt[6]|0,Or=Pr&8191,rr=Pr>>>13,gr=Rt[7]|0,Ir=gr&8191,Yt=gr>>>13,Ut=Rt[8]|0,Ht=Ut&8191,ir=Ut>>>13,kr=Rt[9]|0,$r=kr&8191,Br=kr>>>13,an=At[0]|0,ln=an&8191,rn=an>>>13,kn=At[1]|0,fn=kn&8191,gn=kn>>>13,fs=At[2]|0,Ln=fs&8191,En=fs>>>13,hs=At[3]|0,Cn=hs&8191,xn=hs>>>13,is=At[4]|0,Fn=is&8191,_n=is>>>13,ls=At[5]|0,jn=ls&8191,dn=ls>>>13,cs=At[6]|0,Xt=cs&8191,ar=cs>>>13,cr=At[7]|0,jt=cr&8191,dr=cr>>>13,Rr=At[8]|0,Cr=Rr&8191,Nr=Rr>>>13,Yr=At[9]|0,tn=Yr&8191,qr=Yr>>>13;Tt.negative=ht.negative^Et.negative,Tt.length=19,Ct=Math.imul(pr,ln),xt=Math.imul(pr,rn),xt=xt+Math.imul(Kt,ln)|0,Dt=Math.imul(Kt,rn);var Vn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Vn>>>26)|0,Vn&=67108863,Ct=Math.imul(Zt,ln),xt=Math.imul(Zt,rn),xt=xt+Math.imul(ur,ln)|0,Dt=Math.imul(ur,rn),Ct=Ct+Math.imul(pr,fn)|0,xt=xt+Math.imul(pr,gn)|0,xt=xt+Math.imul(Kt,fn)|0,Dt=Dt+Math.imul(Kt,gn)|0;var hn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(hn>>>26)|0,hn&=67108863,Ct=Math.imul(er,ln),xt=Math.imul(er,rn),xt=xt+Math.imul(Jt,ln)|0,Dt=Math.imul(Jt,rn),Ct=Ct+Math.imul(Zt,fn)|0,xt=xt+Math.imul(Zt,gn)|0,xt=xt+Math.imul(ur,fn)|0,Dt=Dt+Math.imul(ur,gn)|0,Ct=Ct+Math.imul(pr,Ln)|0,xt=xt+Math.imul(pr,En)|0,xt=xt+Math.imul(Kt,Ln)|0,Dt=Dt+Math.imul(Kt,En)|0;var Tn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,Ct=Math.imul(Er,ln),xt=Math.imul(Er,rn),xt=xt+Math.imul(Dr,ln)|0,Dt=Math.imul(Dr,rn),Ct=Ct+Math.imul(er,fn)|0,xt=xt+Math.imul(er,gn)|0,xt=xt+Math.imul(Jt,fn)|0,Dt=Dt+Math.imul(Jt,gn)|0,Ct=Ct+Math.imul(Zt,Ln)|0,xt=xt+Math.imul(Zt,En)|0,xt=xt+Math.imul(ur,Ln)|0,Dt=Dt+Math.imul(ur,En)|0,Ct=Ct+Math.imul(pr,Cn)|0,xt=xt+Math.imul(pr,xn)|0,xt=xt+Math.imul(Kt,Cn)|0,Dt=Dt+Math.imul(Kt,xn)|0;var An=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(An>>>26)|0,An&=67108863,Ct=Math.imul(Vr,ln),xt=Math.imul(Vr,rn),xt=xt+Math.imul(wr,ln)|0,Dt=Math.imul(wr,rn),Ct=Ct+Math.imul(Er,fn)|0,xt=xt+Math.imul(Er,gn)|0,xt=xt+Math.imul(Dr,fn)|0,Dt=Dt+Math.imul(Dr,gn)|0,Ct=Ct+Math.imul(er,Ln)|0,xt=xt+Math.imul(er,En)|0,xt=xt+Math.imul(Jt,Ln)|0,Dt=Dt+Math.imul(Jt,En)|0,Ct=Ct+Math.imul(Zt,Cn)|0,xt=xt+Math.imul(Zt,xn)|0,xt=xt+Math.imul(ur,Cn)|0,Dt=Dt+Math.imul(ur,xn)|0,Ct=Ct+Math.imul(pr,Fn)|0,xt=xt+Math.imul(pr,_n)|0,xt=xt+Math.imul(Kt,Fn)|0,Dt=Dt+Math.imul(Kt,_n)|0;var Rn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,Ct=Math.imul(or,ln),xt=Math.imul(or,rn),xt=xt+Math.imul(xr,ln)|0,Dt=Math.imul(xr,rn),Ct=Ct+Math.imul(Vr,fn)|0,xt=xt+Math.imul(Vr,gn)|0,xt=xt+Math.imul(wr,fn)|0,Dt=Dt+Math.imul(wr,gn)|0,Ct=Ct+Math.imul(Er,Ln)|0,xt=xt+Math.imul(Er,En)|0,xt=xt+Math.imul(Dr,Ln)|0,Dt=Dt+Math.imul(Dr,En)|0,Ct=Ct+Math.imul(er,Cn)|0,xt=xt+Math.imul(er,xn)|0,xt=xt+Math.imul(Jt,Cn)|0,Dt=Dt+Math.imul(Jt,xn)|0,Ct=Ct+Math.imul(Zt,Fn)|0,xt=xt+Math.imul(Zt,_n)|0,xt=xt+Math.imul(ur,Fn)|0,Dt=Dt+Math.imul(ur,_n)|0,Ct=Ct+Math.imul(pr,jn)|0,xt=xt+Math.imul(pr,dn)|0,xt=xt+Math.imul(Kt,jn)|0,Dt=Dt+Math.imul(Kt,dn)|0;var Pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,Ct=Math.imul(Or,ln),xt=Math.imul(Or,rn),xt=xt+Math.imul(rr,ln)|0,Dt=Math.imul(rr,rn),Ct=Ct+Math.imul(or,fn)|0,xt=xt+Math.imul(or,gn)|0,xt=xt+Math.imul(xr,fn)|0,Dt=Dt+Math.imul(xr,gn)|0,Ct=Ct+Math.imul(Vr,Ln)|0,xt=xt+Math.imul(Vr,En)|0,xt=xt+Math.imul(wr,Ln)|0,Dt=Dt+Math.imul(wr,En)|0,Ct=Ct+Math.imul(Er,Cn)|0,xt=xt+Math.imul(Er,xn)|0,xt=xt+Math.imul(Dr,Cn)|0,Dt=Dt+Math.imul(Dr,xn)|0,Ct=Ct+Math.imul(er,Fn)|0,xt=xt+Math.imul(er,_n)|0,xt=xt+Math.imul(Jt,Fn)|0,Dt=Dt+Math.imul(Jt,_n)|0,Ct=Ct+Math.imul(Zt,jn)|0,xt=xt+Math.imul(Zt,dn)|0,xt=xt+Math.imul(ur,jn)|0,Dt=Dt+Math.imul(ur,dn)|0,Ct=Ct+Math.imul(pr,Xt)|0,xt=xt+Math.imul(pr,ar)|0,xt=xt+Math.imul(Kt,Xt)|0,Dt=Dt+Math.imul(Kt,ar)|0;var In=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(In>>>26)|0,In&=67108863,Ct=Math.imul(Ir,ln),xt=Math.imul(Ir,rn),xt=xt+Math.imul(Yt,ln)|0,Dt=Math.imul(Yt,rn),Ct=Ct+Math.imul(Or,fn)|0,xt=xt+Math.imul(Or,gn)|0,xt=xt+Math.imul(rr,fn)|0,Dt=Dt+Math.imul(rr,gn)|0,Ct=Ct+Math.imul(or,Ln)|0,xt=xt+Math.imul(or,En)|0,xt=xt+Math.imul(xr,Ln)|0,Dt=Dt+Math.imul(xr,En)|0,Ct=Ct+Math.imul(Vr,Cn)|0,xt=xt+Math.imul(Vr,xn)|0,xt=xt+Math.imul(wr,Cn)|0,Dt=Dt+Math.imul(wr,xn)|0,Ct=Ct+Math.imul(Er,Fn)|0,xt=xt+Math.imul(Er,_n)|0,xt=xt+Math.imul(Dr,Fn)|0,Dt=Dt+Math.imul(Dr,_n)|0,Ct=Ct+Math.imul(er,jn)|0,xt=xt+Math.imul(er,dn)|0,xt=xt+Math.imul(Jt,jn)|0,Dt=Dt+Math.imul(Jt,dn)|0,Ct=Ct+Math.imul(Zt,Xt)|0,xt=xt+Math.imul(Zt,ar)|0,xt=xt+Math.imul(ur,Xt)|0,Dt=Dt+Math.imul(ur,ar)|0,Ct=Ct+Math.imul(pr,jt)|0,xt=xt+Math.imul(pr,dr)|0,xt=xt+Math.imul(Kt,jt)|0,Dt=Dt+Math.imul(Kt,dr)|0;var $n=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+($n>>>26)|0,$n&=67108863,Ct=Math.imul(Ht,ln),xt=Math.imul(Ht,rn),xt=xt+Math.imul(ir,ln)|0,Dt=Math.imul(ir,rn),Ct=Ct+Math.imul(Ir,fn)|0,xt=xt+Math.imul(Ir,gn)|0,xt=xt+Math.imul(Yt,fn)|0,Dt=Dt+Math.imul(Yt,gn)|0,Ct=Ct+Math.imul(Or,Ln)|0,xt=xt+Math.imul(Or,En)|0,xt=xt+Math.imul(rr,Ln)|0,Dt=Dt+Math.imul(rr,En)|0,Ct=Ct+Math.imul(or,Cn)|0,xt=xt+Math.imul(or,xn)|0,xt=xt+Math.imul(xr,Cn)|0,Dt=Dt+Math.imul(xr,xn)|0,Ct=Ct+Math.imul(Vr,Fn)|0,xt=xt+Math.imul(Vr,_n)|0,xt=xt+Math.imul(wr,Fn)|0,Dt=Dt+Math.imul(wr,_n)|0,Ct=Ct+Math.imul(Er,jn)|0,xt=xt+Math.imul(Er,dn)|0,xt=xt+Math.imul(Dr,jn)|0,Dt=Dt+Math.imul(Dr,dn)|0,Ct=Ct+Math.imul(er,Xt)|0,xt=xt+Math.imul(er,ar)|0,xt=xt+Math.imul(Jt,Xt)|0,Dt=Dt+Math.imul(Jt,ar)|0,Ct=Ct+Math.imul(Zt,jt)|0,xt=xt+Math.imul(Zt,dr)|0,xt=xt+Math.imul(ur,jt)|0,Dt=Dt+Math.imul(ur,dr)|0,Ct=Ct+Math.imul(pr,Cr)|0,xt=xt+Math.imul(pr,Nr)|0,xt=xt+Math.imul(Kt,Cr)|0,Dt=Dt+Math.imul(Kt,Nr)|0;var Bn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Bn>>>26)|0,Bn&=67108863,Ct=Math.imul($r,ln),xt=Math.imul($r,rn),xt=xt+Math.imul(Br,ln)|0,Dt=Math.imul(Br,rn),Ct=Ct+Math.imul(Ht,fn)|0,xt=xt+Math.imul(Ht,gn)|0,xt=xt+Math.imul(ir,fn)|0,Dt=Dt+Math.imul(ir,gn)|0,Ct=Ct+Math.imul(Ir,Ln)|0,xt=xt+Math.imul(Ir,En)|0,xt=xt+Math.imul(Yt,Ln)|0,Dt=Dt+Math.imul(Yt,En)|0,Ct=Ct+Math.imul(Or,Cn)|0,xt=xt+Math.imul(Or,xn)|0,xt=xt+Math.imul(rr,Cn)|0,Dt=Dt+Math.imul(rr,xn)|0,Ct=Ct+Math.imul(or,Fn)|0,xt=xt+Math.imul(or,_n)|0,xt=xt+Math.imul(xr,Fn)|0,Dt=Dt+Math.imul(xr,_n)|0,Ct=Ct+Math.imul(Vr,jn)|0,xt=xt+Math.imul(Vr,dn)|0,xt=xt+Math.imul(wr,jn)|0,Dt=Dt+Math.imul(wr,dn)|0,Ct=Ct+Math.imul(Er,Xt)|0,xt=xt+Math.imul(Er,ar)|0,xt=xt+Math.imul(Dr,Xt)|0,Dt=Dt+Math.imul(Dr,ar)|0,Ct=Ct+Math.imul(er,jt)|0,xt=xt+Math.imul(er,dr)|0,xt=xt+Math.imul(Jt,jt)|0,Dt=Dt+Math.imul(Jt,dr)|0,Ct=Ct+Math.imul(Zt,Cr)|0,xt=xt+Math.imul(Zt,Nr)|0,xt=xt+Math.imul(ur,Cr)|0,Dt=Dt+Math.imul(ur,Nr)|0,Ct=Ct+Math.imul(pr,tn)|0,xt=xt+Math.imul(pr,qr)|0,xt=xt+Math.imul(Kt,tn)|0,Dt=Dt+Math.imul(Kt,qr)|0;var pn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(pn>>>26)|0,pn&=67108863,Ct=Math.imul($r,fn),xt=Math.imul($r,gn),xt=xt+Math.imul(Br,fn)|0,Dt=Math.imul(Br,gn),Ct=Ct+Math.imul(Ht,Ln)|0,xt=xt+Math.imul(Ht,En)|0,xt=xt+Math.imul(ir,Ln)|0,Dt=Dt+Math.imul(ir,En)|0,Ct=Ct+Math.imul(Ir,Cn)|0,xt=xt+Math.imul(Ir,xn)|0,xt=xt+Math.imul(Yt,Cn)|0,Dt=Dt+Math.imul(Yt,xn)|0,Ct=Ct+Math.imul(Or,Fn)|0,xt=xt+Math.imul(Or,_n)|0,xt=xt+Math.imul(rr,Fn)|0,Dt=Dt+Math.imul(rr,_n)|0,Ct=Ct+Math.imul(or,jn)|0,xt=xt+Math.imul(or,dn)|0,xt=xt+Math.imul(xr,jn)|0,Dt=Dt+Math.imul(xr,dn)|0,Ct=Ct+Math.imul(Vr,Xt)|0,xt=xt+Math.imul(Vr,ar)|0,xt=xt+Math.imul(wr,Xt)|0,Dt=Dt+Math.imul(wr,ar)|0,Ct=Ct+Math.imul(Er,jt)|0,xt=xt+Math.imul(Er,dr)|0,xt=xt+Math.imul(Dr,jt)|0,Dt=Dt+Math.imul(Dr,dr)|0,Ct=Ct+Math.imul(er,Cr)|0,xt=xt+Math.imul(er,Nr)|0,xt=xt+Math.imul(Jt,Cr)|0,Dt=Dt+Math.imul(Jt,Nr)|0,Ct=Ct+Math.imul(Zt,tn)|0,xt=xt+Math.imul(Zt,qr)|0,xt=xt+Math.imul(ur,tn)|0,Dt=Dt+Math.imul(ur,qr)|0;var wn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(wn>>>26)|0,wn&=67108863,Ct=Math.imul($r,Ln),xt=Math.imul($r,En),xt=xt+Math.imul(Br,Ln)|0,Dt=Math.imul(Br,En),Ct=Ct+Math.imul(Ht,Cn)|0,xt=xt+Math.imul(Ht,xn)|0,xt=xt+Math.imul(ir,Cn)|0,Dt=Dt+Math.imul(ir,xn)|0,Ct=Ct+Math.imul(Ir,Fn)|0,xt=xt+Math.imul(Ir,_n)|0,xt=xt+Math.imul(Yt,Fn)|0,Dt=Dt+Math.imul(Yt,_n)|0,Ct=Ct+Math.imul(Or,jn)|0,xt=xt+Math.imul(Or,dn)|0,xt=xt+Math.imul(rr,jn)|0,Dt=Dt+Math.imul(rr,dn)|0,Ct=Ct+Math.imul(or,Xt)|0,xt=xt+Math.imul(or,ar)|0,xt=xt+Math.imul(xr,Xt)|0,Dt=Dt+Math.imul(xr,ar)|0,Ct=Ct+Math.imul(Vr,jt)|0,xt=xt+Math.imul(Vr,dr)|0,xt=xt+Math.imul(wr,jt)|0,Dt=Dt+Math.imul(wr,dr)|0,Ct=Ct+Math.imul(Er,Cr)|0,xt=xt+Math.imul(Er,Nr)|0,xt=xt+Math.imul(Dr,Cr)|0,Dt=Dt+Math.imul(Dr,Nr)|0,Ct=Ct+Math.imul(er,tn)|0,xt=xt+Math.imul(er,qr)|0,xt=xt+Math.imul(Jt,tn)|0,Dt=Dt+Math.imul(Jt,qr)|0;var un=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(un>>>26)|0,un&=67108863,Ct=Math.imul($r,Cn),xt=Math.imul($r,xn),xt=xt+Math.imul(Br,Cn)|0,Dt=Math.imul(Br,xn),Ct=Ct+Math.imul(Ht,Fn)|0,xt=xt+Math.imul(Ht,_n)|0,xt=xt+Math.imul(ir,Fn)|0,Dt=Dt+Math.imul(ir,_n)|0,Ct=Ct+Math.imul(Ir,jn)|0,xt=xt+Math.imul(Ir,dn)|0,xt=xt+Math.imul(Yt,jn)|0,Dt=Dt+Math.imul(Yt,dn)|0,Ct=Ct+Math.imul(Or,Xt)|0,xt=xt+Math.imul(Or,ar)|0,xt=xt+Math.imul(rr,Xt)|0,Dt=Dt+Math.imul(rr,ar)|0,Ct=Ct+Math.imul(or,jt)|0,xt=xt+Math.imul(or,dr)|0,xt=xt+Math.imul(xr,jt)|0,Dt=Dt+Math.imul(xr,dr)|0,Ct=Ct+Math.imul(Vr,Cr)|0,xt=xt+Math.imul(Vr,Nr)|0,xt=xt+Math.imul(wr,Cr)|0,Dt=Dt+Math.imul(wr,Nr)|0,Ct=Ct+Math.imul(Er,tn)|0,xt=xt+Math.imul(Er,qr)|0,xt=xt+Math.imul(Dr,tn)|0,Dt=Dt+Math.imul(Dr,qr)|0;var yn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(yn>>>26)|0,yn&=67108863,Ct=Math.imul($r,Fn),xt=Math.imul($r,_n),xt=xt+Math.imul(Br,Fn)|0,Dt=Math.imul(Br,_n),Ct=Ct+Math.imul(Ht,jn)|0,xt=xt+Math.imul(Ht,dn)|0,xt=xt+Math.imul(ir,jn)|0,Dt=Dt+Math.imul(ir,dn)|0,Ct=Ct+Math.imul(Ir,Xt)|0,xt=xt+Math.imul(Ir,ar)|0,xt=xt+Math.imul(Yt,Xt)|0,Dt=Dt+Math.imul(Yt,ar)|0,Ct=Ct+Math.imul(Or,jt)|0,xt=xt+Math.imul(Or,dr)|0,xt=xt+Math.imul(rr,jt)|0,Dt=Dt+Math.imul(rr,dr)|0,Ct=Ct+Math.imul(or,Cr)|0,xt=xt+Math.imul(or,Nr)|0,xt=xt+Math.imul(xr,Cr)|0,Dt=Dt+Math.imul(xr,Nr)|0,Ct=Ct+Math.imul(Vr,tn)|0,xt=xt+Math.imul(Vr,qr)|0,xt=xt+Math.imul(wr,tn)|0,Dt=Dt+Math.imul(wr,qr)|0;var mn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(mn>>>26)|0,mn&=67108863,Ct=Math.imul($r,jn),xt=Math.imul($r,dn),xt=xt+Math.imul(Br,jn)|0,Dt=Math.imul(Br,dn),Ct=Ct+Math.imul(Ht,Xt)|0,xt=xt+Math.imul(Ht,ar)|0,xt=xt+Math.imul(ir,Xt)|0,Dt=Dt+Math.imul(ir,ar)|0,Ct=Ct+Math.imul(Ir,jt)|0,xt=xt+Math.imul(Ir,dr)|0,xt=xt+Math.imul(Yt,jt)|0,Dt=Dt+Math.imul(Yt,dr)|0,Ct=Ct+Math.imul(Or,Cr)|0,xt=xt+Math.imul(Or,Nr)|0,xt=xt+Math.imul(rr,Cr)|0,Dt=Dt+Math.imul(rr,Nr)|0,Ct=Ct+Math.imul(or,tn)|0,xt=xt+Math.imul(or,qr)|0,xt=xt+Math.imul(xr,tn)|0,Dt=Dt+Math.imul(xr,qr)|0;var cn=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(cn>>>26)|0,cn&=67108863,Ct=Math.imul($r,Xt),xt=Math.imul($r,ar),xt=xt+Math.imul(Br,Xt)|0,Dt=Math.imul(Br,ar),Ct=Ct+Math.imul(Ht,jt)|0,xt=xt+Math.imul(Ht,dr)|0,xt=xt+Math.imul(ir,jt)|0,Dt=Dt+Math.imul(ir,dr)|0,Ct=Ct+Math.imul(Ir,Cr)|0,xt=xt+Math.imul(Ir,Nr)|0,xt=xt+Math.imul(Yt,Cr)|0,Dt=Dt+Math.imul(Yt,Nr)|0,Ct=Ct+Math.imul(Or,tn)|0,xt=xt+Math.imul(Or,qr)|0,xt=xt+Math.imul(rr,tn)|0,Dt=Dt+Math.imul(rr,qr)|0;var Ur=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(Ur>>>26)|0,Ur&=67108863,Ct=Math.imul($r,jt),xt=Math.imul($r,dr),xt=xt+Math.imul(Br,jt)|0,Dt=Math.imul(Br,dr),Ct=Ct+Math.imul(Ht,Cr)|0,xt=xt+Math.imul(Ht,Nr)|0,xt=xt+Math.imul(ir,Cr)|0,Dt=Dt+Math.imul(ir,Nr)|0,Ct=Ct+Math.imul(Ir,tn)|0,xt=xt+Math.imul(Ir,qr)|0,xt=xt+Math.imul(Yt,tn)|0,Dt=Dt+Math.imul(Yt,qr)|0;var jr=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(jr>>>26)|0,jr&=67108863,Ct=Math.imul($r,Cr),xt=Math.imul($r,Nr),xt=xt+Math.imul(Br,Cr)|0,Dt=Math.imul(Br,Nr),Ct=Ct+Math.imul(Ht,tn)|0,xt=xt+Math.imul(Ht,qr)|0,xt=xt+Math.imul(ir,tn)|0,Dt=Dt+Math.imul(ir,qr)|0;var en=(It+Ct|0)+((xt&8191)<<13)|0;It=(Dt+(xt>>>13)|0)+(en>>>26)|0,en&=67108863,Ct=Math.imul($r,tn),xt=Math.imul($r,qr),xt=xt+Math.imul(Br,tn)|0,Dt=Math.imul(Br,qr);var Gr=(It+Ct|0)+((xt&8191)<<13)|0;return It=(Dt+(xt>>>13)|0)+(Gr>>>26)|0,Gr&=67108863,Pt[0]=Vn,Pt[1]=hn,Pt[2]=Tn,Pt[3]=An,Pt[4]=Rn,Pt[5]=Pn,Pt[6]=In,Pt[7]=$n,Pt[8]=Bn,Pt[9]=pn,Pt[10]=wn,Pt[11]=un,Pt[12]=yn,Pt[13]=mn,Pt[14]=cn,Pt[15]=Ur,Pt[16]=jr,Pt[17]=en,Pt[18]=Gr,It!==0&&(Pt[19]=It,Tt.length++),Tt};Math.imul||(wt=mt);function St(Mt,ht,Et){Et.negative=ht.negative^Mt.negative,Et.length=Mt.length+ht.length;for(var Tt=0,Rt=0,At=0;At>>26)|0,Rt+=Pt>>>26,Pt&=67108863}Et.words[At]=It,Tt=Pt,Pt=Rt}return Tt!==0?Et.words[At]=Tt:Et.length--,Et._strip()}function Bt(Mt,ht,Et){return St(Mt,ht,Et)}st.prototype.mulTo=function(ht,Et){var Tt,Rt=this.length+ht.length;return this.length===10&&ht.length===10?Tt=wt(this,ht,Et):Rt<63?Tt=mt(this,ht,Et):Rt<1024?Tt=St(this,ht,Et):Tt=Bt(this,ht,Et),Tt},st.prototype.mul=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),this.mulTo(ht,Et)},st.prototype.mulf=function(ht){var Et=new st(null);return Et.words=new Array(this.length+ht.length),Bt(this,ht,Et)},st.prototype.imul=function(ht){return this.clone().mulTo(ht,this)},st.prototype.imuln=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(typeof ht=="number"),nt(ht<67108864);for(var Tt=0,Rt=0;Rt>=26,Tt+=At/67108864|0,Tt+=Pt>>>26,this.words[Rt]=Pt&67108863}return Tt!==0&&(this.words[Rt]=Tt,this.length++),Et?this.ineg():this},st.prototype.muln=function(ht){return this.clone().imuln(ht)},st.prototype.sqr=function(){return this.mul(this)},st.prototype.isqr=function(){return this.imul(this.clone())},st.prototype.pow=function(ht){var Et=$t(ht);if(Et.length===0)return new st(1);for(var Tt=this,Rt=0;Rt=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=67108863>>>26-Et<<26-Et,At;if(Et!==0){var Pt=0;for(At=0;At>>26-Et}Pt&&(this.words[At]=Pt,this.length++)}if(Tt!==0){for(At=this.length-1;At>=0;At--)this.words[At+Tt]=this.words[At];for(At=0;At=0);var Rt;Et?Rt=(Et-Et%26)/26:Rt=0;var At=ht%26,Pt=Math.min((ht-At)/26,this.length),It=67108863^67108863>>>At<Pt)for(this.length-=Pt,xt=0;xt=0&&(Dt!==0||xt>=Rt);xt--){var tr=this.words[xt]|0;this.words[xt]=Dt<<26-At|tr>>>At,Dt=tr&It}return Ct&&Dt!==0&&(Ct.words[Ct.length++]=Dt),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},st.prototype.ishrn=function(ht,Et,Tt){return nt(this.negative===0),this.iushrn(ht,Et,Tt)},st.prototype.shln=function(ht){return this.clone().ishln(ht)},st.prototype.ushln=function(ht){return this.clone().iushln(ht)},st.prototype.shrn=function(ht){return this.clone().ishrn(ht)},st.prototype.ushrn=function(ht){return this.clone().iushrn(ht)},st.prototype.testn=function(ht){nt(typeof ht=="number"&&ht>=0);var Et=ht%26,Tt=(ht-Et)/26,Rt=1<=0);var Et=ht%26,Tt=(ht-Et)/26;if(nt(this.negative===0,"imaskn works only with positive numbers"),this.length<=Tt)return this;if(Et!==0&&Tt++,this.length=Math.min(Tt,this.length),Et!==0){var Rt=67108863^67108863>>>Et<=67108864;Et++)this.words[Et]-=67108864,Et===this.length-1?this.words[Et+1]=1:this.words[Et+1]++;return this.length=Math.max(this.length,Et+1),this},st.prototype.isubn=function(ht){if(nt(typeof ht=="number"),nt(ht<67108864),ht<0)return this.iaddn(-ht);if(this.negative!==0)return this.negative=0,this.iaddn(ht),this.negative=1,this;if(this.words[0]-=ht,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var Et=0;Et>26)-(Ct/67108864|0),this.words[At+Tt]=Pt&67108863}for(;At>26,this.words[At+Tt]=Pt&67108863;if(It===0)return this._strip();for(nt(It===-1),It=0,At=0;At>26,this.words[At]=Pt&67108863;return this.negative=1,this._strip()},st.prototype._wordDiv=function(ht,Et){var Tt=this.length-ht.length,Rt=this.clone(),At=ht,Pt=At.words[At.length-1]|0,It=this._countBits(Pt);Tt=26-It,Tt!==0&&(At=At.ushln(Tt),Rt.iushln(Tt),Pt=At.words[At.length-1]|0);var Ct=Rt.length-At.length,xt;if(Et!=="mod"){xt=new st(null),xt.length=Ct+1,xt.words=new Array(xt.length);for(var Dt=0;Dt=0;pr--){var Kt=(Rt.words[At.length+pr]|0)*67108864+(Rt.words[At.length+pr-1]|0);for(Kt=Math.min(Kt/Pt|0,67108863),Rt._ishlnsubmul(At,Kt,pr);Rt.negative!==0;)Kt--,Rt.negative=0,Rt._ishlnsubmul(At,1,pr),Rt.isZero()||(Rt.negative^=1);xt&&(xt.words[pr]=Kt)}return xt&&xt._strip(),Rt._strip(),Et!=="div"&&Tt!==0&&Rt.iushrn(Tt),{div:xt||null,mod:Rt}},st.prototype.divmod=function(ht,Et,Tt){if(nt(!ht.isZero()),this.isZero())return{div:new st(0),mod:new st(0)};var Rt,At,Pt;return this.negative!==0&&ht.negative===0?(Pt=this.neg().divmod(ht,Et),Et!=="mod"&&(Rt=Pt.div.neg()),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.iadd(ht)),{div:Rt,mod:At}):this.negative===0&&ht.negative!==0?(Pt=this.divmod(ht.neg(),Et),Et!=="mod"&&(Rt=Pt.div.neg()),{div:Rt,mod:Pt.mod}):this.negative&ht.negative?(Pt=this.neg().divmod(ht.neg(),Et),Et!=="div"&&(At=Pt.mod.neg(),Tt&&At.negative!==0&&At.isub(ht)),{div:Pt.div,mod:At}):ht.length>this.length||this.cmp(ht)<0?{div:new st(0),mod:this}:ht.length===1?Et==="div"?{div:this.divn(ht.words[0]),mod:null}:Et==="mod"?{div:null,mod:new st(this.modrn(ht.words[0]))}:{div:this.divn(ht.words[0]),mod:new st(this.modrn(ht.words[0]))}:this._wordDiv(ht,Et)},st.prototype.div=function(ht){return this.divmod(ht,"div",!1).div},st.prototype.mod=function(ht){return this.divmod(ht,"mod",!1).mod},st.prototype.umod=function(ht){return this.divmod(ht,"mod",!0).mod},st.prototype.divRound=function(ht){var Et=this.divmod(ht);if(Et.mod.isZero())return Et.div;var Tt=Et.div.negative!==0?Et.mod.isub(ht):Et.mod,Rt=ht.ushrn(1),At=ht.andln(1),Pt=Tt.cmp(Rt);return Pt<0||At===1&&Pt===0?Et.div:Et.div.negative!==0?Et.div.isubn(1):Et.div.iaddn(1)},st.prototype.modrn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=(1<<26)%ht,Rt=0,At=this.length-1;At>=0;At--)Rt=(Tt*Rt+(this.words[At]|0))%ht;return Et?-Rt:Rt},st.prototype.modn=function(ht){return this.modrn(ht)},st.prototype.idivn=function(ht){var Et=ht<0;Et&&(ht=-ht),nt(ht<=67108863);for(var Tt=0,Rt=this.length-1;Rt>=0;Rt--){var At=(this.words[Rt]|0)+Tt*67108864;this.words[Rt]=At/ht|0,Tt=At%ht}return this._strip(),Et?this.ineg():this},st.prototype.divn=function(ht){return this.clone().idivn(ht)},st.prototype.egcd=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=new st(0),It=new st(1),Ct=0;Et.isEven()&&Tt.isEven();)Et.iushrn(1),Tt.iushrn(1),++Ct;for(var xt=Tt.clone(),Dt=Et.clone();!Et.isZero();){for(var tr=0,pr=1;!(Et.words[0]&pr)&&tr<26;++tr,pr<<=1);if(tr>0)for(Et.iushrn(tr);tr-- >0;)(Rt.isOdd()||At.isOdd())&&(Rt.iadd(xt),At.isub(Dt)),Rt.iushrn(1),At.iushrn(1);for(var Kt=0,Qt=1;!(Tt.words[0]&Qt)&&Kt<26;++Kt,Qt<<=1);if(Kt>0)for(Tt.iushrn(Kt);Kt-- >0;)(Pt.isOdd()||It.isOdd())&&(Pt.iadd(xt),It.isub(Dt)),Pt.iushrn(1),It.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(Pt),At.isub(It)):(Tt.isub(Et),Pt.isub(Rt),It.isub(At))}return{a:Pt,b:It,gcd:Tt.iushln(Ct)}},st.prototype._invmp=function(ht){nt(ht.negative===0),nt(!ht.isZero());var Et=this,Tt=ht.clone();Et.negative!==0?Et=Et.umod(ht):Et=Et.clone();for(var Rt=new st(1),At=new st(0),Pt=Tt.clone();Et.cmpn(1)>0&&Tt.cmpn(1)>0;){for(var It=0,Ct=1;!(Et.words[0]&Ct)&&It<26;++It,Ct<<=1);if(It>0)for(Et.iushrn(It);It-- >0;)Rt.isOdd()&&Rt.iadd(Pt),Rt.iushrn(1);for(var xt=0,Dt=1;!(Tt.words[0]&Dt)&&xt<26;++xt,Dt<<=1);if(xt>0)for(Tt.iushrn(xt);xt-- >0;)At.isOdd()&&At.iadd(Pt),At.iushrn(1);Et.cmp(Tt)>=0?(Et.isub(Tt),Rt.isub(At)):(Tt.isub(Et),At.isub(Rt))}var tr;return Et.cmpn(1)===0?tr=Rt:tr=At,tr.cmpn(0)<0&&tr.iadd(ht),tr},st.prototype.gcd=function(ht){if(this.isZero())return ht.abs();if(ht.isZero())return this.abs();var Et=this.clone(),Tt=ht.clone();Et.negative=0,Tt.negative=0;for(var Rt=0;Et.isEven()&&Tt.isEven();Rt++)Et.iushrn(1),Tt.iushrn(1);do{for(;Et.isEven();)Et.iushrn(1);for(;Tt.isEven();)Tt.iushrn(1);var At=Et.cmp(Tt);if(At<0){var Pt=Et;Et=Tt,Tt=Pt}else if(At===0||Tt.cmpn(1)===0)break;Et.isub(Tt)}while(!0);return Tt.iushln(Rt)},st.prototype.invm=function(ht){return this.egcd(ht).a.umod(ht)},st.prototype.isEven=function(){return(this.words[0]&1)===0},st.prototype.isOdd=function(){return(this.words[0]&1)===1},st.prototype.andln=function(ht){return this.words[0]&ht},st.prototype.bincn=function(ht){nt(typeof ht=="number");var Et=ht%26,Tt=(ht-Et)/26,Rt=1<>>26,It&=67108863,this.words[Pt]=It}return At!==0&&(this.words[Pt]=At,this.length++),this},st.prototype.isZero=function(){return this.length===1&&this.words[0]===0},st.prototype.cmpn=function(ht){var Et=ht<0;if(this.negative!==0&&!Et)return-1;if(this.negative===0&&Et)return 1;this._strip();var Tt;if(this.length>1)Tt=1;else{Et&&(ht=-ht),nt(ht<=67108863,"Number is too big");var Rt=this.words[0]|0;Tt=Rt===ht?0:Rtht.length)return 1;if(this.length=0;Tt--){var Rt=this.words[Tt]|0,At=ht.words[Tt]|0;if(Rt!==At){RtAt&&(Et=1);break}}return Et},st.prototype.gtn=function(ht){return this.cmpn(ht)===1},st.prototype.gt=function(ht){return this.cmp(ht)===1},st.prototype.gten=function(ht){return this.cmpn(ht)>=0},st.prototype.gte=function(ht){return this.cmp(ht)>=0},st.prototype.ltn=function(ht){return this.cmpn(ht)===-1},st.prototype.lt=function(ht){return this.cmp(ht)===-1},st.prototype.lten=function(ht){return this.cmpn(ht)<=0},st.prototype.lte=function(ht){return this.cmp(ht)<=0},st.prototype.eqn=function(ht){return this.cmpn(ht)===0},st.prototype.eq=function(ht){return this.cmp(ht)===0},st.red=function(ht){return new qt(ht)},st.prototype.toRed=function(ht){return nt(!this.red,"Already a number in reduction context"),nt(this.negative===0,"red works only with positives"),ht.convertTo(this)._forceRed(ht)},st.prototype.fromRed=function(){return nt(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},st.prototype._forceRed=function(ht){return this.red=ht,this},st.prototype.forceRed=function(ht){return nt(!this.red,"Already a number in reduction context"),this._forceRed(ht)},st.prototype.redAdd=function(ht){return nt(this.red,"redAdd works only with red numbers"),this.red.add(this,ht)},st.prototype.redIAdd=function(ht){return nt(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,ht)},st.prototype.redSub=function(ht){return nt(this.red,"redSub works only with red numbers"),this.red.sub(this,ht)},st.prototype.redISub=function(ht){return nt(this.red,"redISub works only with red numbers"),this.red.isub(this,ht)},st.prototype.redShl=function(ht){return nt(this.red,"redShl works only with red numbers"),this.red.shl(this,ht)},st.prototype.redMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.mul(this,ht)},st.prototype.redIMul=function(ht){return nt(this.red,"redMul works only with red numbers"),this.red._verify2(this,ht),this.red.imul(this,ht)},st.prototype.redSqr=function(){return nt(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},st.prototype.redISqr=function(){return nt(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},st.prototype.redSqrt=function(){return nt(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},st.prototype.redInvm=function(){return nt(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},st.prototype.redNeg=function(){return nt(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},st.prototype.redPow=function(ht){return nt(this.red&&!ht.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,ht)};var Ot={k256:null,p224:null,p192:null,p25519:null};function Lt(Mt,ht){this.name=Mt,this.p=new st(ht,16),this.n=this.p.bitLength(),this.k=new st(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}Lt.prototype._tmp=function(){var ht=new st(null);return ht.words=new Array(Math.ceil(this.n/13)),ht},Lt.prototype.ireduce=function(ht){var Et=ht,Tt;do this.split(Et,this.tmp),Et=this.imulK(Et),Et=Et.iadd(this.tmp),Tt=Et.bitLength();while(Tt>this.n);var Rt=Tt0?Et.isub(this.p):Et.strip!==void 0?Et.strip():Et._strip(),Et},Lt.prototype.split=function(ht,Et){ht.iushrn(this.n,0,Et)},Lt.prototype.imulK=function(ht){return ht.imul(this.k)};function zt(){Lt.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}it(zt,Lt),zt.prototype.split=function(ht,Et){for(var Tt=4194303,Rt=Math.min(ht.length,9),At=0;At>>22,Pt=It}Pt>>>=22,ht.words[At-10]=Pt,Pt===0&&ht.length>10?ht.length-=10:ht.length-=9},zt.prototype.imulK=function(ht){ht.words[ht.length]=0,ht.words[ht.length+1]=0,ht.length+=2;for(var Et=0,Tt=0;Tt>>=26,ht.words[Tt]=At,Et=Rt}return Et!==0&&(ht.words[ht.length++]=Et),ht},st._prime=function(ht){if(Ot[ht])return Ot[ht];var Et;if(ht==="k256")Et=new zt;else if(ht==="p224")Et=new Vt;else if(ht==="p192")Et=new Wt;else if(ht==="p25519")Et=new lr;else throw new Error("Unknown prime "+ht);return Ot[ht]=Et,Et};function qt(Mt){if(typeof Mt=="string"){var ht=st._prime(Mt);this.m=ht.p,this.prime=ht}else nt(Mt.gtn(1),"modulus must be greater than 1"),this.m=Mt,this.prime=null}qt.prototype._verify1=function(ht){nt(ht.negative===0,"red works only with positives"),nt(ht.red,"red works only with red numbers")},qt.prototype._verify2=function(ht,Et){nt((ht.negative|Et.negative)===0,"red works only with positives"),nt(ht.red&&ht.red===Et.red,"red works only with red numbers")},qt.prototype.imod=function(ht){return this.prime?this.prime.ireduce(ht)._forceRed(this):(dt(ht,ht.umod(this.m)._forceRed(this)),ht)},qt.prototype.neg=function(ht){return ht.isZero()?ht.clone():this.m.sub(ht)._forceRed(this)},qt.prototype.add=function(ht,Et){this._verify2(ht,Et);var Tt=ht.add(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt._forceRed(this)},qt.prototype.iadd=function(ht,Et){this._verify2(ht,Et);var Tt=ht.iadd(Et);return Tt.cmp(this.m)>=0&&Tt.isub(this.m),Tt},qt.prototype.sub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.sub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt._forceRed(this)},qt.prototype.isub=function(ht,Et){this._verify2(ht,Et);var Tt=ht.isub(Et);return Tt.cmpn(0)<0&&Tt.iadd(this.m),Tt},qt.prototype.shl=function(ht,Et){return this._verify1(ht),this.imod(ht.ushln(Et))},qt.prototype.imul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.imul(Et))},qt.prototype.mul=function(ht,Et){return this._verify2(ht,Et),this.imod(ht.mul(Et))},qt.prototype.isqr=function(ht){return this.imul(ht,ht.clone())},qt.prototype.sqr=function(ht){return this.mul(ht,ht)},qt.prototype.sqrt=function(ht){if(ht.isZero())return ht.clone();var Et=this.m.andln(3);if(nt(Et%2===1),Et===3){var Tt=this.m.add(new st(1)).iushrn(2);return this.pow(ht,Tt)}for(var Rt=this.m.subn(1),At=0;!Rt.isZero()&&Rt.andln(1)===0;)At++,Rt.iushrn(1);nt(!Rt.isZero());var Pt=new st(1).toRed(this),It=Pt.redNeg(),Ct=this.m.subn(1).iushrn(1),xt=this.m.bitLength();for(xt=new st(2*xt*xt).toRed(this);this.pow(xt,Ct).cmp(It)!==0;)xt.redIAdd(It);for(var Dt=this.pow(xt,Rt),tr=this.pow(ht,Rt.addn(1).iushrn(1)),pr=this.pow(ht,Rt),Kt=At;pr.cmp(Pt)!==0;){for(var Qt=pr,Zt=0;Qt.cmp(Pt)!==0;Zt++)Qt=Qt.redSqr();nt(Zt=0;At--){for(var Dt=Et.words[At],tr=xt-1;tr>=0;tr--){var pr=Dt>>tr&1;if(Pt!==Rt[0]&&(Pt=this.sqr(Pt)),pr===0&&It===0){Ct=0;continue}It<<=1,It|=pr,Ct++,!(Ct!==Tt&&(At!==0||tr!==0))&&(Pt=this.mul(Pt,Rt[It]),Ct=0,It=0)}xt=26}return Pt},qt.prototype.convertTo=function(ht){var Et=ht.umod(this.m);return Et===ht?Et.clone():Et},qt.prototype.convertFrom=function(ht){var Et=ht.clone();return Et.red=null,Et},st.mont=function(ht){return new Ft(ht)};function Ft(Mt){qt.call(this,Mt),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new st(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}it(Ft,qt),Ft.prototype.convertTo=function(ht){return this.imod(ht.ushln(this.shift))},Ft.prototype.convertFrom=function(ht){var Et=this.imod(ht.mul(this.rinv));return Et.red=null,Et},Ft.prototype.imul=function(ht,Et){if(ht.isZero()||Et.isZero())return ht.words[0]=0,ht.length=1,ht;var Tt=ht.imul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ft.prototype.mul=function(ht,Et){if(ht.isZero()||Et.isZero())return new st(0)._forceRed(this);var Tt=ht.mul(Et),Rt=Tt.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),At=Tt.isub(Rt).iushrn(this.shift),Pt=At;return At.cmp(this.m)>=0?Pt=At.isub(this.m):At.cmpn(0)<0&&(Pt=At.iadd(this.m)),Pt._forceRed(this)},Ft.prototype.invm=function(ht){var Et=this.imod(ht._invmp(this.m).mul(this.r2));return Et._forceRed(this)}})(et,commonjsGlobal)})(bn);var bnExports=bn.exports,asn1$3={},asn1$2={},api={},encoders={},buffer$1=buffer$2,Buffer$d=buffer$1.Buffer,safer={},key;for(key in buffer$1)buffer$1.hasOwnProperty(key)&&(key==="SlowBuffer"||key==="Buffer"||(safer[key]=buffer$1[key]));var Safer=safer.Buffer={};for(key in Buffer$d)Buffer$d.hasOwnProperty(key)&&(key==="allocUnsafe"||key==="allocUnsafeSlow"||(Safer[key]=Buffer$d[key]));safer.Buffer.prototype=Buffer$d.prototype;(!Safer.from||Safer.from===Uint8Array.from)&&(Safer.from=function(et,tt,rt){if(typeof et=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof et);if(et&&typeof et.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof et);return Buffer$d(et,tt,rt)});Safer.alloc||(Safer.alloc=function(et,tt,rt){if(typeof et!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof et);if(et<0||et>=2*(1<<30))throw new RangeError('The value "'+et+'" is invalid for option "size"');var nt=Buffer$d(et);return!tt||tt.length===0?nt.fill(0):typeof rt=="string"?nt.fill(tt,rt):nt.fill(tt),nt});if(!safer.kStringMaxLength)try{safer.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch{}safer.constants||(safer.constants={MAX_LENGTH:safer.kMaxLength},safer.kStringMaxLength&&(safer.constants.MAX_STRING_LENGTH=safer.kStringMaxLength));var safer_1=safer,reporter={};const inherits$5=inherits_browserExports;function Reporter$2(et){this._reporterState={obj:null,path:[],options:et||{},errors:[]}}reporter.Reporter=Reporter$2;Reporter$2.prototype.isError=function(tt){return tt instanceof ReporterError};Reporter$2.prototype.save=function(){const tt=this._reporterState;return{obj:tt.obj,pathLen:tt.path.length}};Reporter$2.prototype.restore=function(tt){const rt=this._reporterState;rt.obj=tt.obj,rt.path=rt.path.slice(0,tt.pathLen)};Reporter$2.prototype.enterKey=function(tt){return this._reporterState.path.push(tt)};Reporter$2.prototype.exitKey=function(tt){const rt=this._reporterState;rt.path=rt.path.slice(0,tt-1)};Reporter$2.prototype.leaveKey=function(tt,rt,nt){const it=this._reporterState;this.exitKey(tt),it.obj!==null&&(it.obj[rt]=nt)};Reporter$2.prototype.path=function(){return this._reporterState.path.join("/")};Reporter$2.prototype.enterObject=function(){const tt=this._reporterState,rt=tt.obj;return tt.obj={},rt};Reporter$2.prototype.leaveObject=function(tt){const rt=this._reporterState,nt=rt.obj;return rt.obj=tt,nt};Reporter$2.prototype.error=function(tt){let rt;const nt=this._reporterState,it=tt instanceof ReporterError;if(it?rt=tt:rt=new ReporterError(nt.path.map(function(st){return"["+JSON.stringify(st)+"]"}).join(""),tt.message||tt,tt.stack),!nt.options.partial)throw rt;return it||nt.errors.push(rt),rt};Reporter$2.prototype.wrapResult=function(tt){const rt=this._reporterState;return rt.options.partial?{result:this.isError(tt)?null:tt,errors:rt.errors}:tt};function ReporterError(et,tt){this.path=et,this.rethrow(tt)}inherits$5(ReporterError,Error);ReporterError.prototype.rethrow=function(tt){if(this.message=tt+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,ReporterError),!this.stack)try{throw new Error(this.message)}catch(rt){this.stack=rt.stack}return this};var buffer={};const inherits$4=inherits_browserExports,Reporter$1=reporter.Reporter,Buffer$c=safer_1.Buffer;function DecoderBuffer$2(et,tt){if(Reporter$1.call(this,tt),!Buffer$c.isBuffer(et)){this.error("Input not Buffer");return}this.base=et,this.offset=0,this.length=et.length}inherits$4(DecoderBuffer$2,Reporter$1);buffer.DecoderBuffer=DecoderBuffer$2;DecoderBuffer$2.isDecoderBuffer=function(tt){return tt instanceof DecoderBuffer$2?!0:typeof tt=="object"&&Buffer$c.isBuffer(tt.base)&&tt.constructor.name==="DecoderBuffer"&&typeof tt.offset=="number"&&typeof tt.length=="number"&&typeof tt.save=="function"&&typeof tt.restore=="function"&&typeof tt.isEmpty=="function"&&typeof tt.readUInt8=="function"&&typeof tt.skip=="function"&&typeof tt.raw=="function"};DecoderBuffer$2.prototype.save=function(){return{offset:this.offset,reporter:Reporter$1.prototype.save.call(this)}};DecoderBuffer$2.prototype.restore=function(tt){const rt=new DecoderBuffer$2(this.base);return rt.offset=tt.offset,rt.length=this.offset,this.offset=tt.offset,Reporter$1.prototype.restore.call(this,tt.reporter),rt};DecoderBuffer$2.prototype.isEmpty=function(){return this.offset===this.length};DecoderBuffer$2.prototype.readUInt8=function(tt){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(tt||"DecoderBuffer overrun")};DecoderBuffer$2.prototype.skip=function(tt,rt){if(!(this.offset+tt<=this.length))return this.error(rt||"DecoderBuffer overrun");const nt=new DecoderBuffer$2(this.base);return nt._reporterState=this._reporterState,nt.offset=this.offset,nt.length=this.offset+tt,this.offset+=tt,nt};DecoderBuffer$2.prototype.raw=function(tt){return this.base.slice(tt?tt.offset:this.offset,this.length)};function EncoderBuffer$1(et,tt){if(Array.isArray(et))this.length=0,this.value=et.map(function(rt){return EncoderBuffer$1.isEncoderBuffer(rt)||(rt=new EncoderBuffer$1(rt,tt)),this.length+=rt.length,rt},this);else if(typeof et=="number"){if(!(0<=et&&et<=255))return tt.error("non-byte EncoderBuffer value");this.value=et,this.length=1}else if(typeof et=="string")this.value=et,this.length=Buffer$c.byteLength(et);else if(Buffer$c.isBuffer(et))this.value=et,this.length=et.length;else return tt.error("Unsupported type: "+typeof et)}buffer.EncoderBuffer=EncoderBuffer$1;EncoderBuffer$1.isEncoderBuffer=function(tt){return tt instanceof EncoderBuffer$1?!0:typeof tt=="object"&&tt.constructor.name==="EncoderBuffer"&&typeof tt.length=="number"&&typeof tt.join=="function"};EncoderBuffer$1.prototype.join=function(tt,rt){return tt||(tt=Buffer$c.alloc(this.length)),rt||(rt=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(nt){nt.join(tt,rt),rt+=nt.length}):(typeof this.value=="number"?tt[rt]=this.value:typeof this.value=="string"?tt.write(this.value,rt):Buffer$c.isBuffer(this.value)&&this.value.copy(tt,rt),rt+=this.length)),tt};const Reporter=reporter.Reporter,EncoderBuffer=buffer.EncoderBuffer,DecoderBuffer$1=buffer.DecoderBuffer,assert$4=minimalisticAssert,tags$1=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],methods=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(tags$1),overrided=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function Node$2(et,tt,rt){const nt={};this._baseState=nt,nt.name=rt,nt.enc=et,nt.parent=tt||null,nt.children=null,nt.tag=null,nt.args=null,nt.reverseArgs=null,nt.choice=null,nt.optional=!1,nt.any=!1,nt.obj=!1,nt.use=null,nt.useDecoder=null,nt.key=null,nt.default=null,nt.explicit=null,nt.implicit=null,nt.contains=null,nt.parent||(nt.children=[],this._wrap())}var node$1=Node$2;const stateProps=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];Node$2.prototype.clone=function(){const tt=this._baseState,rt={};stateProps.forEach(function(it){rt[it]=tt[it]});const nt=new this.constructor(rt.parent);return nt._baseState=rt,nt};Node$2.prototype._wrap=function(){const tt=this._baseState;methods.forEach(function(rt){this[rt]=function(){const it=new this.constructor(this);return tt.children.push(it),it[rt].apply(it,arguments)}},this)};Node$2.prototype._init=function(tt){const rt=this._baseState;assert$4(rt.parent===null),tt.call(this),rt.children=rt.children.filter(function(nt){return nt._baseState.parent===this},this),assert$4.equal(rt.children.length,1,"Root node can have only one child")};Node$2.prototype._useArgs=function(tt){const rt=this._baseState,nt=tt.filter(function(it){return it instanceof this.constructor},this);tt=tt.filter(function(it){return!(it instanceof this.constructor)},this),nt.length!==0&&(assert$4(rt.children===null),rt.children=nt,nt.forEach(function(it){it._baseState.parent=this},this)),tt.length!==0&&(assert$4(rt.args===null),rt.args=tt,rt.reverseArgs=tt.map(function(it){if(typeof it!="object"||it.constructor!==Object)return it;const st={};return Object.keys(it).forEach(function(at){at==(at|0)&&(at|=0);const ot=it[at];st[ot]=at}),st}))};overrided.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState;throw new Error(et+" not implemented for encoding: "+rt.enc)}});tags$1.forEach(function(et){Node$2.prototype[et]=function(){const rt=this._baseState,nt=Array.prototype.slice.call(arguments);return assert$4(rt.tag===null),rt.tag=et,this._useArgs(nt),this}});Node$2.prototype.use=function(tt){assert$4(tt);const rt=this._baseState;return assert$4(rt.use===null),rt.use=tt,this};Node$2.prototype.optional=function(){const tt=this._baseState;return tt.optional=!0,this};Node$2.prototype.def=function(tt){const rt=this._baseState;return assert$4(rt.default===null),rt.default=tt,rt.optional=!0,this};Node$2.prototype.explicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.explicit=tt,this};Node$2.prototype.implicit=function(tt){const rt=this._baseState;return assert$4(rt.explicit===null&&rt.implicit===null),rt.implicit=tt,this};Node$2.prototype.obj=function(){const tt=this._baseState,rt=Array.prototype.slice.call(arguments);return tt.obj=!0,rt.length!==0&&this._useArgs(rt),this};Node$2.prototype.key=function(tt){const rt=this._baseState;return assert$4(rt.key===null),rt.key=tt,this};Node$2.prototype.any=function(){const tt=this._baseState;return tt.any=!0,this};Node$2.prototype.choice=function(tt){const rt=this._baseState;return assert$4(rt.choice===null),rt.choice=tt,this._useArgs(Object.keys(tt).map(function(nt){return tt[nt]})),this};Node$2.prototype.contains=function(tt){const rt=this._baseState;return assert$4(rt.use===null),rt.contains=tt,this};Node$2.prototype._decode=function(tt,rt){const nt=this._baseState;if(nt.parent===null)return tt.wrapResult(nt.children[0]._decode(tt,rt));let it=nt.default,st=!0,at=null;if(nt.key!==null&&(at=tt.enterKey(nt.key)),nt.optional){let lt=null;if(nt.explicit!==null?lt=nt.explicit:nt.implicit!==null?lt=nt.implicit:nt.tag!==null&&(lt=nt.tag),lt===null&&!nt.any){const ut=tt.save();try{nt.choice===null?this._decodeGeneric(nt.tag,tt,rt):this._decodeChoice(tt,rt),st=!0}catch{st=!1}tt.restore(ut)}else if(st=this._peekTag(tt,lt,nt.any),tt.isError(st))return st}let ot;if(nt.obj&&st&&(ot=tt.enterObject()),st){if(nt.explicit!==null){const ut=this._decodeTag(tt,nt.explicit);if(tt.isError(ut))return ut;tt=ut}const lt=tt.offset;if(nt.use===null&&nt.choice===null){let ut;nt.any&&(ut=tt.save());const dt=this._decodeTag(tt,nt.implicit!==null?nt.implicit:nt.tag,nt.any);if(tt.isError(dt))return dt;nt.any?it=tt.raw(ut):tt=dt}if(rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),lt,tt.length,"tagged"),rt&&rt.track&&nt.tag!==null&&rt.track(tt.path(),tt.offset,tt.length,"content"),nt.any||(nt.choice===null?it=this._decodeGeneric(nt.tag,tt,rt):it=this._decodeChoice(tt,rt)),tt.isError(it))return it;if(!nt.any&&nt.choice===null&&nt.children!==null&&nt.children.forEach(function(dt){dt._decode(tt,rt)}),nt.contains&&(nt.tag==="octstr"||nt.tag==="bitstr")){const ut=new DecoderBuffer$1(it);it=this._getUse(nt.contains,tt._reporterState.obj)._decode(ut,rt)}}return nt.obj&&st&&(it=tt.leaveObject(ot)),nt.key!==null&&(it!==null||st===!0)?tt.leaveKey(at,nt.key,it):at!==null&&tt.exitKey(at),it};Node$2.prototype._decodeGeneric=function(tt,rt,nt){const it=this._baseState;return tt==="seq"||tt==="set"?null:tt==="seqof"||tt==="setof"?this._decodeList(rt,tt,it.args[0],nt):/str$/.test(tt)?this._decodeStr(rt,tt,nt):tt==="objid"&&it.args?this._decodeObjid(rt,it.args[0],it.args[1],nt):tt==="objid"?this._decodeObjid(rt,null,null,nt):tt==="gentime"||tt==="utctime"?this._decodeTime(rt,tt,nt):tt==="null_"?this._decodeNull(rt,nt):tt==="bool"?this._decodeBool(rt,nt):tt==="objDesc"?this._decodeStr(rt,tt,nt):tt==="int"||tt==="enum"?this._decodeInt(rt,it.args&&it.args[0],nt):it.use!==null?this._getUse(it.use,rt._reporterState.obj)._decode(rt,nt):rt.error("unknown tag: "+tt)};Node$2.prototype._getUse=function(tt,rt){const nt=this._baseState;return nt.useDecoder=this._use(tt,rt),assert$4(nt.useDecoder._baseState.parent===null),nt.useDecoder=nt.useDecoder._baseState.children[0],nt.implicit!==nt.useDecoder._baseState.implicit&&(nt.useDecoder=nt.useDecoder.clone(),nt.useDecoder._baseState.implicit=nt.implicit),nt.useDecoder};Node$2.prototype._decodeChoice=function(tt,rt){const nt=this._baseState;let it=null,st=!1;return Object.keys(nt.choice).some(function(at){const ot=tt.save(),lt=nt.choice[at];try{const ut=lt._decode(tt,rt);if(tt.isError(ut))return!1;it={type:at,value:ut},st=!0}catch{return tt.restore(ot),!1}return!0},this),st?it:tt.error("Choice not matched")};Node$2.prototype._createEncoderBuffer=function(tt){return new EncoderBuffer(tt,this.reporter)};Node$2.prototype._encode=function(tt,rt,nt){const it=this._baseState;if(it.default!==null&&it.default===tt)return;const st=this._encodeValue(tt,rt,nt);if(st!==void 0&&!this._skipDefault(st,rt,nt))return st};Node$2.prototype._encodeValue=function(tt,rt,nt){const it=this._baseState;if(it.parent===null)return it.children[0]._encode(tt,rt||new Reporter);let st=null;if(this.reporter=rt,it.optional&&tt===void 0)if(it.default!==null)tt=it.default;else return;let at=null,ot=!1;if(it.any)st=this._createEncoderBuffer(tt);else if(it.choice)st=this._encodeChoice(tt,rt);else if(it.contains)at=this._getUse(it.contains,nt)._encode(tt,rt),ot=!0;else if(it.children)at=it.children.map(function(lt){if(lt._baseState.tag==="null_")return lt._encode(null,rt,tt);if(lt._baseState.key===null)return rt.error("Child should have a key");const ut=rt.enterKey(lt._baseState.key);if(typeof tt!="object")return rt.error("Child expected, but input is not object");const dt=lt._encode(tt[lt._baseState.key],rt,tt);return rt.leaveKey(ut),dt},this).filter(function(lt){return lt}),at=this._createEncoderBuffer(at);else if(it.tag==="seqof"||it.tag==="setof"){if(!(it.args&&it.args.length===1))return rt.error("Too many args for : "+it.tag);if(!Array.isArray(tt))return rt.error("seqof/setof, but data is not Array");const lt=this.clone();lt._baseState.implicit=null,at=this._createEncoderBuffer(tt.map(function(ut){const dt=this._baseState;return this._getUse(dt.args[0],tt)._encode(ut,rt)},lt))}else it.use!==null?st=this._getUse(it.use,nt)._encode(tt,rt):(at=this._encodePrimitive(it.tag,tt),ot=!0);if(!it.any&&it.choice===null){const lt=it.implicit!==null?it.implicit:it.tag,ut=it.implicit===null?"universal":"context";lt===null?it.use===null&&rt.error("Tag could be omitted only for .use()"):it.use===null&&(st=this._encodeComposite(lt,ot,ut,at))}return it.explicit!==null&&(st=this._encodeComposite(it.explicit,!1,"context",st)),st};Node$2.prototype._encodeChoice=function(tt,rt){const nt=this._baseState,it=nt.choice[tt.type];return it||assert$4(!1,tt.type+" not found in "+JSON.stringify(Object.keys(nt.choice))),it._encode(tt.value,rt)};Node$2.prototype._encodePrimitive=function(tt,rt){const nt=this._baseState;if(/str$/.test(tt))return this._encodeStr(rt,tt);if(tt==="objid"&&nt.args)return this._encodeObjid(rt,nt.reverseArgs[0],nt.args[1]);if(tt==="objid")return this._encodeObjid(rt,null,null);if(tt==="gentime"||tt==="utctime")return this._encodeTime(rt,tt);if(tt==="null_")return this._encodeNull();if(tt==="int"||tt==="enum")return this._encodeInt(rt,nt.args&&nt.reverseArgs[0]);if(tt==="bool")return this._encodeBool(rt);if(tt==="objDesc")return this._encodeStr(rt,tt);throw new Error("Unsupported tag: "+tt)};Node$2.prototype._isNumstr=function(tt){return/^[0-9 ]*$/.test(tt)};Node$2.prototype._isPrintstr=function(tt){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(tt)};var der$2={};(function(et){function tt(rt){const nt={};return Object.keys(rt).forEach(function(it){(it|0)==it&&(it=it|0);const st=rt[it];nt[st]=it}),nt}et.tagClass={0:"universal",1:"application",2:"context",3:"private"},et.tagClassByName=tt(et.tagClass),et.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},et.tagByName=tt(et.tag)})(der$2);const inherits$3=inherits_browserExports,Buffer$b=safer_1.Buffer,Node$1=node$1,der$1=der$2;function DEREncoder$1(et){this.enc="der",this.name=et.name,this.entity=et,this.tree=new DERNode$1,this.tree._init(et.body)}var der_1$1=DEREncoder$1;DEREncoder$1.prototype.encode=function(tt,rt){return this.tree._encode(tt,rt).join()};function DERNode$1(et){Node$1.call(this,"der",et)}inherits$3(DERNode$1,Node$1);DERNode$1.prototype._encodeComposite=function(tt,rt,nt,it){const st=encodeTag(tt,rt,nt,this.reporter);if(it.length<128){const lt=Buffer$b.alloc(2);return lt[0]=st,lt[1]=it.length,this._createEncoderBuffer([lt,it])}let at=1;for(let lt=it.length;lt>=256;lt>>=8)at++;const ot=Buffer$b.alloc(1+1+at);ot[0]=st,ot[1]=128|at;for(let lt=1+at,ut=it.length;ut>0;lt--,ut>>=8)ot[lt]=ut&255;return this._createEncoderBuffer([ot,it])};DERNode$1.prototype._encodeStr=function(tt,rt){if(rt==="bitstr")return this._createEncoderBuffer([tt.unused|0,tt.data]);if(rt==="bmpstr"){const nt=Buffer$b.alloc(tt.length*2);for(let it=0;it=40)return this.reporter.error("Second objid identifier OOB");tt.splice(0,2,tt[0]*40+tt[1])}let it=0;for(let ot=0;ot=128;lt>>=7)it++}const st=Buffer$b.alloc(it);let at=st.length-1;for(let ot=tt.length-1;ot>=0;ot--){let lt=tt[ot];for(st[at--]=lt&127;(lt>>=7)>0;)st[at--]=128|lt&127}return this._createEncoderBuffer(st)};function two(et){return et<10?"0"+et:et}DERNode$1.prototype._encodeTime=function(tt,rt){let nt;const it=new Date(tt);return rt==="gentime"?nt=[two(it.getUTCFullYear()),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):rt==="utctime"?nt=[two(it.getUTCFullYear()%100),two(it.getUTCMonth()+1),two(it.getUTCDate()),two(it.getUTCHours()),two(it.getUTCMinutes()),two(it.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+rt+" time is not supported yet"),this._encodeStr(nt,"octstr")};DERNode$1.prototype._encodeNull=function(){return this._createEncoderBuffer("")};DERNode$1.prototype._encodeInt=function(tt,rt){if(typeof tt=="string"){if(!rt)return this.reporter.error("String int or enum given, but no values map");if(!rt.hasOwnProperty(tt))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(tt));tt=rt[tt]}if(typeof tt!="number"&&!Buffer$b.isBuffer(tt)){const st=tt.toArray();!tt.sign&&st[0]&128&&st.unshift(0),tt=Buffer$b.from(st)}if(Buffer$b.isBuffer(tt)){let st=tt.length;tt.length===0&&st++;const at=Buffer$b.alloc(st);return tt.copy(at),tt.length===0&&(at[0]=0),this._createEncoderBuffer(at)}if(tt<128)return this._createEncoderBuffer(tt);if(tt<256)return this._createEncoderBuffer([0,tt]);let nt=1;for(let st=tt;st>=256;st>>=8)nt++;const it=new Array(nt);for(let st=it.length-1;st>=0;st--)it[st]=tt&255,tt>>=8;return it[0]&128&&it.unshift(0),this._createEncoderBuffer(Buffer$b.from(it))};DERNode$1.prototype._encodeBool=function(tt){return this._createEncoderBuffer(tt?255:0)};DERNode$1.prototype._use=function(tt,rt){return typeof tt=="function"&&(tt=tt(rt)),tt._getEncoder("der").tree};DERNode$1.prototype._skipDefault=function(tt,rt,nt){const it=this._baseState;let st;if(it.default===null)return!1;const at=tt.join();if(it.defaultBuffer===void 0&&(it.defaultBuffer=this._encodeValue(it.default,rt,nt).join()),at.length!==it.defaultBuffer.length)return!1;for(st=0;st=31?nt.error("Multi-octet tag encoding unsupported"):(tt||(it|=32),it|=der$1.tagClassByName[rt||"universal"]<<6,it)}const inherits$2=inherits_browserExports,DEREncoder=der_1$1;function PEMEncoder(et){DEREncoder.call(this,et),this.enc="pem"}inherits$2(PEMEncoder,DEREncoder);var pem$1=PEMEncoder;PEMEncoder.prototype.encode=function(tt,rt){const it=DEREncoder.prototype.encode.call(this,tt).toString("base64"),st=["-----BEGIN "+rt.label+"-----"];for(let at=0;at>6],it=(rt&32)===0;if((rt&31)===31){let at=rt;for(rt=0;(at&128)===128;){if(at=et.readUInt8(tt),et.isError(at))return at;rt<<=7,rt|=at&127}}else rt&=31;const st=der.tag[rt];return{cls:nt,primitive:it,tag:rt,tagStr:st}}function derDecodeLen(et,tt,rt){let nt=et.readUInt8(rt);if(et.isError(nt))return nt;if(!tt&&nt===128)return null;if(!(nt&128))return nt;const it=nt&127;if(it>4)return et.error("length octect is too long");nt=0;for(let st=0;st0&&St.ishrn(Bt),St}function pt(mt,wt){mt=kt(mt,wt),mt=mt.mod(wt);var St=et.from(mt.toArray());if(St.length=0)throw new Error("invalid sig")}return verify_1=st,verify_1}var browser$4,hasRequiredBrowser$1;function requireBrowser$1(){if(hasRequiredBrowser$1)return browser$4;hasRequiredBrowser$1=1;var et=safeBufferExports.Buffer,tt=browser$a,rt=readableBrowserExports,nt=inherits_browserExports,it=requireSign(),st=requireVerify(),at=require$$6;Object.keys(at).forEach(function(bt){at[bt].id=et.from(at[bt].id,"hex"),at[bt.toLowerCase()]=at[bt]});function ot(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hashType=gt.hash,this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(ot,rt.Writable),ot.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},ot.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},ot.prototype.sign=function(gt,kt){this.end();var pt=this._hash.digest(),yt=it(pt,gt,this._hashType,this._signType,this._tag);return kt?yt.toString(kt):yt};function lt(bt){rt.Writable.call(this);var gt=at[bt];if(!gt)throw new Error("Unknown message digest");this._hash=tt(gt.hash),this._tag=gt.id,this._signType=gt.sign}nt(lt,rt.Writable),lt.prototype._write=function(gt,kt,pt){this._hash.update(gt),pt()},lt.prototype.update=function(gt,kt){return this._hash.update(typeof gt=="string"?et.from(gt,kt):gt),this},lt.prototype.verify=function(gt,kt,pt){var yt=typeof kt=="string"?et.from(kt,pt):kt;this.end();var $t=this._hash.digest();return st(yt,$t,gt,this._signType,this._tag)};function ut(bt){return new ot(bt)}function dt(bt){return new lt(bt)}return browser$4={Sign:ut,Verify:dt,createSign:ut,createVerify:dt},browser$4}var browser$3,hasRequiredBrowser;function requireBrowser(){if(hasRequiredBrowser)return browser$3;hasRequiredBrowser=1;var et=requireElliptic(),tt=bnExports$2;browser$3=function(at){return new nt(at)};var rt={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};rt.p224=rt.secp224r1,rt.p256=rt.secp256r1=rt.prime256v1,rt.p192=rt.secp192r1=rt.prime192v1,rt.p384=rt.secp384r1,rt.p521=rt.secp521r1;function nt(st){this.curveType=rt[st],this.curveType||(this.curveType={name:st}),this.curve=new et.ec(this.curveType.name),this.keys=void 0}nt.prototype.generateKeys=function(st,at){return this.keys=this.curve.genKeyPair(),this.getPublicKey(st,at)},nt.prototype.computeSecret=function(st,at,ot){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var lt=this.curve.keyFromPublic(st).getPublic(),ut=lt.mul(this.keys.getPrivate()).getX();return it(ut,ot,this.curveType.byteLength)},nt.prototype.getPublicKey=function(st,at){var ot=this.keys.getPublic(at==="compressed",!0);return at==="hybrid"&&(ot[ot.length-1]%2?ot[0]=7:ot[0]=6),it(ot,st)},nt.prototype.getPrivateKey=function(st){return it(this.keys.getPrivate(),st)},nt.prototype.setPublicKey=function(st,at){return at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at)),this.keys._importPublic(st),this},nt.prototype.setPrivateKey=function(st,at){at=at||"utf8",Buffer.isBuffer(st)||(st=new Buffer(st,at));var ot=new tt(st);return ot=ot.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(ot),this};function it(st,at,ot){Array.isArray(st)||(st=st.toArray());var lt=new Buffer(st);if(ot&<.length=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return nt?crt$1(at,st):withPublic$1(at,st)};function oaep$1(et,tt){var rt=et.modulus.byteLength(),nt=tt.length,it=createHash$2("sha1").update(Buffer$5.alloc(0)).digest(),st=it.length,at=2*st;if(nt>rt-at-2)throw new Error("message too long");var ot=Buffer$5.alloc(rt-nt-at-2),lt=rt-st-1,ut=randomBytes(st),dt=xor$1(Buffer$5.concat([it,ot,Buffer$5.alloc(1,1),tt],lt),mgf$1(ut,lt)),bt=xor$1(ut,mgf$1(dt,st));return new BN$3(Buffer$5.concat([Buffer$5.alloc(1),bt,dt],rt))}function pkcs1$1(et,tt,rt){var nt=tt.length,it=et.modulus.byteLength();if(nt>it-11)throw new Error("message too long");var st;return rt?st=Buffer$5.alloc(it-nt-3,255):st=nonZero(it-nt-3),new BN$3(Buffer$5.concat([Buffer$5.from([0,rt?1:2]),st,Buffer$5.alloc(1),tt],it))}function nonZero(et){for(var tt=Buffer$5.allocUnsafe(et),rt=0,nt=randomBytes(et*2),it=0,st;rtat||new BN$2(rt).cmp(st.modulus)>=0)throw new Error("decryption error");var ot;nt?ot=withPublic(new BN$2(rt),st):ot=crt(rt,st);var lt=Buffer$4.alloc(at-ot.length);if(ot=Buffer$4.concat([lt,ot],at),it===4)return oaep(st,ot);if(it===1)return pkcs1(st,ot,nt);if(it===3)return ot;throw new Error("unknown padding")};function oaep(et,tt){var rt=et.modulus.byteLength(),nt=createHash$1("sha1").update(Buffer$4.alloc(0)).digest(),it=nt.length;if(tt[0]!==0)throw new Error("decryption error");var st=tt.slice(1,it+1),at=tt.slice(it+1),ot=xor(st,mgf(at,it)),lt=xor(at,mgf(ot,rt-it-1));if(compare$1(nt,lt.slice(0,it)))throw new Error("decryption error");for(var ut=it;lt[ut]===0;)ut++;if(lt[ut++]!==1)throw new Error("decryption error");return lt.slice(ut)}function pkcs1(et,tt,rt){for(var nt=tt.slice(0,2),it=2,st=0;tt[it++]!==0;)if(it>=tt.length){st++;break}var at=tt.slice(2,it-1);if((nt.toString("hex")!=="0002"&&!rt||nt.toString("hex")!=="0001"&&rt)&&st++,at.length<8&&st++,st)throw new Error("decryption error");return tt.slice(it)}function compare$1(et,tt){et=Buffer$4.from(et),tt=Buffer$4.from(tt);var rt=0,nt=et.length;et.length!==tt.length&&(rt++,nt=Math.min(et.length,tt.length));for(var it=-1;++itkMaxUint32||et<0)throw new TypeError("offset must be a uint32");if(et>kBufferMaxLength||et>tt)throw new RangeError("offset out of range")}function assertSize(et,tt,rt){if(typeof et!="number"||et!==et)throw new TypeError("size must be a number");if(et>kMaxUint32||et<0)throw new TypeError("size must be a uint32");if(et+tt>rt||et>kBufferMaxLength)throw new RangeError("buffer too small")}crypto$3&&crypto$3.getRandomValues||!process.browser?(browser$1.randomFill=randomFill,browser$1.randomFillSync=randomFillSync):(browser$1.randomFill=oldBrowser,browser$1.randomFillSync=oldBrowser);function randomFill(et,tt,rt,nt){if(!Buffer$3.isBuffer(et)&&!(et instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof tt=="function")nt=tt,tt=0,rt=et.length;else if(typeof rt=="function")nt=rt,rt=et.length-tt;else if(typeof nt!="function")throw new TypeError('"cb" argument must be a function');return assertOffset(tt,et.length),assertSize(rt,tt,et.length),actualFill(et,tt,rt,nt)}function actualFill(et,tt,rt,nt){if(process.browser){var it=et.buffer,st=new Uint8Array(it,tt,rt);if(crypto$3.getRandomValues(st),nt){process.nextTick(function(){nt(null,et)});return}return et}if(nt){randombytes(rt,function(ot,lt){if(ot)return nt(ot);lt.copy(et,tt),nt(null,et)});return}var at=randombytes(rt);return at.copy(et,tt),et}function randomFillSync(et,tt,rt){if(typeof tt>"u"&&(tt=0),!Buffer$3.isBuffer(et)&&!(et instanceof commonjsGlobal.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return assertOffset(tt,et.length),rt===void 0&&(rt=et.length-tt),assertSize(rt,tt,et.length),actualFill(et,tt,rt)}var hasRequiredCryptoBrowserify;function requireCryptoBrowserify(){if(hasRequiredCryptoBrowserify)return cryptoBrowserify;hasRequiredCryptoBrowserify=1,cryptoBrowserify.randomBytes=cryptoBrowserify.rng=cryptoBrowserify.pseudoRandomBytes=cryptoBrowserify.prng=browserExports,cryptoBrowserify.createHash=cryptoBrowserify.Hash=browser$a,cryptoBrowserify.createHmac=cryptoBrowserify.Hmac=browser$9;var et=algos,tt=Object.keys(et),rt=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(tt);cryptoBrowserify.getHashes=function(){return rt};var nt=browser$8;cryptoBrowserify.pbkdf2=nt.pbkdf2,cryptoBrowserify.pbkdf2Sync=nt.pbkdf2Sync;var it=browser$7;cryptoBrowserify.Cipher=it.Cipher,cryptoBrowserify.createCipher=it.createCipher,cryptoBrowserify.Cipheriv=it.Cipheriv,cryptoBrowserify.createCipheriv=it.createCipheriv,cryptoBrowserify.Decipher=it.Decipher,cryptoBrowserify.createDecipher=it.createDecipher,cryptoBrowserify.Decipheriv=it.Decipheriv,cryptoBrowserify.createDecipheriv=it.createDecipheriv,cryptoBrowserify.getCiphers=it.getCiphers,cryptoBrowserify.listCiphers=it.listCiphers;var st=requireBrowser$2();cryptoBrowserify.DiffieHellmanGroup=st.DiffieHellmanGroup,cryptoBrowserify.createDiffieHellmanGroup=st.createDiffieHellmanGroup,cryptoBrowserify.getDiffieHellman=st.getDiffieHellman,cryptoBrowserify.createDiffieHellman=st.createDiffieHellman,cryptoBrowserify.DiffieHellman=st.DiffieHellman;var at=requireBrowser$1();cryptoBrowserify.createSign=at.createSign,cryptoBrowserify.Sign=at.Sign,cryptoBrowserify.createVerify=at.createVerify,cryptoBrowserify.Verify=at.Verify,cryptoBrowserify.createECDH=requireBrowser();var ot=browser$2;cryptoBrowserify.publicEncrypt=ot.publicEncrypt,cryptoBrowserify.privateEncrypt=ot.privateEncrypt,cryptoBrowserify.publicDecrypt=ot.publicDecrypt,cryptoBrowserify.privateDecrypt=ot.privateDecrypt;var lt=browser$1;return cryptoBrowserify.randomFill=lt.randomFill,cryptoBrowserify.randomFillSync=lt.randomFillSync,cryptoBrowserify.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var rngBrowser={exports:{}},getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var tt=0,rt;tt<16;tt++)tt&3||(rt=Math.random()*4294967296),rnds[tt]=rt>>>((tt&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex=[];for(var i$2=0;i$2<256;++i$2)byteToHex[i$2]=(i$2+256).toString(16).substr(1);function bytesToUuid$1(et,tt){var rt=tt||0,nt=byteToHex;return[nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]]].join("")}var bytesToUuid_1=bytesToUuid$1,rng=rngBrowserExports,bytesToUuid=bytesToUuid_1;function v4(et,tt,rt){var nt=tt&&rt||0;typeof et=="string"&&(tt=et==="binary"?new Array(16):null,et=null),et=et||{};var it=et.random||(et.rng||rng)();if(it[6]=it[6]&15|64,it[8]=it[8]&63|128,tt)for(var st=0;st<16;++st)tt[nt+st]=it[st];return tt||bytesToUuid(it)}var v4_1=v4,macaroon$1={},sjcl={exports:{}};(function(et){var tt={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(pt){this.toString=function(){return"CORRUPT: "+this.message},this.message=pt},invalid:function(pt){this.toString=function(){return"INVALID: "+this.message},this.message=pt},bug:function(pt){this.toString=function(){return"BUG: "+this.message},this.message=pt},notReady:function(pt){this.toString=function(){return"NOT READY: "+this.message},this.message=pt}}};tt.cipher.aes=function(pt){this.s[0][0][0]||this.O();var yt,$t,mt,wt,St=this.s[0][4],Bt=this.s[1];yt=pt.length;var Ft=1;if(yt!==4&&yt!==6&&yt!==8)throw new tt.exception.invalid("invalid aes key size");for(this.b=[mt=pt.slice(0),wt=[]],pt=yt;pt<4*yt+28;pt++)$t=mt[pt-1],(pt%yt===0||yt===8&&pt%yt===4)&&($t=St[$t>>>24]<<24^St[$t>>16&255]<<16^St[$t>>8&255]<<8^St[$t&255],pt%yt===0&&($t=$t<<8^$t>>>24^Ft<<24,Ft=Ft<<1^283*(Ft>>7))),mt[pt]=mt[pt-yt]^$t;for(yt=0;pt;yt++,pt--)$t=mt[yt&3?pt:pt-4],wt[yt]=4>=pt||4>yt?$t:Bt[0][St[$t>>>24]]^Bt[1][St[$t>>16&255]]^Bt[2][St[$t>>8&255]]^Bt[3][St[$t&255]]},tt.cipher.aes.prototype={encrypt:function(pt){return rt(this,pt,0)},decrypt:function(pt){return rt(this,pt,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var pt=this.s[0],yt=this.s[1],$t=pt[4],mt=yt[4],wt,St,Bt,Ft=[],Lt=[],zt,Ht,Wt,lr;for(wt=0;256>wt;wt++)Lt[(Ft[wt]=wt<<1^283*(wt>>7))^wt]=wt;for(St=Bt=0;!$t[St];St^=zt||1,Bt=Lt[Bt]||1)for(Wt=Bt^Bt<<1^Bt<<2^Bt<<3^Bt<<4,Wt=Wt>>8^Wt&255^99,$t[St]=Wt,mt[Wt]=St,Ht=Ft[wt=Ft[zt=Ft[St]]],lr=16843009*Ht^65537*wt^257*zt^16843008*St,Ht=257*Ft[Wt]^16843008*Wt,wt=0;4>wt;wt++)pt[wt][St]=Ht=Ht<<24^Ht>>>8,yt[wt][Wt]=lr=lr<<24^lr>>>8;for(wt=0;5>wt;wt++)pt[wt]=pt[wt].slice(0),yt[wt]=yt[wt].slice(0)}};function rt(pt,yt,$t){if(yt.length!==4)throw new tt.exception.invalid("invalid aes block size");var mt=pt.b[$t],wt=yt[0]^mt[0],St=yt[$t?3:1]^mt[1],Bt=yt[2]^mt[2];yt=yt[$t?1:3]^mt[3];var Ft,Lt,zt,Ht=mt.length/4-2,Wt,lr=4,qt=[0,0,0,0];Ft=pt.s[$t],pt=Ft[0];var Ot=Ft[1],Mt=Ft[2],ht=Ft[3],Et=Ft[4];for(Wt=0;Wt>>24]^Ot[St>>16&255]^Mt[Bt>>8&255]^ht[yt&255]^mt[lr],Lt=pt[St>>>24]^Ot[Bt>>16&255]^Mt[yt>>8&255]^ht[wt&255]^mt[lr+1],zt=pt[Bt>>>24]^Ot[yt>>16&255]^Mt[wt>>8&255]^ht[St&255]^mt[lr+2],yt=pt[yt>>>24]^Ot[wt>>16&255]^Mt[St>>8&255]^ht[Bt&255]^mt[lr+3],lr+=4,wt=Ft,St=Lt,Bt=zt;for(Wt=0;4>Wt;Wt++)qt[$t?3&-Wt:Wt]=Et[wt>>>24]<<24^Et[St>>16&255]<<16^Et[Bt>>8&255]<<8^Et[yt&255]^mt[lr++],Ft=wt,wt=St,St=Bt,Bt=yt,yt=Ft;return qt}tt.bitArray={bitSlice:function(pt,yt,$t){return pt=tt.bitArray.$(pt.slice(yt/32),32-(yt&31)).slice(1),$t===void 0?pt:tt.bitArray.clamp(pt,$t-yt)},extract:function(pt,yt,$t){var mt=Math.floor(-yt-$t&31);return((yt+$t-1^yt)&-32?pt[yt/32|0]<<32-mt^pt[yt/32+1|0]>>>mt:pt[yt/32|0]>>>mt)&(1<<$t)-1},concat:function(pt,yt){if(pt.length===0||yt.length===0)return pt.concat(yt);var $t=pt[pt.length-1],mt=tt.bitArray.getPartial($t);return mt===32?pt.concat(yt):tt.bitArray.$(yt,mt,$t|0,pt.slice(0,pt.length-1))},bitLength:function(pt){var yt=pt.length;return yt===0?0:32*(yt-1)+tt.bitArray.getPartial(pt[yt-1])},clamp:function(pt,yt){if(32*pt.length>yt-1,1)),pt},partial:function(pt,yt,$t){return pt===32?yt:($t?yt|0:yt<<32-pt)+1099511627776*pt},getPartial:function(pt){return Math.round(pt/1099511627776)||32},equal:function(pt,yt){if(tt.bitArray.bitLength(pt)!==tt.bitArray.bitLength(yt))return!1;var $t=0,mt;for(mt=0;mt>>yt),$t=pt[wt]<<32-yt;return wt=pt.length?pt[pt.length-1]:0,pt=tt.bitArray.getPartial(wt),mt.push(tt.bitArray.partial(yt+pt&31,32>>24|$t>>>8&65280|($t&65280)<<8|$t<<24;return pt}},tt.codec.utf8String={fromBits:function(pt){var yt="",$t=tt.bitArray.bitLength(pt),mt,wt;for(mt=0;mt<$t/8;mt++)!(mt&3)&&(wt=pt[mt/4]),yt+=String.fromCharCode(wt>>>8>>>8>>>8),wt<<=8;return decodeURIComponent(escape(yt))},toBits:function(pt){pt=unescape(encodeURIComponent(pt));var yt=[],$t,mt=0;for($t=0;$t>>Bt)>>>wt),BtHt){if(!yt)try{return tt.codec.base32hex.toBits(pt)}catch{}throw new tt.exception.invalid("this isn't "+Wt+"!")}Ft>wt?(Ft-=wt,St.push(zt^Ht>>>Ft),zt=Ht<<$t-Ft):(Ft+=mt,zt^=Ht<<$t-Ft)}return Ft&56&&St.push(tt.bitArray.partial(Ft&56,zt,1)),St}},tt.codec.base32hex={fromBits:function(pt,yt){return tt.codec.base32.fromBits(pt,yt,1)},toBits:function(pt){return tt.codec.base32.toBits(pt,1)}},tt.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(pt,yt,$t){var mt="",wt=0,St=tt.codec.base64.B,Bt=0,Ft=tt.bitArray.bitLength(pt);for($t&&(St=St.substr(0,62)+"-_"),$t=0;6*mt.length>>wt)>>>26),6>wt?(Bt=pt[$t]<<6-wt,wt+=26,$t++):(Bt<<=6,wt-=6);for(;mt.length&3&&!yt;)mt+="=";return mt},toBits:function(pt,yt){pt=pt.replace(/\s|=/g,"");var $t=[],mt,wt=0,St=tt.codec.base64.B,Bt=0,Ft;for(yt&&(St=St.substr(0,62)+"-_"),mt=0;mtFt)throw new tt.exception.invalid("this isn't base64!");26>>wt),Bt=Ft<<32-wt):(wt+=6,Bt^=Ft<<32-wt)}return wt&56&&$t.push(tt.bitArray.partial(wt&56,Bt,1)),$t}},tt.codec.base64url={fromBits:function(pt){return tt.codec.base64.fromBits(pt,1,1)},toBits:function(pt){return tt.codec.base64.toBits(pt,1)}},tt.hash.sha256=function(pt){this.b[0]||this.O(),pt?(this.F=pt.F.slice(0),this.A=pt.A.slice(0),this.l=pt.l):this.reset()},tt.hash.sha256.hash=function(pt){return new tt.hash.sha256().update(pt).finalize()},tt.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(pt){typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt));var yt,$t=this.A=tt.bitArray.concat(this.A,pt);if(yt=this.l,pt=this.l=yt+tt.bitArray.bitLength(pt),9007199254740991yt;$t++){for(wt=!0,mt=2;mt*mt<=$t;mt++)if($t%mt===0){wt=!1;break}wt&&(8>yt&&(this.Y[yt]=pt(Math.pow($t,.5))),this.b[yt]=pt(Math.pow($t,1/3)),yt++)}}};function nt(pt,yt){var $t,mt,wt,St=pt.F,Bt=pt.b,Ft=St[0],Lt=St[1],zt=St[2],Ht=St[3],Wt=St[4],lr=St[5],qt=St[6],Ot=St[7];for($t=0;64>$t;$t++)16>$t?mt=yt[$t]:(mt=yt[$t+1&15],wt=yt[$t+14&15],mt=yt[$t&15]=(mt>>>7^mt>>>18^mt>>>3^mt<<25^mt<<14)+(wt>>>17^wt>>>19^wt>>>10^wt<<15^wt<<13)+yt[$t&15]+yt[$t+9&15]|0),mt=mt+Ot+(Wt>>>6^Wt>>>11^Wt>>>25^Wt<<26^Wt<<21^Wt<<7)+(qt^Wt&(lr^qt))+Bt[$t],Ot=qt,qt=lr,lr=Wt,Wt=Ht+mt|0,Ht=zt,zt=Lt,Lt=Ft,Ft=mt+(Lt&zt^Ht&(Lt^zt))+(Lt>>>2^Lt>>>13^Lt>>>22^Lt<<30^Lt<<19^Lt<<10)|0;St[0]=St[0]+Ft|0,St[1]=St[1]+Lt|0,St[2]=St[2]+zt|0,St[3]=St[3]+Ht|0,St[4]=St[4]+Wt|0,St[5]=St[5]+lr|0,St[6]=St[6]+qt|0,St[7]=St[7]+Ot|0}tt.mode.ccm={name:"ccm",G:[],listenProgress:function(pt){tt.mode.ccm.G.push(pt)},unListenProgress:function(pt){pt=tt.mode.ccm.G.indexOf(pt),-1Lt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(St=2;4>St&&zt>>>8*St;St++);return St<15-Lt&&(St=15-Lt),$t=Ft.clamp($t,8*(15-St)),yt=tt.mode.ccm.V(pt,yt,$t,mt,wt,St),Bt=tt.mode.ccm.C(pt,Bt,$t,yt,wt,St),Ft.concat(Bt.data,Bt.tag)},decrypt:function(pt,yt,$t,mt,wt){wt=wt||64,mt=mt||[];var St=tt.bitArray,Bt=St.bitLength($t)/8,zt=St.bitLength(yt),Ft=St.clamp(yt,zt-wt),Lt=St.bitSlice(yt,zt-wt),zt=(zt-wt)/8;if(7>Bt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(yt=2;4>yt&&zt>>>8*yt;yt++);if(yt<15-Bt&&(yt=15-Bt),$t=St.clamp($t,8*(15-yt)),Ft=tt.mode.ccm.C(pt,Ft,$t,Lt,wt,yt),pt=tt.mode.ccm.V(pt,Ft.data,$t,mt,wt,yt),!St.equal(Ft.tag,pt))throw new tt.exception.corrupt("ccm: tag doesn't match");return Ft.data},na:function(pt,yt,$t,mt,wt,St){var Bt=[],Ft=tt.bitArray,Lt=Ft.i;if(mt=[Ft.partial(8,(yt.length?64:0)|mt-2<<2|St-1)],mt=Ft.concat(mt,$t),mt[3]|=wt,mt=pt.encrypt(mt),yt.length)for($t=Ft.bitLength(yt)/8,65279>=$t?Bt=[Ft.partial(16,$t)]:4294967295>=$t&&(Bt=Ft.concat([Ft.partial(16,65534)],[$t])),Bt=Ft.concat(Bt,yt),yt=0;ytwt||16Ht&&(tt.mode.ccm.fa(Bt/Lt),Ht+=Wt),$t[3]++,wt=pt.encrypt($t),yt[Bt]^=wt[0],yt[Bt+1]^=wt[1],yt[Bt+2]^=wt[2],yt[Bt+3]^=wt[3];return{tag:mt,data:Ft.clamp(yt,zt)}}},tt.mode.ocb2={name:"ocb2",encrypt:function(pt,yt,$t,mt,wt,St){if(tt.bitArray.bitLength($t)!==128)throw new tt.exception.invalid("ocb iv must be 128 bits");var Bt,Ft=tt.mode.ocb2.S,Lt=tt.bitArray,zt=Lt.i,Ht=[0,0,0,0];$t=Ft(pt.encrypt($t));var Wt,lr=[];for(mt=mt||[],wt=wt||64,Bt=0;Bt+4wt.bitLength($t)&&(Ft=St(Ft,mt(Ft)),$t=wt.concat($t,[-2147483648,0,0,0])),Bt=St(Bt,$t),pt.encrypt(St(mt(St(Ft,mt(Ft))),Bt))},S:function(pt){return[pt[0]<<1^pt[1]>>>31,pt[1]<<1^pt[2]>>>31,pt[2]<<1^pt[3]>>>31,pt[3]<<1^135*(pt[0]>>>31)]}},tt.mode.gcm={name:"gcm",encrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0);return yt=tt.bitArray,mt=mt||[],pt=tt.mode.gcm.C(!0,pt,St,mt,$t,wt||128),yt.concat(pt.data,pt.tag)},decrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0),Bt=tt.bitArray,Ft=Bt.bitLength(St);if(wt=wt||128,mt=mt||[],wt<=Ft?(yt=Bt.bitSlice(St,Ft-wt),St=Bt.bitSlice(St,0,Ft-wt)):(yt=St,St=[]),pt=tt.mode.gcm.C(!1,pt,St,mt,$t,wt),!Bt.equal(pt.tag,yt))throw new tt.exception.corrupt("gcm: tag doesn't match");return pt.data},ka:function(pt,yt){var $t,mt,wt,St,Bt,Ft=tt.bitArray.i;for(wt=[0,0,0,0],St=yt.slice(0),$t=0;128>$t;$t++){for((mt=(pt[Math.floor($t/32)]&1<<31-$t%32)!==0)&&(wt=Ft(wt,St)),Bt=(St[3]&1)!==0,mt=3;0>>1|(St[mt-1]&1)<<31;St[0]>>>=1,Bt&&(St[0]^=-520093696)}return wt},j:function(pt,yt,$t){var mt,wt=$t.length;for(yt=yt.slice(0),mt=0;mtwt&&(pt=yt.hash(pt)),mt=0;mtmt||0>$t)throw new tt.exception.invalid("invalid params to pbkdf2");typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt)),typeof yt=="string"&&(yt=tt.codec.utf8String.toBits(yt)),wt=wt||tt.misc.hmac,pt=new wt(pt);var St,Bt,Ft,Lt,zt=[],Ht=tt.bitArray;for(Lt=1;32*zt.length<(mt||1);Lt++){for(wt=St=pt.encrypt(Ht.concat(yt,[Lt])),Bt=1;Bt<$t;Bt++)for(St=pt.encrypt(St),Ft=0;FtBt;Bt++)wt.push(4294967296*Math.random()|0);for(Bt=0;Bt=1<this.o&&(this.o=St),this.P++,this.b=tt.hash.sha256.hash(this.b.concat(wt)),this.L=new tt.cipher.aes(this.b),mt=0;4>mt&&(this.h[mt]=this.h[mt]+1|0,!this.h[mt]);mt++);}for(mt=0;mt>>1;this.c[Bt].update([mt,this.N++,2,yt,St,pt.length].concat(pt))}break;case"string":yt===void 0&&(yt=pt.length),this.c[Bt].update([mt,this.N++,3,yt,St,pt.length]),this.c[Bt].update(pt);break;default:Lt=1}if(Lt)throw new tt.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[Bt]+=yt,this.f+=yt,Ft===this.u&&(this.isReady()!==this.u&&it("seeded",Math.max(this.o,this.f)),it("progress",this.getProgress()))},isReady:function(pt){return pt=this.T[pt!==void 0?pt:this.M],this.o&&this.o>=pt?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=pt?this.J|this.u:this.u},getProgress:function(pt){return pt=this.T[pt||this.M],this.o>=pt||this.f>pt?1:this.f/pt},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:lt(this,this.ma),mouseCollector:lt(this,this.oa),keyboardCollector:lt(this,this.la),accelerometerCollector:lt(this,this.ea),touchCollector:lt(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new tt.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(pt,yt){this.K[pt][this.ga++]=yt},removeEventListener:function(pt,yt){var $t,mt,wt=this.K[pt],St=[];for(mt in wt)wt.hasOwnProperty(mt)&&wt[mt]===yt&&St.push(mt);for($t=0;$tyt&&(pt.h[yt]=pt.h[yt]+1|0,!pt.h[yt]);yt++);return pt.L.encrypt(pt.h)}function lt(pt,yt){return function(){yt.apply(pt,arguments)}}tt.random=new tt.prng(6);e:try{var ut,dt,bt,gt;if(gt=et.exports){var kt;try{kt=requireCryptoBrowserify()}catch{kt=null}gt=dt=kt}if(gt&&dt.randomBytes)ut=dt.randomBytes(128),ut=new Uint32Array(new Uint8Array(ut).buffer),tt.random.addEntropy(ut,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(bt=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(bt);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(bt);else break e;tt.random.addEntropy(bt,1024,"crypto['getRandomValues']")}}catch(pt){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(pt))}tt.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(pt,yt,$t,mt){$t=$t||{},mt=mt||{};var wt=tt.json,St=wt.g({iv:tt.random.randomWords(4,0)},wt.defaults),Bt;if(wt.g(St,$t),$t=St.adata,typeof St.salt=="string"&&(St.salt=tt.codec.base64.toBits(St.salt)),typeof St.iv=="string"&&(St.iv=tt.codec.base64.toBits(St.iv)),!tt.mode[St.mode]||!tt.cipher[St.cipher]||typeof pt=="string"&&100>=St.iter||St.ts!==64&&St.ts!==96&&St.ts!==128||St.ks!==128&&St.ks!==192&&St.ks!==256||2>St.iv.length||4=yt.iter||yt.ts!==64&&yt.ts!==96&&yt.ts!==128||yt.ks!==128&&yt.ks!==192&&yt.ks!==256||!yt.iv||2>yt.iv.length||4>24&255,Xt[ar+1]=cr>>16&255,Xt[ar+2]=cr>>8&255,Xt[ar+3]=cr&255,Xt[ar+4]=jt>>24&255,Xt[ar+5]=jt>>16&255,Xt[ar+6]=jt>>8&255,Xt[ar+7]=jt&255}function yt(Xt,ar,cr,jt,dr){var Rr,Cr=0;for(Rr=0;Rr>>8)-1}function $t(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,16)}function mt(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,32)}function wt(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;pn=pn+dr|0,wn=wn+Rr|0,un=un+Cr|0,yn=yn+Nr|0,mn=mn+Yr|0,cn=cn+tn|0,Ur=Ur+qr|0,jr=jr+Vn|0,en=en+hn|0,Gr=Gr+Tn|0,Zr=Zr+An|0,sn=sn+Rn|0,On=On+Pn|0,zn=zn+In|0,Gn=Gn+$n|0,Hn=Hn+Bn|0,Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=wn>>>0&255,Xt[5]=wn>>>8&255,Xt[6]=wn>>>16&255,Xt[7]=wn>>>24&255,Xt[8]=un>>>0&255,Xt[9]=un>>>8&255,Xt[10]=un>>>16&255,Xt[11]=un>>>24&255,Xt[12]=yn>>>0&255,Xt[13]=yn>>>8&255,Xt[14]=yn>>>16&255,Xt[15]=yn>>>24&255,Xt[16]=mn>>>0&255,Xt[17]=mn>>>8&255,Xt[18]=mn>>>16&255,Xt[19]=mn>>>24&255,Xt[20]=cn>>>0&255,Xt[21]=cn>>>8&255,Xt[22]=cn>>>16&255,Xt[23]=cn>>>24&255,Xt[24]=Ur>>>0&255,Xt[25]=Ur>>>8&255,Xt[26]=Ur>>>16&255,Xt[27]=Ur>>>24&255,Xt[28]=jr>>>0&255,Xt[29]=jr>>>8&255,Xt[30]=jr>>>16&255,Xt[31]=jr>>>24&255,Xt[32]=en>>>0&255,Xt[33]=en>>>8&255,Xt[34]=en>>>16&255,Xt[35]=en>>>24&255,Xt[36]=Gr>>>0&255,Xt[37]=Gr>>>8&255,Xt[38]=Gr>>>16&255,Xt[39]=Gr>>>24&255,Xt[40]=Zr>>>0&255,Xt[41]=Zr>>>8&255,Xt[42]=Zr>>>16&255,Xt[43]=Zr>>>24&255,Xt[44]=sn>>>0&255,Xt[45]=sn>>>8&255,Xt[46]=sn>>>16&255,Xt[47]=sn>>>24&255,Xt[48]=On>>>0&255,Xt[49]=On>>>8&255,Xt[50]=On>>>16&255,Xt[51]=On>>>24&255,Xt[52]=zn>>>0&255,Xt[53]=zn>>>8&255,Xt[54]=zn>>>16&255,Xt[55]=zn>>>24&255,Xt[56]=Gn>>>0&255,Xt[57]=Gn>>>8&255,Xt[58]=Gn>>>16&255,Xt[59]=Gn>>>24&255,Xt[60]=Hn>>>0&255,Xt[61]=Hn>>>8&255,Xt[62]=Hn>>>16&255,Xt[63]=Hn>>>24&255}function St(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=cn>>>0&255,Xt[5]=cn>>>8&255,Xt[6]=cn>>>16&255,Xt[7]=cn>>>24&255,Xt[8]=Zr>>>0&255,Xt[9]=Zr>>>8&255,Xt[10]=Zr>>>16&255,Xt[11]=Zr>>>24&255,Xt[12]=Hn>>>0&255,Xt[13]=Hn>>>8&255,Xt[14]=Hn>>>16&255,Xt[15]=Hn>>>24&255,Xt[16]=Ur>>>0&255,Xt[17]=Ur>>>8&255,Xt[18]=Ur>>>16&255,Xt[19]=Ur>>>24&255,Xt[20]=jr>>>0&255,Xt[21]=jr>>>8&255,Xt[22]=jr>>>16&255,Xt[23]=jr>>>24&255,Xt[24]=en>>>0&255,Xt[25]=en>>>8&255,Xt[26]=en>>>16&255,Xt[27]=en>>>24&255,Xt[28]=Gr>>>0&255,Xt[29]=Gr>>>8&255,Xt[30]=Gr>>>16&255,Xt[31]=Gr>>>24&255}function Bt(Xt,ar,cr,jt){wt(Xt,ar,cr,jt)}function Ft(Xt,ar,cr,jt){St(Xt,ar,cr,jt)}var Lt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function zt(Xt,ar,cr,jt,dr,Rr,Cr){var Nr=new Uint8Array(16),Yr=new Uint8Array(64),tn,qr;for(qr=0;qr<16;qr++)Nr[qr]=0;for(qr=0;qr<8;qr++)Nr[qr]=Rr[qr];for(;dr>=64;){for(Bt(Yr,Nr,Cr,Lt),qr=0;qr<64;qr++)Xt[ar+qr]=cr[jt+qr]^Yr[qr];for(tn=1,qr=8;qr<16;qr++)tn=tn+(Nr[qr]&255)|0,Nr[qr]=tn&255,tn>>>=8;dr-=64,ar+=64,jt+=64}if(dr>0)for(Bt(Yr,Nr,Cr,Lt),qr=0;qr=64;){for(Bt(Cr,Rr,dr,Lt),Yr=0;Yr<64;Yr++)Xt[ar+Yr]=Cr[Yr];for(Nr=1,Yr=8;Yr<16;Yr++)Nr=Nr+(Rr[Yr]&255)|0,Rr[Yr]=Nr&255,Nr>>>=8;cr-=64,ar+=64}if(cr>0)for(Bt(Cr,Rr,dr,Lt),Yr=0;Yr>>13|cr<<3)&8191,jt=Xt[4]&255|(Xt[5]&255)<<8,this.r[2]=(cr>>>10|jt<<6)&7939,dr=Xt[6]&255|(Xt[7]&255)<<8,this.r[3]=(jt>>>7|dr<<9)&8191,Rr=Xt[8]&255|(Xt[9]&255)<<8,this.r[4]=(dr>>>4|Rr<<12)&255,this.r[5]=Rr>>>1&8190,Cr=Xt[10]&255|(Xt[11]&255)<<8,this.r[6]=(Rr>>>14|Cr<<2)&8191,Nr=Xt[12]&255|(Xt[13]&255)<<8,this.r[7]=(Cr>>>11|Nr<<5)&8065,Yr=Xt[14]&255|(Xt[15]&255)<<8,this.r[8]=(Nr>>>8|Yr<<8)&8191,this.r[9]=Yr>>>5&127,this.pad[0]=Xt[16]&255|(Xt[17]&255)<<8,this.pad[1]=Xt[18]&255|(Xt[19]&255)<<8,this.pad[2]=Xt[20]&255|(Xt[21]&255)<<8,this.pad[3]=Xt[22]&255|(Xt[23]&255)<<8,this.pad[4]=Xt[24]&255|(Xt[25]&255)<<8,this.pad[5]=Xt[26]&255|(Xt[27]&255)<<8,this.pad[6]=Xt[28]&255|(Xt[29]&255)<<8,this.pad[7]=Xt[30]&255|(Xt[31]&255)<<8};qt.prototype.blocks=function(Xt,ar,cr){for(var jt=this.fin?0:2048,dr,Rr,Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn=this.h[0],mn=this.h[1],cn=this.h[2],Ur=this.h[3],jr=this.h[4],en=this.h[5],Gr=this.h[6],Zr=this.h[7],sn=this.h[8],On=this.h[9],zn=this.r[0],Gn=this.r[1],Hn=this.r[2],Tr=this.r[3],Yn=this.r[4],es=this.r[5],ts=this.r[6],Wn=this.r[7],rs=this.r[8],Qn=this.r[9];cr>=16;)dr=Xt[ar+0]&255|(Xt[ar+1]&255)<<8,yn+=dr&8191,Rr=Xt[ar+2]&255|(Xt[ar+3]&255)<<8,mn+=(dr>>>13|Rr<<3)&8191,Cr=Xt[ar+4]&255|(Xt[ar+5]&255)<<8,cn+=(Rr>>>10|Cr<<6)&8191,Nr=Xt[ar+6]&255|(Xt[ar+7]&255)<<8,Ur+=(Cr>>>7|Nr<<9)&8191,Yr=Xt[ar+8]&255|(Xt[ar+9]&255)<<8,jr+=(Nr>>>4|Yr<<12)&8191,en+=Yr>>>1&8191,tn=Xt[ar+10]&255|(Xt[ar+11]&255)<<8,Gr+=(Yr>>>14|tn<<2)&8191,qr=Xt[ar+12]&255|(Xt[ar+13]&255)<<8,Zr+=(tn>>>11|qr<<5)&8191,Vn=Xt[ar+14]&255|(Xt[ar+15]&255)<<8,sn+=(qr>>>8|Vn<<8)&8191,On+=Vn>>>5|jt,hn=0,Tn=hn,Tn+=yn*zn,Tn+=mn*(5*Qn),Tn+=cn*(5*rs),Tn+=Ur*(5*Wn),Tn+=jr*(5*ts),hn=Tn>>>13,Tn&=8191,Tn+=en*(5*es),Tn+=Gr*(5*Yn),Tn+=Zr*(5*Tr),Tn+=sn*(5*Hn),Tn+=On*(5*Gn),hn+=Tn>>>13,Tn&=8191,An=hn,An+=yn*Gn,An+=mn*zn,An+=cn*(5*Qn),An+=Ur*(5*rs),An+=jr*(5*Wn),hn=An>>>13,An&=8191,An+=en*(5*ts),An+=Gr*(5*es),An+=Zr*(5*Yn),An+=sn*(5*Tr),An+=On*(5*Hn),hn+=An>>>13,An&=8191,Rn=hn,Rn+=yn*Hn,Rn+=mn*Gn,Rn+=cn*zn,Rn+=Ur*(5*Qn),Rn+=jr*(5*rs),hn=Rn>>>13,Rn&=8191,Rn+=en*(5*Wn),Rn+=Gr*(5*ts),Rn+=Zr*(5*es),Rn+=sn*(5*Yn),Rn+=On*(5*Tr),hn+=Rn>>>13,Rn&=8191,Pn=hn,Pn+=yn*Tr,Pn+=mn*Hn,Pn+=cn*Gn,Pn+=Ur*zn,Pn+=jr*(5*Qn),hn=Pn>>>13,Pn&=8191,Pn+=en*(5*rs),Pn+=Gr*(5*Wn),Pn+=Zr*(5*ts),Pn+=sn*(5*es),Pn+=On*(5*Yn),hn+=Pn>>>13,Pn&=8191,In=hn,In+=yn*Yn,In+=mn*Tr,In+=cn*Hn,In+=Ur*Gn,In+=jr*zn,hn=In>>>13,In&=8191,In+=en*(5*Qn),In+=Gr*(5*rs),In+=Zr*(5*Wn),In+=sn*(5*ts),In+=On*(5*es),hn+=In>>>13,In&=8191,$n=hn,$n+=yn*es,$n+=mn*Yn,$n+=cn*Tr,$n+=Ur*Hn,$n+=jr*Gn,hn=$n>>>13,$n&=8191,$n+=en*zn,$n+=Gr*(5*Qn),$n+=Zr*(5*rs),$n+=sn*(5*Wn),$n+=On*(5*ts),hn+=$n>>>13,$n&=8191,Bn=hn,Bn+=yn*ts,Bn+=mn*es,Bn+=cn*Yn,Bn+=Ur*Tr,Bn+=jr*Hn,hn=Bn>>>13,Bn&=8191,Bn+=en*Gn,Bn+=Gr*zn,Bn+=Zr*(5*Qn),Bn+=sn*(5*rs),Bn+=On*(5*Wn),hn+=Bn>>>13,Bn&=8191,pn=hn,pn+=yn*Wn,pn+=mn*ts,pn+=cn*es,pn+=Ur*Yn,pn+=jr*Tr,hn=pn>>>13,pn&=8191,pn+=en*Hn,pn+=Gr*Gn,pn+=Zr*zn,pn+=sn*(5*Qn),pn+=On*(5*rs),hn+=pn>>>13,pn&=8191,wn=hn,wn+=yn*rs,wn+=mn*Wn,wn+=cn*ts,wn+=Ur*es,wn+=jr*Yn,hn=wn>>>13,wn&=8191,wn+=en*Tr,wn+=Gr*Hn,wn+=Zr*Gn,wn+=sn*zn,wn+=On*(5*Qn),hn+=wn>>>13,wn&=8191,un=hn,un+=yn*Qn,un+=mn*rs,un+=cn*Wn,un+=Ur*ts,un+=jr*es,hn=un>>>13,un&=8191,un+=en*Yn,un+=Gr*Tr,un+=Zr*Hn,un+=sn*Gn,un+=On*zn,hn+=un>>>13,un&=8191,hn=(hn<<2)+hn|0,hn=hn+Tn|0,Tn=hn&8191,hn=hn>>>13,An+=hn,yn=Tn,mn=An,cn=Rn,Ur=Pn,jr=In,en=$n,Gr=Bn,Zr=pn,sn=wn,On=un,ar+=16,cr-=16;this.h[0]=yn,this.h[1]=mn,this.h[2]=cn,this.h[3]=Ur,this.h[4]=jr,this.h[5]=en,this.h[6]=Gr,this.h[7]=Zr,this.h[8]=sn,this.h[9]=On},qt.prototype.finish=function(Xt,ar){var cr=new Uint16Array(10),jt,dr,Rr,Cr;if(this.leftover){for(Cr=this.leftover,this.buffer[Cr++]=1;Cr<16;Cr++)this.buffer[Cr]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(jt=this.h[1]>>>13,this.h[1]&=8191,Cr=2;Cr<10;Cr++)this.h[Cr]+=jt,jt=this.h[Cr]>>>13,this.h[Cr]&=8191;for(this.h[0]+=jt*5,jt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=jt,jt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=jt,cr[0]=this.h[0]+5,jt=cr[0]>>>13,cr[0]&=8191,Cr=1;Cr<10;Cr++)cr[Cr]=this.h[Cr]+jt,jt=cr[Cr]>>>13,cr[Cr]&=8191;for(cr[9]-=8192,dr=(jt^1)-1,Cr=0;Cr<10;Cr++)cr[Cr]&=dr;for(dr=~dr,Cr=0;Cr<10;Cr++)this.h[Cr]=this.h[Cr]&dr|cr[Cr];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Rr=this.h[0]+this.pad[0],this.h[0]=Rr&65535,Cr=1;Cr<8;Cr++)Rr=(this.h[Cr]+this.pad[Cr]|0)+(Rr>>>16)|0,this.h[Cr]=Rr&65535;Xt[ar+0]=this.h[0]>>>0&255,Xt[ar+1]=this.h[0]>>>8&255,Xt[ar+2]=this.h[1]>>>0&255,Xt[ar+3]=this.h[1]>>>8&255,Xt[ar+4]=this.h[2]>>>0&255,Xt[ar+5]=this.h[2]>>>8&255,Xt[ar+6]=this.h[3]>>>0&255,Xt[ar+7]=this.h[3]>>>8&255,Xt[ar+8]=this.h[4]>>>0&255,Xt[ar+9]=this.h[4]>>>8&255,Xt[ar+10]=this.h[5]>>>0&255,Xt[ar+11]=this.h[5]>>>8&255,Xt[ar+12]=this.h[6]>>>0&255,Xt[ar+13]=this.h[6]>>>8&255,Xt[ar+14]=this.h[7]>>>0&255,Xt[ar+15]=this.h[7]>>>8&255},qt.prototype.update=function(Xt,ar,cr){var jt,dr;if(this.leftover){for(dr=16-this.leftover,dr>cr&&(dr=cr),jt=0;jt=16&&(dr=cr-cr%16,this.blocks(Xt,ar,dr),ar+=dr,cr-=dr),cr){for(jt=0;jt>16&1),Rr[cr-1]&=65535;Rr[15]=Cr[15]-32767-(Rr[14]>>16&1),dr=Rr[15]>>16&1,Rr[14]&=65535,At(Cr,Rr,1-dr)}for(cr=0;cr<16;cr++)Xt[2*cr]=Cr[cr]&255,Xt[2*cr+1]=Cr[cr]>>8}function It(Xt,ar){var cr=new Uint8Array(32),jt=new Uint8Array(32);return Pt(cr,Xt),Pt(jt,ar),mt(cr,0,jt,0)}function Ct(Xt){var ar=new Uint8Array(32);return Pt(ar,Xt),ar[0]&1}function xt(Xt,ar){var cr;for(cr=0;cr<16;cr++)Xt[cr]=ar[2*cr]+(ar[2*cr+1]<<8);Xt[15]&=32767}function Dt(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]+cr[jt]}function tr(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]-cr[jt]}function pr(Xt,ar,cr){var jt,dr,Rr=0,Cr=0,Nr=0,Yr=0,tn=0,qr=0,Vn=0,hn=0,Tn=0,An=0,Rn=0,Pn=0,In=0,$n=0,Bn=0,pn=0,wn=0,un=0,yn=0,mn=0,cn=0,Ur=0,jr=0,en=0,Gr=0,Zr=0,sn=0,On=0,zn=0,Gn=0,Hn=0,Tr=cr[0],Yn=cr[1],es=cr[2],ts=cr[3],Wn=cr[4],rs=cr[5],Qn=cr[6],vs=cr[7],os=cr[8],ps=cr[9],bs=cr[10],xs=cr[11],Ss=cr[12],As=cr[13],Ps=cr[14],Is=cr[15];jt=ar[0],Rr+=jt*Tr,Cr+=jt*Yn,Nr+=jt*es,Yr+=jt*ts,tn+=jt*Wn,qr+=jt*rs,Vn+=jt*Qn,hn+=jt*vs,Tn+=jt*os,An+=jt*ps,Rn+=jt*bs,Pn+=jt*xs,In+=jt*Ss,$n+=jt*As,Bn+=jt*Ps,pn+=jt*Is,jt=ar[1],Cr+=jt*Tr,Nr+=jt*Yn,Yr+=jt*es,tn+=jt*ts,qr+=jt*Wn,Vn+=jt*rs,hn+=jt*Qn,Tn+=jt*vs,An+=jt*os,Rn+=jt*ps,Pn+=jt*bs,In+=jt*xs,$n+=jt*Ss,Bn+=jt*As,pn+=jt*Ps,wn+=jt*Is,jt=ar[2],Nr+=jt*Tr,Yr+=jt*Yn,tn+=jt*es,qr+=jt*ts,Vn+=jt*Wn,hn+=jt*rs,Tn+=jt*Qn,An+=jt*vs,Rn+=jt*os,Pn+=jt*ps,In+=jt*bs,$n+=jt*xs,Bn+=jt*Ss,pn+=jt*As,wn+=jt*Ps,un+=jt*Is,jt=ar[3],Yr+=jt*Tr,tn+=jt*Yn,qr+=jt*es,Vn+=jt*ts,hn+=jt*Wn,Tn+=jt*rs,An+=jt*Qn,Rn+=jt*vs,Pn+=jt*os,In+=jt*ps,$n+=jt*bs,Bn+=jt*xs,pn+=jt*Ss,wn+=jt*As,un+=jt*Ps,yn+=jt*Is,jt=ar[4],tn+=jt*Tr,qr+=jt*Yn,Vn+=jt*es,hn+=jt*ts,Tn+=jt*Wn,An+=jt*rs,Rn+=jt*Qn,Pn+=jt*vs,In+=jt*os,$n+=jt*ps,Bn+=jt*bs,pn+=jt*xs,wn+=jt*Ss,un+=jt*As,yn+=jt*Ps,mn+=jt*Is,jt=ar[5],qr+=jt*Tr,Vn+=jt*Yn,hn+=jt*es,Tn+=jt*ts,An+=jt*Wn,Rn+=jt*rs,Pn+=jt*Qn,In+=jt*vs,$n+=jt*os,Bn+=jt*ps,pn+=jt*bs,wn+=jt*xs,un+=jt*Ss,yn+=jt*As,mn+=jt*Ps,cn+=jt*Is,jt=ar[6],Vn+=jt*Tr,hn+=jt*Yn,Tn+=jt*es,An+=jt*ts,Rn+=jt*Wn,Pn+=jt*rs,In+=jt*Qn,$n+=jt*vs,Bn+=jt*os,pn+=jt*ps,wn+=jt*bs,un+=jt*xs,yn+=jt*Ss,mn+=jt*As,cn+=jt*Ps,Ur+=jt*Is,jt=ar[7],hn+=jt*Tr,Tn+=jt*Yn,An+=jt*es,Rn+=jt*ts,Pn+=jt*Wn,In+=jt*rs,$n+=jt*Qn,Bn+=jt*vs,pn+=jt*os,wn+=jt*ps,un+=jt*bs,yn+=jt*xs,mn+=jt*Ss,cn+=jt*As,Ur+=jt*Ps,jr+=jt*Is,jt=ar[8],Tn+=jt*Tr,An+=jt*Yn,Rn+=jt*es,Pn+=jt*ts,In+=jt*Wn,$n+=jt*rs,Bn+=jt*Qn,pn+=jt*vs,wn+=jt*os,un+=jt*ps,yn+=jt*bs,mn+=jt*xs,cn+=jt*Ss,Ur+=jt*As,jr+=jt*Ps,en+=jt*Is,jt=ar[9],An+=jt*Tr,Rn+=jt*Yn,Pn+=jt*es,In+=jt*ts,$n+=jt*Wn,Bn+=jt*rs,pn+=jt*Qn,wn+=jt*vs,un+=jt*os,yn+=jt*ps,mn+=jt*bs,cn+=jt*xs,Ur+=jt*Ss,jr+=jt*As,en+=jt*Ps,Gr+=jt*Is,jt=ar[10],Rn+=jt*Tr,Pn+=jt*Yn,In+=jt*es,$n+=jt*ts,Bn+=jt*Wn,pn+=jt*rs,wn+=jt*Qn,un+=jt*vs,yn+=jt*os,mn+=jt*ps,cn+=jt*bs,Ur+=jt*xs,jr+=jt*Ss,en+=jt*As,Gr+=jt*Ps,Zr+=jt*Is,jt=ar[11],Pn+=jt*Tr,In+=jt*Yn,$n+=jt*es,Bn+=jt*ts,pn+=jt*Wn,wn+=jt*rs,un+=jt*Qn,yn+=jt*vs,mn+=jt*os,cn+=jt*ps,Ur+=jt*bs,jr+=jt*xs,en+=jt*Ss,Gr+=jt*As,Zr+=jt*Ps,sn+=jt*Is,jt=ar[12],In+=jt*Tr,$n+=jt*Yn,Bn+=jt*es,pn+=jt*ts,wn+=jt*Wn,un+=jt*rs,yn+=jt*Qn,mn+=jt*vs,cn+=jt*os,Ur+=jt*ps,jr+=jt*bs,en+=jt*xs,Gr+=jt*Ss,Zr+=jt*As,sn+=jt*Ps,On+=jt*Is,jt=ar[13],$n+=jt*Tr,Bn+=jt*Yn,pn+=jt*es,wn+=jt*ts,un+=jt*Wn,yn+=jt*rs,mn+=jt*Qn,cn+=jt*vs,Ur+=jt*os,jr+=jt*ps,en+=jt*bs,Gr+=jt*xs,Zr+=jt*Ss,sn+=jt*As,On+=jt*Ps,zn+=jt*Is,jt=ar[14],Bn+=jt*Tr,pn+=jt*Yn,wn+=jt*es,un+=jt*ts,yn+=jt*Wn,mn+=jt*rs,cn+=jt*Qn,Ur+=jt*vs,jr+=jt*os,en+=jt*ps,Gr+=jt*bs,Zr+=jt*xs,sn+=jt*Ss,On+=jt*As,zn+=jt*Ps,Gn+=jt*Is,jt=ar[15],pn+=jt*Tr,wn+=jt*Yn,un+=jt*es,yn+=jt*ts,mn+=jt*Wn,cn+=jt*rs,Ur+=jt*Qn,jr+=jt*vs,en+=jt*os,Gr+=jt*ps,Zr+=jt*bs,sn+=jt*xs,On+=jt*Ss,zn+=jt*As,Gn+=jt*Ps,Hn+=jt*Is,Rr+=38*wn,Cr+=38*un,Nr+=38*yn,Yr+=38*mn,tn+=38*cn,qr+=38*Ur,Vn+=38*jr,hn+=38*en,Tn+=38*Gr,An+=38*Zr,Rn+=38*sn,Pn+=38*On,In+=38*zn,$n+=38*Gn,Bn+=38*Hn,dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),Xt[0]=Rr,Xt[1]=Cr,Xt[2]=Nr,Xt[3]=Yr,Xt[4]=tn,Xt[5]=qr,Xt[6]=Vn,Xt[7]=hn,Xt[8]=Tn,Xt[9]=An,Xt[10]=Rn,Xt[11]=Pn,Xt[12]=In,Xt[13]=$n,Xt[14]=Bn,Xt[15]=pn}function Kt(Xt,ar){pr(Xt,ar,ar)}function Qt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=253;jt>=0;jt--)Kt(cr,cr),jt!==2&&jt!==4&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function Zt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=250;jt>=0;jt--)Kt(cr,cr),jt!==1&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function ur(Xt,ar,cr){var jt=new Uint8Array(32),dr=new Float64Array(80),Rr,Cr,Nr=rt(),Yr=rt(),tn=rt(),qr=rt(),Vn=rt(),hn=rt();for(Cr=0;Cr<31;Cr++)jt[Cr]=ar[Cr];for(jt[31]=ar[31]&127|64,jt[0]&=248,xt(dr,cr),Cr=0;Cr<16;Cr++)Yr[Cr]=dr[Cr],qr[Cr]=Nr[Cr]=tn[Cr]=0;for(Nr[0]=qr[0]=1,Cr=254;Cr>=0;--Cr)Rr=jt[Cr>>>3]>>>(Cr&7)&1,At(Nr,Yr,Rr),At(tn,qr,Rr),Dt(Vn,Nr,tn),tr(Nr,Nr,tn),Dt(tn,Yr,qr),tr(Yr,Yr,qr),Kt(qr,Vn),Kt(hn,Nr),pr(Nr,tn,Nr),pr(tn,Yr,Vn),Dt(Vn,Nr,tn),tr(Nr,Nr,tn),Kt(Yr,Nr),tr(tn,qr,hn),pr(Nr,tn,lt),Dt(Nr,Nr,qr),pr(tn,tn,Nr),pr(Nr,qr,hn),pr(qr,Yr,dr),Kt(Yr,Vn),At(Nr,Yr,Rr),At(tn,qr,Rr);for(Cr=0;Cr<16;Cr++)dr[Cr+16]=Nr[Cr],dr[Cr+32]=tn[Cr],dr[Cr+48]=Yr[Cr],dr[Cr+64]=qr[Cr];var Tn=dr.subarray(32),An=dr.subarray(16);return Qt(Tn,Tn),pr(An,An,Tn),Pt(Xt,An),0}function _r(Xt,ar){return ur(Xt,ar,st)}function er(Xt,ar){return nt(ar,32),_r(Xt,ar)}function Jt(Xt,ar,cr){var jt=new Uint8Array(32);return ur(jt,cr,ar),Ft(Xt,it,jt,Lt)}var Ar=ht,Er=Et;function Dr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Ar(Xt,ar,cr,jt,Cr)}function Xr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Er(Xt,ar,cr,jt,Cr)}var Vr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function wr(Xt,ar,cr,jt){for(var dr=new Int32Array(16),Rr=new Int32Array(16),Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn,mn,cn,Ur,jr,en,Gr,Zr,sn,On=Xt[0],zn=Xt[1],Gn=Xt[2],Hn=Xt[3],Tr=Xt[4],Yn=Xt[5],es=Xt[6],ts=Xt[7],Wn=ar[0],rs=ar[1],Qn=ar[2],vs=ar[3],os=ar[4],ps=ar[5],bs=ar[6],xs=ar[7],Ss=0;jt>=128;){for(mn=0;mn<16;mn++)cn=8*mn+Ss,dr[mn]=cr[cn+0]<<24|cr[cn+1]<<16|cr[cn+2]<<8|cr[cn+3],Rr[mn]=cr[cn+4]<<24|cr[cn+5]<<16|cr[cn+6]<<8|cr[cn+7];for(mn=0;mn<80;mn++)if(Cr=On,Nr=zn,Yr=Gn,tn=Hn,qr=Tr,Vn=Yn,hn=es,Tn=ts,An=Wn,Rn=rs,Pn=Qn,In=vs,$n=os,Bn=ps,pn=bs,wn=xs,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(Tr>>>14|os<<32-14)^(Tr>>>18|os<<32-18)^(os>>>41-32|Tr<<32-(41-32)),jr=(os>>>14|Tr<<32-14)^(os>>>18|Tr<<32-18)^(Tr>>>41-32|os<<32-(41-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Tr&Yn^~Tr&es,jr=os&ps^~os&bs,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Vr[mn*2],jr=Vr[mn*2+1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=dr[mn%16],jr=Rr[mn%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,un=Zr&65535|sn<<16,yn=en&65535|Gr<<16,Ur=un,jr=yn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(On>>>28|Wn<<32-28)^(Wn>>>34-32|On<<32-(34-32))^(Wn>>>39-32|On<<32-(39-32)),jr=(Wn>>>28|On<<32-28)^(On>>>34-32|Wn<<32-(34-32))^(On>>>39-32|Wn<<32-(39-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=On&zn^On&Gn^zn&Gn,jr=Wn&rs^Wn&Qn^rs&Qn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Tn=Zr&65535|sn<<16,wn=en&65535|Gr<<16,Ur=tn,jr=In,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=un,jr=yn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,tn=Zr&65535|sn<<16,In=en&65535|Gr<<16,zn=Cr,Gn=Nr,Hn=Yr,Tr=tn,Yn=qr,es=Vn,ts=hn,On=Tn,rs=An,Qn=Rn,vs=Pn,os=In,ps=$n,bs=Bn,xs=pn,Wn=wn,mn%16===15)for(cn=0;cn<16;cn++)Ur=dr[cn],jr=Rr[cn],en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=dr[(cn+9)%16],jr=Rr[(cn+9)%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+1)%16],yn=Rr[(cn+1)%16],Ur=(un>>>1|yn<<32-1)^(un>>>8|yn<<32-8)^un>>>7,jr=(yn>>>1|un<<32-1)^(yn>>>8|un<<32-8)^(yn>>>7|un<<32-7),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+14)%16],yn=Rr[(cn+14)%16],Ur=(un>>>19|yn<<32-19)^(yn>>>61-32|un<<32-(61-32))^un>>>6,jr=(yn>>>19|un<<32-19)^(un>>>61-32|yn<<32-(61-32))^(yn>>>6|un<<32-6),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,dr[cn]=Zr&65535|sn<<16,Rr[cn]=en&65535|Gr<<16;Ur=On,jr=Wn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[0],jr=ar[0],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[0]=On=Zr&65535|sn<<16,ar[0]=Wn=en&65535|Gr<<16,Ur=zn,jr=rs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[1],jr=ar[1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[1]=zn=Zr&65535|sn<<16,ar[1]=rs=en&65535|Gr<<16,Ur=Gn,jr=Qn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[2],jr=ar[2],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[2]=Gn=Zr&65535|sn<<16,ar[2]=Qn=en&65535|Gr<<16,Ur=Hn,jr=vs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[3],jr=ar[3],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[3]=Hn=Zr&65535|sn<<16,ar[3]=vs=en&65535|Gr<<16,Ur=Tr,jr=os,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[4],jr=ar[4],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[4]=Tr=Zr&65535|sn<<16,ar[4]=os=en&65535|Gr<<16,Ur=Yn,jr=ps,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[5],jr=ar[5],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[5]=Yn=Zr&65535|sn<<16,ar[5]=ps=en&65535|Gr<<16,Ur=es,jr=bs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[6],jr=ar[6],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[6]=es=Zr&65535|sn<<16,ar[6]=bs=en&65535|Gr<<16,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[7],jr=ar[7],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[7]=ts=Zr&65535|sn<<16,ar[7]=xs=en&65535|Gr<<16,Ss+=128,jt-=128}return jt}function br(Xt,ar,cr){var jt=new Int32Array(8),dr=new Int32Array(8),Rr=new Uint8Array(256),Cr,Nr=cr;for(jt[0]=1779033703,jt[1]=3144134277,jt[2]=1013904242,jt[3]=2773480762,jt[4]=1359893119,jt[5]=2600822924,jt[6]=528734635,jt[7]=1541459225,dr[0]=4089235720,dr[1]=2227873595,dr[2]=4271175723,dr[3]=1595750129,dr[4]=2917565137,dr[5]=725511199,dr[6]=4215389547,dr[7]=327033209,wr(jt,dr,ar,cr),cr%=128,Cr=0;Cr=0;--dr)jt=cr[dr/8|0]>>(dr&7)&1,xr(Xt,ar,jt),or(ar,Xt),or(Xt,Xt),xr(Xt,ar,jt)}function rr(Xt,ar){var cr=[rt(),rt(),rt(),rt()];Tt(cr[0],bt),Tt(cr[1],gt),Tt(cr[2],ot),pr(cr[3],bt,gt),Or(Xt,cr,ar)}function gr(Xt,ar,cr){var jt=new Uint8Array(64),dr=[rt(),rt(),rt(),rt()],Rr;for(cr||nt(ar,32),br(jt,ar,32),jt[0]&=248,jt[31]&=127,jt[31]|=64,rr(dr,jt),Pr(Xt,dr),Rr=0;Rr<32;Rr++)ar[Rr+32]=Xt[Rr];return 0}var Ir=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Yt(Xt,ar){var cr,jt,dr,Rr;for(jt=63;jt>=32;--jt){for(cr=0,dr=jt-32,Rr=jt-12;dr>4)*Ir[dr],cr=ar[dr]>>8,ar[dr]&=255;for(dr=0;dr<32;dr++)ar[dr]-=cr*Ir[dr];for(jt=0;jt<32;jt++)ar[jt+1]+=ar[jt]>>8,Xt[jt]=ar[jt]&255}function Ut(Xt){var ar=new Float64Array(64),cr;for(cr=0;cr<64;cr++)ar[cr]=Xt[cr];for(cr=0;cr<64;cr++)Xt[cr]=0;Yt(Xt,ar)}function Vt(Xt,ar,cr,jt){var dr=new Uint8Array(64),Rr=new Uint8Array(64),Cr=new Uint8Array(64),Nr,Yr,tn=new Float64Array(64),qr=[rt(),rt(),rt(),rt()];br(dr,jt,32),dr[0]&=248,dr[31]&=127,dr[31]|=64;var Vn=cr+64;for(Nr=0;Nr>7&&tr(Xt[0],at,Xt[0]),pr(Xt[3],Xt[0],Xt[1]),0)}function kr(Xt,ar,cr,jt){var dr,Rr=new Uint8Array(32),Cr=new Uint8Array(64),Nr=[rt(),rt(),rt(),rt()],Yr=[rt(),rt(),rt(),rt()];if(cr<64||ir(Yr,jt))return-1;for(dr=0;dr=0},tt.sign.keyPair=function(){var Xt=new Uint8Array(xn),ar=new Uint8Array(is);return gr(Xt,ar),{publicKey:Xt,secretKey:ar}},tt.sign.keyPair.fromSecretKey=function(Xt){if(dn(Xt),Xt.length!==is)throw new Error("bad secret key size");for(var ar=new Uint8Array(xn),cr=0;cr"u"?typeof Buffer.from<"u"?(tt.encodeBase64=function(nt){return Buffer.from(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(Buffer.from(nt,"base64"),0))}):(tt.encodeBase64=function(nt){return new Buffer(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(new Buffer(nt,"base64"),0))}):(tt.encodeBase64=function(nt){var it,st=[],at=nt.length;for(it=0;ityt||br<0)throw new RangeError(`varint ${br} out of range`);this._grow(this._length+wt);let or=this._length;for(;br>=128;)this._buf[or++]=br&255|128,br>>>=7;this._buf[or++]=br|0,this._length=or}get bytes(){return this._buf.subarray(0,this._length)}_grow(br){const or=this._buf.length;if(br<=or)return;const xr=or*2,Pr=br>xr?br:xr,Or=new Uint8Array(Pr);Or.set(this._buf.subarray(0,this._length)),this._buf=Or}}const wt=5;class St{constructor(br){this._buf=br,this._index=0}readByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index++]}peekByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index]}readN(br){if(this.lengthwt||rr===wt&&Or>1)throw new RangeError("Overflow error decoding varint");return(or|Or<>>0}or|=(Or&127)<wr!=null,Ft=wr=>Bt(wr)?ot.encode(wr):wr,Lt=wr=>Bt(wr)?lt.decode(wr):wr,zt=wr=>rt.default.codec.utf8String.fromBits(wr);et.base64ToBytes=function(wr){return wr=wr.replace(/-/g,"+").replace(/_/g,"/"),wr.length%4!==0&&!wr.match(/=$/)&&(wr+="=".repeat(4-wr.length%4)),it.default.decodeBase64(wr)},et.bytesToBase64=function(wr){return it.default.encodeBase64(wr).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")};const Ht=function(wr){return rt.default.codec.base64.toBits(it.default.encodeBase64(wr))},Wt=function(wr){return it.default.decodeBase64(rt.default.codec.base64.fromBits(wr))},lr=function(wr){const br=new Uint8Array(Math.ceil(wr.length/2));for(let or=0;orBt(wr)?Ot(wr,br):"",ht=function(wr,br){if(wr instanceof Uint8Array)return wr;if(typeof wr=="string")return Ft(wr);throw new TypeError(`${br} has the wrong type; want string or Uint8Array, got ${typeof wr}.`)},Et=new Uint8Array,Tt=function(wr,br){const or=wr.readByte();if(or!==br)throw new Error(`Unexpected field type, got ${or} want ${br}`);return or===dt?Et:wr.readN(wr.readUvarint())},Rt=function(wr,br,or){wr.appendByte(br),br!==dt&&(wr.appendUvarint(or.length),wr.appendBytes(or))},At=function(wr,br){return wr.peekByte()!==br?null:Tt(wr,br)},Pt=function(wr,br,or){qt(or)?wr[br]=Lt(or):wr[br+"64"]=et.bytesToBase64(or)},It=function(wr,br){const or=new rt.default.misc.hmac(wr,rt.default.hash.sha256);return or.update(br),or.digest()},Ct=function(wr,br,or){const xr=It(wr,br),Pr=It(wr,or);return It(wr,rt.default.bitArray.concat(xr,Pr))},xt=Ht(Ft("macaroons-key-generator")),Dt=function(wr){return It(xt,wr)},tr=function(){return nt.default.randomBytes(ut)},pr=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=tr(),Or=nt.default.secretbox(xr,Pr,or),rr=new Uint8Array(Pr.length+Or.length);return rr.set(Pr,0),rr.set(Or,Pr.length),Ht(rr)},Kt=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=xr.slice(0,ut),Or=xr.slice(ut);let rr=nt.default.secretbox.open(Or,Pr,or);if(!rr)throw new Error("decryption failed");return Ht(rr)},Qt=Ht(Ft("\0".repeat(32))),Zt=function(wr,br){return rt.default.bitArray.equal(wr,br)?wr:Ct(Qt,wr,br)};class ur{constructor(br){if(!br)return;let{version:or,identifierBytes:xr,locationStr:Pr,caveats:Or,signatureBytes:rr}=br;if(or!==1&&or!==2)throw new Error(`Unexpected version ${or}`);if(this._version=or,this._locationStr=Pr,xr=ht(xr,"Identifier"),or===1&&!qt(xr))throw new Error("Version 1 macaroon identifier must be well-formed UTF-8");this._identifierBits=xr&&Ht(xr),this._signatureBits=rr&&Ht(ht(rr,"Signature")),this._caveats=Or?Or.map(gr=>{const Ir=ht(gr.identifierBytes,"Caveat identifier");if(or===1&&!qt(Ir))throw new Error("Version 1 caveat identifier must be well-formed UTF-8");return{_locationStr:Mt(gr.locationStr),_identifierBits:Ht(Ir),_vidBits:gr.vidBytes&&Ht(ht(gr.vidBytes,"Verification ID"))}}):[]}get caveats(){return this._caveats.map(br=>Bt(br._vidBits)?{identifier:Wt(br._identifierBits),location:br._locationStr,vid:Wt(br._vidBits)}:{identifier:Wt(br._identifierBits)})}get location(){return this._locationStr}get identifier(){return Wt(this._identifierBits)}get signature(){return Wt(this._signatureBits)}addThirdPartyCaveat(br,or,xr){const Pr={_identifierBits:Ht(ht(or,"Caveat id")),_vidBits:pr(this._signatureBits,Dt(Ht(ht(br,"Caveat root key")))),_locationStr:Mt(xr)};this._signatureBits=Ct(this._signatureBits,Pr._vidBits,Pr._identifierBits),this._caveats.push(Pr)}addFirstPartyCaveat(br){const or=Ht(ht(br,"Condition"));this._caveats.push({_identifierBits:or}),this._signatureBits=It(this._signatureBits,or)}bindToRoot(br){const or=Ht(ht(br,"Primary macaroon signature"));this._signatureBits=Zt(or,this._signatureBits)}clone(){const br=new ur;return br._version=this._version,br._signatureBits=this._signatureBits,br._identifierBits=this._identifierBits,br._locationStr=this._locationStr,br._caveats=this._caveats.slice(),br}verify(br,or,xr=[]){const Pr=Dt(Ht(ht(br,"Root key"))),Or=xr.map(rr=>0);this._verify(this._signatureBits,Pr,or,xr,Or),xr.forEach((rr,gr)=>{if(Or[gr]===0)throw new Error(`discharge macaroon ${$t(rr.identifier)} was not used`);if(Or[gr]!==1)throw new Error(`discharge macaroon ${$t(rr.identifier)} was used more than once`)})}_verify(br,or,xr,Pr,Or){let rr=It(or,this._identifierBits);this._caveats.forEach(Ir=>{if(Ir._vidBits){const Yt=Kt(rr,Ir._vidBits);let Ut=!1,Vt,ir;for(Vt=0;Vt1)throw new Error(`discharge macaroon ${$t(ir.identifier)} was used more than once`);ir._verify(br,Yt,xr,Pr,Or);break}if(!Ut)throw new Error(`cannot find discharge macaroon for caveat ${$t(Ir._identifierBits)}`);rr=Ct(rr,Ir._vidBits,Ir._identifierBits)}else{const Yt=zt(Ir._identifierBits),Ut=xr(Yt);if(Ut)throw new Error(`caveat check failed (${Yt}): ${Ut}`);rr=It(rr,Ir._identifierBits)}});const gr=Zt(br,rr);if(!rt.default.bitArray.equal(gr,this._signatureBits))throw new Error("signature mismatch after caveat verification")}exportJSON(){switch(this._version){case 1:return this._exportAsJSONObjectV1();case 2:return this._exportAsJSONObjectV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}_exportAsJSONObjectV1(){const br={identifier:zt(this._identifierBits),signature:rt.default.codec.hex.fromBits(this._signatureBits)};return this._locationStr&&(br.location=this._locationStr),this._caveats.length>0&&(br.caveats=this._caveats.map(or=>{const xr={cid:zt(or._identifierBits)};return or._vidBits&&(xr.vid=rt.default.codec.base64.fromBits(or._vidBits,!0,!0),xr.cl=or._locationStr),xr})),br}_exportAsJSONObjectV2(){const br={v:2};return Pt(br,"s",Wt(this._signatureBits)),Pt(br,"i",Wt(this._identifierBits)),this._locationStr&&(br.l=this._locationStr),this._caveats&&this._caveats.length>0&&(br.c=this._caveats.map(or=>{const xr={};return Pt(xr,"i",Wt(or._identifierBits)),or._vidBits&&(Pt(xr,"v",Wt(or._vidBits)),xr.l=or._locationStr),xr})),br}_exportBinaryV1(){throw new Error("V1 binary export not supported")}_exportBinaryV2(){const br=new mt(200);return br.appendByte(2),this._locationStr&&Rt(br,bt,Ft(this._locationStr)),Rt(br,gt,Wt(this._identifierBits)),Rt(br,dt),this._caveats.forEach(function(or){or._locationStr&&Rt(br,bt,Ft(or._locationStr)),Rt(br,gt,Wt(or._identifierBits)),or._vidBits&&Rt(br,kt,Wt(or._vidBits)),Rt(br,dt)}),Rt(br,dt),Rt(br,pt,Wt(this._signatureBits)),br.bytes}exportBinary(){switch(this._version){case 1:return this._exportBinaryV1();case 2:return this._exportBinaryV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}}et.importMacaroon=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){const br=new St(wr),or=Vr(br);if(br.length!==0)throw new TypeError("extra data found at end of serialized macaroon");return or}if(Array.isArray(wr))throw new TypeError("cannot import an array of macaroons as a single macaroon");return _r(wr)},et.importMacaroons=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){if(wr.length===0)throw new TypeError("empty macaroon data");const br=new St(wr),or=[];do or.push(Vr(br));while(br.length>0);return or}return Array.isArray(wr)?wr.map(br=>_r(br)):[_r(wr)]};const _r=function(wr){return er(wr)?Jt(wr):Ar(wr)};function er(wr){return Bt(wr.signature)}const Jt=function(wr){const br=wr.caveats&&wr.caveats.map(or=>{const xr={identifierBytes:Ft(Ot(or.cid,"Caveat id")),locationStr:Mt(or.cl,"Caveat location")};return or.vid&&(xr.vidBytes=et.base64ToBytes(Ot(or.vid,"Caveat verification id"))),xr});return new ur({version:1,locationStr:Mt(wr.location,"Macaroon location"),identifierBytes:Ft(Ot(wr.identifier,"Macaroon identifier")),caveats:br,signatureBytes:lr(wr.signature)})},Ar=function(wr){if(wr.v!==2&&wr.v!==void 0)throw new Error(`Unsupported macaroon version ${wr.v}`);const br={version:2,signatureBytes:Er(wr,"s",!0),locationStr:Lt(Er(wr,"l",!1)),identifierBytes:Er(wr,"i",!0)};if(wr.c){if(!Array.isArray(wr.c))throw new Error("caveats field does not hold an array");br.caveats=wr.c.map(or=>({identifierBytes:Er(or,"i",!0),locationStr:Lt(Er(or,"l")),vidBytes:Er(or,"v",!1)}))}return new ur(br)};function Er(wr,br,or){if(wr.hasOwnProperty(br))return Ft(wr[br]);const xr=br+"64";if(wr.hasOwnProperty(xr))return et.base64ToBytes(wr[xr]);if(or)throw new Error("Expected key: "+br);return null}const Dr=function(wr){const br=wr.readByte();if(br!==2)throw new Error(`Only version 2 is supported, found version ${br}`);const or=Lt(At(wr,bt)),xr=Tt(wr,gt),Pr=[];for(Tt(wr,dt);!At(wr,dt);){const rr={locationStr:Lt(At(wr,bt)),identifierBytes:Tt(wr,gt),vidBytes:At(wr,kt)};Tt(wr,dt),Pr.push(rr)}const Or=Tt(wr,pt);if(wr.length!==0)throw new Error("unexpected extra data at end of macaroon");return new ur({version:br,locationStr:or,identifierBytes:xr,signatureBytes:Or,caveats:Pr})},Xr=function(wr){return 48<=wr&&wr<=58||97<=wr&&wr<=102},Vr=function(wr){if(wr.length===0)throw new Error("Empty macaroon data");const br=wr.peekByte();if(br===2)return Dr(wr);throw Xr(br)?new Error("Version 1 binary format not supported"):new Error("Cannot determine data format of binary-encoded macaroon")};et.newMacaroon=function({identifier:wr,location:br,rootKey:or,version:xr}){const Pr=ht(wr,"Macaroon identifier"),Or=ht(or,"Macaroon root key");return new ur({version:xr===void 0?2:xr,identifierBytes:Pr,locationStr:Mt(br,"Macaroon location"),signatureBytes:Wt(It(Dt(Ht(Or)),Ht(Pr)))})},et.dischargeMacaroon=function(wr,br,or,xr){const Pr=wr.signature,Or=[wr];let rr=0,gr=!1;const Ir=wr.location,Yt=ir=>{gr||(ir.bindToRoot(Pr),Or.push(ir),rr--,Vt(ir))},Ut=ir=>{gr||(xr(ir),gr=!0)},Vt=ir=>{let kr,$r;for($r=0;$ret.LATEST_VERSION)throw new dt(pt.version);if(pt.version&&(this.version=pt.version),st(typeof this.version=="number","Identifier version must be a number"),st(pt.paymentHash.length===32,`Expected 32-byte hash, instead got ${pt.paymentHash.length}`),this.paymentHash=pt.paymentHash,pt.tokenId)this.tokenId=pt.tokenId;else{const yt=(0,lt.default)();this.tokenId=ot.default.createHash("sha256").update(Buffer.from(yt)).digest()}return st(this.tokenId.length===et.TOKEN_ID_SIZE,"Token Id of unexpected size"),this}toString(){return this.toHex()}static fromString(pt){try{return new this().fromHex(pt)}catch{return new this().fromBase64(pt)}}write(pt){switch(pt.writeU16BE(this.version),this.version){case 0:return pt.writeHash(this.paymentHash),st(Buffer.isBuffer(this.tokenId)&&this.tokenId.length===et.TOKEN_ID_SIZE,`Token ID must be ${et.TOKEN_ID_SIZE}-byte hash`),pt.writeBytes(this.tokenId),this;default:throw new dt(this.version)}}read(pt){switch(this.version=pt.readU16BE(),this.version){case 0:return this.paymentHash=pt.readHash(),this.tokenId=pt.readBytes(et.TOKEN_ID_SIZE),this;default:throw new dt(this.version)}}}et.Identifier=bt;const gt=kt=>{const pt=ut.importMacaroon(kt);let yt=pt._exportAsJSONObjectV2().i;if(yt==null&&(yt=pt._exportAsJSONObjectV2().i64,yt==null))throw new Error("Problem parsing macaroon identifier");return yt};et.decodeIdentifierFromMacaroon=gt})(identifier$1);var caveat={};/*! +`))},cryptoBrowserify.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6},cryptoBrowserify}var rngBrowser={exports:{}},getRandomValues=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);rngBrowser.exports=function(){return getRandomValues(rnds8),rnds8}}else{var rnds=new Array(16);rngBrowser.exports=function(){for(var tt=0,rt;tt<16;tt++)tt&3||(rt=Math.random()*4294967296),rnds[tt]=rt>>>((tt&3)<<3)&255;return rnds}}var rngBrowserExports=rngBrowser.exports,byteToHex=[];for(var i$2=0;i$2<256;++i$2)byteToHex[i$2]=(i$2+256).toString(16).substr(1);function bytesToUuid$1(et,tt){var rt=tt||0,nt=byteToHex;return[nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],"-",nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]],nt[et[rt++]]].join("")}var bytesToUuid_1=bytesToUuid$1,rng=rngBrowserExports,bytesToUuid=bytesToUuid_1;function v4(et,tt,rt){var nt=tt&&rt||0;typeof et=="string"&&(tt=et==="binary"?new Array(16):null,et=null),et=et||{};var it=et.random||(et.rng||rng)();if(it[6]=it[6]&15|64,it[8]=it[8]&63|128,tt)for(var st=0;st<16;++st)tt[nt+st]=it[st];return tt||bytesToUuid(it)}var v4_1=v4,macaroon$1={},sjcl={exports:{}};(function(et){var tt={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(pt){this.toString=function(){return"CORRUPT: "+this.message},this.message=pt},invalid:function(pt){this.toString=function(){return"INVALID: "+this.message},this.message=pt},bug:function(pt){this.toString=function(){return"BUG: "+this.message},this.message=pt},notReady:function(pt){this.toString=function(){return"NOT READY: "+this.message},this.message=pt}}};tt.cipher.aes=function(pt){this.s[0][0][0]||this.O();var yt,$t,mt,wt,St=this.s[0][4],Bt=this.s[1];yt=pt.length;var Ot=1;if(yt!==4&&yt!==6&&yt!==8)throw new tt.exception.invalid("invalid aes key size");for(this.b=[mt=pt.slice(0),wt=[]],pt=yt;pt<4*yt+28;pt++)$t=mt[pt-1],(pt%yt===0||yt===8&&pt%yt===4)&&($t=St[$t>>>24]<<24^St[$t>>16&255]<<16^St[$t>>8&255]<<8^St[$t&255],pt%yt===0&&($t=$t<<8^$t>>>24^Ot<<24,Ot=Ot<<1^283*(Ot>>7))),mt[pt]=mt[pt-yt]^$t;for(yt=0;pt;yt++,pt--)$t=mt[yt&3?pt:pt-4],wt[yt]=4>=pt||4>yt?$t:Bt[0][St[$t>>>24]]^Bt[1][St[$t>>16&255]]^Bt[2][St[$t>>8&255]]^Bt[3][St[$t&255]]},tt.cipher.aes.prototype={encrypt:function(pt){return rt(this,pt,0)},decrypt:function(pt){return rt(this,pt,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var pt=this.s[0],yt=this.s[1],$t=pt[4],mt=yt[4],wt,St,Bt,Ot=[],Lt=[],zt,Vt,Wt,lr;for(wt=0;256>wt;wt++)Lt[(Ot[wt]=wt<<1^283*(wt>>7))^wt]=wt;for(St=Bt=0;!$t[St];St^=zt||1,Bt=Lt[Bt]||1)for(Wt=Bt^Bt<<1^Bt<<2^Bt<<3^Bt<<4,Wt=Wt>>8^Wt&255^99,$t[St]=Wt,mt[Wt]=St,Vt=Ot[wt=Ot[zt=Ot[St]]],lr=16843009*Vt^65537*wt^257*zt^16843008*St,Vt=257*Ot[Wt]^16843008*Wt,wt=0;4>wt;wt++)pt[wt][St]=Vt=Vt<<24^Vt>>>8,yt[wt][Wt]=lr=lr<<24^lr>>>8;for(wt=0;5>wt;wt++)pt[wt]=pt[wt].slice(0),yt[wt]=yt[wt].slice(0)}};function rt(pt,yt,$t){if(yt.length!==4)throw new tt.exception.invalid("invalid aes block size");var mt=pt.b[$t],wt=yt[0]^mt[0],St=yt[$t?3:1]^mt[1],Bt=yt[2]^mt[2];yt=yt[$t?1:3]^mt[3];var Ot,Lt,zt,Vt=mt.length/4-2,Wt,lr=4,qt=[0,0,0,0];Ot=pt.s[$t],pt=Ot[0];var Ft=Ot[1],Mt=Ot[2],ht=Ot[3],Et=Ot[4];for(Wt=0;Wt>>24]^Ft[St>>16&255]^Mt[Bt>>8&255]^ht[yt&255]^mt[lr],Lt=pt[St>>>24]^Ft[Bt>>16&255]^Mt[yt>>8&255]^ht[wt&255]^mt[lr+1],zt=pt[Bt>>>24]^Ft[yt>>16&255]^Mt[wt>>8&255]^ht[St&255]^mt[lr+2],yt=pt[yt>>>24]^Ft[wt>>16&255]^Mt[St>>8&255]^ht[Bt&255]^mt[lr+3],lr+=4,wt=Ot,St=Lt,Bt=zt;for(Wt=0;4>Wt;Wt++)qt[$t?3&-Wt:Wt]=Et[wt>>>24]<<24^Et[St>>16&255]<<16^Et[Bt>>8&255]<<8^Et[yt&255]^mt[lr++],Ot=wt,wt=St,St=Bt,Bt=yt,yt=Ot;return qt}tt.bitArray={bitSlice:function(pt,yt,$t){return pt=tt.bitArray.$(pt.slice(yt/32),32-(yt&31)).slice(1),$t===void 0?pt:tt.bitArray.clamp(pt,$t-yt)},extract:function(pt,yt,$t){var mt=Math.floor(-yt-$t&31);return((yt+$t-1^yt)&-32?pt[yt/32|0]<<32-mt^pt[yt/32+1|0]>>>mt:pt[yt/32|0]>>>mt)&(1<<$t)-1},concat:function(pt,yt){if(pt.length===0||yt.length===0)return pt.concat(yt);var $t=pt[pt.length-1],mt=tt.bitArray.getPartial($t);return mt===32?pt.concat(yt):tt.bitArray.$(yt,mt,$t|0,pt.slice(0,pt.length-1))},bitLength:function(pt){var yt=pt.length;return yt===0?0:32*(yt-1)+tt.bitArray.getPartial(pt[yt-1])},clamp:function(pt,yt){if(32*pt.length>yt-1,1)),pt},partial:function(pt,yt,$t){return pt===32?yt:($t?yt|0:yt<<32-pt)+1099511627776*pt},getPartial:function(pt){return Math.round(pt/1099511627776)||32},equal:function(pt,yt){if(tt.bitArray.bitLength(pt)!==tt.bitArray.bitLength(yt))return!1;var $t=0,mt;for(mt=0;mt>>yt),$t=pt[wt]<<32-yt;return wt=pt.length?pt[pt.length-1]:0,pt=tt.bitArray.getPartial(wt),mt.push(tt.bitArray.partial(yt+pt&31,32>>24|$t>>>8&65280|($t&65280)<<8|$t<<24;return pt}},tt.codec.utf8String={fromBits:function(pt){var yt="",$t=tt.bitArray.bitLength(pt),mt,wt;for(mt=0;mt<$t/8;mt++)!(mt&3)&&(wt=pt[mt/4]),yt+=String.fromCharCode(wt>>>8>>>8>>>8),wt<<=8;return decodeURIComponent(escape(yt))},toBits:function(pt){pt=unescape(encodeURIComponent(pt));var yt=[],$t,mt=0;for($t=0;$t>>Bt)>>>wt),BtVt){if(!yt)try{return tt.codec.base32hex.toBits(pt)}catch{}throw new tt.exception.invalid("this isn't "+Wt+"!")}Ot>wt?(Ot-=wt,St.push(zt^Vt>>>Ot),zt=Vt<<$t-Ot):(Ot+=mt,zt^=Vt<<$t-Ot)}return Ot&56&&St.push(tt.bitArray.partial(Ot&56,zt,1)),St}},tt.codec.base32hex={fromBits:function(pt,yt){return tt.codec.base32.fromBits(pt,yt,1)},toBits:function(pt){return tt.codec.base32.toBits(pt,1)}},tt.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(pt,yt,$t){var mt="",wt=0,St=tt.codec.base64.B,Bt=0,Ot=tt.bitArray.bitLength(pt);for($t&&(St=St.substr(0,62)+"-_"),$t=0;6*mt.length>>wt)>>>26),6>wt?(Bt=pt[$t]<<6-wt,wt+=26,$t++):(Bt<<=6,wt-=6);for(;mt.length&3&&!yt;)mt+="=";return mt},toBits:function(pt,yt){pt=pt.replace(/\s|=/g,"");var $t=[],mt,wt=0,St=tt.codec.base64.B,Bt=0,Ot;for(yt&&(St=St.substr(0,62)+"-_"),mt=0;mtOt)throw new tt.exception.invalid("this isn't base64!");26>>wt),Bt=Ot<<32-wt):(wt+=6,Bt^=Ot<<32-wt)}return wt&56&&$t.push(tt.bitArray.partial(wt&56,Bt,1)),$t}},tt.codec.base64url={fromBits:function(pt){return tt.codec.base64.fromBits(pt,1,1)},toBits:function(pt){return tt.codec.base64.toBits(pt,1)}},tt.hash.sha256=function(pt){this.b[0]||this.O(),pt?(this.F=pt.F.slice(0),this.A=pt.A.slice(0),this.l=pt.l):this.reset()},tt.hash.sha256.hash=function(pt){return new tt.hash.sha256().update(pt).finalize()},tt.hash.sha256.prototype={blockSize:512,reset:function(){return this.F=this.Y.slice(0),this.A=[],this.l=0,this},update:function(pt){typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt));var yt,$t=this.A=tt.bitArray.concat(this.A,pt);if(yt=this.l,pt=this.l=yt+tt.bitArray.bitLength(pt),9007199254740991yt;$t++){for(wt=!0,mt=2;mt*mt<=$t;mt++)if($t%mt===0){wt=!1;break}wt&&(8>yt&&(this.Y[yt]=pt(Math.pow($t,.5))),this.b[yt]=pt(Math.pow($t,1/3)),yt++)}}};function nt(pt,yt){var $t,mt,wt,St=pt.F,Bt=pt.b,Ot=St[0],Lt=St[1],zt=St[2],Vt=St[3],Wt=St[4],lr=St[5],qt=St[6],Ft=St[7];for($t=0;64>$t;$t++)16>$t?mt=yt[$t]:(mt=yt[$t+1&15],wt=yt[$t+14&15],mt=yt[$t&15]=(mt>>>7^mt>>>18^mt>>>3^mt<<25^mt<<14)+(wt>>>17^wt>>>19^wt>>>10^wt<<15^wt<<13)+yt[$t&15]+yt[$t+9&15]|0),mt=mt+Ft+(Wt>>>6^Wt>>>11^Wt>>>25^Wt<<26^Wt<<21^Wt<<7)+(qt^Wt&(lr^qt))+Bt[$t],Ft=qt,qt=lr,lr=Wt,Wt=Vt+mt|0,Vt=zt,zt=Lt,Lt=Ot,Ot=mt+(Lt&zt^Vt&(Lt^zt))+(Lt>>>2^Lt>>>13^Lt>>>22^Lt<<30^Lt<<19^Lt<<10)|0;St[0]=St[0]+Ot|0,St[1]=St[1]+Lt|0,St[2]=St[2]+zt|0,St[3]=St[3]+Vt|0,St[4]=St[4]+Wt|0,St[5]=St[5]+lr|0,St[6]=St[6]+qt|0,St[7]=St[7]+Ft|0}tt.mode.ccm={name:"ccm",G:[],listenProgress:function(pt){tt.mode.ccm.G.push(pt)},unListenProgress:function(pt){pt=tt.mode.ccm.G.indexOf(pt),-1Lt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(St=2;4>St&&zt>>>8*St;St++);return St<15-Lt&&(St=15-Lt),$t=Ot.clamp($t,8*(15-St)),yt=tt.mode.ccm.V(pt,yt,$t,mt,wt,St),Bt=tt.mode.ccm.C(pt,Bt,$t,yt,wt,St),Ot.concat(Bt.data,Bt.tag)},decrypt:function(pt,yt,$t,mt,wt){wt=wt||64,mt=mt||[];var St=tt.bitArray,Bt=St.bitLength($t)/8,zt=St.bitLength(yt),Ot=St.clamp(yt,zt-wt),Lt=St.bitSlice(yt,zt-wt),zt=(zt-wt)/8;if(7>Bt)throw new tt.exception.invalid("ccm: iv must be at least 7 bytes");for(yt=2;4>yt&&zt>>>8*yt;yt++);if(yt<15-Bt&&(yt=15-Bt),$t=St.clamp($t,8*(15-yt)),Ot=tt.mode.ccm.C(pt,Ot,$t,Lt,wt,yt),pt=tt.mode.ccm.V(pt,Ot.data,$t,mt,wt,yt),!St.equal(Ot.tag,pt))throw new tt.exception.corrupt("ccm: tag doesn't match");return Ot.data},na:function(pt,yt,$t,mt,wt,St){var Bt=[],Ot=tt.bitArray,Lt=Ot.i;if(mt=[Ot.partial(8,(yt.length?64:0)|mt-2<<2|St-1)],mt=Ot.concat(mt,$t),mt[3]|=wt,mt=pt.encrypt(mt),yt.length)for($t=Ot.bitLength(yt)/8,65279>=$t?Bt=[Ot.partial(16,$t)]:4294967295>=$t&&(Bt=Ot.concat([Ot.partial(16,65534)],[$t])),Bt=Ot.concat(Bt,yt),yt=0;ytwt||16Vt&&(tt.mode.ccm.fa(Bt/Lt),Vt+=Wt),$t[3]++,wt=pt.encrypt($t),yt[Bt]^=wt[0],yt[Bt+1]^=wt[1],yt[Bt+2]^=wt[2],yt[Bt+3]^=wt[3];return{tag:mt,data:Ot.clamp(yt,zt)}}},tt.mode.ocb2={name:"ocb2",encrypt:function(pt,yt,$t,mt,wt,St){if(tt.bitArray.bitLength($t)!==128)throw new tt.exception.invalid("ocb iv must be 128 bits");var Bt,Ot=tt.mode.ocb2.S,Lt=tt.bitArray,zt=Lt.i,Vt=[0,0,0,0];$t=Ot(pt.encrypt($t));var Wt,lr=[];for(mt=mt||[],wt=wt||64,Bt=0;Bt+4wt.bitLength($t)&&(Ot=St(Ot,mt(Ot)),$t=wt.concat($t,[-2147483648,0,0,0])),Bt=St(Bt,$t),pt.encrypt(St(mt(St(Ot,mt(Ot))),Bt))},S:function(pt){return[pt[0]<<1^pt[1]>>>31,pt[1]<<1^pt[2]>>>31,pt[2]<<1^pt[3]>>>31,pt[3]<<1^135*(pt[0]>>>31)]}},tt.mode.gcm={name:"gcm",encrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0);return yt=tt.bitArray,mt=mt||[],pt=tt.mode.gcm.C(!0,pt,St,mt,$t,wt||128),yt.concat(pt.data,pt.tag)},decrypt:function(pt,yt,$t,mt,wt){var St=yt.slice(0),Bt=tt.bitArray,Ot=Bt.bitLength(St);if(wt=wt||128,mt=mt||[],wt<=Ot?(yt=Bt.bitSlice(St,Ot-wt),St=Bt.bitSlice(St,0,Ot-wt)):(yt=St,St=[]),pt=tt.mode.gcm.C(!1,pt,St,mt,$t,wt),!Bt.equal(pt.tag,yt))throw new tt.exception.corrupt("gcm: tag doesn't match");return pt.data},ka:function(pt,yt){var $t,mt,wt,St,Bt,Ot=tt.bitArray.i;for(wt=[0,0,0,0],St=yt.slice(0),$t=0;128>$t;$t++){for((mt=(pt[Math.floor($t/32)]&1<<31-$t%32)!==0)&&(wt=Ot(wt,St)),Bt=(St[3]&1)!==0,mt=3;0>>1|(St[mt-1]&1)<<31;St[0]>>>=1,Bt&&(St[0]^=-520093696)}return wt},j:function(pt,yt,$t){var mt,wt=$t.length;for(yt=yt.slice(0),mt=0;mtwt&&(pt=yt.hash(pt)),mt=0;mtmt||0>$t)throw new tt.exception.invalid("invalid params to pbkdf2");typeof pt=="string"&&(pt=tt.codec.utf8String.toBits(pt)),typeof yt=="string"&&(yt=tt.codec.utf8String.toBits(yt)),wt=wt||tt.misc.hmac,pt=new wt(pt);var St,Bt,Ot,Lt,zt=[],Vt=tt.bitArray;for(Lt=1;32*zt.length<(mt||1);Lt++){for(wt=St=pt.encrypt(Vt.concat(yt,[Lt])),Bt=1;Bt<$t;Bt++)for(St=pt.encrypt(St),Ot=0;OtBt;Bt++)wt.push(4294967296*Math.random()|0);for(Bt=0;Bt=1<this.o&&(this.o=St),this.P++,this.b=tt.hash.sha256.hash(this.b.concat(wt)),this.L=new tt.cipher.aes(this.b),mt=0;4>mt&&(this.h[mt]=this.h[mt]+1|0,!this.h[mt]);mt++);}for(mt=0;mt>>1;this.c[Bt].update([mt,this.N++,2,yt,St,pt.length].concat(pt))}break;case"string":yt===void 0&&(yt=pt.length),this.c[Bt].update([mt,this.N++,3,yt,St,pt.length]),this.c[Bt].update(pt);break;default:Lt=1}if(Lt)throw new tt.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[Bt]+=yt,this.f+=yt,Ot===this.u&&(this.isReady()!==this.u&&it("seeded",Math.max(this.o,this.f)),it("progress",this.getProgress()))},isReady:function(pt){return pt=this.T[pt!==void 0?pt:this.M],this.o&&this.o>=pt?this.m[0]>this.ba&&new Date().valueOf()>this.Z?this.J|this.I:this.I:this.f>=pt?this.J|this.u:this.u},getProgress:function(pt){return pt=this.T[pt||this.M],this.o>=pt||this.f>pt?1:this.f/pt},startCollectors:function(){if(!this.D){if(this.a={loadTimeCollector:lt(this,this.ma),mouseCollector:lt(this,this.oa),keyboardCollector:lt(this,this.la),accelerometerCollector:lt(this,this.ea),touchCollector:lt(this,this.qa)},window.addEventListener)window.addEventListener("load",this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new tt.exception.bug("can't attach event");this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(pt,yt){this.K[pt][this.ga++]=yt},removeEventListener:function(pt,yt){var $t,mt,wt=this.K[pt],St=[];for(mt in wt)wt.hasOwnProperty(mt)&&wt[mt]===yt&&St.push(mt);for($t=0;$tyt&&(pt.h[yt]=pt.h[yt]+1|0,!pt.h[yt]);yt++);return pt.L.encrypt(pt.h)}function lt(pt,yt){return function(){yt.apply(pt,arguments)}}tt.random=new tt.prng(6);e:try{var ut,dt,bt,gt;if(gt=et.exports){var kt;try{kt=requireCryptoBrowserify()}catch{kt=null}gt=dt=kt}if(gt&&dt.randomBytes)ut=dt.randomBytes(128),ut=new Uint32Array(new Uint8Array(ut).buffer),tt.random.addEntropy(ut,1024,"crypto['randomBytes']");else if(typeof window<"u"&&typeof Uint32Array<"u"){if(bt=new Uint32Array(32),window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(bt);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(bt);else break e;tt.random.addEntropy(bt,1024,"crypto['getRandomValues']")}}catch(pt){typeof window<"u"&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(pt))}tt.json={defaults:{v:1,iter:1e4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(pt,yt,$t,mt){$t=$t||{},mt=mt||{};var wt=tt.json,St=wt.g({iv:tt.random.randomWords(4,0)},wt.defaults),Bt;if(wt.g(St,$t),$t=St.adata,typeof St.salt=="string"&&(St.salt=tt.codec.base64.toBits(St.salt)),typeof St.iv=="string"&&(St.iv=tt.codec.base64.toBits(St.iv)),!tt.mode[St.mode]||!tt.cipher[St.cipher]||typeof pt=="string"&&100>=St.iter||St.ts!==64&&St.ts!==96&&St.ts!==128||St.ks!==128&&St.ks!==192&&St.ks!==256||2>St.iv.length||4=yt.iter||yt.ts!==64&&yt.ts!==96&&yt.ts!==128||yt.ks!==128&&yt.ks!==192&&yt.ks!==256||!yt.iv||2>yt.iv.length||4>24&255,Xt[ar+1]=cr>>16&255,Xt[ar+2]=cr>>8&255,Xt[ar+3]=cr&255,Xt[ar+4]=jt>>24&255,Xt[ar+5]=jt>>16&255,Xt[ar+6]=jt>>8&255,Xt[ar+7]=jt&255}function yt(Xt,ar,cr,jt,dr){var Rr,Cr=0;for(Rr=0;Rr>>8)-1}function $t(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,16)}function mt(Xt,ar,cr,jt){return yt(Xt,ar,cr,jt,32)}function wt(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;pn=pn+dr|0,wn=wn+Rr|0,un=un+Cr|0,yn=yn+Nr|0,mn=mn+Yr|0,cn=cn+tn|0,Ur=Ur+qr|0,jr=jr+Vn|0,en=en+hn|0,Gr=Gr+Tn|0,Zr=Zr+An|0,sn=sn+Rn|0,On=On+Pn|0,zn=zn+In|0,Gn=Gn+$n|0,Hn=Hn+Bn|0,Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=wn>>>0&255,Xt[5]=wn>>>8&255,Xt[6]=wn>>>16&255,Xt[7]=wn>>>24&255,Xt[8]=un>>>0&255,Xt[9]=un>>>8&255,Xt[10]=un>>>16&255,Xt[11]=un>>>24&255,Xt[12]=yn>>>0&255,Xt[13]=yn>>>8&255,Xt[14]=yn>>>16&255,Xt[15]=yn>>>24&255,Xt[16]=mn>>>0&255,Xt[17]=mn>>>8&255,Xt[18]=mn>>>16&255,Xt[19]=mn>>>24&255,Xt[20]=cn>>>0&255,Xt[21]=cn>>>8&255,Xt[22]=cn>>>16&255,Xt[23]=cn>>>24&255,Xt[24]=Ur>>>0&255,Xt[25]=Ur>>>8&255,Xt[26]=Ur>>>16&255,Xt[27]=Ur>>>24&255,Xt[28]=jr>>>0&255,Xt[29]=jr>>>8&255,Xt[30]=jr>>>16&255,Xt[31]=jr>>>24&255,Xt[32]=en>>>0&255,Xt[33]=en>>>8&255,Xt[34]=en>>>16&255,Xt[35]=en>>>24&255,Xt[36]=Gr>>>0&255,Xt[37]=Gr>>>8&255,Xt[38]=Gr>>>16&255,Xt[39]=Gr>>>24&255,Xt[40]=Zr>>>0&255,Xt[41]=Zr>>>8&255,Xt[42]=Zr>>>16&255,Xt[43]=Zr>>>24&255,Xt[44]=sn>>>0&255,Xt[45]=sn>>>8&255,Xt[46]=sn>>>16&255,Xt[47]=sn>>>24&255,Xt[48]=On>>>0&255,Xt[49]=On>>>8&255,Xt[50]=On>>>16&255,Xt[51]=On>>>24&255,Xt[52]=zn>>>0&255,Xt[53]=zn>>>8&255,Xt[54]=zn>>>16&255,Xt[55]=zn>>>24&255,Xt[56]=Gn>>>0&255,Xt[57]=Gn>>>8&255,Xt[58]=Gn>>>16&255,Xt[59]=Gn>>>24&255,Xt[60]=Hn>>>0&255,Xt[61]=Hn>>>8&255,Xt[62]=Hn>>>16&255,Xt[63]=Hn>>>24&255}function St(Xt,ar,cr,jt){for(var dr=jt[0]&255|(jt[1]&255)<<8|(jt[2]&255)<<16|(jt[3]&255)<<24,Rr=cr[0]&255|(cr[1]&255)<<8|(cr[2]&255)<<16|(cr[3]&255)<<24,Cr=cr[4]&255|(cr[5]&255)<<8|(cr[6]&255)<<16|(cr[7]&255)<<24,Nr=cr[8]&255|(cr[9]&255)<<8|(cr[10]&255)<<16|(cr[11]&255)<<24,Yr=cr[12]&255|(cr[13]&255)<<8|(cr[14]&255)<<16|(cr[15]&255)<<24,tn=jt[4]&255|(jt[5]&255)<<8|(jt[6]&255)<<16|(jt[7]&255)<<24,qr=ar[0]&255|(ar[1]&255)<<8|(ar[2]&255)<<16|(ar[3]&255)<<24,Vn=ar[4]&255|(ar[5]&255)<<8|(ar[6]&255)<<16|(ar[7]&255)<<24,hn=ar[8]&255|(ar[9]&255)<<8|(ar[10]&255)<<16|(ar[11]&255)<<24,Tn=ar[12]&255|(ar[13]&255)<<8|(ar[14]&255)<<16|(ar[15]&255)<<24,An=jt[8]&255|(jt[9]&255)<<8|(jt[10]&255)<<16|(jt[11]&255)<<24,Rn=cr[16]&255|(cr[17]&255)<<8|(cr[18]&255)<<16|(cr[19]&255)<<24,Pn=cr[20]&255|(cr[21]&255)<<8|(cr[22]&255)<<16|(cr[23]&255)<<24,In=cr[24]&255|(cr[25]&255)<<8|(cr[26]&255)<<16|(cr[27]&255)<<24,$n=cr[28]&255|(cr[29]&255)<<8|(cr[30]&255)<<16|(cr[31]&255)<<24,Bn=jt[12]&255|(jt[13]&255)<<8|(jt[14]&255)<<16|(jt[15]&255)<<24,pn=dr,wn=Rr,un=Cr,yn=Nr,mn=Yr,cn=tn,Ur=qr,jr=Vn,en=hn,Gr=Tn,Zr=An,sn=Rn,On=Pn,zn=In,Gn=$n,Hn=Bn,Tr,Yn=0;Yn<20;Yn+=2)Tr=pn+On|0,mn^=Tr<<7|Tr>>>32-7,Tr=mn+pn|0,en^=Tr<<9|Tr>>>32-9,Tr=en+mn|0,On^=Tr<<13|Tr>>>32-13,Tr=On+en|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+wn|0,Gr^=Tr<<7|Tr>>>32-7,Tr=Gr+cn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+Gr|0,wn^=Tr<<13|Tr>>>32-13,Tr=wn+zn|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Ur|0,Gn^=Tr<<7|Tr>>>32-7,Tr=Gn+Zr|0,un^=Tr<<9|Tr>>>32-9,Tr=un+Gn|0,Ur^=Tr<<13|Tr>>>32-13,Tr=Ur+un|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+sn|0,yn^=Tr<<7|Tr>>>32-7,Tr=yn+Hn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+yn|0,sn^=Tr<<13|Tr>>>32-13,Tr=sn+jr|0,Hn^=Tr<<18|Tr>>>32-18,Tr=pn+yn|0,wn^=Tr<<7|Tr>>>32-7,Tr=wn+pn|0,un^=Tr<<9|Tr>>>32-9,Tr=un+wn|0,yn^=Tr<<13|Tr>>>32-13,Tr=yn+un|0,pn^=Tr<<18|Tr>>>32-18,Tr=cn+mn|0,Ur^=Tr<<7|Tr>>>32-7,Tr=Ur+cn|0,jr^=Tr<<9|Tr>>>32-9,Tr=jr+Ur|0,mn^=Tr<<13|Tr>>>32-13,Tr=mn+jr|0,cn^=Tr<<18|Tr>>>32-18,Tr=Zr+Gr|0,sn^=Tr<<7|Tr>>>32-7,Tr=sn+Zr|0,en^=Tr<<9|Tr>>>32-9,Tr=en+sn|0,Gr^=Tr<<13|Tr>>>32-13,Tr=Gr+en|0,Zr^=Tr<<18|Tr>>>32-18,Tr=Hn+Gn|0,On^=Tr<<7|Tr>>>32-7,Tr=On+Hn|0,zn^=Tr<<9|Tr>>>32-9,Tr=zn+On|0,Gn^=Tr<<13|Tr>>>32-13,Tr=Gn+zn|0,Hn^=Tr<<18|Tr>>>32-18;Xt[0]=pn>>>0&255,Xt[1]=pn>>>8&255,Xt[2]=pn>>>16&255,Xt[3]=pn>>>24&255,Xt[4]=cn>>>0&255,Xt[5]=cn>>>8&255,Xt[6]=cn>>>16&255,Xt[7]=cn>>>24&255,Xt[8]=Zr>>>0&255,Xt[9]=Zr>>>8&255,Xt[10]=Zr>>>16&255,Xt[11]=Zr>>>24&255,Xt[12]=Hn>>>0&255,Xt[13]=Hn>>>8&255,Xt[14]=Hn>>>16&255,Xt[15]=Hn>>>24&255,Xt[16]=Ur>>>0&255,Xt[17]=Ur>>>8&255,Xt[18]=Ur>>>16&255,Xt[19]=Ur>>>24&255,Xt[20]=jr>>>0&255,Xt[21]=jr>>>8&255,Xt[22]=jr>>>16&255,Xt[23]=jr>>>24&255,Xt[24]=en>>>0&255,Xt[25]=en>>>8&255,Xt[26]=en>>>16&255,Xt[27]=en>>>24&255,Xt[28]=Gr>>>0&255,Xt[29]=Gr>>>8&255,Xt[30]=Gr>>>16&255,Xt[31]=Gr>>>24&255}function Bt(Xt,ar,cr,jt){wt(Xt,ar,cr,jt)}function Ot(Xt,ar,cr,jt){St(Xt,ar,cr,jt)}var Lt=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);function zt(Xt,ar,cr,jt,dr,Rr,Cr){var Nr=new Uint8Array(16),Yr=new Uint8Array(64),tn,qr;for(qr=0;qr<16;qr++)Nr[qr]=0;for(qr=0;qr<8;qr++)Nr[qr]=Rr[qr];for(;dr>=64;){for(Bt(Yr,Nr,Cr,Lt),qr=0;qr<64;qr++)Xt[ar+qr]=cr[jt+qr]^Yr[qr];for(tn=1,qr=8;qr<16;qr++)tn=tn+(Nr[qr]&255)|0,Nr[qr]=tn&255,tn>>>=8;dr-=64,ar+=64,jt+=64}if(dr>0)for(Bt(Yr,Nr,Cr,Lt),qr=0;qr=64;){for(Bt(Cr,Rr,dr,Lt),Yr=0;Yr<64;Yr++)Xt[ar+Yr]=Cr[Yr];for(Nr=1,Yr=8;Yr<16;Yr++)Nr=Nr+(Rr[Yr]&255)|0,Rr[Yr]=Nr&255,Nr>>>=8;cr-=64,ar+=64}if(cr>0)for(Bt(Cr,Rr,dr,Lt),Yr=0;Yr>>13|cr<<3)&8191,jt=Xt[4]&255|(Xt[5]&255)<<8,this.r[2]=(cr>>>10|jt<<6)&7939,dr=Xt[6]&255|(Xt[7]&255)<<8,this.r[3]=(jt>>>7|dr<<9)&8191,Rr=Xt[8]&255|(Xt[9]&255)<<8,this.r[4]=(dr>>>4|Rr<<12)&255,this.r[5]=Rr>>>1&8190,Cr=Xt[10]&255|(Xt[11]&255)<<8,this.r[6]=(Rr>>>14|Cr<<2)&8191,Nr=Xt[12]&255|(Xt[13]&255)<<8,this.r[7]=(Cr>>>11|Nr<<5)&8065,Yr=Xt[14]&255|(Xt[15]&255)<<8,this.r[8]=(Nr>>>8|Yr<<8)&8191,this.r[9]=Yr>>>5&127,this.pad[0]=Xt[16]&255|(Xt[17]&255)<<8,this.pad[1]=Xt[18]&255|(Xt[19]&255)<<8,this.pad[2]=Xt[20]&255|(Xt[21]&255)<<8,this.pad[3]=Xt[22]&255|(Xt[23]&255)<<8,this.pad[4]=Xt[24]&255|(Xt[25]&255)<<8,this.pad[5]=Xt[26]&255|(Xt[27]&255)<<8,this.pad[6]=Xt[28]&255|(Xt[29]&255)<<8,this.pad[7]=Xt[30]&255|(Xt[31]&255)<<8};qt.prototype.blocks=function(Xt,ar,cr){for(var jt=this.fin?0:2048,dr,Rr,Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn=this.h[0],mn=this.h[1],cn=this.h[2],Ur=this.h[3],jr=this.h[4],en=this.h[5],Gr=this.h[6],Zr=this.h[7],sn=this.h[8],On=this.h[9],zn=this.r[0],Gn=this.r[1],Hn=this.r[2],Tr=this.r[3],Yn=this.r[4],es=this.r[5],ts=this.r[6],Wn=this.r[7],rs=this.r[8],Qn=this.r[9];cr>=16;)dr=Xt[ar+0]&255|(Xt[ar+1]&255)<<8,yn+=dr&8191,Rr=Xt[ar+2]&255|(Xt[ar+3]&255)<<8,mn+=(dr>>>13|Rr<<3)&8191,Cr=Xt[ar+4]&255|(Xt[ar+5]&255)<<8,cn+=(Rr>>>10|Cr<<6)&8191,Nr=Xt[ar+6]&255|(Xt[ar+7]&255)<<8,Ur+=(Cr>>>7|Nr<<9)&8191,Yr=Xt[ar+8]&255|(Xt[ar+9]&255)<<8,jr+=(Nr>>>4|Yr<<12)&8191,en+=Yr>>>1&8191,tn=Xt[ar+10]&255|(Xt[ar+11]&255)<<8,Gr+=(Yr>>>14|tn<<2)&8191,qr=Xt[ar+12]&255|(Xt[ar+13]&255)<<8,Zr+=(tn>>>11|qr<<5)&8191,Vn=Xt[ar+14]&255|(Xt[ar+15]&255)<<8,sn+=(qr>>>8|Vn<<8)&8191,On+=Vn>>>5|jt,hn=0,Tn=hn,Tn+=yn*zn,Tn+=mn*(5*Qn),Tn+=cn*(5*rs),Tn+=Ur*(5*Wn),Tn+=jr*(5*ts),hn=Tn>>>13,Tn&=8191,Tn+=en*(5*es),Tn+=Gr*(5*Yn),Tn+=Zr*(5*Tr),Tn+=sn*(5*Hn),Tn+=On*(5*Gn),hn+=Tn>>>13,Tn&=8191,An=hn,An+=yn*Gn,An+=mn*zn,An+=cn*(5*Qn),An+=Ur*(5*rs),An+=jr*(5*Wn),hn=An>>>13,An&=8191,An+=en*(5*ts),An+=Gr*(5*es),An+=Zr*(5*Yn),An+=sn*(5*Tr),An+=On*(5*Hn),hn+=An>>>13,An&=8191,Rn=hn,Rn+=yn*Hn,Rn+=mn*Gn,Rn+=cn*zn,Rn+=Ur*(5*Qn),Rn+=jr*(5*rs),hn=Rn>>>13,Rn&=8191,Rn+=en*(5*Wn),Rn+=Gr*(5*ts),Rn+=Zr*(5*es),Rn+=sn*(5*Yn),Rn+=On*(5*Tr),hn+=Rn>>>13,Rn&=8191,Pn=hn,Pn+=yn*Tr,Pn+=mn*Hn,Pn+=cn*Gn,Pn+=Ur*zn,Pn+=jr*(5*Qn),hn=Pn>>>13,Pn&=8191,Pn+=en*(5*rs),Pn+=Gr*(5*Wn),Pn+=Zr*(5*ts),Pn+=sn*(5*es),Pn+=On*(5*Yn),hn+=Pn>>>13,Pn&=8191,In=hn,In+=yn*Yn,In+=mn*Tr,In+=cn*Hn,In+=Ur*Gn,In+=jr*zn,hn=In>>>13,In&=8191,In+=en*(5*Qn),In+=Gr*(5*rs),In+=Zr*(5*Wn),In+=sn*(5*ts),In+=On*(5*es),hn+=In>>>13,In&=8191,$n=hn,$n+=yn*es,$n+=mn*Yn,$n+=cn*Tr,$n+=Ur*Hn,$n+=jr*Gn,hn=$n>>>13,$n&=8191,$n+=en*zn,$n+=Gr*(5*Qn),$n+=Zr*(5*rs),$n+=sn*(5*Wn),$n+=On*(5*ts),hn+=$n>>>13,$n&=8191,Bn=hn,Bn+=yn*ts,Bn+=mn*es,Bn+=cn*Yn,Bn+=Ur*Tr,Bn+=jr*Hn,hn=Bn>>>13,Bn&=8191,Bn+=en*Gn,Bn+=Gr*zn,Bn+=Zr*(5*Qn),Bn+=sn*(5*rs),Bn+=On*(5*Wn),hn+=Bn>>>13,Bn&=8191,pn=hn,pn+=yn*Wn,pn+=mn*ts,pn+=cn*es,pn+=Ur*Yn,pn+=jr*Tr,hn=pn>>>13,pn&=8191,pn+=en*Hn,pn+=Gr*Gn,pn+=Zr*zn,pn+=sn*(5*Qn),pn+=On*(5*rs),hn+=pn>>>13,pn&=8191,wn=hn,wn+=yn*rs,wn+=mn*Wn,wn+=cn*ts,wn+=Ur*es,wn+=jr*Yn,hn=wn>>>13,wn&=8191,wn+=en*Tr,wn+=Gr*Hn,wn+=Zr*Gn,wn+=sn*zn,wn+=On*(5*Qn),hn+=wn>>>13,wn&=8191,un=hn,un+=yn*Qn,un+=mn*rs,un+=cn*Wn,un+=Ur*ts,un+=jr*es,hn=un>>>13,un&=8191,un+=en*Yn,un+=Gr*Tr,un+=Zr*Hn,un+=sn*Gn,un+=On*zn,hn+=un>>>13,un&=8191,hn=(hn<<2)+hn|0,hn=hn+Tn|0,Tn=hn&8191,hn=hn>>>13,An+=hn,yn=Tn,mn=An,cn=Rn,Ur=Pn,jr=In,en=$n,Gr=Bn,Zr=pn,sn=wn,On=un,ar+=16,cr-=16;this.h[0]=yn,this.h[1]=mn,this.h[2]=cn,this.h[3]=Ur,this.h[4]=jr,this.h[5]=en,this.h[6]=Gr,this.h[7]=Zr,this.h[8]=sn,this.h[9]=On},qt.prototype.finish=function(Xt,ar){var cr=new Uint16Array(10),jt,dr,Rr,Cr;if(this.leftover){for(Cr=this.leftover,this.buffer[Cr++]=1;Cr<16;Cr++)this.buffer[Cr]=0;this.fin=1,this.blocks(this.buffer,0,16)}for(jt=this.h[1]>>>13,this.h[1]&=8191,Cr=2;Cr<10;Cr++)this.h[Cr]+=jt,jt=this.h[Cr]>>>13,this.h[Cr]&=8191;for(this.h[0]+=jt*5,jt=this.h[0]>>>13,this.h[0]&=8191,this.h[1]+=jt,jt=this.h[1]>>>13,this.h[1]&=8191,this.h[2]+=jt,cr[0]=this.h[0]+5,jt=cr[0]>>>13,cr[0]&=8191,Cr=1;Cr<10;Cr++)cr[Cr]=this.h[Cr]+jt,jt=cr[Cr]>>>13,cr[Cr]&=8191;for(cr[9]-=8192,dr=(jt^1)-1,Cr=0;Cr<10;Cr++)cr[Cr]&=dr;for(dr=~dr,Cr=0;Cr<10;Cr++)this.h[Cr]=this.h[Cr]&dr|cr[Cr];for(this.h[0]=(this.h[0]|this.h[1]<<13)&65535,this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&65535,this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&65535,this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&65535,this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&65535,this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&65535,this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&65535,this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&65535,Rr=this.h[0]+this.pad[0],this.h[0]=Rr&65535,Cr=1;Cr<8;Cr++)Rr=(this.h[Cr]+this.pad[Cr]|0)+(Rr>>>16)|0,this.h[Cr]=Rr&65535;Xt[ar+0]=this.h[0]>>>0&255,Xt[ar+1]=this.h[0]>>>8&255,Xt[ar+2]=this.h[1]>>>0&255,Xt[ar+3]=this.h[1]>>>8&255,Xt[ar+4]=this.h[2]>>>0&255,Xt[ar+5]=this.h[2]>>>8&255,Xt[ar+6]=this.h[3]>>>0&255,Xt[ar+7]=this.h[3]>>>8&255,Xt[ar+8]=this.h[4]>>>0&255,Xt[ar+9]=this.h[4]>>>8&255,Xt[ar+10]=this.h[5]>>>0&255,Xt[ar+11]=this.h[5]>>>8&255,Xt[ar+12]=this.h[6]>>>0&255,Xt[ar+13]=this.h[6]>>>8&255,Xt[ar+14]=this.h[7]>>>0&255,Xt[ar+15]=this.h[7]>>>8&255},qt.prototype.update=function(Xt,ar,cr){var jt,dr;if(this.leftover){for(dr=16-this.leftover,dr>cr&&(dr=cr),jt=0;jt=16&&(dr=cr-cr%16,this.blocks(Xt,ar,dr),ar+=dr,cr-=dr),cr){for(jt=0;jt>16&1),Rr[cr-1]&=65535;Rr[15]=Cr[15]-32767-(Rr[14]>>16&1),dr=Rr[15]>>16&1,Rr[14]&=65535,At(Cr,Rr,1-dr)}for(cr=0;cr<16;cr++)Xt[2*cr]=Cr[cr]&255,Xt[2*cr+1]=Cr[cr]>>8}function It(Xt,ar){var cr=new Uint8Array(32),jt=new Uint8Array(32);return Pt(cr,Xt),Pt(jt,ar),mt(cr,0,jt,0)}function Ct(Xt){var ar=new Uint8Array(32);return Pt(ar,Xt),ar[0]&1}function xt(Xt,ar){var cr;for(cr=0;cr<16;cr++)Xt[cr]=ar[2*cr]+(ar[2*cr+1]<<8);Xt[15]&=32767}function Dt(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]+cr[jt]}function tr(Xt,ar,cr){for(var jt=0;jt<16;jt++)Xt[jt]=ar[jt]-cr[jt]}function pr(Xt,ar,cr){var jt,dr,Rr=0,Cr=0,Nr=0,Yr=0,tn=0,qr=0,Vn=0,hn=0,Tn=0,An=0,Rn=0,Pn=0,In=0,$n=0,Bn=0,pn=0,wn=0,un=0,yn=0,mn=0,cn=0,Ur=0,jr=0,en=0,Gr=0,Zr=0,sn=0,On=0,zn=0,Gn=0,Hn=0,Tr=cr[0],Yn=cr[1],es=cr[2],ts=cr[3],Wn=cr[4],rs=cr[5],Qn=cr[6],vs=cr[7],os=cr[8],ps=cr[9],bs=cr[10],xs=cr[11],Ss=cr[12],As=cr[13],Ps=cr[14],Is=cr[15];jt=ar[0],Rr+=jt*Tr,Cr+=jt*Yn,Nr+=jt*es,Yr+=jt*ts,tn+=jt*Wn,qr+=jt*rs,Vn+=jt*Qn,hn+=jt*vs,Tn+=jt*os,An+=jt*ps,Rn+=jt*bs,Pn+=jt*xs,In+=jt*Ss,$n+=jt*As,Bn+=jt*Ps,pn+=jt*Is,jt=ar[1],Cr+=jt*Tr,Nr+=jt*Yn,Yr+=jt*es,tn+=jt*ts,qr+=jt*Wn,Vn+=jt*rs,hn+=jt*Qn,Tn+=jt*vs,An+=jt*os,Rn+=jt*ps,Pn+=jt*bs,In+=jt*xs,$n+=jt*Ss,Bn+=jt*As,pn+=jt*Ps,wn+=jt*Is,jt=ar[2],Nr+=jt*Tr,Yr+=jt*Yn,tn+=jt*es,qr+=jt*ts,Vn+=jt*Wn,hn+=jt*rs,Tn+=jt*Qn,An+=jt*vs,Rn+=jt*os,Pn+=jt*ps,In+=jt*bs,$n+=jt*xs,Bn+=jt*Ss,pn+=jt*As,wn+=jt*Ps,un+=jt*Is,jt=ar[3],Yr+=jt*Tr,tn+=jt*Yn,qr+=jt*es,Vn+=jt*ts,hn+=jt*Wn,Tn+=jt*rs,An+=jt*Qn,Rn+=jt*vs,Pn+=jt*os,In+=jt*ps,$n+=jt*bs,Bn+=jt*xs,pn+=jt*Ss,wn+=jt*As,un+=jt*Ps,yn+=jt*Is,jt=ar[4],tn+=jt*Tr,qr+=jt*Yn,Vn+=jt*es,hn+=jt*ts,Tn+=jt*Wn,An+=jt*rs,Rn+=jt*Qn,Pn+=jt*vs,In+=jt*os,$n+=jt*ps,Bn+=jt*bs,pn+=jt*xs,wn+=jt*Ss,un+=jt*As,yn+=jt*Ps,mn+=jt*Is,jt=ar[5],qr+=jt*Tr,Vn+=jt*Yn,hn+=jt*es,Tn+=jt*ts,An+=jt*Wn,Rn+=jt*rs,Pn+=jt*Qn,In+=jt*vs,$n+=jt*os,Bn+=jt*ps,pn+=jt*bs,wn+=jt*xs,un+=jt*Ss,yn+=jt*As,mn+=jt*Ps,cn+=jt*Is,jt=ar[6],Vn+=jt*Tr,hn+=jt*Yn,Tn+=jt*es,An+=jt*ts,Rn+=jt*Wn,Pn+=jt*rs,In+=jt*Qn,$n+=jt*vs,Bn+=jt*os,pn+=jt*ps,wn+=jt*bs,un+=jt*xs,yn+=jt*Ss,mn+=jt*As,cn+=jt*Ps,Ur+=jt*Is,jt=ar[7],hn+=jt*Tr,Tn+=jt*Yn,An+=jt*es,Rn+=jt*ts,Pn+=jt*Wn,In+=jt*rs,$n+=jt*Qn,Bn+=jt*vs,pn+=jt*os,wn+=jt*ps,un+=jt*bs,yn+=jt*xs,mn+=jt*Ss,cn+=jt*As,Ur+=jt*Ps,jr+=jt*Is,jt=ar[8],Tn+=jt*Tr,An+=jt*Yn,Rn+=jt*es,Pn+=jt*ts,In+=jt*Wn,$n+=jt*rs,Bn+=jt*Qn,pn+=jt*vs,wn+=jt*os,un+=jt*ps,yn+=jt*bs,mn+=jt*xs,cn+=jt*Ss,Ur+=jt*As,jr+=jt*Ps,en+=jt*Is,jt=ar[9],An+=jt*Tr,Rn+=jt*Yn,Pn+=jt*es,In+=jt*ts,$n+=jt*Wn,Bn+=jt*rs,pn+=jt*Qn,wn+=jt*vs,un+=jt*os,yn+=jt*ps,mn+=jt*bs,cn+=jt*xs,Ur+=jt*Ss,jr+=jt*As,en+=jt*Ps,Gr+=jt*Is,jt=ar[10],Rn+=jt*Tr,Pn+=jt*Yn,In+=jt*es,$n+=jt*ts,Bn+=jt*Wn,pn+=jt*rs,wn+=jt*Qn,un+=jt*vs,yn+=jt*os,mn+=jt*ps,cn+=jt*bs,Ur+=jt*xs,jr+=jt*Ss,en+=jt*As,Gr+=jt*Ps,Zr+=jt*Is,jt=ar[11],Pn+=jt*Tr,In+=jt*Yn,$n+=jt*es,Bn+=jt*ts,pn+=jt*Wn,wn+=jt*rs,un+=jt*Qn,yn+=jt*vs,mn+=jt*os,cn+=jt*ps,Ur+=jt*bs,jr+=jt*xs,en+=jt*Ss,Gr+=jt*As,Zr+=jt*Ps,sn+=jt*Is,jt=ar[12],In+=jt*Tr,$n+=jt*Yn,Bn+=jt*es,pn+=jt*ts,wn+=jt*Wn,un+=jt*rs,yn+=jt*Qn,mn+=jt*vs,cn+=jt*os,Ur+=jt*ps,jr+=jt*bs,en+=jt*xs,Gr+=jt*Ss,Zr+=jt*As,sn+=jt*Ps,On+=jt*Is,jt=ar[13],$n+=jt*Tr,Bn+=jt*Yn,pn+=jt*es,wn+=jt*ts,un+=jt*Wn,yn+=jt*rs,mn+=jt*Qn,cn+=jt*vs,Ur+=jt*os,jr+=jt*ps,en+=jt*bs,Gr+=jt*xs,Zr+=jt*Ss,sn+=jt*As,On+=jt*Ps,zn+=jt*Is,jt=ar[14],Bn+=jt*Tr,pn+=jt*Yn,wn+=jt*es,un+=jt*ts,yn+=jt*Wn,mn+=jt*rs,cn+=jt*Qn,Ur+=jt*vs,jr+=jt*os,en+=jt*ps,Gr+=jt*bs,Zr+=jt*xs,sn+=jt*Ss,On+=jt*As,zn+=jt*Ps,Gn+=jt*Is,jt=ar[15],pn+=jt*Tr,wn+=jt*Yn,un+=jt*es,yn+=jt*ts,mn+=jt*Wn,cn+=jt*rs,Ur+=jt*Qn,jr+=jt*vs,en+=jt*os,Gr+=jt*ps,Zr+=jt*bs,sn+=jt*xs,On+=jt*Ss,zn+=jt*As,Gn+=jt*Ps,Hn+=jt*Is,Rr+=38*wn,Cr+=38*un,Nr+=38*yn,Yr+=38*mn,tn+=38*cn,qr+=38*Ur,Vn+=38*jr,hn+=38*en,Tn+=38*Gr,An+=38*Zr,Rn+=38*sn,Pn+=38*On,In+=38*zn,$n+=38*Gn,Bn+=38*Hn,dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),dr=1,jt=Rr+dr+65535,dr=Math.floor(jt/65536),Rr=jt-dr*65536,jt=Cr+dr+65535,dr=Math.floor(jt/65536),Cr=jt-dr*65536,jt=Nr+dr+65535,dr=Math.floor(jt/65536),Nr=jt-dr*65536,jt=Yr+dr+65535,dr=Math.floor(jt/65536),Yr=jt-dr*65536,jt=tn+dr+65535,dr=Math.floor(jt/65536),tn=jt-dr*65536,jt=qr+dr+65535,dr=Math.floor(jt/65536),qr=jt-dr*65536,jt=Vn+dr+65535,dr=Math.floor(jt/65536),Vn=jt-dr*65536,jt=hn+dr+65535,dr=Math.floor(jt/65536),hn=jt-dr*65536,jt=Tn+dr+65535,dr=Math.floor(jt/65536),Tn=jt-dr*65536,jt=An+dr+65535,dr=Math.floor(jt/65536),An=jt-dr*65536,jt=Rn+dr+65535,dr=Math.floor(jt/65536),Rn=jt-dr*65536,jt=Pn+dr+65535,dr=Math.floor(jt/65536),Pn=jt-dr*65536,jt=In+dr+65535,dr=Math.floor(jt/65536),In=jt-dr*65536,jt=$n+dr+65535,dr=Math.floor(jt/65536),$n=jt-dr*65536,jt=Bn+dr+65535,dr=Math.floor(jt/65536),Bn=jt-dr*65536,jt=pn+dr+65535,dr=Math.floor(jt/65536),pn=jt-dr*65536,Rr+=dr-1+37*(dr-1),Xt[0]=Rr,Xt[1]=Cr,Xt[2]=Nr,Xt[3]=Yr,Xt[4]=tn,Xt[5]=qr,Xt[6]=Vn,Xt[7]=hn,Xt[8]=Tn,Xt[9]=An,Xt[10]=Rn,Xt[11]=Pn,Xt[12]=In,Xt[13]=$n,Xt[14]=Bn,Xt[15]=pn}function Kt(Xt,ar){pr(Xt,ar,ar)}function Qt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=253;jt>=0;jt--)Kt(cr,cr),jt!==2&&jt!==4&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function Zt(Xt,ar){var cr=rt(),jt;for(jt=0;jt<16;jt++)cr[jt]=ar[jt];for(jt=250;jt>=0;jt--)Kt(cr,cr),jt!==1&&pr(cr,cr,ar);for(jt=0;jt<16;jt++)Xt[jt]=cr[jt]}function ur(Xt,ar,cr){var jt=new Uint8Array(32),dr=new Float64Array(80),Rr,Cr,Nr=rt(),Yr=rt(),tn=rt(),qr=rt(),Vn=rt(),hn=rt();for(Cr=0;Cr<31;Cr++)jt[Cr]=ar[Cr];for(jt[31]=ar[31]&127|64,jt[0]&=248,xt(dr,cr),Cr=0;Cr<16;Cr++)Yr[Cr]=dr[Cr],qr[Cr]=Nr[Cr]=tn[Cr]=0;for(Nr[0]=qr[0]=1,Cr=254;Cr>=0;--Cr)Rr=jt[Cr>>>3]>>>(Cr&7)&1,At(Nr,Yr,Rr),At(tn,qr,Rr),Dt(Vn,Nr,tn),tr(Nr,Nr,tn),Dt(tn,Yr,qr),tr(Yr,Yr,qr),Kt(qr,Vn),Kt(hn,Nr),pr(Nr,tn,Nr),pr(tn,Yr,Vn),Dt(Vn,Nr,tn),tr(Nr,Nr,tn),Kt(Yr,Nr),tr(tn,qr,hn),pr(Nr,tn,lt),Dt(Nr,Nr,qr),pr(tn,tn,Nr),pr(Nr,qr,hn),pr(qr,Yr,dr),Kt(Yr,Vn),At(Nr,Yr,Rr),At(tn,qr,Rr);for(Cr=0;Cr<16;Cr++)dr[Cr+16]=Nr[Cr],dr[Cr+32]=tn[Cr],dr[Cr+48]=Yr[Cr],dr[Cr+64]=qr[Cr];var Tn=dr.subarray(32),An=dr.subarray(16);return Qt(Tn,Tn),pr(An,An,Tn),Pt(Xt,An),0}function _r(Xt,ar){return ur(Xt,ar,st)}function er(Xt,ar){return nt(ar,32),_r(Xt,ar)}function Jt(Xt,ar,cr){var jt=new Uint8Array(32);return ur(jt,cr,ar),Ot(Xt,it,jt,Lt)}var Ar=ht,Er=Et;function Dr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Ar(Xt,ar,cr,jt,Cr)}function Xr(Xt,ar,cr,jt,dr,Rr){var Cr=new Uint8Array(32);return Jt(Cr,dr,Rr),Er(Xt,ar,cr,jt,Cr)}var Vr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function wr(Xt,ar,cr,jt){for(var dr=new Int32Array(16),Rr=new Int32Array(16),Cr,Nr,Yr,tn,qr,Vn,hn,Tn,An,Rn,Pn,In,$n,Bn,pn,wn,un,yn,mn,cn,Ur,jr,en,Gr,Zr,sn,On=Xt[0],zn=Xt[1],Gn=Xt[2],Hn=Xt[3],Tr=Xt[4],Yn=Xt[5],es=Xt[6],ts=Xt[7],Wn=ar[0],rs=ar[1],Qn=ar[2],vs=ar[3],os=ar[4],ps=ar[5],bs=ar[6],xs=ar[7],Ss=0;jt>=128;){for(mn=0;mn<16;mn++)cn=8*mn+Ss,dr[mn]=cr[cn+0]<<24|cr[cn+1]<<16|cr[cn+2]<<8|cr[cn+3],Rr[mn]=cr[cn+4]<<24|cr[cn+5]<<16|cr[cn+6]<<8|cr[cn+7];for(mn=0;mn<80;mn++)if(Cr=On,Nr=zn,Yr=Gn,tn=Hn,qr=Tr,Vn=Yn,hn=es,Tn=ts,An=Wn,Rn=rs,Pn=Qn,In=vs,$n=os,Bn=ps,pn=bs,wn=xs,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(Tr>>>14|os<<32-14)^(Tr>>>18|os<<32-18)^(os>>>41-32|Tr<<32-(41-32)),jr=(os>>>14|Tr<<32-14)^(os>>>18|Tr<<32-18)^(Tr>>>41-32|os<<32-(41-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Tr&Yn^~Tr&es,jr=os&ps^~os&bs,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=Vr[mn*2],jr=Vr[mn*2+1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=dr[mn%16],jr=Rr[mn%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,un=Zr&65535|sn<<16,yn=en&65535|Gr<<16,Ur=un,jr=yn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=(On>>>28|Wn<<32-28)^(Wn>>>34-32|On<<32-(34-32))^(Wn>>>39-32|On<<32-(39-32)),jr=(Wn>>>28|On<<32-28)^(On>>>34-32|Wn<<32-(34-32))^(On>>>39-32|Wn<<32-(39-32)),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Ur=On&zn^On&Gn^zn&Gn,jr=Wn&rs^Wn&Qn^rs&Qn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Tn=Zr&65535|sn<<16,wn=en&65535|Gr<<16,Ur=tn,jr=In,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=un,jr=yn,en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,tn=Zr&65535|sn<<16,In=en&65535|Gr<<16,zn=Cr,Gn=Nr,Hn=Yr,Tr=tn,Yn=qr,es=Vn,ts=hn,On=Tn,rs=An,Qn=Rn,vs=Pn,os=In,ps=$n,bs=Bn,xs=pn,Wn=wn,mn%16===15)for(cn=0;cn<16;cn++)Ur=dr[cn],jr=Rr[cn],en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=dr[(cn+9)%16],jr=Rr[(cn+9)%16],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+1)%16],yn=Rr[(cn+1)%16],Ur=(un>>>1|yn<<32-1)^(un>>>8|yn<<32-8)^un>>>7,jr=(yn>>>1|un<<32-1)^(yn>>>8|un<<32-8)^(yn>>>7|un<<32-7),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,un=dr[(cn+14)%16],yn=Rr[(cn+14)%16],Ur=(un>>>19|yn<<32-19)^(yn>>>61-32|un<<32-(61-32))^un>>>6,jr=(yn>>>19|un<<32-19)^(un>>>61-32|yn<<32-(61-32))^(yn>>>6|un<<32-6),en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,dr[cn]=Zr&65535|sn<<16,Rr[cn]=en&65535|Gr<<16;Ur=On,jr=Wn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[0],jr=ar[0],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[0]=On=Zr&65535|sn<<16,ar[0]=Wn=en&65535|Gr<<16,Ur=zn,jr=rs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[1],jr=ar[1],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[1]=zn=Zr&65535|sn<<16,ar[1]=rs=en&65535|Gr<<16,Ur=Gn,jr=Qn,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[2],jr=ar[2],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[2]=Gn=Zr&65535|sn<<16,ar[2]=Qn=en&65535|Gr<<16,Ur=Hn,jr=vs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[3],jr=ar[3],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[3]=Hn=Zr&65535|sn<<16,ar[3]=vs=en&65535|Gr<<16,Ur=Tr,jr=os,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[4],jr=ar[4],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[4]=Tr=Zr&65535|sn<<16,ar[4]=os=en&65535|Gr<<16,Ur=Yn,jr=ps,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[5],jr=ar[5],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[5]=Yn=Zr&65535|sn<<16,ar[5]=ps=en&65535|Gr<<16,Ur=es,jr=bs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[6],jr=ar[6],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[6]=es=Zr&65535|sn<<16,ar[6]=bs=en&65535|Gr<<16,Ur=ts,jr=xs,en=jr&65535,Gr=jr>>>16,Zr=Ur&65535,sn=Ur>>>16,Ur=Xt[7],jr=ar[7],en+=jr&65535,Gr+=jr>>>16,Zr+=Ur&65535,sn+=Ur>>>16,Gr+=en>>>16,Zr+=Gr>>>16,sn+=Zr>>>16,Xt[7]=ts=Zr&65535|sn<<16,ar[7]=xs=en&65535|Gr<<16,Ss+=128,jt-=128}return jt}function br(Xt,ar,cr){var jt=new Int32Array(8),dr=new Int32Array(8),Rr=new Uint8Array(256),Cr,Nr=cr;for(jt[0]=1779033703,jt[1]=3144134277,jt[2]=1013904242,jt[3]=2773480762,jt[4]=1359893119,jt[5]=2600822924,jt[6]=528734635,jt[7]=1541459225,dr[0]=4089235720,dr[1]=2227873595,dr[2]=4271175723,dr[3]=1595750129,dr[4]=2917565137,dr[5]=725511199,dr[6]=4215389547,dr[7]=327033209,wr(jt,dr,ar,cr),cr%=128,Cr=0;Cr=0;--dr)jt=cr[dr/8|0]>>(dr&7)&1,xr(Xt,ar,jt),or(ar,Xt),or(Xt,Xt),xr(Xt,ar,jt)}function rr(Xt,ar){var cr=[rt(),rt(),rt(),rt()];Tt(cr[0],bt),Tt(cr[1],gt),Tt(cr[2],ot),pr(cr[3],bt,gt),Or(Xt,cr,ar)}function gr(Xt,ar,cr){var jt=new Uint8Array(64),dr=[rt(),rt(),rt(),rt()],Rr;for(cr||nt(ar,32),br(jt,ar,32),jt[0]&=248,jt[31]&=127,jt[31]|=64,rr(dr,jt),Pr(Xt,dr),Rr=0;Rr<32;Rr++)ar[Rr+32]=Xt[Rr];return 0}var Ir=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function Yt(Xt,ar){var cr,jt,dr,Rr;for(jt=63;jt>=32;--jt){for(cr=0,dr=jt-32,Rr=jt-12;dr>4)*Ir[dr],cr=ar[dr]>>8,ar[dr]&=255;for(dr=0;dr<32;dr++)ar[dr]-=cr*Ir[dr];for(jt=0;jt<32;jt++)ar[jt+1]+=ar[jt]>>8,Xt[jt]=ar[jt]&255}function Ut(Xt){var ar=new Float64Array(64),cr;for(cr=0;cr<64;cr++)ar[cr]=Xt[cr];for(cr=0;cr<64;cr++)Xt[cr]=0;Yt(Xt,ar)}function Ht(Xt,ar,cr,jt){var dr=new Uint8Array(64),Rr=new Uint8Array(64),Cr=new Uint8Array(64),Nr,Yr,tn=new Float64Array(64),qr=[rt(),rt(),rt(),rt()];br(dr,jt,32),dr[0]&=248,dr[31]&=127,dr[31]|=64;var Vn=cr+64;for(Nr=0;Nr>7&&tr(Xt[0],at,Xt[0]),pr(Xt[3],Xt[0],Xt[1]),0)}function kr(Xt,ar,cr,jt){var dr,Rr=new Uint8Array(32),Cr=new Uint8Array(64),Nr=[rt(),rt(),rt(),rt()],Yr=[rt(),rt(),rt(),rt()];if(cr<64||ir(Yr,jt))return-1;for(dr=0;dr=0},tt.sign.keyPair=function(){var Xt=new Uint8Array(xn),ar=new Uint8Array(is);return gr(Xt,ar),{publicKey:Xt,secretKey:ar}},tt.sign.keyPair.fromSecretKey=function(Xt){if(dn(Xt),Xt.length!==is)throw new Error("bad secret key size");for(var ar=new Uint8Array(xn),cr=0;cr"u"?typeof Buffer.from<"u"?(tt.encodeBase64=function(nt){return Buffer.from(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(Buffer.from(nt,"base64"),0))}):(tt.encodeBase64=function(nt){return new Buffer(nt).toString("base64")},tt.decodeBase64=function(nt){return rt(nt),new Uint8Array(Array.prototype.slice.call(new Buffer(nt,"base64"),0))}):(tt.encodeBase64=function(nt){var it,st=[],at=nt.length;for(it=0;ityt||br<0)throw new RangeError(`varint ${br} out of range`);this._grow(this._length+wt);let or=this._length;for(;br>=128;)this._buf[or++]=br&255|128,br>>>=7;this._buf[or++]=br|0,this._length=or}get bytes(){return this._buf.subarray(0,this._length)}_grow(br){const or=this._buf.length;if(br<=or)return;const xr=or*2,Pr=br>xr?br:xr,Or=new Uint8Array(Pr);Or.set(this._buf.subarray(0,this._length)),this._buf=Or}}const wt=5;class St{constructor(br){this._buf=br,this._index=0}readByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index++]}peekByte(){if(this.length<=0)throw new RangeError("Read past end of buffer");return this._buf[this._index]}readN(br){if(this.lengthwt||rr===wt&&Or>1)throw new RangeError("Overflow error decoding varint");return(or|Or<>>0}or|=(Or&127)<wr!=null,Ot=wr=>Bt(wr)?ot.encode(wr):wr,Lt=wr=>Bt(wr)?lt.decode(wr):wr,zt=wr=>rt.default.codec.utf8String.fromBits(wr);et.base64ToBytes=function(wr){return wr=wr.replace(/-/g,"+").replace(/_/g,"/"),wr.length%4!==0&&!wr.match(/=$/)&&(wr+="=".repeat(4-wr.length%4)),it.default.decodeBase64(wr)},et.bytesToBase64=function(wr){return it.default.encodeBase64(wr).replace(/=+$/,"").replace(/\+/g,"-").replace(/\//g,"_")};const Vt=function(wr){return rt.default.codec.base64.toBits(it.default.encodeBase64(wr))},Wt=function(wr){return it.default.decodeBase64(rt.default.codec.base64.fromBits(wr))},lr=function(wr){const br=new Uint8Array(Math.ceil(wr.length/2));for(let or=0;orBt(wr)?Ft(wr,br):"",ht=function(wr,br){if(wr instanceof Uint8Array)return wr;if(typeof wr=="string")return Ot(wr);throw new TypeError(`${br} has the wrong type; want string or Uint8Array, got ${typeof wr}.`)},Et=new Uint8Array,Tt=function(wr,br){const or=wr.readByte();if(or!==br)throw new Error(`Unexpected field type, got ${or} want ${br}`);return or===dt?Et:wr.readN(wr.readUvarint())},Rt=function(wr,br,or){wr.appendByte(br),br!==dt&&(wr.appendUvarint(or.length),wr.appendBytes(or))},At=function(wr,br){return wr.peekByte()!==br?null:Tt(wr,br)},Pt=function(wr,br,or){qt(or)?wr[br]=Lt(or):wr[br+"64"]=et.bytesToBase64(or)},It=function(wr,br){const or=new rt.default.misc.hmac(wr,rt.default.hash.sha256);return or.update(br),or.digest()},Ct=function(wr,br,or){const xr=It(wr,br),Pr=It(wr,or);return It(wr,rt.default.bitArray.concat(xr,Pr))},xt=Vt(Ot("macaroons-key-generator")),Dt=function(wr){return It(xt,wr)},tr=function(){return nt.default.randomBytes(ut)},pr=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=tr(),Or=nt.default.secretbox(xr,Pr,or),rr=new Uint8Array(Pr.length+Or.length);return rr.set(Pr,0),rr.set(Or,Pr.length),Vt(rr)},Kt=function(wr,br){const or=Wt(wr),xr=Wt(br),Pr=xr.slice(0,ut),Or=xr.slice(ut);let rr=nt.default.secretbox.open(Or,Pr,or);if(!rr)throw new Error("decryption failed");return Vt(rr)},Qt=Vt(Ot("\0".repeat(32))),Zt=function(wr,br){return rt.default.bitArray.equal(wr,br)?wr:Ct(Qt,wr,br)};class ur{constructor(br){if(!br)return;let{version:or,identifierBytes:xr,locationStr:Pr,caveats:Or,signatureBytes:rr}=br;if(or!==1&&or!==2)throw new Error(`Unexpected version ${or}`);if(this._version=or,this._locationStr=Pr,xr=ht(xr,"Identifier"),or===1&&!qt(xr))throw new Error("Version 1 macaroon identifier must be well-formed UTF-8");this._identifierBits=xr&&Vt(xr),this._signatureBits=rr&&Vt(ht(rr,"Signature")),this._caveats=Or?Or.map(gr=>{const Ir=ht(gr.identifierBytes,"Caveat identifier");if(or===1&&!qt(Ir))throw new Error("Version 1 caveat identifier must be well-formed UTF-8");return{_locationStr:Mt(gr.locationStr),_identifierBits:Vt(Ir),_vidBits:gr.vidBytes&&Vt(ht(gr.vidBytes,"Verification ID"))}}):[]}get caveats(){return this._caveats.map(br=>Bt(br._vidBits)?{identifier:Wt(br._identifierBits),location:br._locationStr,vid:Wt(br._vidBits)}:{identifier:Wt(br._identifierBits)})}get location(){return this._locationStr}get identifier(){return Wt(this._identifierBits)}get signature(){return Wt(this._signatureBits)}addThirdPartyCaveat(br,or,xr){const Pr={_identifierBits:Vt(ht(or,"Caveat id")),_vidBits:pr(this._signatureBits,Dt(Vt(ht(br,"Caveat root key")))),_locationStr:Mt(xr)};this._signatureBits=Ct(this._signatureBits,Pr._vidBits,Pr._identifierBits),this._caveats.push(Pr)}addFirstPartyCaveat(br){const or=Vt(ht(br,"Condition"));this._caveats.push({_identifierBits:or}),this._signatureBits=It(this._signatureBits,or)}bindToRoot(br){const or=Vt(ht(br,"Primary macaroon signature"));this._signatureBits=Zt(or,this._signatureBits)}clone(){const br=new ur;return br._version=this._version,br._signatureBits=this._signatureBits,br._identifierBits=this._identifierBits,br._locationStr=this._locationStr,br._caveats=this._caveats.slice(),br}verify(br,or,xr=[]){const Pr=Dt(Vt(ht(br,"Root key"))),Or=xr.map(rr=>0);this._verify(this._signatureBits,Pr,or,xr,Or),xr.forEach((rr,gr)=>{if(Or[gr]===0)throw new Error(`discharge macaroon ${$t(rr.identifier)} was not used`);if(Or[gr]!==1)throw new Error(`discharge macaroon ${$t(rr.identifier)} was used more than once`)})}_verify(br,or,xr,Pr,Or){let rr=It(or,this._identifierBits);this._caveats.forEach(Ir=>{if(Ir._vidBits){const Yt=Kt(rr,Ir._vidBits);let Ut=!1,Ht,ir;for(Ht=0;Ht1)throw new Error(`discharge macaroon ${$t(ir.identifier)} was used more than once`);ir._verify(br,Yt,xr,Pr,Or);break}if(!Ut)throw new Error(`cannot find discharge macaroon for caveat ${$t(Ir._identifierBits)}`);rr=Ct(rr,Ir._vidBits,Ir._identifierBits)}else{const Yt=zt(Ir._identifierBits),Ut=xr(Yt);if(Ut)throw new Error(`caveat check failed (${Yt}): ${Ut}`);rr=It(rr,Ir._identifierBits)}});const gr=Zt(br,rr);if(!rt.default.bitArray.equal(gr,this._signatureBits))throw new Error("signature mismatch after caveat verification")}exportJSON(){switch(this._version){case 1:return this._exportAsJSONObjectV1();case 2:return this._exportAsJSONObjectV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}_exportAsJSONObjectV1(){const br={identifier:zt(this._identifierBits),signature:rt.default.codec.hex.fromBits(this._signatureBits)};return this._locationStr&&(br.location=this._locationStr),this._caveats.length>0&&(br.caveats=this._caveats.map(or=>{const xr={cid:zt(or._identifierBits)};return or._vidBits&&(xr.vid=rt.default.codec.base64.fromBits(or._vidBits,!0,!0),xr.cl=or._locationStr),xr})),br}_exportAsJSONObjectV2(){const br={v:2};return Pt(br,"s",Wt(this._signatureBits)),Pt(br,"i",Wt(this._identifierBits)),this._locationStr&&(br.l=this._locationStr),this._caveats&&this._caveats.length>0&&(br.c=this._caveats.map(or=>{const xr={};return Pt(xr,"i",Wt(or._identifierBits)),or._vidBits&&(Pt(xr,"v",Wt(or._vidBits)),xr.l=or._locationStr),xr})),br}_exportBinaryV1(){throw new Error("V1 binary export not supported")}_exportBinaryV2(){const br=new mt(200);return br.appendByte(2),this._locationStr&&Rt(br,bt,Ot(this._locationStr)),Rt(br,gt,Wt(this._identifierBits)),Rt(br,dt),this._caveats.forEach(function(or){or._locationStr&&Rt(br,bt,Ot(or._locationStr)),Rt(br,gt,Wt(or._identifierBits)),or._vidBits&&Rt(br,kt,Wt(or._vidBits)),Rt(br,dt)}),Rt(br,dt),Rt(br,pt,Wt(this._signatureBits)),br.bytes}exportBinary(){switch(this._version){case 1:return this._exportBinaryV1();case 2:return this._exportBinaryV2();default:throw new Error(`unexpected macaroon version ${this._version}`)}}}et.importMacaroon=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){const br=new St(wr),or=Vr(br);if(br.length!==0)throw new TypeError("extra data found at end of serialized macaroon");return or}if(Array.isArray(wr))throw new TypeError("cannot import an array of macaroons as a single macaroon");return _r(wr)},et.importMacaroons=function(wr){if(typeof wr=="string"&&(wr=et.base64ToBytes(wr)),wr instanceof Uint8Array){if(wr.length===0)throw new TypeError("empty macaroon data");const br=new St(wr),or=[];do or.push(Vr(br));while(br.length>0);return or}return Array.isArray(wr)?wr.map(br=>_r(br)):[_r(wr)]};const _r=function(wr){return er(wr)?Jt(wr):Ar(wr)};function er(wr){return Bt(wr.signature)}const Jt=function(wr){const br=wr.caveats&&wr.caveats.map(or=>{const xr={identifierBytes:Ot(Ft(or.cid,"Caveat id")),locationStr:Mt(or.cl,"Caveat location")};return or.vid&&(xr.vidBytes=et.base64ToBytes(Ft(or.vid,"Caveat verification id"))),xr});return new ur({version:1,locationStr:Mt(wr.location,"Macaroon location"),identifierBytes:Ot(Ft(wr.identifier,"Macaroon identifier")),caveats:br,signatureBytes:lr(wr.signature)})},Ar=function(wr){if(wr.v!==2&&wr.v!==void 0)throw new Error(`Unsupported macaroon version ${wr.v}`);const br={version:2,signatureBytes:Er(wr,"s",!0),locationStr:Lt(Er(wr,"l",!1)),identifierBytes:Er(wr,"i",!0)};if(wr.c){if(!Array.isArray(wr.c))throw new Error("caveats field does not hold an array");br.caveats=wr.c.map(or=>({identifierBytes:Er(or,"i",!0),locationStr:Lt(Er(or,"l")),vidBytes:Er(or,"v",!1)}))}return new ur(br)};function Er(wr,br,or){if(wr.hasOwnProperty(br))return Ot(wr[br]);const xr=br+"64";if(wr.hasOwnProperty(xr))return et.base64ToBytes(wr[xr]);if(or)throw new Error("Expected key: "+br);return null}const Dr=function(wr){const br=wr.readByte();if(br!==2)throw new Error(`Only version 2 is supported, found version ${br}`);const or=Lt(At(wr,bt)),xr=Tt(wr,gt),Pr=[];for(Tt(wr,dt);!At(wr,dt);){const rr={locationStr:Lt(At(wr,bt)),identifierBytes:Tt(wr,gt),vidBytes:At(wr,kt)};Tt(wr,dt),Pr.push(rr)}const Or=Tt(wr,pt);if(wr.length!==0)throw new Error("unexpected extra data at end of macaroon");return new ur({version:br,locationStr:or,identifierBytes:xr,signatureBytes:Or,caveats:Pr})},Xr=function(wr){return 48<=wr&&wr<=58||97<=wr&&wr<=102},Vr=function(wr){if(wr.length===0)throw new Error("Empty macaroon data");const br=wr.peekByte();if(br===2)return Dr(wr);throw Xr(br)?new Error("Version 1 binary format not supported"):new Error("Cannot determine data format of binary-encoded macaroon")};et.newMacaroon=function({identifier:wr,location:br,rootKey:or,version:xr}){const Pr=ht(wr,"Macaroon identifier"),Or=ht(or,"Macaroon root key");return new ur({version:xr===void 0?2:xr,identifierBytes:Pr,locationStr:Mt(br,"Macaroon location"),signatureBytes:Wt(It(Dt(Vt(Or)),Vt(Pr)))})},et.dischargeMacaroon=function(wr,br,or,xr){const Pr=wr.signature,Or=[wr];let rr=0,gr=!1;const Ir=wr.location,Yt=ir=>{gr||(ir.bindToRoot(Pr),Or.push(ir),rr--,Ht(ir))},Ut=ir=>{gr||(xr(ir),gr=!0)},Ht=ir=>{let kr,$r;for($r=0;$ret.LATEST_VERSION)throw new dt(pt.version);if(pt.version&&(this.version=pt.version),st(typeof this.version=="number","Identifier version must be a number"),st(pt.paymentHash.length===32,`Expected 32-byte hash, instead got ${pt.paymentHash.length}`),this.paymentHash=pt.paymentHash,pt.tokenId)this.tokenId=pt.tokenId;else{const yt=(0,lt.default)();this.tokenId=ot.default.createHash("sha256").update(Buffer.from(yt)).digest()}return st(this.tokenId.length===et.TOKEN_ID_SIZE,"Token Id of unexpected size"),this}toString(){return this.toHex()}static fromString(pt){try{return new this().fromHex(pt)}catch{return new this().fromBase64(pt)}}write(pt){switch(pt.writeU16BE(this.version),this.version){case 0:return pt.writeHash(this.paymentHash),st(Buffer.isBuffer(this.tokenId)&&this.tokenId.length===et.TOKEN_ID_SIZE,`Token ID must be ${et.TOKEN_ID_SIZE}-byte hash`),pt.writeBytes(this.tokenId),this;default:throw new dt(this.version)}}read(pt){switch(this.version=pt.readU16BE(),this.version){case 0:return this.paymentHash=pt.readHash(),this.tokenId=pt.readBytes(et.TOKEN_ID_SIZE),this;default:throw new dt(this.version)}}}et.Identifier=bt;const gt=kt=>{const pt=ut.importMacaroon(kt);let yt=pt._exportAsJSONObjectV2().i;if(yt==null&&(yt=pt._exportAsJSONObjectV2().i64,yt==null))throw new Error("Problem parsing macaroon identifier");return yt};et.decodeIdentifierFromMacaroon=gt})(identifier$1);var caveat={};/*! * assert.js - assertions for javascript * Copyright (c) 2018, Christopher Jeffrey (MIT License). * https://github.com/chjj/bsert */class AssertionError extends Error{constructor(tt){typeof tt=="string"&&(tt={message:tt}),(tt===null||typeof tt!="object")&&(tt={});let rt=null,nt="fail",it=!!tt.generatedMessage;if(tt.message!=null&&(rt=toString$1(tt.message)),typeof tt.operator=="string"&&(nt=tt.operator),rt==null){if(nt==="fail")rt="Assertion failed.";else{const at=stringify$1(tt.actual),ot=stringify$1(tt.expected);rt=`${at} ${nt} ${ot}`}it=!0}super(rt);let st=this.constructor;typeof tt.stackStartFunction=="function"?st=tt.stackStartFunction:typeof tt.stackStartFn=="function"&&(st=tt.stackStartFn),this.type="AssertionError",this.name="AssertionError [ERR_ASSERTION]",this.code="ERR_ASSERTION",this.generatedMessage=it,this.actual=tt.actual,this.expected=tt.expected,this.operator=nt,Error.captureStackTrace&&Error.captureStackTrace(this,st)}}function assert$3(et,tt){if(!et){let rt=!1;if(arguments.length===0)tt="No value argument passed to `assert()`.",rt=!0;else if(tt==null)tt="Assertion failed.",rt=!0;else if(isError(tt))throw tt;throw new AssertionError({message:tt,actual:et,expected:!0,operator:"==",generatedMessage:rt,stackStartFn:assert$3})}}function equal(et,tt,rt){if(!Object.is(et,tt))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"strictEqual",stackStartFn:equal})}function notEqual(et,tt,rt){if(Object.is(et,tt))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"notStrictEqual",stackStartFn:notEqual})}function fail(et){let tt=!1;throw isError(et)?et:(et==null&&(et="Assertion failed.",tt=!0),new AssertionError({message:et,actual:!1,expected:!0,operator:"fail",generatedMessage:tt,stackStartFn:fail}))}function throws(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;enforce(typeof et=="function","func","function");try{et()}catch(st){nt=!0,it=st}if(!nt){let st=!1;throw rt==null&&(rt="Missing expected exception.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"throws",generatedMessage:st,stackStartFn:throws})}if(!testError(it,tt,rt,throws))throw it}function doesNotThrow(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;enforce(typeof et=="function","func","function");try{et()}catch(st){nt=!0,it=st}if(nt){if(testError(it,tt,rt,doesNotThrow)){let st=!1;throw rt==null&&(rt="Got unwanted exception.",st=!0),new AssertionError({message:rt,actual:it,expected:tt,operator:"doesNotThrow",generatedMessage:st,stackStartFn:doesNotThrow})}throw it}}async function rejects(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;typeof et!="function"&&enforce(isPromise(et),"func","promise");try{isPromise(et)?await et:await et()}catch(st){nt=!0,it=st}if(!nt){let st=!1;throw rt==null&&(rt="Missing expected rejection.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"rejects",generatedMessage:st,stackStartFn:rejects})}if(!testError(it,tt,rt,rejects))throw it}async function doesNotReject(et,tt,rt){typeof tt=="string"&&(rt=tt,tt=void 0);let nt=!1,it=null;typeof et!="function"&&enforce(isPromise(et),"func","promise");try{isPromise(et)?await et:await et()}catch(st){nt=!0,it=st}if(nt){if(testError(it,tt,rt,doesNotReject)){let st=!1;throw rt==null&&(rt="Got unwanted rejection.",st=!0),new AssertionError({message:rt,actual:void 0,expected:tt,operator:"doesNotReject",generatedMessage:st,stackStartFn:doesNotReject})}throw it}}function ifError(et){if(et!=null){let tt="ifError got unwanted exception: ";throw typeof et=="object"&&typeof et.message=="string"?et.message.length===0&&et.constructor?tt+=et.constructor.name:tt+=et.message:tt+=stringify$1(et),new AssertionError({message:tt,actual:et,expected:null,operator:"ifError",generatedMessage:!0,stackStartFn:ifError})}}function deepEqual$1(et,tt,rt){if(!isDeepEqual(et,tt,!1))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"deepStrictEqual",stackStartFn:deepEqual$1})}function notDeepEqual(et,tt,rt){if(isDeepEqual(et,tt,!0))throw isError(rt)?rt:new AssertionError({message:rt,actual:et,expected:tt,operator:"notDeepStrictEqual",stackStartFn:notDeepEqual})}function bufferEqual(et,tt,rt,nt){if(isEncoding(rt)||(nt=rt,rt=null),rt==null&&(rt="hex"),tt=bufferize(et,tt,rt),enforce(isBuffer$3(et),"actual","buffer"),enforce(isBuffer$3(tt),"expected","buffer"),et!==tt&&!et.equals(tt))throw isError(nt)?nt:new AssertionError({message:nt,actual:et.toString(rt),expected:tt.toString(rt),operator:"bufferEqual",stackStartFn:bufferEqual})}function notBufferEqual(et,tt,rt,nt){if(isEncoding(rt)||(nt=rt,rt=null),rt==null&&(rt="hex"),tt=bufferize(et,tt,rt),enforce(isBuffer$3(et),"actual","buffer"),enforce(isBuffer$3(tt),"expected","buffer"),et===tt||et.equals(tt))throw isError(nt)?nt:new AssertionError({message:nt,actual:et.toString(rt),expected:tt.toString(rt),operator:"notBufferEqual",stackStartFn:notBufferEqual})}function enforce(et,tt,rt){if(!et){let nt;tt==null?nt="Invalid type for parameter.":rt==null?nt=`Invalid type for "${tt}".`:nt=`"${tt}" must be a(n) ${rt}.`;const it=new TypeError(nt);throw Error.captureStackTrace&&Error.captureStackTrace(it,enforce),it}}function range$3(et,tt){if(!et){const rt=tt!=null?`"${tt}" is out of range.`:"Parameter is out of range.",nt=new RangeError(rt);throw Error.captureStackTrace&&Error.captureStackTrace(nt,range$3),nt}}function stringify$1(et){switch(typeof et){case"undefined":return"undefined";case"object":return et===null?"null":`[${objectName(et)}]`;case"boolean":return`${et}`;case"number":return`${et}`;case"string":return et.length>80&&(et=`${et.substring(0,77)}...`),JSON.stringify(et);case"symbol":return tryString(et);case"function":return`[${funcName(et)}]`;case"bigint":return`${et}n`;default:return`[${typeof et}]`}}function toString$1(et){return typeof et=="string"?et:isError(et)?tryString(et):stringify$1(et)}function tryString(et){try{return String(et)}catch{return"Object"}}function testError(et,tt,rt,nt){if(tt==null)return!0;if(isRegExp(tt))return tt.test(et);if(typeof tt!="function"){if(nt===doesNotThrow||nt===doesNotReject)throw new TypeError('"expected" must not be an object.');if(typeof tt!="object")throw new TypeError('"expected" must be an object.');let it=!1;if(rt==null&&(rt=`Missing expected ${nt===rejects?"rejection":"exception"}.`,it=!0),et==null||typeof et!="object")throw new AssertionError({actual:et,expected:tt,message:rt,operator:nt.name,generatedMessage:it,stackStartFn:nt});const st=Object.keys(tt);if(isError(tt)&&st.push("name","message"),st.length===0)throw new TypeError('"expected" may not be an empty object.');for(const at of st){const ot=tt[at],lt=et[at];if(!(typeof lt=="string"&&isRegExp(ot)&&ot.test(lt))&&!(at in et&&isDeepEqual(lt,ot,!1)))throw new AssertionError({actual:et,expected:tt,message:rt,operator:nt.name,generatedMessage:it,stackStartFn:nt})}return!0}return tt.prototype!==void 0&&et instanceof tt?!0:Error.isPrototypeOf(tt)?!1:tt.call({},et)===!0}function isDeepEqual(et,tt,rt){try{return compare(et,tt,null)}catch{return rt}}function compare(et,tt,rt){if(Object.is(et,tt))return!0;if(!isObject$9(et)||!isObject$9(tt)||objectString(et)!==objectString(tt)||Object.getPrototypeOf(et)!==Object.getPrototypeOf(tt))return!1;if(isBuffer$3(et)&&isBuffer$3(tt))return et.equals(tt);if(isDate(et))return Object.is(et.getTime(),tt.getTime());if(isRegExp(et))return et.source===tt.source&&et.global===tt.global&&et.multiline===tt.multiline&&et.lastIndex===tt.lastIndex&&et.ignoreCase===tt.ignoreCase;if(isError(et)&&et.message!==tt.message)return!1;if(isArrayBuffer(et)&&(et=new Uint8Array(et),tt=new Uint8Array(tt)),isView$2(et)&&!isBuffer$3(et)){if(isBuffer$3(tt))return!1;const it=new Uint8Array(et.buffer),st=new Uint8Array(tt.buffer);if(it.length!==st.length)return!1;for(let at=0;at>>1?null:it}return tt}assert$3.AssertionError=AssertionError;assert$3.assert=assert$3;assert$3.strict=assert$3;assert$3.ok=assert$3;assert$3.equal=equal;assert$3.notEqual=notEqual;assert$3.strictEqual=equal;assert$3.notStrictEqual=notEqual;assert$3.fail=fail;assert$3.throws=throws;assert$3.doesNotThrow=doesNotThrow;assert$3.rejects=rejects;assert$3.doesNotReject=doesNotReject;assert$3.ifError=ifError;assert$3.deepEqual=deepEqual$1;assert$3.notDeepEqual=notDeepEqual;assert$3.deepStrictEqual=deepEqual$1;assert$3.notDeepStrictEqual=notDeepEqual;assert$3.bufferEqual=bufferEqual;assert$3.notBufferEqual=notBufferEqual;assert$3.enforce=enforce;assert$3.range=range$3;var assert_1=assert$3,__createBinding$1=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault$1=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar$1=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding$1(tt,et,rt);return __setModuleDefault$1(tt,et),tt},__importDefault=commonjsGlobal&&commonjsGlobal.__importDefault||function(et){return et&&et.__esModule?et:{default:et}};Object.defineProperty(caveat,"__esModule",{value:!0});caveat.verifyCaveats=caveat.hasCaveat=caveat.Caveat=caveat.ErrInvalidCaveat=void 0;const bsert_1=__importDefault(assert_1),Macaroon$1=__importStar$1(macaroon$1);class ErrInvalidCaveat extends Error{constructor(...tt){super(...tt),Error.captureStackTrace&&Error.captureStackTrace(this,ErrInvalidCaveat),this.name="ErrInvalidCaveat",this.message='Caveat must be of the form "condition[<,=,>]value"'}}caveat.ErrInvalidCaveat=ErrInvalidCaveat;const validComp=new Set(["<",">","="]);class Caveat{constructor(tt){this.condition="",this.value="",this.comp="=",tt&&this.fromOptions(tt)}fromOptions(tt){if((0,bsert_1.default)(tt,"Data required to create new caveat"),(0,bsert_1.default)(typeof tt.condition=="string"&&tt.condition.length,"Require a condition"),this.condition=tt.condition,tt.value.toString(),this.value=tt.value,tt.comp){if(!validComp.has(tt.comp))throw new ErrInvalidCaveat;this.comp=tt.comp}return this}encode(){return`${this.condition}${this.comp}${this.value}`}static decode(tt){let rt;for(let at=0;at{try{if(at.i!=null){const ot=Caveat.decode(at.i);it===ot.condition&&(st=ot.value)}}catch{}}),st||!1}caveat.hasCaveat=hasCaveat;function verifyCaveats(et,tt,rt={}){if(tt)Array.isArray(tt)||(tt=[tt]);else return!0;const nt=new Map;for(const st of tt)nt.set(st.condition,st);const it=new Map;for(const st of et){const at=st.condition;if(!nt.has(at))continue;it.has(at)||it.set(at,[]);const ot=it.get(at);ot.push(st),it.set(at,ot)}for(const[st,at]of it){const ot=nt.get(st);for(let lt=0;lt>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk$1(et){for(var tt=1,rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep$1(tt)^nt>>5}for(tt=polymodStep$1(tt),rt=0;rtrt)throw new TypeError("Exceeds length limit");et=et.toLowerCase();var nt=prefixChk$1(et);if(typeof nt=="string")throw new Error(nt);for(var it=et+"1",st=0;st>5)throw new Error("Non 5-bit word");nt=polymodStep$1(nt)^at,it+=ALPHABET$2.charAt(at)}for(st=0;st<6;++st)nt=polymodStep$1(nt);for(nt^=1,st=0;st<6;++st){var ot=nt>>(5-st)*5&31;it+=ALPHABET$2.charAt(ot)}return it}function __decode(et,tt){if(tt=tt||90,et.length<8)return et+" too short";if(et.length>tt)return"Exceeds length limit";var rt=et.toLowerCase(),nt=et.toUpperCase();if(et!==rt&&et!==nt)return"Mixed-case string "+et;et=rt;var it=et.lastIndexOf("1");if(it===-1)return"No separator character for "+et;if(it===0)return"Missing prefix for "+et;var st=et.slice(0,it),at=et.slice(it+1);if(at.length<6)return"Data too short";var ot=prefixChk$1(st);if(typeof ot=="string")return ot;for(var lt=[],ut=0;ut=at.length)&<.push(bt)}return ot!==1?"Invalid checksum for "+et:{prefix:st,words:lt}}function decodeUnsafe(){var et=__decode.apply(null,arguments);if(typeof et=="object")return et}function decode$n(et){var tt=__decode.apply(null,arguments);if(typeof tt=="object")return tt;throw new Error(tt)}function convert$4(et,tt,rt,nt){for(var it=0,st=0,at=(1<=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<new Uint8Array(rt),tt){return typeof et=="function"&&(et=et(tt)),isUint8Array("output",et,tt),et}function toTypeString(et){return Object.prototype.toString.call(et).slice(8,-1)}var lib$1=et=>({contextRandomize(tt){switch(assert$2(tt===null||tt instanceof Uint8Array,"Expected seed to be an Uint8Array or null"),tt!==null&&isUint8Array("seed",tt,32),et.contextRandomize(tt)){case 1:throw new Error(errors$2.CONTEXT_RANDOMIZE_UNKNOW)}},privateKeyVerify(tt){return isUint8Array("private key",tt,32),et.privateKeyVerify(tt)===0},privateKeyNegate(tt){switch(isUint8Array("private key",tt,32),et.privateKeyNegate(tt)){case 0:return tt;case 1:throw new Error(errors$2.IMPOSSIBLE_CASE)}},privateKeyTweakAdd(tt,rt){switch(isUint8Array("private key",tt,32),isUint8Array("tweak",rt,32),et.privateKeyTweakAdd(tt,rt)){case 0:return tt;case 1:throw new Error(errors$2.TWEAK_ADD)}},privateKeyTweakMul(tt,rt){switch(isUint8Array("private key",tt,32),isUint8Array("tweak",rt,32),et.privateKeyTweakMul(tt,rt)){case 0:return tt;case 1:throw new Error(errors$2.TWEAK_MUL)}},publicKeyVerify(tt){return isUint8Array("public key",tt,[33,65]),et.publicKeyVerify(tt)===0},publicKeyCreate(tt,rt=!0,nt){switch(isUint8Array("private key",tt,32),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyCreate(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.SECKEY_INVALID);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyConvert(tt,rt=!0,nt){switch(isUint8Array("public key",tt,[33,65]),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyConvert(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyNegate(tt,rt=!0,nt){switch(isUint8Array("public key",tt,[33,65]),isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyNegate(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyCombine(tt,rt=!0,nt){assert$2(Array.isArray(tt),"Expected public keys to be an Array"),assert$2(tt.length>0,"Expected public keys array will have more than zero items");for(const it of tt)isUint8Array("public key",it,[33,65]);switch(isCompressed(rt),nt=getAssertedOutput(nt,rt?33:65),et.publicKeyCombine(nt,tt)){case 0:return nt;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.PUBKEY_COMBINE);case 3:throw new Error(errors$2.PUBKEY_SERIALIZE)}},publicKeyTweakAdd(tt,rt,nt=!0,it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("tweak",rt,32),isCompressed(nt),it=getAssertedOutput(it,nt?33:65),et.publicKeyTweakAdd(it,tt,rt)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_ADD)}},publicKeyTweakMul(tt,rt,nt=!0,it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("tweak",rt,32),isCompressed(nt),it=getAssertedOutput(it,nt?33:65),et.publicKeyTweakMul(it,tt,rt)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.TWEAK_MUL)}},signatureNormalize(tt){switch(isUint8Array("signature",tt,64),et.signatureNormalize(tt)){case 0:return tt;case 1:throw new Error(errors$2.SIG_PARSE)}},signatureExport(tt,rt){isUint8Array("signature",tt,64),rt=getAssertedOutput(rt,72);const nt={output:rt,outputlen:72};switch(et.signatureExport(nt,tt)){case 0:return rt.slice(0,nt.outputlen);case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},signatureImport(tt,rt){switch(isUint8Array("signature",tt),rt=getAssertedOutput(rt,64),et.signatureImport(rt,tt)){case 0:return rt;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaSign(tt,rt,nt={},it){isUint8Array("message",tt,32),isUint8Array("private key",rt,32),assert$2(toTypeString(nt)==="Object","Expected options to be an Object"),nt.data!==void 0&&isUint8Array("options.data",nt.data),nt.noncefn!==void 0&&assert$2(toTypeString(nt.noncefn)==="Function","Expected options.noncefn to be a Function"),it=getAssertedOutput(it,64);const st={signature:it,recid:null};switch(et.ecdsaSign(st,tt,rt,nt.data,nt.noncefn)){case 0:return st;case 1:throw new Error(errors$2.SIGN);case 2:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdsaVerify(tt,rt,nt){switch(isUint8Array("signature",tt,64),isUint8Array("message",rt,32),isUint8Array("public key",nt,[33,65]),et.ecdsaVerify(tt,rt,nt)){case 0:return!0;case 3:return!1;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.PUBKEY_PARSE)}},ecdsaRecover(tt,rt,nt,it=!0,st){switch(isUint8Array("signature",tt,64),assert$2(toTypeString(rt)==="Number"&&rt>=0&&rt<=3,"Expected recovery id to be a Number within interval [0, 3]"),isUint8Array("message",nt,32),isCompressed(it),st=getAssertedOutput(st,it?33:65),et.ecdsaRecover(st,tt,rt,nt)){case 0:return st;case 1:throw new Error(errors$2.SIG_PARSE);case 2:throw new Error(errors$2.RECOVER);case 3:throw new Error(errors$2.IMPOSSIBLE_CASE)}},ecdh(tt,rt,nt={},it){switch(isUint8Array("public key",tt,[33,65]),isUint8Array("private key",rt,32),assert$2(toTypeString(nt)==="Object","Expected options to be an Object"),nt.data!==void 0&&isUint8Array("options.data",nt.data),nt.hashfn!==void 0?(assert$2(toTypeString(nt.hashfn)==="Function","Expected options.hashfn to be a Function"),nt.xbuf!==void 0&&isUint8Array("options.xbuf",nt.xbuf,32),nt.ybuf!==void 0&&isUint8Array("options.ybuf",nt.ybuf,32),isUint8Array("output",it)):it=getAssertedOutput(it,32),et.ecdh(it,tt,rt,nt.data,nt.hashfn,nt.xbuf,nt.ybuf)){case 0:return it;case 1:throw new Error(errors$2.PUBKEY_PARSE);case 2:throw new Error(errors$2.ECDH)}}});const EC=requireElliptic().ec,ec=new EC("secp256k1"),ecparams=ec.curve,BN$1=ecparams.n.constructor;function loadCompressedPublicKey(et,tt){let rt=new BN$1(tt);if(rt.cmp(ecparams.p)>=0)return null;rt=rt.toRed(ecparams.red);let nt=rt.redSqr().redIMul(rt).redIAdd(ecparams.b).redSqrt();return et===3!==nt.isOdd()&&(nt=nt.redNeg()),ec.keyPair({pub:{x:rt,y:nt}})}function loadUncompressedPublicKey(et,tt,rt){let nt=new BN$1(tt),it=new BN$1(rt);if(nt.cmp(ecparams.p)>=0||it.cmp(ecparams.p)>=0||(nt=nt.toRed(ecparams.red),it=it.toRed(ecparams.red),(et===6||et===7)&&it.isOdd()!==(et===7)))return null;const st=nt.redSqr().redIMul(nt);return it.redSqr().redISub(st.redIAdd(ecparams.b)).isZero()?ec.keyPair({pub:{x:nt,y:it}}):null}function loadPublicKey(et){const tt=et[0];switch(tt){case 2:case 3:return et.length!==33?null:loadCompressedPublicKey(tt,et.subarray(1,33));case 4:case 6:case 7:return et.length!==65?null:loadUncompressedPublicKey(tt,et.subarray(1,33),et.subarray(33,65));default:return null}}function savePublicKey(et,tt){const rt=tt.encode(null,et.length===33);for(let nt=0;nt=0||(rt.iadd(new BN$1(et)),rt.cmp(ecparams.n)>=0&&rt.isub(ecparams.n),rt.isZero()))return 1;const nt=rt.toArrayLike(Uint8Array,"be",32);return et.set(nt),0},privateKeyTweakMul(et,tt){let rt=new BN$1(tt);if(rt.cmp(ecparams.n)>=0||rt.isZero())return 1;rt.imul(new BN$1(et)),rt.cmp(ecparams.n)>=0&&(rt=rt.umod(ecparams.n));const nt=rt.toArrayLike(Uint8Array,"be",32);return et.set(nt),0},publicKeyVerify(et){return loadPublicKey(et)===null?1:0},publicKeyCreate(et,tt){const rt=new BN$1(tt);if(rt.cmp(ecparams.n)>=0||rt.isZero())return 1;const nt=ec.keyFromPrivate(tt).getPublic();return savePublicKey(et,nt),0},publicKeyConvert(et,tt){const rt=loadPublicKey(tt);if(rt===null)return 1;const nt=rt.getPublic();return savePublicKey(et,nt),0},publicKeyNegate(et,tt){const rt=loadPublicKey(tt);if(rt===null)return 1;const nt=rt.getPublic();return nt.y=nt.y.redNeg(),savePublicKey(et,nt),0},publicKeyCombine(et,tt){const rt=new Array(tt.length);for(let it=0;it=0)return 2;const it=nt.getPublic().add(ecparams.g.mul(rt));return it.isInfinity()?2:(savePublicKey(et,it),0)},publicKeyTweakMul(et,tt,rt){const nt=loadPublicKey(tt);if(nt===null)return 1;if(rt=new BN$1(rt),rt.cmp(ecparams.n)>=0||rt.isZero())return 2;const it=nt.getPublic().mul(rt);return savePublicKey(et,it),0},signatureNormalize(et){const tt=new BN$1(et.subarray(0,32)),rt=new BN$1(et.subarray(32,64));return tt.cmp(ecparams.n)>=0||rt.cmp(ecparams.n)>=0?1:(rt.cmp(ec.nh)===1&&et.set(ecparams.n.sub(rt).toArrayLike(Uint8Array,"be",32),32),0)},signatureExport(et,tt){const rt=tt.subarray(0,32),nt=tt.subarray(32,64);if(new BN$1(rt).cmp(ecparams.n)>=0||new BN$1(nt).cmp(ecparams.n)>=0)return 1;const{output:it}=et;let st=it.subarray(4,4+33);st[0]=0,st.set(rt,1);let at=33,ot=0;for(;at>1&&st[ot]===0&&!(st[ot+1]&128);--at,++ot);if(st=st.subarray(ot),st[0]&128||at>1&&st[0]===0&&!(st[1]&128))return 1;let lt=it.subarray(6+33,6+33+33);lt[0]=0,lt.set(nt,1);let ut=33,dt=0;for(;ut>1&<[dt]===0&&!(lt[dt+1]&128);--ut,++dt);return lt=lt.subarray(dt),lt[0]&128||ut>1&<[0]===0&&!(lt[1]&128)?1:(et.outputlen=6+at+ut,it[0]=48,it[1]=et.outputlen-2,it[2]=2,it[3]=st.length,it.set(st,4),it[4+at]=2,it[5+at]=lt.length,it.set(lt,6+at),0)},signatureImport(et,tt){if(tt.length<8||tt.length>72||tt[0]!==48||tt[1]!==tt.length-2||tt[2]!==2)return 1;const rt=tt[3];if(rt===0||5+rt>=tt.length||tt[4+rt]!==2)return 1;const nt=tt[5+rt];if(nt===0||6+rt+nt!==tt.length||tt[4]&128||rt>1&&tt[4]===0&&!(tt[5]&128)||tt[rt+6]&128||nt>1&&tt[rt+6]===0&&!(tt[rt+7]&128))return 1;let it=tt.subarray(4,4+rt);if(it.length===33&&it[0]===0&&(it=it.subarray(1)),it.length>32)return 1;let st=tt.subarray(6+rt);if(st.length===33&&st[0]===0&&(st=st.slice(1)),st.length>32)throw new Error("S length is too long");let at=new BN$1(it);at.cmp(ecparams.n)>=0&&(at=new BN$1(0));let ot=new BN$1(tt.subarray(6+rt));return ot.cmp(ecparams.n)>=0&&(ot=new BN$1(0)),et.set(at.toArrayLike(Uint8Array,"be",32),0),et.set(ot.toArrayLike(Uint8Array,"be",32),32),0},ecdsaSign(et,tt,rt,nt,it){if(it){const ot=it;it=lt=>{const ut=ot(tt,rt,null,nt,lt);if(!(ut instanceof Uint8Array&&ut.length===32))throw new Error("This is the way");return new BN$1(ut)}}const st=new BN$1(rt);if(st.cmp(ecparams.n)>=0||st.isZero())return 1;let at;try{at=ec.sign(tt,rt,{canonical:!0,k:it,pers:nt})}catch{return 1}return et.signature.set(at.r.toArrayLike(Uint8Array,"be",32),0),et.signature.set(at.s.toArrayLike(Uint8Array,"be",32),32),et.recid=at.recoveryParam,0},ecdsaVerify(et,tt,rt){const nt={r:et.subarray(0,32),s:et.subarray(32,64)},it=new BN$1(nt.r),st=new BN$1(nt.s);if(it.cmp(ecparams.n)>=0||st.cmp(ecparams.n)>=0)return 1;if(st.cmp(ec.nh)===1||it.isZero()||st.isZero())return 3;const at=loadPublicKey(rt);if(at===null)return 2;const ot=at.getPublic();return ec.verify(tt,nt,ot)?0:3},ecdsaRecover(et,tt,rt,nt){const it={r:tt.slice(0,32),s:tt.slice(32,64)},st=new BN$1(it.r),at=new BN$1(it.s);if(st.cmp(ecparams.n)>=0||at.cmp(ecparams.n)>=0)return 1;if(st.isZero()||at.isZero())return 2;let ot;try{ot=ec.recoverPubKey(nt,it,rt)}catch{return 2}return savePublicKey(et,ot),0},ecdh(et,tt,rt,nt,it,st,at){const ot=loadPublicKey(tt);if(ot===null)return 1;const lt=new BN$1(rt);if(lt.cmp(ecparams.n)>=0||lt.isZero())return 2;const ut=ot.getPublic().mul(lt);if(it===void 0){const dt=ut.encode(null,!0),bt=ec.hash().update(dt).digest();for(let gt=0;gt<32;++gt)et[gt]=bt[gt]}else{st||(st=new Uint8Array(32));const dt=ut.getX().toArray("be",32);for(let pt=0;pt<32;++pt)st[pt]=dt[pt];at||(at=new Uint8Array(32));const bt=ut.getY().toArray("be",32);for(let pt=0;pt<32;++pt)at[pt]=bt[pt];const gt=it(st,at,nt);if(!(gt instanceof Uint8Array&>.length===et.length))return 2;et.set(gt)}return 0}},elliptic=lib$1(elliptic$1),src$1={},address={},networks$1={};Object.defineProperty(networks$1,"__esModule",{value:!0});networks$1.testnet=networks$1.regtest=networks$1.bitcoin=void 0;networks$1.bitcoin={messagePrefix:`Bitcoin Signed Message: `,bech32:"bc",bip32:{public:76067358,private:76066276},pubKeyHash:0,scriptHash:5,wif:128};networks$1.regtest={messagePrefix:`Bitcoin Signed Message: `,bech32:"bcrt",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};networks$1.testnet={messagePrefix:`Bitcoin Signed Message: -`,bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};var payments$3={},embed={},script={},bip66$1={};Object.defineProperty(bip66$1,"__esModule",{value:!0});bip66$1.encode=bip66$1.decode=bip66$1.check=void 0;function check$d(et){if(et.length<8||et.length>72||et[0]!==48||et[1]!==et.length-2||et[2]!==2)return!1;const tt=et[3];if(tt===0||5+tt>=et.length||et[4+tt]!==2)return!1;const rt=et[5+tt];return!(rt===0||6+tt+rt!==et.length||et[4]&128||tt>1&&et[4]===0&&!(et[5]&128)||et[tt+6]&128||rt>1&&et[tt+6]===0&&!(et[tt+7]&128))}bip66$1.check=check$d;function decode$m(et){if(et.length<8)throw new Error("DER sequence length is too short");if(et.length>72)throw new Error("DER sequence length is too long");if(et[0]!==48)throw new Error("Expected DER sequence");if(et[1]!==et.length-2)throw new Error("DER sequence length is invalid");if(et[2]!==2)throw new Error("Expected DER integer");const tt=et[3];if(tt===0)throw new Error("R length is zero");if(5+tt>=et.length)throw new Error("R length is too long");if(et[4+tt]!==2)throw new Error("Expected DER integer (2)");const rt=et[5+tt];if(rt===0)throw new Error("S length is zero");if(6+tt+rt!==et.length)throw new Error("S length is invalid");if(et[4]&128)throw new Error("R value is negative");if(tt>1&&et[4]===0&&!(et[5]&128))throw new Error("R value excessively padded");if(et[tt+6]&128)throw new Error("S value is negative");if(rt>1&&et[tt+6]===0&&!(et[tt+7]&128))throw new Error("S value excessively padded");return{r:et.slice(4,4+tt),s:et.slice(6+tt)}}bip66$1.decode=decode$m;function encode$n(et,tt){const rt=et.length,nt=tt.length;if(rt===0)throw new Error("R length is zero");if(nt===0)throw new Error("S length is zero");if(rt>33)throw new Error("R length is too long");if(nt>33)throw new Error("S length is too long");if(et[0]&128)throw new Error("R value is negative");if(tt[0]&128)throw new Error("S value is negative");if(rt>1&&et[0]===0&&!(et[1]&128))throw new Error("R value excessively padded");if(nt>1&&tt[0]===0&&!(tt[1]&128))throw new Error("S value excessively padded");const it=Buffer.allocUnsafe(6+rt+nt);return it[0]=48,it[1]=it.length-2,it[2]=2,it[3]=et.length,et.copy(it,4),it[4+rt]=2,it[5+rt]=tt.length,tt.copy(it,6+rt),it}bip66$1.encode=encode$n;var ops={};Object.defineProperty(ops,"__esModule",{value:!0});ops.REVERSE_OPS=ops.OPS=void 0;const OPS$8={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_CHECKSIGADD:186,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};ops.OPS=OPS$8;const REVERSE_OPS={};ops.REVERSE_OPS=REVERSE_OPS;for(const et of Object.keys(OPS$8)){const tt=OPS$8[et];REVERSE_OPS[tt]=et}var push_data={};Object.defineProperty(push_data,"__esModule",{value:!0});push_data.decode=push_data.encode=push_data.encodingLength=void 0;const ops_1=ops;function encodingLength$2(et){return etet.length)return null;nt=et.readUInt8(tt+1),it=2}else if(rt===ops_1.OPS.OP_PUSHDATA2){if(tt+3>et.length)return null;nt=et.readUInt16LE(tt+1),it=3}else{if(tt+5>et.length)return null;if(rt!==ops_1.OPS.OP_PUSHDATA4)throw new Error("Unexpected opcode");nt=et.readUInt32LE(tt+1),it=5}return{opcode:rt,number:nt,size:it}}push_data.decode=decode$l;var script_number={};Object.defineProperty(script_number,"__esModule",{value:!0});script_number.encode=script_number.decode=void 0;function decode$k(et,tt,rt){tt=tt||4,rt=rt===void 0?!0:rt;const nt=et.length;if(nt===0)return 0;if(nt>tt)throw new TypeError("Script number overflow");if(rt&&!(et[nt-1]&127)&&(nt<=1||!(et[nt-2]&128)))throw new Error("Non-minimally encoded script number");if(nt===5){const st=et.readUInt32LE(0),at=et.readUInt8(4);return at&128?-((at&-129)*4294967296+st):at*4294967296+st}let it=0;for(let st=0;st2147483647?5:et>8388607?4:et>32767?3:et>127?2:et>0?1:0}function encode$l(et){let tt=Math.abs(et);const rt=scriptNumSize(tt),nt=Buffer.allocUnsafe(rt),it=et<0;for(let st=0;st>=8;return nt[rt-1]&128?nt.writeUInt8(it?128:0,rt-1):it&&(nt[rt-1]|=128),nt}script_number.encode=encode$l;var script_signature={},types$6={},types$5={Array:function(et){return et!=null&&et.constructor===Array},Boolean:function(et){return typeof et=="boolean"},Function:function(et){return typeof et=="function"},Nil:function(et){return et==null},Number:function(et){return typeof et=="number"},Object:function(et){return typeof et=="object"},String:function(et){return typeof et=="string"},"":function(){return!0}};types$5.Null=types$5.Nil;for(var typeName$1 in types$5)types$5[typeName$1].toJSON=(function(et){return et}).bind(null,typeName$1);var native$1=types$5,native=native$1;function getTypeName(et){return et.name||et.toString().match(/function (.*?)\s*\(/)[1]}function getValueTypeName$1(et){return native.Nil(et)?"":getTypeName(et.constructor)}function getValue$3(et){return native.Function(et)?"":native.String(et)?JSON.stringify(et):et&&native.Object(et)?"":et}function captureStackTrace(et,tt){Error.captureStackTrace&&Error.captureStackTrace(et,tt)}function tfJSON$1(et){return native.Function(et)?et.toJSON?et.toJSON():getTypeName(et):native.Array(et)?"Array":et&&native.Object(et)?"Object":et!==void 0?et:""}function tfErrorString(et,tt,rt){var nt=getValue$3(tt);return"Expected "+tfJSON$1(et)+", got"+(rt!==""?" "+rt:"")+(nt!==""?" "+nt:"")}function TfTypeError$1(et,tt,rt){rt=rt||getValueTypeName$1(tt),this.message=tfErrorString(et,tt,rt),captureStackTrace(this,TfTypeError$1),this.__type=et,this.__value=tt,this.__valueTypeName=rt}TfTypeError$1.prototype=Object.create(Error.prototype);TfTypeError$1.prototype.constructor=TfTypeError$1;function tfPropertyErrorString(et,tt,rt,nt,it){var st='" of type ';return tt==="key"&&(st='" with key type '),tfErrorString('property "'+tfJSON$1(rt)+st+tfJSON$1(et),nt,it)}function TfPropertyTypeError$1(et,tt,rt,nt,it){et?(it=it||getValueTypeName$1(nt),this.message=tfPropertyErrorString(et,rt,tt,nt,it)):this.message='Unexpected property "'+tt+'"',captureStackTrace(this,TfTypeError$1),this.__label=rt,this.__property=tt,this.__type=et,this.__value=nt,this.__valueTypeName=it}TfPropertyTypeError$1.prototype=Object.create(Error.prototype);TfPropertyTypeError$1.prototype.constructor=TfTypeError$1;function tfCustomError(et,tt){return new TfTypeError$1(et,{},tt)}function tfSubError$1(et,tt,rt){return et instanceof TfPropertyTypeError$1?(tt=tt+"."+et.__property,et=new TfPropertyTypeError$1(et.__type,tt,et.__label,et.__value,et.__valueTypeName)):et instanceof TfTypeError$1&&(et=new TfPropertyTypeError$1(et.__type,tt,rt,et.__value,et.__valueTypeName)),captureStackTrace(et),et}var errors$1={TfTypeError:TfTypeError$1,TfPropertyTypeError:TfPropertyTypeError$1,tfCustomError,tfSubError:tfSubError$1,tfJSON:tfJSON$1,getValueTypeName:getValueTypeName$1},extra,hasRequiredExtra;function requireExtra(){if(hasRequiredExtra)return extra;hasRequiredExtra=1;var et=native$1,tt=errors$1;function rt(Lt){return Buffer.isBuffer(Lt)}function nt(Lt){return typeof Lt=="string"&&/^([0-9a-f]{2})+$/i.test(Lt)}function it(Lt,zt){var Ht=Lt.toJSON();function Wt(lr){if(!Lt(lr))return!1;if(lr.length===zt)return!0;throw tt.tfCustomError(Ht+"(Length: "+zt+")",Ht+"(Length: "+lr.length+")")}return Wt.toJSON=function(){return Ht},Wt}var st=it.bind(null,et.Array),at=it.bind(null,rt),ot=it.bind(null,nt),lt=it.bind(null,et.String);function ut(Lt,zt,Ht){Ht=Ht||et.Number;function Wt(lr,qt){return Ht(lr,qt)&&lr>Lt&&lr>24===Lt}function kt(Lt){return Lt<<16>>16===Lt}function pt(Lt){return(Lt|0)===Lt}function yt(Lt){return typeof Lt=="number"&&Lt>=-dt&&Lt<=dt&&Math.floor(Lt)===Lt}function $t(Lt){return(Lt&255)===Lt}function mt(Lt){return(Lt&65535)===Lt}function wt(Lt){return Lt>>>0===Lt}function St(Lt){return typeof Lt=="number"&&Lt>=0&&Lt<=dt&&Math.floor(Lt)===Lt}var Bt={ArrayN:st,Buffer:rt,BufferN:at,Finite:bt,Hex:nt,HexN:ot,Int8:gt,Int16:kt,Int32:pt,Int53:yt,Range:ut,StringN:lt,UInt8:$t,UInt16:mt,UInt32:wt,UInt53:St};for(var Ft in Bt)Bt[Ft].toJSON=(function(Lt){return Lt}).bind(null,Ft);return extra=Bt,extra}var ERRORS=errors$1,NATIVE=native$1,tfJSON=ERRORS.tfJSON,TfTypeError=ERRORS.TfTypeError,TfPropertyTypeError=ERRORS.TfPropertyTypeError,tfSubError=ERRORS.tfSubError,getValueTypeName=ERRORS.getValueTypeName,TYPES={arrayOf:function(tt,rt){tt=compile$1(tt),rt=rt||{};function nt(it,st){return!NATIVE.Array(it)||NATIVE.Nil(it)||rt.minLength!==void 0&&it.lengthrt.maxLength||rt.length!==void 0&&it.length!==rt.length?!1:it.every(function(at,ot){try{return typeforce$4(tt,at,st)}catch(lt){throw tfSubError(lt,ot)}})}return nt.toJSON=function(){var it="["+tfJSON(tt)+"]";return rt.length!==void 0?it+="{"+rt.length+"}":(rt.minLength!==void 0||rt.maxLength!==void 0)&&(it+="{"+(rt.minLength===void 0?0:rt.minLength)+","+(rt.maxLength===void 0?1/0:rt.maxLength)+"}"),it},nt},maybe:function et(tt){tt=compile$1(tt);function rt(nt,it){return NATIVE.Nil(nt)||tt(nt,it,et)}return rt.toJSON=function(){return"?"+tfJSON(tt)},rt},map:function(tt,rt){tt=compile$1(tt),rt&&(rt=compile$1(rt));function nt(it,st){if(!NATIVE.Object(it)||NATIVE.Nil(it))return!1;for(var at in it){try{rt&&typeforce$4(rt,at,st)}catch(lt){throw tfSubError(lt,at,"key")}try{var ot=it[at];typeforce$4(tt,ot,st)}catch(lt){throw tfSubError(lt,at)}}return!0}return rt?nt.toJSON=function(){return"{"+tfJSON(rt)+": "+tfJSON(tt)+"}"}:nt.toJSON=function(){return"{"+tfJSON(tt)+"}"},nt},object:function(tt){var rt={};for(var nt in tt)rt[nt]=compile$1(tt[nt]);function it(st,at){if(!NATIVE.Object(st)||NATIVE.Nil(st))return!1;var ot;try{for(ot in rt){var lt=rt[ot],ut=st[ot];typeforce$4(lt,ut,at)}}catch(dt){throw tfSubError(dt,ot)}if(at){for(ot in st)if(!rt[ot])throw new TfPropertyTypeError(void 0,ot)}return!0}return it.toJSON=function(){return tfJSON(rt)},it},anyOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.some(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join("|")},rt},allOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.every(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join(" & ")},rt},quacksLike:function(tt){function rt(nt){return tt===getValueTypeName(nt)}return rt.toJSON=function(){return tt},rt},tuple:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return NATIVE.Nil(nt)||NATIVE.Nil(nt.length)||it&&nt.length!==tt.length?!1:tt.every(function(st,at){try{return typeforce$4(st,nt[at],it)}catch(ot){throw tfSubError(ot,at)}})}return rt.toJSON=function(){return"("+tt.map(tfJSON).join(", ")+")"},rt},value:function(tt){function rt(nt){return nt===tt}return rt.toJSON=function(){return tt},rt}};TYPES.oneOf=TYPES.anyOf;function compile$1(et){if(NATIVE.String(et))return et[0]==="?"?TYPES.maybe(et.slice(1)):NATIVE[et]||TYPES.quacksLike(et);if(et&&NATIVE.Object(et)){if(NATIVE.Array(et)){if(et.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return TYPES.arrayOf(et[0])}return TYPES.object(et)}else if(NATIVE.Function(et))return et;return TYPES.value(et)}function typeforce$4(et,tt,rt,nt){if(NATIVE.Function(et)){if(et(tt,rt))return!0;throw new TfTypeError(nt||et,tt)}return typeforce$4(compile$1(et),tt,rt)}for(var typeName in NATIVE)typeforce$4[typeName]=NATIVE[typeName];for(typeName in TYPES)typeforce$4[typeName]=TYPES[typeName];var EXTRA=requireExtra();for(typeName in EXTRA)typeforce$4[typeName]=EXTRA[typeName];typeforce$4.compile=compile$1;typeforce$4.TfTypeError=TfTypeError;typeforce$4.TfPropertyTypeError=TfPropertyTypeError;var typeforce_1=typeforce$4;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.oneOf=et.Null=et.BufferN=et.Function=et.UInt32=et.UInt8=et.tuple=et.maybe=et.Hex=et.Buffer=et.String=et.Boolean=et.Array=et.Number=et.Hash256bit=et.Hash160bit=et.Buffer256bit=et.isTaptree=et.isTapleaf=et.TAPLEAF_VERSION_MASK=et.Network=et.ECPoint=et.Satoshi=et.Signer=et.BIP32Path=et.UInt31=et.isPoint=et.typeforce=void 0;const tt=buffer$2;et.typeforce=typeforce_1;const rt=tt.Buffer.alloc(32,0),nt=tt.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");function it(kt){if(!tt.Buffer.isBuffer(kt)||kt.length<33)return!1;const pt=kt[0],yt=kt.slice(1,33);if(yt.compare(rt)===0||yt.compare(nt)>=0)return!1;if((pt===2||pt===3)&&kt.length===33)return!0;const $t=kt.slice(33);return $t.compare(rt)===0||$t.compare(nt)>=0?!1:pt===4&&kt.length===65}et.isPoint=it;const st=Math.pow(2,31)-1;function at(kt){return et.typeforce.UInt32(kt)&&kt<=st}et.UInt31=at;function ot(kt){return et.typeforce.String(kt)&&!!kt.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}et.BIP32Path=ot,ot.toJSON=()=>"BIP32 derivation path";function lt(kt){return(et.typeforce.Buffer(kt.publicKey)||typeof kt.getPublicKey=="function")&&typeof kt.sign=="function"}et.Signer=lt;const ut=21*1e14;function dt(kt){return et.typeforce.UInt53(kt)&&kt<=ut}et.Satoshi=dt,et.ECPoint=et.typeforce.quacksLike("Point"),et.Network=et.typeforce.compile({messagePrefix:et.typeforce.oneOf(et.typeforce.Buffer,et.typeforce.String),bip32:{public:et.typeforce.UInt32,private:et.typeforce.UInt32},pubKeyHash:et.typeforce.UInt8,scriptHash:et.typeforce.UInt8,wif:et.typeforce.UInt8}),et.TAPLEAF_VERSION_MASK=254;function bt(kt){return!kt||!("output"in kt)||!tt.Buffer.isBuffer(kt.output)?!1:kt.version!==void 0?(kt.version&et.TAPLEAF_VERSION_MASK)===kt.version:!0}et.isTapleaf=bt;function gt(kt){return(0,et.Array)(kt)?kt.length!==2?!1:kt.every(pt=>gt(pt)):bt(kt)}et.isTaptree=gt,et.Buffer256bit=et.typeforce.BufferN(32),et.Hash160bit=et.typeforce.BufferN(20),et.Hash256bit=et.typeforce.BufferN(32),et.Number=et.typeforce.Number,et.Array=et.typeforce.Array,et.Boolean=et.typeforce.Boolean,et.String=et.typeforce.String,et.Buffer=et.typeforce.Buffer,et.Hex=et.typeforce.Hex,et.maybe=et.typeforce.maybe,et.tuple=et.typeforce.tuple,et.UInt8=et.typeforce.UInt8,et.UInt32=et.typeforce.UInt32,et.Function=et.typeforce.Function,et.BufferN=et.typeforce.BufferN,et.Null=et.typeforce.Null,et.oneOf=et.typeforce.oneOf})(types$6);Object.defineProperty(script_signature,"__esModule",{value:!0});script_signature.encode=script_signature.decode=void 0;const bip66=bip66$1,types$4=types$6,{typeforce:typeforce$3}=types$4,ZERO$1=Buffer.alloc(1,0);function toDER(et){let tt=0;for(;et[tt]===0;)++tt;return tt===et.length?ZERO$1:(et=et.slice(tt),et[0]&128?Buffer.concat([ZERO$1,et],1+et.length):et)}function fromDER(et){et[0]===0&&(et=et.slice(1));const tt=Buffer.alloc(32,0),rt=Math.max(0,32-et.length);return et.copy(tt,rt),tt}function decode$j(et){const tt=et.readUInt8(et.length-1),rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=bip66.decode(et.slice(0,-1)),it=fromDER(nt.r),st=fromDER(nt.s);return{signature:Buffer.concat([it,st],64),hashType:tt}}script_signature.decode=decode$j;function encode$k(et,tt){typeforce$3({signature:types$4.BufferN(64),hashType:types$4.UInt8},{signature:et,hashType:tt});const rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=Buffer.allocUnsafe(1);nt.writeUInt8(tt,0);const it=toDER(et.slice(0,32)),st=toDER(et.slice(32,64));return Buffer.concat([bip66.encode(it,st),nt])}script_signature.encode=encode$k;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.signature=et.number=et.isCanonicalScriptSignature=et.isDefinedHashType=et.isCanonicalPubKey=et.toStack=et.fromASM=et.toASM=et.decompile=et.compile=et.countNonPushOnlyOPs=et.isPushOnly=et.OPS=void 0;const tt=bip66$1,rt=ops;Object.defineProperty(et,"OPS",{enumerable:!0,get:function(){return rt.OPS}});const nt=push_data,it=script_number,st=script_signature,at=types$6,{typeforce:ot}=at,lt=rt.OPS.OP_RESERVED;function ut(Wt){return at.Number(Wt)&&(Wt===rt.OPS.OP_0||Wt>=rt.OPS.OP_1&&Wt<=rt.OPS.OP_16||Wt===rt.OPS.OP_1NEGATE)}function dt(Wt){return at.Buffer(Wt)||ut(Wt)}function bt(Wt){return at.Array(Wt)&&Wt.every(dt)}et.isPushOnly=bt;function gt(Wt){return Wt.length-Wt.filter(dt).length}et.countNonPushOnlyOPs=gt;function kt(Wt){if(Wt.length===0)return rt.OPS.OP_0;if(Wt.length===1){if(Wt[0]>=1&&Wt[0]<=16)return lt+Wt[0];if(Wt[0]===129)return rt.OPS.OP_1NEGATE}}function pt(Wt){return Buffer.isBuffer(Wt)}function yt(Wt){return at.Array(Wt)}function $t(Wt){return Buffer.isBuffer(Wt)}function mt(Wt){if(pt(Wt))return Wt;ot(at.Array,Wt);const lr=Wt.reduce((Mt,ht)=>$t(ht)?ht.length===1&&kt(ht)!==void 0?Mt+1:Mt+nt.encodingLength(ht.length)+ht.length:Mt+1,0),qt=Buffer.allocUnsafe(lr);let Ot=0;if(Wt.forEach(Mt=>{if($t(Mt)){const ht=kt(Mt);if(ht!==void 0){qt.writeUInt8(ht,Ot),Ot+=1;return}Ot+=nt.encode(qt,Mt.length,Ot),Mt.copy(qt,Ot),Ot+=Mt.length}else qt.writeUInt8(Mt,Ot),Ot+=1}),Ot!==qt.length)throw new Error("Could not decode chunks");return qt}et.compile=mt;function wt(Wt){if(yt(Wt))return Wt;ot(at.Buffer,Wt);const lr=[];let qt=0;for(;qtrt.OPS.OP_0&&Ot<=rt.OPS.OP_PUSHDATA4){const Mt=nt.decode(Wt,qt);if(Mt===null||(qt+=Mt.size,qt+Mt.number>Wt.length))return null;const ht=Wt.slice(qt,qt+Mt.number);qt+=Mt.number;const Et=kt(ht);Et!==void 0?lr.push(Et):lr.push(ht)}else lr.push(Ot),qt+=1}return lr}et.decompile=wt;function St(Wt){return pt(Wt)&&(Wt=wt(Wt)),Wt.map(lr=>{if($t(lr)){const qt=kt(lr);if(qt===void 0)return lr.toString("hex");lr=qt}return rt.REVERSE_OPS[lr]}).join(" ")}et.toASM=St;function Bt(Wt){return ot(at.String,Wt),mt(Wt.split(" ").map(lr=>rt.OPS[lr]!==void 0?rt.OPS[lr]:(ot(at.Hex,lr),Buffer.from(lr,"hex"))))}et.fromASM=Bt;function Ft(Wt){return Wt=wt(Wt),ot(bt,Wt),Wt.map(lr=>$t(lr)?lr:lr===rt.OPS.OP_0?Buffer.allocUnsafe(0):it.encode(lr-lt))}et.toStack=Ft;function Lt(Wt){return at.isPoint(Wt)}et.isCanonicalPubKey=Lt;function zt(Wt){const lr=Wt&-129;return lr>0&&lr<4}et.isDefinedHashType=zt;function Ht(Wt){return!Buffer.isBuffer(Wt)||!zt(Wt[Wt.length-1])?!1:tt.check(Wt.slice(0,-1))}et.isCanonicalScriptSignature=Ht,et.number=it,et.signature=st})(script);var lazy$8={};Object.defineProperty(lazy$8,"__esModule",{value:!0});lazy$8.value=lazy$8.prop=void 0;function prop(et,tt,rt){Object.defineProperty(et,tt,{configurable:!0,enumerable:!0,get(){const nt=rt.call(this);return this[tt]=nt,nt},set(nt){Object.defineProperty(this,tt,{configurable:!0,enumerable:!0,value:nt,writable:!0})}})}lazy$8.prop=prop;function value$1(et){let tt;return()=>(tt!==void 0||(tt=et()),tt)}lazy$8.value=value$1;Object.defineProperty(embed,"__esModule",{value:!0});embed.p2data=void 0;const networks_1$8=networks$1,bscript$b=script,types_1$9=types$6,lazy$7=lazy$8,OPS$7=bscript$b.OPS;function stacksEqual$4(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2data(et,tt){if(!et.data&&!et.output)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$9.typeforce)({network:types_1$9.typeforce.maybe(types_1$9.typeforce.Object),output:types_1$9.typeforce.maybe(types_1$9.typeforce.Buffer),data:types_1$9.typeforce.maybe(types_1$9.typeforce.arrayOf(types_1$9.typeforce.Buffer))},et);const nt={name:"embed",network:et.network||networks_1$8.bitcoin};if(lazy$7.prop(nt,"output",()=>{if(et.data)return bscript$b.compile([OPS$7.OP_RETURN].concat(et.data))}),lazy$7.prop(nt,"data",()=>{if(et.output)return bscript$b.decompile(et.output).slice(1)}),tt.validate&&et.output){const it=bscript$b.decompile(et.output);if(it[0]!==OPS$7.OP_RETURN)throw new TypeError("Output is invalid");if(!it.slice(1).every(types_1$9.typeforce.Buffer))throw new TypeError("Output is invalid");if(et.data&&!stacksEqual$4(et.data,nt.data))throw new TypeError("Data mismatch")}return Object.assign(nt,et)}embed.p2data=p2data;var p2ms$1={};Object.defineProperty(p2ms$1,"__esModule",{value:!0});p2ms$1.p2ms=void 0;const networks_1$7=networks$1,bscript$a=script,types_1$8=types$6,lazy$6=lazy$8,OPS$6=bscript$a.OPS,OP_INT_BASE=OPS$6.OP_RESERVED;function stacksEqual$3(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2ms(et,tt){if(!et.input&&!et.output&&!(et.pubkeys&&et.m!==void 0)&&!et.signatures)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{});function rt(lt){return bscript$a.isCanonicalScriptSignature(lt)||(tt.allowIncomplete&<===OPS$6.OP_0)!==void 0}(0,types_1$8.typeforce)({network:types_1$8.typeforce.maybe(types_1$8.typeforce.Object),m:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),n:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),output:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer),pubkeys:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(types_1$8.isPoint)),signatures:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(rt)),input:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer)},et);const it={network:et.network||networks_1$7.bitcoin};let st=[],at=!1;function ot(lt){at||(at=!0,st=bscript$a.decompile(lt),it.m=st[0]-OP_INT_BASE,it.n=st[st.length-2]-OP_INT_BASE,it.pubkeys=st.slice(1,-2))}if(lazy$6.prop(it,"output",()=>{if(et.m&&it.n&&et.pubkeys)return bscript$a.compile([].concat(OP_INT_BASE+et.m,et.pubkeys,OP_INT_BASE+it.n,OPS$6.OP_CHECKMULTISIG))}),lazy$6.prop(it,"m",()=>{if(it.output)return ot(it.output),it.m}),lazy$6.prop(it,"n",()=>{if(it.pubkeys)return it.pubkeys.length}),lazy$6.prop(it,"pubkeys",()=>{if(et.output)return ot(et.output),it.pubkeys}),lazy$6.prop(it,"signatures",()=>{if(et.input)return bscript$a.decompile(et.input).slice(1)}),lazy$6.prop(it,"input",()=>{if(et.signatures)return bscript$a.compile([OPS$6.OP_0].concat(et.signatures))}),lazy$6.prop(it,"witness",()=>{if(it.input)return[]}),lazy$6.prop(it,"name",()=>{if(!(!it.m||!it.n))return`p2ms(${it.m} of ${it.n})`}),tt.validate){if(et.output){if(ot(et.output),!types_1$8.typeforce.Number(st[0]))throw new TypeError("Output is invalid");if(!types_1$8.typeforce.Number(st[st.length-2]))throw new TypeError("Output is invalid");if(st[st.length-1]!==OPS$6.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(it.m<=0||it.n>16||it.m>it.n||it.n!==st.length-3)throw new TypeError("Output is invalid");if(!it.pubkeys.every(lt=>(0,types_1$8.isPoint)(lt)))throw new TypeError("Output is invalid");if(et.m!==void 0&&et.m!==it.m)throw new TypeError("m mismatch");if(et.n!==void 0&&et.n!==it.n)throw new TypeError("n mismatch");if(et.pubkeys&&!stacksEqual$3(et.pubkeys,it.pubkeys))throw new TypeError("Pubkeys mismatch")}if(et.pubkeys){if(et.n!==void 0&&et.n!==et.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(it.n=et.pubkeys.length,it.nit.m)throw new TypeError("Too many signatures provided")}if(et.input){if(et.input[0]!==OPS$6.OP_0)throw new TypeError("Input is invalid");if(it.signatures.length===0||!it.signatures.every(rt))throw new TypeError("Input has invalid signature(s)");if(et.signatures&&!stacksEqual$3(et.signatures,it.signatures))throw new TypeError("Signature mismatch");if(et.m!==void 0&&et.m!==et.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(it,et)}p2ms$1.p2ms=p2ms;var p2pk$1={};Object.defineProperty(p2pk$1,"__esModule",{value:!0});p2pk$1.p2pk=void 0;const networks_1$6=networks$1,bscript$9=script,types_1$7=types$6,lazy$5=lazy$8,OPS$5=bscript$9.OPS;function p2pk(et,tt){if(!et.input&&!et.output&&!et.pubkey&&!et.input&&!et.signature)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$7.typeforce)({network:types_1$7.typeforce.maybe(types_1$7.typeforce.Object),output:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer),pubkey:types_1$7.typeforce.maybe(types_1$7.isPoint),signature:types_1$7.typeforce.maybe(bscript$9.isCanonicalScriptSignature),input:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer)},et);const rt=lazy$5.value(()=>bscript$9.decompile(et.input)),it={name:"p2pk",network:et.network||networks_1$6.bitcoin};if(lazy$5.prop(it,"output",()=>{if(et.pubkey)return bscript$9.compile([et.pubkey,OPS$5.OP_CHECKSIG])}),lazy$5.prop(it,"pubkey",()=>{if(et.output)return et.output.slice(1,-1)}),lazy$5.prop(it,"signature",()=>{if(et.input)return rt()[0]}),lazy$5.prop(it,"input",()=>{if(et.signature)return bscript$9.compile([et.signature])}),lazy$5.prop(it,"witness",()=>{if(it.input)return[]}),tt.validate){if(et.output){if(et.output[et.output.length-1]!==OPS$5.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!(0,types_1$7.isPoint)(it.pubkey))throw new TypeError("Output pubkey is invalid");if(et.pubkey&&!et.pubkey.equals(it.pubkey))throw new TypeError("Pubkey mismatch")}if(et.signature&&et.input&&!et.input.equals(it.input))throw new TypeError("Signature mismatch");if(et.input){if(rt().length!==1)throw new TypeError("Input is invalid");if(!bscript$9.isCanonicalScriptSignature(it.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(it,et)}p2pk$1.p2pk=p2pk;var p2pkh$1={},crypto$2={},ripemd160={},_sha2={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=void 0;function number(et){if(!Number.isSafeInteger(et)||et<0)throw new Error(`Wrong positive integer: ${et}`)}_assert.number=number;function bool(et){if(typeof et!="boolean")throw new Error(`Expected boolean, not ${et}`)}_assert.bool=bool;function isBytes(et){return et instanceof Uint8Array||et!=null&&typeof et=="object"&&et.constructor.name==="Uint8Array"}function bytes(et,...tt){if(!isBytes(et))throw new Error("Expected Uint8Array");if(tt.length>0&&!tt.includes(et.length))throw new Error(`Expected Uint8Array of length ${tt}, not of length=${et.length}`)}_assert.bytes=bytes;function hash$1(et){if(typeof et!="function"||typeof et.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(et.outputLen),number(et.blockLen)}_assert.hash=hash$1;function exists(et,tt=!0){if(et.destroyed)throw new Error("Hash instance has been destroyed");if(tt&&et.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(et,tt){bytes(et);const rt=tt.outputLen;if(et.lengthnew Uint8Array(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.u8=rt;const nt=Ht=>new Uint32Array(Ht.buffer,Ht.byteOffset,Math.floor(Ht.byteLength/4));et.u32=nt;function it(Ht){return Ht instanceof Uint8Array||Ht!=null&&typeof Ht=="object"&&Ht.constructor.name==="Uint8Array"}const st=Ht=>new DataView(Ht.buffer,Ht.byteOffset,Ht.byteLength);et.createView=st;const at=(Ht,Wt)=>Ht<<32-Wt|Ht>>>Wt;if(et.rotr=at,et.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!et.isLE)throw new Error("Non little-endian hardware is not supported");const ot=Array.from({length:256},(Ht,Wt)=>Wt.toString(16).padStart(2,"0"));function lt(Ht){if(!it(Ht))throw new Error("Uint8Array expected");let Wt="";for(let lr=0;lr=ut._0&&Ht<=ut._9)return Ht-ut._0;if(Ht>=ut._A&&Ht<=ut._F)return Ht-(ut._A-10);if(Ht>=ut._a&&Ht<=ut._f)return Ht-(ut._a-10)}function bt(Ht){if(typeof Ht!="string")throw new Error("hex string expected, got "+typeof Ht);const Wt=Ht.length,lr=Wt/2;if(Wt%2)throw new Error("padded hex string expected, got unpadded hex of length "+Wt);const qt=new Uint8Array(lr);for(let Ot=0,Mt=0;Ot{};et.nextTick=gt;async function kt(Ht,Wt,lr){let qt=Date.now();for(let Ot=0;Ot=0&&MtHt().update(yt(qt)).digest(),lr=Ht();return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=()=>Ht(),Wt}et.wrapConstructor=Bt;function Ft(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapConstructorWithOpts=Ft;function Lt(Ht){const Wt=(qt,Ot)=>Ht(Ot).update(yt(qt)).digest(),lr=Ht({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Ht(qt),Wt}et.wrapXOFConstructorWithOpts=Lt;function zt(Ht=32){if(tt.crypto&&typeof tt.crypto.getRandomValues=="function")return tt.crypto.getRandomValues(new Uint8Array(Ht));throw new Error("crypto.getRandomValues must be defined")}et.randomBytes=zt})(utils$1);Object.defineProperty(_sha2,"__esModule",{value:!0});_sha2.SHA2=void 0;const _assert_js_1=_assert,utils_js_1$3=utils$1;function setBigUint64(et,tt,rt,nt){if(typeof et.setBigUint64=="function")return et.setBigUint64(tt,rt,nt);const it=BigInt(32),st=BigInt(4294967295),at=Number(rt>>it&st),ot=Number(rt&st),lt=nt?4:0,ut=nt?0:4;et.setUint32(tt+lt,at,nt),et.setUint32(tt+ut,ot,nt)}class SHA2 extends utils_js_1$3.Hash{constructor(tt,rt,nt,it){super(),this.blockLen=tt,this.outputLen=rt,this.padOffset=nt,this.isLE=it,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(tt),this.view=(0,utils_js_1$3.createView)(this.buffer)}update(tt){(0,_assert_js_1.exists)(this);const{view:rt,buffer:nt,blockLen:it}=this;tt=(0,utils_js_1$3.toBytes)(tt);const st=tt.length;for(let at=0;atit-at&&(this.process(nt,0),at=0);for(let bt=at;btdt.length)throw new Error("_sha2: outputLen bigger than state");for(let bt=0;bttt),Pi=Id.map(et=>(9*et+5)%16);let idxL=[Id],idxR=[Pi];for(let et=0;et<4;et++)for(let tt of[idxL,idxR])tt.push(tt[et].map(rt=>Rho[rt]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(et=>new Uint8Array(et)),shiftsL=idxL.map((et,tt)=>et.map(rt=>shifts[tt][rt])),shiftsR=idxR.map((et,tt)=>et.map(rt=>shifts[tt][rt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(et,tt)=>et<>>32-tt;function f$2(et,tt,rt,nt){return et===0?tt^rt^nt:et===1?tt&rt|~tt&nt:et===2?(tt|~rt)^nt:et===3?tt&nt|rt&~nt:tt^(rt|~nt)}const BUF=new Uint32Array(16);class RIPEMD160 extends _sha2_js_1$2.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:tt,h1:rt,h2:nt,h3:it,h4:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.h0=tt|0,this.h1=rt|0,this.h2=nt|0,this.h3=it|0,this.h4=st|0}process(tt,rt){for(let kt=0;kt<16;kt++,rt+=4)BUF[kt]=tt.getUint32(rt,!0);let nt=this.h0|0,it=nt,st=this.h1|0,at=st,ot=this.h2|0,lt=ot,ut=this.h3|0,dt=ut,bt=this.h4|0,gt=bt;for(let kt=0;kt<5;kt++){const pt=4-kt,yt=Kl[kt],$t=Kr[kt],mt=idxL[kt],wt=idxR[kt],St=shiftsL[kt],Bt=shiftsR[kt];for(let Ft=0;Ft<16;Ft++){const Lt=rotl$1(nt+f$2(kt,st,ot,ut)+BUF[mt[Ft]]+yt,St[Ft])+bt|0;nt=bt,bt=ut,ut=rotl$1(ot,10)|0,ot=st,st=Lt}for(let Ft=0;Ft<16;Ft++){const Lt=rotl$1(it+f$2(pt,at,lt,dt)+BUF[wt[Ft]]+$t,Bt[Ft])+gt|0;it=gt,gt=dt,dt=rotl$1(lt,10)|0,lt=at,at=Lt}}this.set(this.h1+ot+dt|0,this.h2+ut+gt|0,this.h3+bt+it|0,this.h4+nt+at|0,this.h0+st+lt|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}ripemd160.RIPEMD160=RIPEMD160;ripemd160.ripemd160=(0,utils_js_1$2.wrapConstructor)(()=>new RIPEMD160);var sha1={};Object.defineProperty(sha1,"__esModule",{value:!0});sha1.sha1=void 0;const _sha2_js_1$1=_sha2,utils_js_1$1=utils$1,rotl=(et,tt)=>et<>>32-tt>>>0,Chi$1=(et,tt,rt)=>et&tt^~et&rt,Maj$1=(et,tt,rt)=>et&tt^et&rt^tt&rt,IV$1=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),SHA1_W=new Uint32Array(80);class SHA1 extends _sha2_js_1$1.SHA2{constructor(){super(64,20,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0}process(tt,rt){for(let lt=0;lt<16;lt++,rt+=4)SHA1_W[lt]=tt.getUint32(rt,!1);for(let lt=16;lt<80;lt++)SHA1_W[lt]=rotl(SHA1_W[lt-3]^SHA1_W[lt-8]^SHA1_W[lt-14]^SHA1_W[lt-16],1);let{A:nt,B:it,C:st,D:at,E:ot}=this;for(let lt=0;lt<80;lt++){let ut,dt;lt<20?(ut=Chi$1(it,st,at),dt=1518500249):lt<40?(ut=it^st^at,dt=1859775393):lt<60?(ut=Maj$1(it,st,at),dt=2400959708):(ut=it^st^at,dt=3395469782);const bt=rotl(nt,5)+ut+ot+dt+SHA1_W[lt]|0;ot=at,at=st,st=rotl(it,30),it=nt,nt=bt}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,this.set(nt,it,st,at,ot)}roundClean(){SHA1_W.fill(0)}destroy(){this.set(0,0,0,0,0),this.buffer.fill(0)}}sha1.sha1=(0,utils_js_1$1.wrapConstructor)(()=>new SHA1);var sha256$2={};Object.defineProperty(sha256$2,"__esModule",{value:!0});sha256$2.sha224=sha256$2.sha256=void 0;const _sha2_js_1=_sha2,utils_js_1=utils$1,Chi=(et,tt,rt)=>et&tt^~et&rt,Maj=(et,tt,rt)=>et&tt^et&rt^tt&rt,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends _sha2_js_1.SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st,F:at,G:ot,H:lt}=this;return[tt,rt,nt,it,st,at,ot,lt]}set(tt,rt,nt,it,st,at,ot,lt){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0,this.F=at|0,this.G=ot|0,this.H=lt|0}process(tt,rt){for(let bt=0;bt<16;bt++,rt+=4)SHA256_W[bt]=tt.getUint32(rt,!1);for(let bt=16;bt<64;bt++){const gt=SHA256_W[bt-15],kt=SHA256_W[bt-2],pt=(0,utils_js_1.rotr)(gt,7)^(0,utils_js_1.rotr)(gt,18)^gt>>>3,yt=(0,utils_js_1.rotr)(kt,17)^(0,utils_js_1.rotr)(kt,19)^kt>>>10;SHA256_W[bt]=yt+SHA256_W[bt-7]+pt+SHA256_W[bt-16]|0}let{A:nt,B:it,C:st,D:at,E:ot,F:lt,G:ut,H:dt}=this;for(let bt=0;bt<64;bt++){const gt=(0,utils_js_1.rotr)(ot,6)^(0,utils_js_1.rotr)(ot,11)^(0,utils_js_1.rotr)(ot,25),kt=dt+gt+Chi(ot,lt,ut)+SHA256_K[bt]+SHA256_W[bt]|0,yt=((0,utils_js_1.rotr)(nt,2)^(0,utils_js_1.rotr)(nt,13)^(0,utils_js_1.rotr)(nt,22))+Maj(nt,it,st)|0;dt=ut,ut=lt,lt=ot,ot=at+kt|0,at=st,st=it,it=nt,nt=kt+yt|0}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,lt=lt+this.F|0,ut=ut+this.G|0,dt=dt+this.H|0,this.set(nt,it,st,at,ot,lt,ut,dt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}sha256$2.sha256=(0,utils_js_1.wrapConstructor)(()=>new SHA256);sha256$2.sha224=(0,utils_js_1.wrapConstructor)(()=>new SHA224);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.taggedHash=et.TAGGED_HASH_PREFIXES=et.TAGS=et.hash256=et.hash160=et.sha256=et.sha1=et.ripemd160=void 0;const tt=ripemd160,rt=sha1,nt=sha256$2;function it(dt){return Buffer.from((0,tt.ripemd160)(Uint8Array.from(dt)))}et.ripemd160=it;function st(dt){return Buffer.from((0,rt.sha1)(Uint8Array.from(dt)))}et.sha1=st;function at(dt){return Buffer.from((0,nt.sha256)(Uint8Array.from(dt)))}et.sha256=at;function ot(dt){return Buffer.from((0,tt.ripemd160)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash160=ot;function lt(dt){return Buffer.from((0,nt.sha256)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash256=lt,et.TAGS=["BIP0340/challenge","BIP0340/aux","BIP0340/nonce","TapLeaf","TapBranch","TapSighash","TapTweak","KeyAgg list","KeyAgg coefficient"],et.TAGGED_HASH_PREFIXES={"BIP0340/challenge":Buffer.from([123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124,123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124]),"BIP0340/aux":Buffer.from([241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144,241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144]),"BIP0340/nonce":Buffer.from([7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47,7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47]),TapLeaf:Buffer.from([174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238,174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238]),TapBranch:Buffer.from([25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21,25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21]),TapSighash:Buffer.from([244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49,244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49]),TapTweak:Buffer.from([232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233,232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233]),"KeyAgg list":Buffer.from([72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240,72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240]),"KeyAgg coefficient":Buffer.from([191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129,191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129])};function ut(dt,bt){return at(Buffer.concat([et.TAGGED_HASH_PREFIXES[dt],bt]))}et.taggedHash=ut})(crypto$2);function base$1(et){if(et.length>=255)throw new TypeError("Alphabet too long");for(var tt=new Uint8Array(256),rt=0;rt>>0,St=new Uint8Array(wt);$t!==mt;){for(var Bt=kt[$t],Ft=0,Lt=wt-1;(Bt!==0||Ft>>0,St[Lt]=Bt%at>>>0,Bt=Bt/at>>>0;if(Bt!==0)throw new Error("Non-zero carry");yt=Ft,$t++}for(var zt=wt-yt;zt!==wt&&St[zt]===0;)zt++;for(var Ht=ot.repeat(pt);zt>>0,wt=new Uint8Array(mt);kt[pt];){var St=tt[kt.charCodeAt(pt)];if(St===255)return;for(var Bt=0,Ft=mt-1;(St!==0||Bt<$t)&&Ft!==-1;Ft--,Bt++)St+=at*wt[Ft]>>>0,wt[Ft]=St%256>>>0,St=St/256>>>0;if(St!==0)throw new Error("Non-zero carry");$t=Bt,pt++}for(var Lt=mt-$t;Lt!==mt&&wt[Lt]===0;)Lt++;for(var zt=new Uint8Array(yt+(mt-Lt)),Ht=yt;Lt!==mt;)zt[Ht++]=wt[Lt++];return zt}function gt(kt){var pt=bt(kt);if(pt)return pt;throw new Error("Non-base"+at+" character")}return{encode:dt,decodeUnsafe:bt,decode:gt}}var src=base$1;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1),base58=bs58,base=function(et){function tt(st){var at=Uint8Array.from(st),ot=et(at),lt=at.length+4,ut=new Uint8Array(lt);return ut.set(at,0),ut.set(ot.subarray(0,4),at.length),base58.encode(ut,lt)}function rt(st){var at=st.slice(0,-4),ot=st.slice(-4),lt=et(at);if(!(ot[0]^lt[0]|ot[1]^lt[1]|ot[2]^lt[2]|ot[3]^lt[3]))return at}function nt(st){var at=base58.decodeUnsafe(st);if(at)return rt(at)}function it(st){var at=base58.decode(st),ot=rt(at);if(!ot)throw new Error("Invalid checksum");return ot}return{encode:tt,decode:it,decodeUnsafe:nt}},{sha256:sha256$1}=sha256$2,bs58checkBase=base;function sha256x2(et){return sha256$1(sha256$1(et))}var bs58check$3=bs58checkBase(sha256x2);Object.defineProperty(p2pkh$1,"__esModule",{value:!0});p2pkh$1.p2pkh=void 0;const bcrypto$5=crypto$2,networks_1$5=networks$1,bscript$8=script,types_1$6=types$6,lazy$4=lazy$8,bs58check$2=bs58check$3,OPS$4=bscript$8.OPS;function p2pkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$6.typeforce)({network:types_1$6.typeforce.maybe(types_1$6.typeforce.Object),address:types_1$6.typeforce.maybe(types_1$6.typeforce.String),hash:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(20)),output:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(25)),pubkey:types_1$6.typeforce.maybe(types_1$6.isPoint),signature:types_1$6.typeforce.maybe(bscript$8.isCanonicalScriptSignature),input:types_1$6.typeforce.maybe(types_1$6.typeforce.Buffer)},et);const rt=lazy$4.value(()=>{const at=Buffer.from(bs58check$2.decode(et.address)),ot=at.readUInt8(0),lt=at.slice(1);return{version:ot,hash:lt}}),nt=lazy$4.value(()=>bscript$8.decompile(et.input)),it=et.network||networks_1$5.bitcoin,st={name:"p2pkh",network:it};if(lazy$4.prop(st,"address",()=>{if(!st.hash)return;const at=Buffer.allocUnsafe(21);return at.writeUInt8(it.pubKeyHash,0),st.hash.copy(at,1),bs58check$2.encode(at)}),lazy$4.prop(st,"hash",()=>{if(et.output)return et.output.slice(3,23);if(et.address)return rt().hash;if(et.pubkey||st.pubkey)return bcrypto$5.hash160(et.pubkey||st.pubkey)}),lazy$4.prop(st,"output",()=>{if(st.hash)return bscript$8.compile([OPS$4.OP_DUP,OPS$4.OP_HASH160,st.hash,OPS$4.OP_EQUALVERIFY,OPS$4.OP_CHECKSIG])}),lazy$4.prop(st,"pubkey",()=>{if(et.input)return nt()[1]}),lazy$4.prop(st,"signature",()=>{if(et.input)return nt()[0]}),lazy$4.prop(st,"input",()=>{if(et.pubkey&&et.signature)return bscript$8.compile([et.signature,et.pubkey])}),lazy$4.prop(st,"witness",()=>{if(st.input)return[]}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().version!==it.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(rt().hash.length!==20)throw new TypeError("Invalid address");at=rt().hash}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==25||et.output[0]!==OPS$4.OP_DUP||et.output[1]!==OPS$4.OP_HASH160||et.output[2]!==20||et.output[23]!==OPS$4.OP_EQUALVERIFY||et.output[24]!==OPS$4.OP_CHECKSIG)throw new TypeError("Output is invalid");const ot=et.output.slice(3,23);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.pubkey){const ot=bcrypto$5.hash160(et.pubkey);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.input){const ot=nt();if(ot.length!==2)throw new TypeError("Input is invalid");if(!bscript$8.isCanonicalScriptSignature(ot[0]))throw new TypeError("Input has invalid signature");if(!(0,types_1$6.isPoint)(ot[1]))throw new TypeError("Input has invalid pubkey");if(et.signature&&!et.signature.equals(ot[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(ot[1]))throw new TypeError("Pubkey mismatch");const lt=bcrypto$5.hash160(ot[1]);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch")}}return Object.assign(st,et)}p2pkh$1.p2pkh=p2pkh;var p2sh$1={};Object.defineProperty(p2sh$1,"__esModule",{value:!0});p2sh$1.p2sh=void 0;const bcrypto$4=crypto$2,networks_1$4=networks$1,bscript$7=script,types_1$5=types$6,lazy$3=lazy$8,bs58check$1=bs58check$3,OPS$3=bscript$7.OPS;function stacksEqual$2(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2sh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$5.typeforce)({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),address:types_1$5.typeforce.maybe(types_1$5.typeforce.String),hash:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(20)),output:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(23)),redeem:types_1$5.typeforce.maybe({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),output:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))}),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))},et);let rt=et.network;rt||(rt=et.redeem&&et.redeem.network||networks_1$4.bitcoin);const nt={network:rt},it=lazy$3.value(()=>{const ot=Buffer.from(bs58check$1.decode(et.address)),lt=ot.readUInt8(0),ut=ot.slice(1);return{version:lt,hash:ut}}),st=lazy$3.value(()=>bscript$7.decompile(et.input)),at=lazy$3.value(()=>{const ot=st(),lt=ot[ot.length-1];return{network:rt,output:lt===OPS$3.OP_FALSE?Buffer.from([]):lt,input:bscript$7.compile(ot.slice(0,-1)),witness:et.witness||[]}});if(lazy$3.prop(nt,"address",()=>{if(!nt.hash)return;const ot=Buffer.allocUnsafe(21);return ot.writeUInt8(nt.network.scriptHash,0),nt.hash.copy(ot,1),bs58check$1.encode(ot)}),lazy$3.prop(nt,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return it().hash;if(nt.redeem&&nt.redeem.output)return bcrypto$4.hash160(nt.redeem.output)}),lazy$3.prop(nt,"output",()=>{if(nt.hash)return bscript$7.compile([OPS$3.OP_HASH160,nt.hash,OPS$3.OP_EQUAL])}),lazy$3.prop(nt,"redeem",()=>{if(et.input)return at()}),lazy$3.prop(nt,"input",()=>{if(!(!et.redeem||!et.redeem.input||!et.redeem.output))return bscript$7.compile([].concat(bscript$7.decompile(et.redeem.input),et.redeem.output))}),lazy$3.prop(nt,"witness",()=>{if(nt.redeem&&nt.redeem.witness)return nt.redeem.witness;if(nt.input)return[]}),lazy$3.prop(nt,"name",()=>{const ot=["p2sh"];return nt.redeem!==void 0&&nt.redeem.name!==void 0&&ot.push(nt.redeem.name),ot.join("-")}),tt.validate){let ot=Buffer.from([]);if(et.address){if(it().version!==rt.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(it().hash.length!==20)throw new TypeError("Invalid address");ot=it().hash}if(et.hash){if(ot.length>0&&!ot.equals(et.hash))throw new TypeError("Hash mismatch");ot=et.hash}if(et.output){if(et.output.length!==23||et.output[0]!==OPS$3.OP_HASH160||et.output[1]!==20||et.output[22]!==OPS$3.OP_EQUAL)throw new TypeError("Output is invalid");const ut=et.output.slice(2,22);if(ot.length>0&&!ot.equals(ut))throw new TypeError("Hash mismatch");ot=ut}const lt=ut=>{if(ut.output){const dt=bscript$7.decompile(ut.output);if(!dt||dt.length<1)throw new TypeError("Redeem.output too short");if(ut.output.byteLength>520)throw new TypeError("Redeem.output unspendable if larger than 520 bytes");if(bscript$7.countNonPushOnlyOPs(dt)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const bt=bcrypto$4.hash160(ut.output);if(ot.length>0&&!ot.equals(bt))throw new TypeError("Hash mismatch");ot=bt}if(ut.input){const dt=ut.input.length>0,bt=ut.witness&&ut.witness.length>0;if(!dt&&!bt)throw new TypeError("Empty input");if(dt&&bt)throw new TypeError("Input and witness provided");if(dt){const gt=bscript$7.decompile(ut.input);if(!bscript$7.isPushOnly(gt))throw new TypeError("Non push-only scriptSig")}}};if(et.input){const ut=st();if(!ut||ut.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(at().output))throw new TypeError("Input is invalid");lt(at())}if(et.redeem){if(et.redeem.network&&et.redeem.network!==rt)throw new TypeError("Network mismatch");if(et.input){const ut=at();if(et.redeem.output&&!et.redeem.output.equals(ut.output))throw new TypeError("Redeem.output mismatch");if(et.redeem.input&&!et.redeem.input.equals(ut.input))throw new TypeError("Redeem.input mismatch")}lt(et.redeem)}if(et.witness&&et.redeem&&et.redeem.witness&&!stacksEqual$2(et.redeem.witness,et.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(nt,et)}p2sh$1.p2sh=p2sh;var p2wpkh$1={},dist={};Object.defineProperty(dist,"__esModule",{value:!0});dist.bech32m=dist.bech32=void 0;const ALPHABET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ALPHABET_MAP={};for(let et=0;et>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk(et){let tt=1;for(let rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep(tt)^nt>>5}tt=polymodStep(tt);for(let rt=0;rt=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<lt)throw new TypeError("Exceeds length limit");at=at.toLowerCase();let ut=prefixChk(at);if(typeof ut=="string")throw new Error(ut);let dt=at+"1";for(let bt=0;bt>5)throw new Error("Non 5-bit word");ut=polymodStep(ut)^gt,dt+=ALPHABET.charAt(gt)}for(let bt=0;bt<6;++bt)ut=polymodStep(ut);ut^=tt;for(let bt=0;bt<6;++bt){const gt=ut>>(5-bt)*5&31;dt+=ALPHABET.charAt(gt)}return dt}function nt(at,ot){if(ot=ot||90,at.length<8)return at+" too short";if(at.length>ot)return"Exceeds length limit";const lt=at.toLowerCase(),ut=at.toUpperCase();if(at!==lt&&at!==ut)return"Mixed-case string "+at;at=lt;const dt=at.lastIndexOf("1");if(dt===-1)return"No separator character for "+at;if(dt===0)return"Missing prefix for "+at;const bt=at.slice(0,dt),gt=at.slice(dt+1);if(gt.length<6)return"Data too short";let kt=prefixChk(bt);if(typeof kt=="string")return kt;const pt=[];for(let yt=0;yt=gt.length)&&pt.push(mt)}return kt!==tt?"Invalid checksum for "+at:{prefix:bt,words:pt}}function it(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt}function st(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt;throw new Error(lt)}return{decodeUnsafe:it,decode:st,encode:rt,toWords,fromWordsUnsafe,fromWords}}dist.bech32=getLibraryFromEncoding("bech32");dist.bech32m=getLibraryFromEncoding("bech32m");Object.defineProperty(p2wpkh$1,"__esModule",{value:!0});p2wpkh$1.p2wpkh=void 0;const bcrypto$3=crypto$2,networks_1$3=networks$1,bscript$6=script,types_1$4=types$6,lazy$2=lazy$8,bech32_1$3=dist,OPS$2=bscript$6.OPS,EMPTY_BUFFER$2=Buffer.alloc(0);function p2wpkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$4.typeforce)({address:types_1$4.typeforce.maybe(types_1$4.typeforce.String),hash:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(20)),input:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(0)),network:types_1$4.typeforce.maybe(types_1$4.typeforce.Object),output:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(22)),pubkey:types_1$4.typeforce.maybe(types_1$4.isPoint),signature:types_1$4.typeforce.maybe(bscript$6.isCanonicalScriptSignature),witness:types_1$4.typeforce.maybe(types_1$4.typeforce.arrayOf(types_1$4.typeforce.Buffer))},et);const rt=lazy$2.value(()=>{const st=bech32_1$3.bech32.decode(et.address),at=st.words.shift(),ot=bech32_1$3.bech32.fromWords(st.words);return{version:at,prefix:st.prefix,data:Buffer.from(ot)}}),nt=et.network||networks_1$3.bitcoin,it={name:"p2wpkh",network:nt};if(lazy$2.prop(it,"address",()=>{if(!it.hash)return;const st=bech32_1$3.bech32.toWords(it.hash);return st.unshift(0),bech32_1$3.bech32.encode(nt.bech32,st)}),lazy$2.prop(it,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return rt().data;if(et.pubkey||it.pubkey)return bcrypto$3.hash160(et.pubkey||it.pubkey)}),lazy$2.prop(it,"output",()=>{if(it.hash)return bscript$6.compile([OPS$2.OP_0,it.hash])}),lazy$2.prop(it,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.witness)return et.witness[1]}),lazy$2.prop(it,"signature",()=>{if(et.witness)return et.witness[0]}),lazy$2.prop(it,"input",()=>{if(it.witness)return EMPTY_BUFFER$2}),lazy$2.prop(it,"witness",()=>{if(et.pubkey&&et.signature)return[et.signature,et.pubkey]}),tt.validate){let st=Buffer.from([]);if(et.address){if(nt&&nt.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==20)throw new TypeError("Invalid address data");st=rt().data}if(et.hash){if(st.length>0&&!st.equals(et.hash))throw new TypeError("Hash mismatch");st=et.hash}if(et.output){if(et.output.length!==22||et.output[0]!==OPS$2.OP_0||et.output[1]!==20)throw new TypeError("Output is invalid");if(st.length>0&&!st.equals(et.output.slice(2)))throw new TypeError("Hash mismatch");st=et.output.slice(2)}if(et.pubkey){const at=bcrypto$3.hash160(et.pubkey);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch");if(st=at,!(0,types_1$4.isPoint)(et.pubkey)||et.pubkey.length!==33)throw new TypeError("Invalid pubkey for p2wpkh")}if(et.witness){if(et.witness.length!==2)throw new TypeError("Witness is invalid");if(!bscript$6.isCanonicalScriptSignature(et.witness[0]))throw new TypeError("Witness has invalid signature");if(!(0,types_1$4.isPoint)(et.witness[1])||et.witness[1].length!==33)throw new TypeError("Witness has invalid pubkey");if(et.signature&&!et.signature.equals(et.witness[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(et.witness[1]))throw new TypeError("Pubkey mismatch");const at=bcrypto$3.hash160(et.witness[1]);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch")}}return Object.assign(it,et)}p2wpkh$1.p2wpkh=p2wpkh;var p2wsh$1={};Object.defineProperty(p2wsh$1,"__esModule",{value:!0});p2wsh$1.p2wsh=void 0;const bcrypto$2=crypto$2,networks_1$2=networks$1,bscript$5=script,types_1$3=types$6,lazy$1=lazy$8,bech32_1$2=dist,OPS$1=bscript$5.OPS,EMPTY_BUFFER$1=Buffer.alloc(0);function stacksEqual$1(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function chunkHasUncompressedPubkey(et){return!!(Buffer.isBuffer(et)&&et.length===65&&et[0]===4&&(0,types_1$3.isPoint)(et))}function p2wsh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$3.typeforce)({network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),address:types_1$3.typeforce.maybe(types_1$3.typeforce.String),hash:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(32)),output:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(34)),redeem:types_1$3.typeforce.maybe({input:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),output:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))}),input:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(0)),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))},et);const rt=lazy$1.value(()=>{const at=bech32_1$2.bech32.decode(et.address),ot=at.words.shift(),lt=bech32_1$2.bech32.fromWords(at.words);return{version:ot,prefix:at.prefix,data:Buffer.from(lt)}}),nt=lazy$1.value(()=>bscript$5.decompile(et.redeem.input));let it=et.network;it||(it=et.redeem&&et.redeem.network||networks_1$2.bitcoin);const st={network:it};if(lazy$1.prop(st,"address",()=>{if(!st.hash)return;const at=bech32_1$2.bech32.toWords(st.hash);return at.unshift(0),bech32_1$2.bech32.encode(it.bech32,at)}),lazy$1.prop(st,"hash",()=>{if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(st.redeem&&st.redeem.output)return bcrypto$2.sha256(st.redeem.output)}),lazy$1.prop(st,"output",()=>{if(st.hash)return bscript$5.compile([OPS$1.OP_0,st.hash])}),lazy$1.prop(st,"redeem",()=>{if(et.witness)return{output:et.witness[et.witness.length-1],input:EMPTY_BUFFER$1,witness:et.witness.slice(0,-1)}}),lazy$1.prop(st,"input",()=>{if(st.witness)return EMPTY_BUFFER$1}),lazy$1.prop(st,"witness",()=>{if(et.redeem&&et.redeem.input&&et.redeem.input.length>0&&et.redeem.output&&et.redeem.output.length>0){const at=bscript$5.toStack(nt());return st.redeem=Object.assign({witness:at},et.redeem),st.redeem.input=EMPTY_BUFFER$1,[].concat(at,et.redeem.output)}if(et.redeem&&et.redeem.output&&et.redeem.witness)return[].concat(et.redeem.witness,et.redeem.output)}),lazy$1.prop(st,"name",()=>{const at=["p2wsh"];return st.redeem!==void 0&&st.redeem.name!==void 0&&at.push(st.redeem.name),at.join("-")}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().prefix!==it.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");at=rt().data}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==34||et.output[0]!==OPS$1.OP_0||et.output[1]!==32)throw new TypeError("Output is invalid");const ot=et.output.slice(2);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.redeem){if(et.redeem.network&&et.redeem.network!==it)throw new TypeError("Network mismatch");if(et.redeem.input&&et.redeem.input.length>0&&et.redeem.witness&&et.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(et.redeem.output){const ot=bscript$5.decompile(et.redeem.output);if(!ot||ot.length<1)throw new TypeError("Redeem.output is invalid");if(et.redeem.output.byteLength>3600)throw new TypeError("Redeem.output unspendable if larger than 3600 bytes");if(bscript$5.countNonPushOnlyOPs(ot)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const lt=bcrypto$2.sha256(et.redeem.output);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch");at=lt}if(et.redeem.input&&!bscript$5.isPushOnly(nt()))throw new TypeError("Non push-only scriptSig");if(et.witness&&et.redeem.witness&&!stacksEqual$1(et.witness,et.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch");if(et.redeem.input&&nt().some(chunkHasUncompressedPubkey)||et.redeem.output&&(bscript$5.decompile(et.redeem.output)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("redeem.input or redeem.output contains uncompressed pubkey")}if(et.witness&&et.witness.length>0){const ot=et.witness[et.witness.length-1];if(et.redeem&&et.redeem.output&&!et.redeem.output.equals(ot))throw new TypeError("Witness and redeem.output mismatch");if(et.witness.some(chunkHasUncompressedPubkey)||(bscript$5.decompile(ot)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("Witness contains uncompressed pubkey")}}return Object.assign(st,et)}p2wsh$1.p2wsh=p2wsh;var p2tr$1={},ecc_lib={};Object.defineProperty(ecc_lib,"__esModule",{value:!0});ecc_lib.getEccLib=ecc_lib.initEccLib=void 0;const _ECCLIB_CACHE={};function initEccLib(et){et?et!==_ECCLIB_CACHE.eccLib&&(verifyEcc(et),_ECCLIB_CACHE.eccLib=et):_ECCLIB_CACHE.eccLib=et}ecc_lib.initEccLib=initEccLib;function getEccLib(){if(!_ECCLIB_CACHE.eccLib)throw new Error("No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance");return _ECCLIB_CACHE.eccLib}ecc_lib.getEccLib=getEccLib;const h$5=et=>Buffer.from(et,"hex");function verifyEcc(et){assert(typeof et.isXOnlyPoint=="function"),assert(et.isXOnlyPoint(h$5("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),assert(et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffeeffffc2e"))),assert(et.isXOnlyPoint(h$5("f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9"))),assert(et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000001"))),assert(!et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000000"))),assert(!et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"))),assert(typeof et.xOnlyPointAddTweak=="function"),tweakAddVectors.forEach(tt=>{const rt=et.xOnlyPointAddTweak(h$5(tt.pubkey),h$5(tt.tweak));tt.result===null?assert(rt===null):(assert(rt!==null),assert(rt.parity===tt.parity),assert(Buffer.from(rt.xOnlyPubkey).equals(h$5(tt.result))))})}function assert(et){if(!et)throw new Error("ecc library invalid")}const tweakAddVectors=[{pubkey:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",tweak:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140",parity:-1,result:null},{pubkey:"1617d38ed8d8657da4d4761e8057bc396ea9e4b9d29776d4be096016dbd2509b",tweak:"a8397a935f0dfceba6ba9618f6451ef4d80637abf4e6af2669fbc9de6a8fd2ac",parity:1,result:"e478f99dab91052ab39a33ea35fd5e6e4933f4d28023cd597c9a1f6760346adf"},{pubkey:"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",tweak:"823c3cd2142744b075a87eade7e1b8678ba308d566226a0056ca2b7a76f86b47",parity:0,result:"9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"}];var bip341={},bufferutils={},Buffer$2=safeBufferExports.Buffer,MAX_SAFE_INTEGER$3=9007199254740991;function checkUInt53$1(et){if(et<0||et>MAX_SAFE_INTEGER$3||et%1!==0)throw new RangeError("value out of range")}function encode$j(et,tt,rt){if(checkUInt53$1(et),tt||(tt=Buffer$2.allocUnsafe(encodingLength$1(et))),!Buffer$2.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),encode$j.bytes=1):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),encode$j.bytes=3):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),encode$j.bytes=5):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),encode$j.bytes=9),tt}function decode$i(et,tt){if(!Buffer$2.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);var rt=et.readUInt8(tt);if(rt<253)return decode$i.bytes=1,rt;if(rt===253)return decode$i.bytes=3,et.readUInt16LE(tt+1);if(rt===254)return decode$i.bytes=5,et.readUInt32LE(tt+1);decode$i.bytes=9;var nt=et.readUInt32LE(tt+1),it=et.readUInt32LE(tt+5),st=it*4294967296+nt;return checkUInt53$1(st),st}function encodingLength$1(et){return checkUInt53$1(et),et<253?1:et<=65535?3:et<=4294967295?5:9}var varuintBitcoin={encode:encode$j,decode:decode$i,encodingLength:encodingLength$1};Object.defineProperty(bufferutils,"__esModule",{value:!0});bufferutils.BufferReader=bufferutils.BufferWriter=bufferutils.cloneBuffer=bufferutils.reverseBuffer=bufferutils.writeUInt64LE=bufferutils.readUInt64LE=bufferutils.varuint=void 0;const types$3=types$6,{typeforce:typeforce$2}=types$3,varuint$7=varuintBitcoin;bufferutils.varuint=varuint$7;function verifuint$1(et,tt){if(typeof et!="number")throw new Error("cannot write a non-number as a number");if(et<0)throw new Error("specified a negative value for writing an unsigned value");if(et>tt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE$1(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint$1(nt+rt,9007199254740991),nt+rt}bufferutils.readUInt64LE=readUInt64LE$1;function writeUInt64LE$1(et,tt,rt){return verifuint$1(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}bufferutils.writeUInt64LE=writeUInt64LE$1;function reverseBuffer$1(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;ntthis.writeVarSlice(rt))}end(){if(this.buffer.length===this.offset)return this.buffer;throw new Error(`buffer size ${this.buffer.length}, offset ${this.offset}`)}}bufferutils.BufferWriter=BufferWriter;class BufferReader{constructor(tt,rt=0){this.buffer=tt,this.offset=rt,typeforce$2(types$3.tuple(types$3.Buffer,types$3.UInt32),[tt,rt])}readUInt8(){const tt=this.buffer.readUInt8(this.offset);return this.offset++,tt}readInt32(){const tt=this.buffer.readInt32LE(this.offset);return this.offset+=4,tt}readUInt32(){const tt=this.buffer.readUInt32LE(this.offset);return this.offset+=4,tt}readUInt64(){const tt=readUInt64LE$1(this.buffer,this.offset);return this.offset+=8,tt}readVarInt(){const tt=varuint$7.decode(this.buffer,this.offset);return this.offset+=varuint$7.decode.bytes,tt}readSlice(tt){if(this.buffer.length"left"in yt&&"right"in yt;function ot(yt,$t){if(yt.length<33)throw new TypeError(`The control-block length is too small. Got ${yt.length}, expected min 33.`);const mt=(yt.length-33)/32;let wt=$t;for(let St=0;StSt.hash.compare(Bt.hash));const[mt,wt]=$t;return{hash:kt(mt.hash,wt.hash),left:mt,right:wt}}et.toHashTree=lt;function ut(yt,$t){if(at(yt)){const mt=ut(yt.left,$t);if(mt!==void 0)return[...mt,yt.right.hash];const wt=ut(yt.right,$t);if(wt!==void 0)return[...wt,yt.left.hash]}else if(yt.hash.equals($t))return[]}et.findScriptPath=ut;function dt(yt){const $t=yt.version||et.LEAF_VERSION_TAPSCRIPT;return nt.taggedHash("TapLeaf",tt.Buffer.concat([tt.Buffer.from([$t]),pt(yt.output)]))}et.tapleafHash=dt;function bt(yt,$t){return nt.taggedHash("TapTweak",tt.Buffer.concat($t?[yt,$t]:[yt]))}et.tapTweakHash=bt;function gt(yt,$t){if(!tt.Buffer.isBuffer(yt)||yt.length!==32||$t&&$t.length!==32)return null;const mt=bt(yt,$t),wt=(0,rt.getEccLib)().xOnlyPointAddTweak(yt,mt);return!wt||wt.xOnlyPubkey===null?null:{parity:wt.parity,x:tt.Buffer.from(wt.xOnlyPubkey)}}et.tweakKey=gt;function kt(yt,$t){return nt.taggedHash("TapBranch",tt.Buffer.concat([yt,$t]))}function pt(yt){const $t=it.varuint.encodingLength(yt.length),mt=tt.Buffer.allocUnsafe($t);return it.varuint.encode(yt.length,mt),tt.Buffer.concat([mt,yt])}})(bip341);Object.defineProperty(p2tr$1,"__esModule",{value:!0});p2tr$1.p2tr=void 0;const buffer_1=buffer$2,networks_1$1=networks$1,bscript$4=script,types_1$2=types$6,ecc_lib_1=ecc_lib,bip341_1$2=bip341,lazy=lazy$8,bech32_1$1=dist,OPS=bscript$4.OPS,TAPROOT_WITNESS_VERSION=1,ANNEX_PREFIX=80;function p2tr(et,tt){if(!et.address&&!et.output&&!et.pubkey&&!et.internalPubkey&&!(et.witness&&et.witness.length>1))throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$2.typeforce)({address:types_1$2.typeforce.maybe(types_1$2.typeforce.String),input:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(0)),network:types_1$2.typeforce.maybe(types_1$2.typeforce.Object),output:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(34)),internalPubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),hash:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),pubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),signature:types_1$2.typeforce.maybe(types_1$2.typeforce.anyOf(types_1$2.typeforce.BufferN(64),types_1$2.typeforce.BufferN(65))),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer)),scriptTree:types_1$2.typeforce.maybe(types_1$2.isTaptree),redeem:types_1$2.typeforce.maybe({output:types_1$2.typeforce.maybe(types_1$2.typeforce.Buffer),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer))}),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number)},et);const rt=lazy.value(()=>{const ot=bech32_1$1.bech32m.decode(et.address),lt=ot.words.shift(),ut=bech32_1$1.bech32m.fromWords(ot.words);return{version:lt,prefix:ot.prefix,data:buffer_1.Buffer.from(ut)}}),nt=lazy.value(()=>{if(!(!et.witness||!et.witness.length))return et.witness.length>=2&&et.witness[et.witness.length-1][0]===ANNEX_PREFIX?et.witness.slice(0,-1):et.witness.slice()}),it=lazy.value(()=>{if(et.scriptTree)return(0,bip341_1$2.toHashTree)(et.scriptTree);if(et.hash)return{hash:et.hash}}),st=et.network||networks_1$1.bitcoin,at={name:"p2tr",network:st};if(lazy.prop(at,"address",()=>{if(!at.pubkey)return;const ot=bech32_1$1.bech32m.toWords(at.pubkey);return ot.unshift(TAPROOT_WITNESS_VERSION),bech32_1$1.bech32m.encode(st.bech32,ot)}),lazy.prop(at,"hash",()=>{const ot=it();if(ot)return ot.hash;const lt=nt();if(lt&<.length>1){const ut=lt[lt.length-1],dt=ut[0]&types_1$2.TAPLEAF_VERSION_MASK,bt=lt[lt.length-2],gt=(0,bip341_1$2.tapleafHash)({output:bt,version:dt});return(0,bip341_1$2.rootHashFromPath)(ut,gt)}return null}),lazy.prop(at,"output",()=>{if(at.pubkey)return bscript$4.compile([OPS.OP_1,at.pubkey])}),lazy.prop(at,"redeemVersion",()=>et.redeemVersion?et.redeemVersion:et.redeem&&et.redeem.redeemVersion!==void 0&&et.redeem.redeemVersion!==null?et.redeem.redeemVersion:bip341_1$2.LEAF_VERSION_TAPSCRIPT),lazy.prop(at,"redeem",()=>{const ot=nt();if(!(!ot||ot.length<2))return{output:ot[ot.length-2],witness:ot.slice(0,-2),redeemVersion:ot[ot.length-1][0]&types_1$2.TAPLEAF_VERSION_MASK}}),lazy.prop(at,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(at.internalPubkey){const ot=(0,bip341_1$2.tweakKey)(at.internalPubkey,at.hash);if(ot)return ot.x}}),lazy.prop(at,"internalPubkey",()=>{if(et.internalPubkey)return et.internalPubkey;const ot=nt();if(ot&&ot.length>1)return ot[ot.length-1].slice(1,33)}),lazy.prop(at,"signature",()=>{if(et.signature)return et.signature;const ot=nt();if(!(!ot||ot.length!==1))return ot[0]}),lazy.prop(at,"witness",()=>{if(et.witness)return et.witness;const ot=it();if(ot&&et.redeem&&et.redeem.output&&et.internalPubkey){const lt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion}),ut=(0,bip341_1$2.findScriptPath)(ot,lt);if(!ut)return;const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,ot.hash);if(!dt)return;const bt=buffer_1.Buffer.concat([buffer_1.Buffer.from([at.redeemVersion|dt.parity]),et.internalPubkey].concat(ut));return[et.redeem.output,bt]}if(et.signature)return[et.signature]}),tt.validate){let ot=buffer_1.Buffer.from([]);if(et.address){if(st&&st.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==TAPROOT_WITNESS_VERSION)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");ot=rt().data}if(et.pubkey){if(ot.length>0&&!ot.equals(et.pubkey))throw new TypeError("Pubkey mismatch");ot=et.pubkey}if(et.output){if(et.output.length!==34||et.output[0]!==OPS.OP_1||et.output[1]!==32)throw new TypeError("Output is invalid");if(ot.length>0&&!ot.equals(et.output.slice(2)))throw new TypeError("Pubkey mismatch");ot=et.output.slice(2)}if(et.internalPubkey){const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,at.hash);if(ot.length>0&&!ot.equals(dt.x))throw new TypeError("Pubkey mismatch");ot=dt.x}if(ot&&ot.length&&!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(ot))throw new TypeError("Invalid pubkey for p2tr");const lt=it();if(et.hash&<&&!et.hash.equals(lt.hash))throw new TypeError("Hash mismatch");if(et.redeem&&et.redeem.output&<){const dt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion});if(!(0,bip341_1$2.findScriptPath)(lt,dt))throw new TypeError("Redeem script not in tree")}const ut=nt();if(et.redeem&&at.redeem){if(et.redeem.redeemVersion&&et.redeem.redeemVersion!==at.redeem.redeemVersion)throw new TypeError("Redeem.redeemVersion and witness mismatch");if(et.redeem.output){if(bscript$4.decompile(et.redeem.output).length===0)throw new TypeError("Redeem.output is invalid");if(at.redeem.output&&!et.redeem.output.equals(at.redeem.output))throw new TypeError("Redeem.output and witness mismatch")}if(et.redeem.witness&&at.redeem.witness&&!stacksEqual(et.redeem.witness,at.redeem.witness))throw new TypeError("Redeem.witness and witness mismatch")}if(ut&&ut.length)if(ut.length===1){if(et.signature&&!et.signature.equals(ut[0]))throw new TypeError("Signature mismatch")}else{const dt=ut[ut.length-1];if(dt.length<33)throw new TypeError(`The control-block length is too small. Got ${dt.length}, expected min 33.`);if((dt.length-33)%32!==0)throw new TypeError(`The control-block length of ${dt.length} is incorrect!`);const bt=(dt.length-33)/32;if(bt>128)throw new TypeError(`The script path is too long. Got ${bt}, expected max 128.`);const gt=dt.slice(1,33);if(et.internalPubkey&&!et.internalPubkey.equals(gt))throw new TypeError("Internal pubkey mismatch");if(!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(gt))throw new TypeError("Invalid internalPubkey for p2tr witness");const kt=dt[0]&types_1$2.TAPLEAF_VERSION_MASK,pt=ut[ut.length-2],yt=(0,bip341_1$2.tapleafHash)({output:pt,version:kt}),$t=(0,bip341_1$2.rootHashFromPath)(dt,yt),mt=(0,bip341_1$2.tweakKey)(gt,$t);if(!mt)throw new TypeError("Invalid outputKey for p2tr witness");if(ot.length&&!ot.equals(mt.x))throw new TypeError("Pubkey mismatch for p2tr witness");if(mt.parity!==(dt[0]&1))throw new Error("Incorrect parity")}}return Object.assign(at,et)}p2tr$1.p2tr=p2tr;function stacksEqual(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.p2tr=et.p2wsh=et.p2wpkh=et.p2sh=et.p2pkh=et.p2pk=et.p2ms=et.embed=void 0;const tt=embed;Object.defineProperty(et,"embed",{enumerable:!0,get:function(){return tt.p2data}});const rt=p2ms$1;Object.defineProperty(et,"p2ms",{enumerable:!0,get:function(){return rt.p2ms}});const nt=p2pk$1;Object.defineProperty(et,"p2pk",{enumerable:!0,get:function(){return nt.p2pk}});const it=p2pkh$1;Object.defineProperty(et,"p2pkh",{enumerable:!0,get:function(){return it.p2pkh}});const st=p2sh$1;Object.defineProperty(et,"p2sh",{enumerable:!0,get:function(){return st.p2sh}});const at=p2wpkh$1;Object.defineProperty(et,"p2wpkh",{enumerable:!0,get:function(){return at.p2wpkh}});const ot=p2wsh$1;Object.defineProperty(et,"p2wsh",{enumerable:!0,get:function(){return ot.p2wsh}});const lt=p2tr$1;Object.defineProperty(et,"p2tr",{enumerable:!0,get:function(){return lt.p2tr}})})(payments$3);Object.defineProperty(address,"__esModule",{value:!0});address.toOutputScript=address.fromOutputScript=address.toBech32=address.toBase58Check=address.fromBech32=address.fromBase58Check=void 0;const networks=networks$1,payments$2=payments$3,bscript$3=script,types_1$1=types$6,bech32_1=dist,bs58check=bs58check$3,FUTURE_SEGWIT_MAX_SIZE=40,FUTURE_SEGWIT_MIN_SIZE=2,FUTURE_SEGWIT_MAX_VERSION=16,FUTURE_SEGWIT_MIN_VERSION=2,FUTURE_SEGWIT_VERSION_DIFF=80,FUTURE_SEGWIT_VERSION_WARNING="WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";function _toFutureSegwitAddress(et,tt){const rt=et.slice(2);if(rt.lengthFUTURE_SEGWIT_MAX_SIZE)throw new TypeError("Invalid program length for segwit address");const nt=et[0]-FUTURE_SEGWIT_VERSION_DIFF;if(ntFUTURE_SEGWIT_MAX_VERSION)throw new TypeError("Invalid version for segwit address");if(et[1]!==rt.length)throw new TypeError("Invalid script for segwit address");return console.warn(FUTURE_SEGWIT_VERSION_WARNING),toBech32(rt,nt,tt.bech32)}function fromBase58Check(et){const tt=Buffer.from(bs58check.decode(et));if(tt.length<21)throw new TypeError(et+" is too short");if(tt.length>21)throw new TypeError(et+" is too long");const rt=tt.readUInt8(0),nt=tt.slice(1);return{version:rt,hash:nt}}address.fromBase58Check=fromBase58Check;function fromBech32(et){let tt,rt;try{tt=bech32_1.bech32.decode(et)}catch{}if(tt){if(rt=tt.words[0],rt!==0)throw new TypeError(et+" uses wrong encoding")}else if(tt=bech32_1.bech32m.decode(et),rt=tt.words[0],rt===0)throw new TypeError(et+" uses wrong encoding");const nt=bech32_1.bech32.fromWords(tt.words.slice(1));return{version:rt,prefix:tt.prefix,data:Buffer.from(nt)}}address.fromBech32=fromBech32;function toBase58Check(et,tt){(0,types_1$1.typeforce)((0,types_1$1.tuple)(types_1$1.Hash160bit,types_1$1.UInt8),arguments);const rt=Buffer.allocUnsafe(21);return rt.writeUInt8(tt,0),et.copy(rt,1),bs58check.encode(rt)}address.toBase58Check=toBase58Check;function toBech32(et,tt,rt){const nt=bech32_1.bech32.toWords(et);return nt.unshift(tt),tt===0?bech32_1.bech32.encode(rt,nt):bech32_1.bech32m.encode(rt,nt)}address.toBech32=toBech32;function fromOutputScript(et,tt){tt=tt||networks.bitcoin;try{return payments$2.p2pkh({output:et,network:tt}).address}catch{}try{return payments$2.p2sh({output:et,network:tt}).address}catch{}try{return payments$2.p2wpkh({output:et,network:tt}).address}catch{}try{return payments$2.p2wsh({output:et,network:tt}).address}catch{}try{return payments$2.p2tr({output:et,network:tt}).address}catch{}try{return _toFutureSegwitAddress(et,tt)}catch{}throw new Error(bscript$3.toASM(et)+" has no matching Address")}address.fromOutputScript=fromOutputScript;function toOutputScript(et,tt){tt=tt||networks.bitcoin;let rt,nt;try{rt=fromBase58Check(et)}catch{}if(rt){if(rt.version===tt.pubKeyHash)return payments$2.p2pkh({hash:rt.hash}).output;if(rt.version===tt.scriptHash)return payments$2.p2sh({hash:rt.hash}).output}else{try{nt=fromBech32(et)}catch{}if(nt){if(nt.prefix!==tt.bech32)throw new Error(et+" has an invalid prefix");if(nt.version===0){if(nt.data.length===20)return payments$2.p2wpkh({hash:nt.data}).output;if(nt.data.length===32)return payments$2.p2wsh({hash:nt.data}).output}else if(nt.version===1){if(nt.data.length===32)return payments$2.p2tr({pubkey:nt.data}).output}else if(nt.version>=FUTURE_SEGWIT_MIN_VERSION&&nt.version<=FUTURE_SEGWIT_MAX_VERSION&&nt.data.length>=FUTURE_SEGWIT_MIN_SIZE&&nt.data.length<=FUTURE_SEGWIT_MAX_SIZE)return console.warn(FUTURE_SEGWIT_VERSION_WARNING),bscript$3.compile([nt.version+FUTURE_SEGWIT_VERSION_DIFF,nt.data])}}throw new Error(et+" has no matching Script")}address.toOutputScript=toOutputScript;var block={},merkle={};Object.defineProperty(merkle,"__esModule",{value:!0});merkle.fastMerkleRoot=void 0;function fastMerkleRoot(et,tt){if(!Array.isArray(et))throw TypeError("Expected values Array");if(typeof tt!="function")throw TypeError("Expected digest Function");let rt=et.length;const nt=et.concat();for(;rt>1;){let it=0;for(let st=0;strt+varSliceSize(nt),0)}const EMPTY_BUFFER=Buffer.allocUnsafe(0),EMPTY_WITNESS=[],ZERO=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),ONE=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),VALUE_UINT64_MAX=Buffer.from("ffffffffffffffff","hex"),BLANK_OUTPUT={script:EMPTY_BUFFER,valueBuffer:VALUE_UINT64_MAX};function isOutput(et){return et.value!==void 0}class Transaction{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(tt,rt){const nt=new bufferutils_1$2.BufferReader(tt),it=new Transaction;it.version=nt.readInt32();const st=nt.readUInt8(),at=nt.readUInt8();let ot=!1;st===Transaction.ADVANCED_TRANSACTION_MARKER&&at===Transaction.ADVANCED_TRANSACTION_FLAG?ot=!0:nt.offset-=2;const lt=nt.readVarInt();for(let dt=0;dttt.witness.length!==0)}weight(){const tt=this.byteLength(!1),rt=this.byteLength(!0);return tt*3+rt}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(tt=!0){const rt=tt&&this.hasWitnesses();return(rt?10:8)+bufferutils_1$2.varuint.encodingLength(this.ins.length)+bufferutils_1$2.varuint.encodingLength(this.outs.length)+this.ins.reduce((nt,it)=>nt+40+varSliceSize(it.script),0)+this.outs.reduce((nt,it)=>nt+8+varSliceSize(it.script),0)+(rt?this.ins.reduce((nt,it)=>nt+vectorSize(it.witness),0):0)}clone(){const tt=new Transaction;return tt.version=this.version,tt.locktime=this.locktime,tt.ins=this.ins.map(rt=>({hash:rt.hash,index:rt.index,script:rt.script,sequence:rt.sequence,witness:rt.witness})),tt.outs=this.outs.map(rt=>({script:rt.script,value:rt.value})),tt}hashForSignature(tt,rt,nt){if(typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Number),arguments),tt>=this.ins.length)return ONE;const it=bscript$2.compile(bscript$2.decompile(rt).filter(ot=>ot!==script_1.OPS.OP_CODESEPARATOR)),st=this.clone();if((nt&31)===Transaction.SIGHASH_NONE)st.outs=[],st.ins.forEach((ot,lt)=>{lt!==tt&&(ot.sequence=0)});else if((nt&31)===Transaction.SIGHASH_SINGLE){if(tt>=this.outs.length)return ONE;st.outs.length=tt+1;for(let ot=0;ot{lt!==tt&&(ot.sequence=0)})}nt&Transaction.SIGHASH_ANYONECANPAY?(st.ins=[st.ins[tt]],st.ins[0].script=it):(st.ins.forEach(ot=>{ot.script=EMPTY_BUFFER}),st.ins[tt].script=it);const at=Buffer.allocUnsafe(st.byteLength(!1)+4);return at.writeInt32LE(nt,at.length-4),st.__toBuffer(at,0,!1),bcrypto$1.hash256(at)}hashForWitnessV1(tt,rt,nt,it,st,at){if(typeforce$1(types$2.tuple(types$2.UInt32,typeforce$1.arrayOf(types$2.Buffer),typeforce$1.arrayOf(types$2.Satoshi),types$2.UInt32),arguments),nt.length!==this.ins.length||rt.length!==this.ins.length)throw new Error("Must supply prevout script and value for all inputs");const ot=it===Transaction.SIGHASH_DEFAULT?Transaction.SIGHASH_ALL:it&Transaction.SIGHASH_OUTPUT_MASK,ut=(it&Transaction.SIGHASH_INPUT_MASK)===Transaction.SIGHASH_ANYONECANPAY,dt=ot===Transaction.SIGHASH_NONE,bt=ot===Transaction.SIGHASH_SINGLE;let gt=EMPTY_BUFFER,kt=EMPTY_BUFFER,pt=EMPTY_BUFFER,yt=EMPTY_BUFFER,$t=EMPTY_BUFFER;if(!ut){let Bt=bufferutils_1$2.BufferWriter.withCapacity(36*this.ins.length);this.ins.forEach(Ft=>{Bt.writeSlice(Ft.hash),Bt.writeUInt32(Ft.index)}),gt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(8*this.ins.length),nt.forEach(Ft=>Bt.writeUInt64(Ft)),kt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(rt.map(varSliceSize).reduce((Ft,Lt)=>Ft+Lt)),rt.forEach(Ft=>Bt.writeVarSlice(Ft)),pt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(4*this.ins.length),this.ins.forEach(Ft=>Bt.writeUInt32(Ft.sequence)),yt=bcrypto$1.sha256(Bt.end())}if(dt||bt){if(bt&&tt8+varSliceSize(Lt.script)).reduce((Lt,zt)=>Lt+zt),Ft=bufferutils_1$2.BufferWriter.withCapacity(Bt);this.outs.forEach(Lt=>{Ft.writeUInt64(Lt.value),Ft.writeVarSlice(Lt.script)}),$t=bcrypto$1.sha256(Ft.end())}const mt=(st?2:0)+(at?1:0),wt=174-(ut?49:0)-(dt?32:0)+(at?32:0)+(st?37:0),St=bufferutils_1$2.BufferWriter.withCapacity(wt);if(St.writeUInt8(it),St.writeInt32(this.version),St.writeUInt32(this.locktime),St.writeSlice(gt),St.writeSlice(kt),St.writeSlice(pt),St.writeSlice(yt),dt||bt||St.writeSlice($t),St.writeUInt8(mt),ut){const Bt=this.ins[tt];St.writeSlice(Bt.hash),St.writeUInt32(Bt.index),St.writeUInt64(nt[tt]),St.writeVarSlice(rt[tt]),St.writeUInt32(Bt.sequence)}else St.writeUInt32(tt);if(at){const Bt=bufferutils_1$2.BufferWriter.withCapacity(varSliceSize(at));Bt.writeVarSlice(at),St.writeSlice(bcrypto$1.sha256(Bt.end()))}return bt&&St.writeSlice($t),st&&(St.writeSlice(st),St.writeUInt8(0),St.writeUInt32(4294967295)),bcrypto$1.taggedHash("TapSighash",Buffer.concat([Buffer.from([0]),St.end()]))}hashForWitnessV0(tt,rt,nt,it){typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Satoshi,types$2.UInt32),arguments);let st=Buffer.from([]),at,ot=ZERO,lt=ZERO,ut=ZERO;if(it&Transaction.SIGHASH_ANYONECANPAY||(st=Buffer.allocUnsafe(36*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeSlice(bt.hash),at.writeUInt32(bt.index)}),lt=bcrypto$1.hash256(st)),!(it&Transaction.SIGHASH_ANYONECANPAY)&&(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE&&(st=Buffer.allocUnsafe(4*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeUInt32(bt.sequence)}),ut=bcrypto$1.hash256(st)),(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE){const bt=this.outs.reduce((gt,kt)=>gt+8+varSliceSize(kt.script),0);st=Buffer.allocUnsafe(bt),at=new bufferutils_1$2.BufferWriter(st,0),this.outs.forEach(gt=>{at.writeUInt64(gt.value),at.writeVarSlice(gt.script)}),ot=bcrypto$1.hash256(st)}else if((it&31)===Transaction.SIGHASH_SINGLE&&tt{it.writeSlice(at.hash),it.writeUInt32(at.index),it.writeVarSlice(at.script),it.writeUInt32(at.sequence)}),it.writeVarInt(this.outs.length),this.outs.forEach(at=>{isOutput(at)?it.writeUInt64(at.value):it.writeSlice(at.valueBuffer),it.writeVarSlice(at.script)}),st&&this.ins.forEach(at=>{it.writeVector(at.witness)}),it.writeUInt32(this.locktime),rt!==void 0?tt.slice(rt,it.offset):tt}}transaction.Transaction=Transaction;Transaction.DEFAULT_SEQUENCE=4294967295;Transaction.SIGHASH_DEFAULT=0;Transaction.SIGHASH_ALL=1;Transaction.SIGHASH_NONE=2;Transaction.SIGHASH_SINGLE=3;Transaction.SIGHASH_ANYONECANPAY=128;Transaction.SIGHASH_OUTPUT_MASK=3;Transaction.SIGHASH_INPUT_MASK=128;Transaction.ADVANCED_TRANSACTION_MARKER=0;Transaction.ADVANCED_TRANSACTION_FLAG=1;Object.defineProperty(block,"__esModule",{value:!0});block.Block=void 0;const bufferutils_1$1=bufferutils,bcrypto=crypto$2,merkle_1=merkle,transaction_1$3=transaction,types$1=types$6,{typeforce}=types$1,errorMerkleNoTxes=new TypeError("Cannot compute merkle root for zero transactions"),errorWitnessNotSegwit=new TypeError("Cannot compute witness commit for non-segwit block");class Block{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(tt){if(tt.length<80)throw new Error("Buffer too small (< 80 bytes)");const rt=new bufferutils_1$1.BufferReader(tt),nt=new Block;if(nt.version=rt.readInt32(),nt.prevHash=rt.readSlice(32),nt.merkleRoot=rt.readSlice(32),nt.timestamp=rt.readUInt32(),nt.bits=rt.readUInt32(),nt.nonce=rt.readUInt32(),tt.length===80)return nt;const it=()=>{const ot=transaction_1$3.Transaction.fromBuffer(rt.buffer.slice(rt.offset),!0);return rt.offset+=ot.byteLength(),ot},st=rt.readVarInt();nt.transactions=[];for(let ot=0;ot>24)-3,nt=tt&8388607,it=Buffer.alloc(32,0);return it.writeUIntBE(nt,29-rt,3),it}static calculateMerkleRoot(tt,rt){if(typeforce([{getHash:types$1.Function}],tt),tt.length===0)throw errorMerkleNoTxes;if(rt&&!txesHaveWitnessCommit(tt))throw errorWitnessNotSegwit;const nt=tt.map(st=>st.getHash(rt)),it=(0,merkle_1.fastMerkleRoot)(nt,bcrypto.hash256);return rt?bcrypto.hash256(Buffer.concat([it,tt[0].ins[0].witness[0]])):it}getWitnessCommit(){if(!txesHaveWitnessCommit(this.transactions))return null;const tt=this.transactions[0].outs.filter(nt=>nt.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(nt=>nt.script.slice(6,38));if(tt.length===0)return null;const rt=tt[tt.length-1];return rt instanceof Buffer&&rt.length===32?rt:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&this.witnessCommit.length===32||this.getWitnessCommit()!==null}hasWitness(){return anyTxHasWitness(this.transactions)}weight(){const tt=this.byteLength(!1,!1),rt=this.byteLength(!1,!0);return tt*3+rt}byteLength(tt,rt=!0){return tt||!this.transactions?80:80+bufferutils_1$1.varuint.encodingLength(this.transactions.length)+this.transactions.reduce((nt,it)=>nt+it.byteLength(rt),0)}getHash(){return bcrypto.hash256(this.toBuffer(!0))}getId(){return(0,bufferutils_1$1.reverseBuffer)(this.getHash()).toString("hex")}getUTCDate(){const tt=new Date(0);return tt.setUTCSeconds(this.timestamp),tt}toBuffer(tt){const rt=Buffer.allocUnsafe(this.byteLength(tt)),nt=new bufferutils_1$1.BufferWriter(rt);return nt.writeInt32(this.version),nt.writeSlice(this.prevHash),nt.writeSlice(this.merkleRoot),nt.writeUInt32(this.timestamp),nt.writeUInt32(this.bits),nt.writeUInt32(this.nonce),tt||!this.transactions||(bufferutils_1$1.varuint.encode(this.transactions.length,rt,nt.offset),nt.offset+=bufferutils_1$1.varuint.encode.bytes,this.transactions.forEach(it=>{const st=it.byteLength();it.toBuffer(rt,nt.offset),nt.offset+=st})),rt}toHex(tt){return this.toBuffer(tt).toString("hex")}checkTxRoots(){const tt=this.hasWitnessCommit();return!tt&&this.hasWitness()?!1:this.__checkMerkleRoot()&&(tt?this.__checkWitnessCommit():!0)}checkProofOfWork(){const tt=(0,bufferutils_1$1.reverseBuffer)(this.getHash()),rt=Block.calculateTarget(this.bits);return tt.compare(rt)<=0}__checkMerkleRoot(){if(!this.transactions)throw errorMerkleNoTxes;const tt=Block.calculateMerkleRoot(this.transactions);return this.merkleRoot.compare(tt)===0}__checkWitnessCommit(){if(!this.transactions)throw errorMerkleNoTxes;if(!this.hasWitnessCommit())throw errorWitnessNotSegwit;const tt=Block.calculateMerkleRoot(this.transactions,!0);return this.witnessCommit.compare(tt)===0}}block.Block=Block;function txesHaveWitnessCommit(et){return et instanceof Array&&et[0]&&et[0].ins&&et[0].ins instanceof Array&&et[0].ins[0]&&et[0].ins[0].witness&&et[0].ins[0].witness instanceof Array&&et[0].ins[0].witness.length>0}function anyTxHasWitness(et){return et instanceof Array&&et.some(tt=>typeof tt=="object"&&tt.ins instanceof Array&&tt.ins.some(rt=>typeof rt=="object"&&rt.witness instanceof Array&&rt.witness.length>0))}var psbt$1={},psbt={},combiner={},parser$1={},fromBuffer={},converter={},typeFields={};(function(et){Object.defineProperty(et,"__esModule",{value:!0}),function(tt){tt[tt.UNSIGNED_TX=0]="UNSIGNED_TX",tt[tt.GLOBAL_XPUB=1]="GLOBAL_XPUB"}(et.GlobalTypes||(et.GlobalTypes={})),et.GLOBAL_TYPE_NAMES=["unsignedTx","globalXpub"],function(tt){tt[tt.NON_WITNESS_UTXO=0]="NON_WITNESS_UTXO",tt[tt.WITNESS_UTXO=1]="WITNESS_UTXO",tt[tt.PARTIAL_SIG=2]="PARTIAL_SIG",tt[tt.SIGHASH_TYPE=3]="SIGHASH_TYPE",tt[tt.REDEEM_SCRIPT=4]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=5]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=6]="BIP32_DERIVATION",tt[tt.FINAL_SCRIPTSIG=7]="FINAL_SCRIPTSIG",tt[tt.FINAL_SCRIPTWITNESS=8]="FINAL_SCRIPTWITNESS",tt[tt.POR_COMMITMENT=9]="POR_COMMITMENT",tt[tt.TAP_KEY_SIG=19]="TAP_KEY_SIG",tt[tt.TAP_SCRIPT_SIG=20]="TAP_SCRIPT_SIG",tt[tt.TAP_LEAF_SCRIPT=21]="TAP_LEAF_SCRIPT",tt[tt.TAP_BIP32_DERIVATION=22]="TAP_BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=23]="TAP_INTERNAL_KEY",tt[tt.TAP_MERKLE_ROOT=24]="TAP_MERKLE_ROOT"}(et.InputTypes||(et.InputTypes={})),et.INPUT_TYPE_NAMES=["nonWitnessUtxo","witnessUtxo","partialSig","sighashType","redeemScript","witnessScript","bip32Derivation","finalScriptSig","finalScriptWitness","porCommitment","tapKeySig","tapScriptSig","tapLeafScript","tapBip32Derivation","tapInternalKey","tapMerkleRoot"],function(tt){tt[tt.REDEEM_SCRIPT=0]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=1]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=2]="BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=5]="TAP_INTERNAL_KEY",tt[tt.TAP_TREE=6]="TAP_TREE",tt[tt.TAP_BIP32_DERIVATION=7]="TAP_BIP32_DERIVATION"}(et.OutputTypes||(et.OutputTypes={})),et.OUTPUT_TYPE_NAMES=["redeemScript","witnessScript","bip32Derivation","tapInternalKey","tapTree","tapBip32Derivation"]})(typeFields);var globalXpub$1={};Object.defineProperty(globalXpub$1,"__esModule",{value:!0});const typeFields_1$g=typeFields,range$2=et=>[...Array(et).keys()];function decode$h(et){if(et.key[0]!==typeFields_1$g.GlobalTypes.GLOBAL_XPUB)throw new Error("Decode Error: could not decode globalXpub with key 0x"+et.key.toString("hex"));if(et.key.length!==79||![2,3].includes(et.key[46]))throw new Error("Decode Error: globalXpub has invalid extended pubkey in key 0x"+et.key.toString("hex"));if(et.value.length/4%1!==0)throw new Error("Decode Error: Global GLOBAL_XPUB value length should be multiple of 4");const tt=et.key.slice(1),rt={masterFingerprint:et.value.slice(0,4),extendedPubkey:tt,path:"m"};for(const nt of range$2(et.value.length/4-1)){const it=et.value.readUInt32LE(nt*4+4),st=!!(it&2147483648),at=it&2147483647;rt.path+="/"+at.toString(10)+(st?"'":"")}return rt}globalXpub$1.decode=decode$h;function encode$i(et){const tt=Buffer.from([typeFields_1$g.GlobalTypes.GLOBAL_XPUB]),rt=Buffer.concat([tt,et.extendedPubkey]),nt=et.path.split("/"),it=Buffer.allocUnsafe(nt.length*4);et.masterFingerprint.copy(it,0);let st=4;return nt.slice(1).forEach(at=>{const ot=at.slice(-1)==="'";let lt=2147483647&parseInt(ot?at.slice(0,-1):at,10);ot&&(lt+=2147483648),it.writeUInt32LE(lt,st),st+=4}),{key:rt,value:it}}globalXpub$1.encode=encode$i;globalXpub$1.expected="{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";function check$c(et){const tt=et.extendedPubkey,rt=et.masterFingerprint,nt=et.path;return Buffer.isBuffer(tt)&&tt.length===78&&[2,3].indexOf(tt[45])>-1&&Buffer.isBuffer(rt)&&rt.length===4&&typeof nt=="string"&&!!nt.match(/^m(\/\d+'?)*$/)}globalXpub$1.check=check$c;function canAddToArray$3(et,tt,rt){const nt=tt.extendedPubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.extendedPubkey.equals(tt.extendedPubkey)).length===0)}globalXpub$1.canAddToArray=canAddToArray$3;var unsignedTx$1={};Object.defineProperty(unsignedTx$1,"__esModule",{value:!0});const typeFields_1$f=typeFields;function encode$h(et){return{key:Buffer.from([typeFields_1$f.GlobalTypes.UNSIGNED_TX]),value:et.toBuffer()}}unsignedTx$1.encode=encode$h;var finalScriptSig$1={};Object.defineProperty(finalScriptSig$1,"__esModule",{value:!0});const typeFields_1$e=typeFields;function decode$g(et){if(et.key[0]!==typeFields_1$e.InputTypes.FINAL_SCRIPTSIG)throw new Error("Decode Error: could not decode finalScriptSig with key 0x"+et.key.toString("hex"));return et.value}finalScriptSig$1.decode=decode$g;function encode$g(et){return{key:Buffer.from([typeFields_1$e.InputTypes.FINAL_SCRIPTSIG]),value:et}}finalScriptSig$1.encode=encode$g;finalScriptSig$1.expected="Buffer";function check$b(et){return Buffer.isBuffer(et)}finalScriptSig$1.check=check$b;function canAdd$8(et,tt){return!!et&&!!tt&&et.finalScriptSig===void 0}finalScriptSig$1.canAdd=canAdd$8;var finalScriptWitness$1={};Object.defineProperty(finalScriptWitness$1,"__esModule",{value:!0});const typeFields_1$d=typeFields;function decode$f(et){if(et.key[0]!==typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS)throw new Error("Decode Error: could not decode finalScriptWitness with key 0x"+et.key.toString("hex"));return et.value}finalScriptWitness$1.decode=decode$f;function encode$f(et){return{key:Buffer.from([typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS]),value:et}}finalScriptWitness$1.encode=encode$f;finalScriptWitness$1.expected="Buffer";function check$a(et){return Buffer.isBuffer(et)}finalScriptWitness$1.check=check$a;function canAdd$7(et,tt){return!!et&&!!tt&&et.finalScriptWitness===void 0}finalScriptWitness$1.canAdd=canAdd$7;var nonWitnessUtxo$1={};Object.defineProperty(nonWitnessUtxo$1,"__esModule",{value:!0});const typeFields_1$c=typeFields;function decode$e(et){if(et.key[0]!==typeFields_1$c.InputTypes.NON_WITNESS_UTXO)throw new Error("Decode Error: could not decode nonWitnessUtxo with key 0x"+et.key.toString("hex"));return et.value}nonWitnessUtxo$1.decode=decode$e;function encode$e(et){return{key:Buffer.from([typeFields_1$c.InputTypes.NON_WITNESS_UTXO]),value:et}}nonWitnessUtxo$1.encode=encode$e;nonWitnessUtxo$1.expected="Buffer";function check$9(et){return Buffer.isBuffer(et)}nonWitnessUtxo$1.check=check$9;function canAdd$6(et,tt){return!!et&&!!tt&&et.nonWitnessUtxo===void 0}nonWitnessUtxo$1.canAdd=canAdd$6;var partialSig$1={};Object.defineProperty(partialSig$1,"__esModule",{value:!0});const typeFields_1$b=typeFields;function decode$d(et){if(et.key[0]!==typeFields_1$b.InputTypes.PARTIAL_SIG)throw new Error("Decode Error: could not decode partialSig with key 0x"+et.key.toString("hex"));if(!(et.key.length===34||et.key.length===66)||![2,3,4].includes(et.key[1]))throw new Error("Decode Error: partialSig has invalid pubkey in key 0x"+et.key.toString("hex"));return{pubkey:et.key.slice(1),signature:et.value}}partialSig$1.decode=decode$d;function encode$d(et){const tt=Buffer.from([typeFields_1$b.InputTypes.PARTIAL_SIG]);return{key:Buffer.concat([tt,et.pubkey]),value:et.signature}}partialSig$1.encode=encode$d;partialSig$1.expected="{ pubkey: Buffer; signature: Buffer; }";function check$8(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.signature)&&[33,65].includes(et.pubkey.length)&&[2,3,4].includes(et.pubkey[0])&&isDerSigWithSighash(et.signature)}partialSig$1.check=check$8;function isDerSigWithSighash(et){if(!Buffer.isBuffer(et)||et.length<9||et[0]!==48||et.length!==et[1]+3||et[2]!==2)return!1;const tt=et[3];if(tt>33||tt<1||et[3+tt+1]!==2)return!1;const rt=et[3+tt+2];return!(rt>33||rt<1||et.length!==3+tt+2+rt+2)}function canAddToArray$2(et,tt,rt){const nt=tt.pubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)).length===0)}partialSig$1.canAddToArray=canAddToArray$2;var porCommitment$1={};Object.defineProperty(porCommitment$1,"__esModule",{value:!0});const typeFields_1$a=typeFields;function decode$c(et){if(et.key[0]!==typeFields_1$a.InputTypes.POR_COMMITMENT)throw new Error("Decode Error: could not decode porCommitment with key 0x"+et.key.toString("hex"));return et.value.toString("utf8")}porCommitment$1.decode=decode$c;function encode$c(et){return{key:Buffer.from([typeFields_1$a.InputTypes.POR_COMMITMENT]),value:Buffer.from(et,"utf8")}}porCommitment$1.encode=encode$c;porCommitment$1.expected="string";function check$7(et){return typeof et=="string"}porCommitment$1.check=check$7;function canAdd$5(et,tt){return!!et&&!!tt&&et.porCommitment===void 0}porCommitment$1.canAdd=canAdd$5;var sighashType$1={};Object.defineProperty(sighashType$1,"__esModule",{value:!0});const typeFields_1$9=typeFields;function decode$b(et){if(et.key[0]!==typeFields_1$9.InputTypes.SIGHASH_TYPE)throw new Error("Decode Error: could not decode sighashType with key 0x"+et.key.toString("hex"));return et.value.readUInt32LE(0)}sighashType$1.decode=decode$b;function encode$b(et){const tt=Buffer.from([typeFields_1$9.InputTypes.SIGHASH_TYPE]),rt=Buffer.allocUnsafe(4);return rt.writeUInt32LE(et,0),{key:tt,value:rt}}sighashType$1.encode=encode$b;sighashType$1.expected="number";function check$6(et){return typeof et=="number"}sighashType$1.check=check$6;function canAdd$4(et,tt){return!!et&&!!tt&&et.sighashType===void 0}sighashType$1.canAdd=canAdd$4;var tapKeySig$1={};Object.defineProperty(tapKeySig$1,"__esModule",{value:!0});const typeFields_1$8=typeFields;function decode$a(et){if(et.key[0]!==typeFields_1$8.InputTypes.TAP_KEY_SIG||et.key.length!==1)throw new Error("Decode Error: could not decode tapKeySig with key 0x"+et.key.toString("hex"));if(!check$5(et.value))throw new Error("Decode Error: tapKeySig not a valid 64-65-byte BIP340 signature");return et.value}tapKeySig$1.decode=decode$a;function encode$a(et){return{key:Buffer.from([typeFields_1$8.InputTypes.TAP_KEY_SIG]),value:et}}tapKeySig$1.encode=encode$a;tapKeySig$1.expected="Buffer";function check$5(et){return Buffer.isBuffer(et)&&(et.length===64||et.length===65)}tapKeySig$1.check=check$5;function canAdd$3(et,tt){return!!et&&!!tt&&et.tapKeySig===void 0}tapKeySig$1.canAdd=canAdd$3;var tapLeafScript$1={};Object.defineProperty(tapLeafScript$1,"__esModule",{value:!0});const typeFields_1$7=typeFields;function decode$9(et){if(et.key[0]!==typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT)throw new Error("Decode Error: could not decode tapLeafScript with key 0x"+et.key.toString("hex"));if((et.key.length-2)%32!==0)throw new Error("Decode Error: tapLeafScript has invalid control block in key 0x"+et.key.toString("hex"));const tt=et.value[et.value.length-1];if((et.key[1]&254)!==tt)throw new Error("Decode Error: tapLeafScript bad leaf version in key 0x"+et.key.toString("hex"));const rt=et.value.slice(0,-1);return{controlBlock:et.key.slice(1),script:rt,leafVersion:tt}}tapLeafScript$1.decode=decode$9;function encode$9(et){const tt=Buffer.from([typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT]),rt=Buffer.from([et.leafVersion]);return{key:Buffer.concat([tt,et.controlBlock]),value:Buffer.concat([et.script,rt])}}tapLeafScript$1.encode=encode$9;tapLeafScript$1.expected="{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";function check$4(et){return Buffer.isBuffer(et.controlBlock)&&(et.controlBlock.length-1)%32===0&&(et.controlBlock[0]&254)===et.leafVersion&&Buffer.isBuffer(et.script)}tapLeafScript$1.check=check$4;function canAddToArray$1(et,tt,rt){const nt=tt.controlBlock.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.controlBlock.equals(tt.controlBlock)).length===0)}tapLeafScript$1.canAddToArray=canAddToArray$1;var tapMerkleRoot$1={};Object.defineProperty(tapMerkleRoot$1,"__esModule",{value:!0});const typeFields_1$6=typeFields;function decode$8(et){if(et.key[0]!==typeFields_1$6.InputTypes.TAP_MERKLE_ROOT||et.key.length!==1)throw new Error("Decode Error: could not decode tapMerkleRoot with key 0x"+et.key.toString("hex"));if(!check$3(et.value))throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");return et.value}tapMerkleRoot$1.decode=decode$8;function encode$8(et){return{key:Buffer.from([typeFields_1$6.InputTypes.TAP_MERKLE_ROOT]),value:et}}tapMerkleRoot$1.encode=encode$8;tapMerkleRoot$1.expected="Buffer";function check$3(et){return Buffer.isBuffer(et)&&et.length===32}tapMerkleRoot$1.check=check$3;function canAdd$2(et,tt){return!!et&&!!tt&&et.tapMerkleRoot===void 0}tapMerkleRoot$1.canAdd=canAdd$2;var tapScriptSig$1={};Object.defineProperty(tapScriptSig$1,"__esModule",{value:!0});const typeFields_1$5=typeFields;function decode$7(et){if(et.key[0]!==typeFields_1$5.InputTypes.TAP_SCRIPT_SIG)throw new Error("Decode Error: could not decode tapScriptSig with key 0x"+et.key.toString("hex"));if(et.key.length!==65)throw new Error("Decode Error: tapScriptSig has invalid key 0x"+et.key.toString("hex"));if(et.value.length!==64&&et.value.length!==65)throw new Error("Decode Error: tapScriptSig has invalid signature in key 0x"+et.key.toString("hex"));const tt=et.key.slice(1,33),rt=et.key.slice(33);return{pubkey:tt,leafHash:rt,signature:et.value}}tapScriptSig$1.decode=decode$7;function encode$7(et){const tt=Buffer.from([typeFields_1$5.InputTypes.TAP_SCRIPT_SIG]);return{key:Buffer.concat([tt,et.pubkey,et.leafHash]),value:et.signature}}tapScriptSig$1.encode=encode$7;tapScriptSig$1.expected="{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";function check$2(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.leafHash)&&Buffer.isBuffer(et.signature)&&et.pubkey.length===32&&et.leafHash.length===32&&(et.signature.length===64||et.signature.length===65)}tapScriptSig$1.check=check$2;function canAddToArray(et,tt,rt){const nt=tt.pubkey.toString("hex")+tt.leafHash.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)&&it.leafHash.equals(tt.leafHash)).length===0)}tapScriptSig$1.canAddToArray=canAddToArray;var witnessUtxo$1={},tools={},varint={};Object.defineProperty(varint,"__esModule",{value:!0});const MAX_SAFE_INTEGER$2=9007199254740991;function checkUInt53(et){if(et<0||et>MAX_SAFE_INTEGER$2||et%1!==0)throw new RangeError("value out of range")}function encode$6(et,tt,rt){if(checkUInt53(et),tt||(tt=Buffer.allocUnsafe(encodingLength(et))),!Buffer.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),Object.assign(encode$6,{bytes:1})):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),Object.assign(encode$6,{bytes:3})):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),Object.assign(encode$6,{bytes:5})):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),Object.assign(encode$6,{bytes:9})),tt}varint.encode=encode$6;function decode$6(et,tt){if(!Buffer.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);const rt=et.readUInt8(tt);if(rt<253)return Object.assign(decode$6,{bytes:1}),rt;if(rt===253)return Object.assign(decode$6,{bytes:3}),et.readUInt16LE(tt+1);if(rt===254)return Object.assign(decode$6,{bytes:5}),et.readUInt32LE(tt+1);{Object.assign(decode$6,{bytes:9});const nt=et.readUInt32LE(tt+1),st=et.readUInt32LE(tt+5)*4294967296+nt;return checkUInt53(st),st}}varint.decode=decode$6;function encodingLength(et){return checkUInt53(et),et<253?1:et<=65535?3:et<=4294967295?5:9}varint.encodingLength=encodingLength;Object.defineProperty(tools,"__esModule",{value:!0});const varuint$6=varint;tools.range=et=>[...Array(et).keys()];function reverseBuffer(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;nttt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint(nt+rt,9007199254740991),nt+rt}tools.readUInt64LE=readUInt64LE;function writeUInt64LE(et,tt,rt){return verifuint(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}tools.writeUInt64LE=writeUInt64LE;Object.defineProperty(witnessUtxo$1,"__esModule",{value:!0});const typeFields_1$4=typeFields,tools_1$2=tools,varuint$5=varint;function decode$5(et){if(et.key[0]!==typeFields_1$4.InputTypes.WITNESS_UTXO)throw new Error("Decode Error: could not decode witnessUtxo with key 0x"+et.key.toString("hex"));const tt=tools_1$2.readUInt64LE(et.value,0);let rt=8;const nt=varuint$5.decode(et.value,rt);rt+=varuint$5.encodingLength(nt);const it=et.value.slice(rt);if(it.length!==nt)throw new Error("Decode Error: WITNESS_UTXO script is not proper length");return{script:it,value:tt}}witnessUtxo$1.decode=decode$5;function encode$5(et){const{script:tt,value:rt}=et,nt=varuint$5.encodingLength(tt.length),it=Buffer.allocUnsafe(8+nt+tt.length);return tools_1$2.writeUInt64LE(it,rt,0),varuint$5.encode(tt.length,it,8),tt.copy(it,8+nt),{key:Buffer.from([typeFields_1$4.InputTypes.WITNESS_UTXO]),value:it}}witnessUtxo$1.encode=encode$5;witnessUtxo$1.expected="{ script: Buffer; value: number; }";function check$1(et){return Buffer.isBuffer(et.script)&&typeof et.value=="number"}witnessUtxo$1.check=check$1;function canAdd$1(et,tt){return!!et&&!!tt&&et.witnessUtxo===void 0}witnessUtxo$1.canAdd=canAdd$1;var tapTree$1={};Object.defineProperty(tapTree$1,"__esModule",{value:!0});const typeFields_1$3=typeFields,varuint$4=varint;function decode$4(et){if(et.key[0]!==typeFields_1$3.OutputTypes.TAP_TREE||et.key.length!==1)throw new Error("Decode Error: could not decode tapTree with key 0x"+et.key.toString("hex"));let tt=0;const rt=[];for(;tt[Buffer.of(nt.depth,nt.leafVersion),varuint$4.encode(nt.script.length),nt.script]));return{key:tt,value:Buffer.concat(rt)}}tapTree$1.encode=encode$4;tapTree$1.expected="{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";function check(et){return Array.isArray(et.leaves)&&et.leaves.every(tt=>tt.depth>=0&&tt.depth<=128&&(tt.leafVersion&254)===tt.leafVersion&&Buffer.isBuffer(tt.script))}tapTree$1.check=check;function canAdd(et,tt){return!!et&&!!tt&&et.tapTree===void 0}tapTree$1.canAdd=canAdd;var bip32Derivation$2={};Object.defineProperty(bip32Derivation$2,"__esModule",{value:!0});const range$1=et=>[...Array(et).keys()],isValidDERKey=et=>et.length===33&&[2,3].includes(et[0])||et.length===65&&et[0]===4;function makeConverter$4(et,tt=isValidDERKey){function rt(ot){if(ot.key[0]!==et)throw new Error("Decode Error: could not decode bip32Derivation with key 0x"+ot.key.toString("hex"));const lt=ot.key.slice(1);if(!tt(lt))throw new Error("Decode Error: bip32Derivation has invalid pubkey in key 0x"+ot.key.toString("hex"));if(ot.value.length/4%1!==0)throw new Error("Decode Error: Input BIP32_DERIVATION value length should be multiple of 4");const ut={masterFingerprint:ot.value.slice(0,4),pubkey:lt,path:"m"};for(const dt of range$1(ot.value.length/4-1)){const bt=ot.value.readUInt32LE(dt*4+4),gt=!!(bt&2147483648),kt=bt&2147483647;ut.path+="/"+kt.toString(10)+(gt?"'":"")}return ut}function nt(ot){const lt=Buffer.from([et]),ut=Buffer.concat([lt,ot.pubkey]),dt=ot.path.split("/"),bt=Buffer.allocUnsafe(dt.length*4);ot.masterFingerprint.copy(bt,0);let gt=4;return dt.slice(1).forEach(kt=>{const pt=kt.slice(-1)==="'";let yt=2147483647&parseInt(pt?kt.slice(0,-1):kt,10);pt&&(yt+=2147483648),bt.writeUInt32LE(yt,gt),gt+=4}),{key:ut,value:bt}}const it="{ masterFingerprint: Buffer; pubkey: Buffer; path: string; }";function st(ot){return Buffer.isBuffer(ot.pubkey)&&Buffer.isBuffer(ot.masterFingerprint)&&typeof ot.path=="string"&&tt(ot.pubkey)&&ot.masterFingerprint.length===4}function at(ot,lt,ut){const dt=lt.pubkey.toString("hex");return ut.has(dt)?!1:(ut.add(dt),ot.filter(bt=>bt.pubkey.equals(lt.pubkey)).length===0)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:at}}bip32Derivation$2.makeConverter=makeConverter$4;var checkPubkey$1={};Object.defineProperty(checkPubkey$1,"__esModule",{value:!0});function makeChecker(et){return tt;function tt(rt){let nt;if(et.includes(rt.key[0])&&(nt=rt.key.slice(1),!(nt.length===33||nt.length===65)||![2,3,4].includes(nt[0])))throw new Error("Format Error: invalid pubkey in key 0x"+rt.key.toString("hex"));return nt}}checkPubkey$1.makeChecker=makeChecker;var redeemScript$1={};Object.defineProperty(redeemScript$1,"__esModule",{value:!0});function makeConverter$3(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode redeemScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.redeemScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}redeemScript$1.makeConverter=makeConverter$3;var tapBip32Derivation$1={};Object.defineProperty(tapBip32Derivation$1,"__esModule",{value:!0});const varuint$3=varint,bip32Derivation$1=bip32Derivation$2,isValidBIP340Key=et=>et.length===32;function makeConverter$2(et){const tt=bip32Derivation$1.makeConverter(et,isValidBIP340Key);function rt(at){const ot=varuint$3.decode(at.value),lt=varuint$3.encodingLength(ot),ut=tt.decode({key:at.key,value:at.value.slice(lt+ot*32)}),dt=new Array(ot);for(let bt=0,gt=lt;btBuffer.isBuffer(ot)&&ot.length===32)&&tt.check(at)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:tt.canAddToArray}}tapBip32Derivation$1.makeConverter=makeConverter$2;var tapInternalKey$1={};Object.defineProperty(tapInternalKey$1,"__esModule",{value:!0});function makeConverter$1(et){function tt(at){if(at.key[0]!==et||at.key.length!==1)throw new Error("Decode Error: could not decode tapInternalKey with key 0x"+at.key.toString("hex"));if(at.value.length!==32)throw new Error("Decode Error: tapInternalKey not a 32-byte x-only pubkey");return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)&&at.length===32}function st(at,ot){return!!at&&!!ot&&at.tapInternalKey===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}tapInternalKey$1.makeConverter=makeConverter$1;var witnessScript$1={};Object.defineProperty(witnessScript$1,"__esModule",{value:!0});function makeConverter(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode witnessScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.witnessScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}witnessScript$1.makeConverter=makeConverter;Object.defineProperty(converter,"__esModule",{value:!0});const typeFields_1$2=typeFields,globalXpub=globalXpub$1,unsignedTx=unsignedTx$1,finalScriptSig=finalScriptSig$1,finalScriptWitness=finalScriptWitness$1,nonWitnessUtxo=nonWitnessUtxo$1,partialSig=partialSig$1,porCommitment=porCommitment$1,sighashType=sighashType$1,tapKeySig=tapKeySig$1,tapLeafScript=tapLeafScript$1,tapMerkleRoot=tapMerkleRoot$1,tapScriptSig=tapScriptSig$1,witnessUtxo=witnessUtxo$1,tapTree=tapTree$1,bip32Derivation=bip32Derivation$2,checkPubkey=checkPubkey$1,redeemScript=redeemScript$1,tapBip32Derivation=tapBip32Derivation$1,tapInternalKey=tapInternalKey$1,witnessScript=witnessScript$1,globals={unsignedTx,globalXpub,checkPubkey:checkPubkey.makeChecker([])};converter.globals=globals;const inputs={nonWitnessUtxo,partialSig,sighashType,finalScriptSig,finalScriptWitness,porCommitment,witnessUtxo,bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.InputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.InputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.InputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.InputTypes.PARTIAL_SIG,typeFields_1$2.InputTypes.BIP32_DERIVATION]),tapKeySig,tapScriptSig,tapLeafScript,tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.InputTypes.TAP_BIP32_DERIVATION),tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.InputTypes.TAP_INTERNAL_KEY),tapMerkleRoot};converter.inputs=inputs;const outputs={bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.OutputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.OutputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.OutputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.OutputTypes.BIP32_DERIVATION]),tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.OutputTypes.TAP_BIP32_DERIVATION),tapTree,tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.OutputTypes.TAP_INTERNAL_KEY)};converter.outputs=outputs;Object.defineProperty(fromBuffer,"__esModule",{value:!0});const convert$2=converter,tools_1$1=tools,varuint$2=varint,typeFields_1$1=typeFields;function psbtFromBuffer(et,tt){let rt=0;function nt(){const $t=varuint$2.decode(et,rt);rt+=varuint$2.encodingLength($t);const mt=et.slice(rt,rt+$t);return rt+=$t,mt}function it(){const $t=et.readUInt32BE(rt);return rt+=4,$t}function st(){const $t=et.readUInt8(rt);return rt+=1,$t}function at(){const $t=nt(),mt=nt();return{key:$t,value:mt}}function ot(){if(rt>=et.length)throw new Error("Format Error: Unexpected End of PSBT");const $t=et.readUInt8(rt)===0;return $t&&rt++,$t}if(it()!==1886610036)throw new Error("Format Error: Invalid Magic Number");if(st()!==255)throw new Error("Format Error: Magic Number must be followed by 0xff separator");const lt=[],ut={};for(;!ot();){const $t=at(),mt=$t.key.toString("hex");if(ut[mt])throw new Error("Format Error: Keys must be unique for global keymap: key "+mt);ut[mt]=1,lt.push($t)}const dt=lt.filter($t=>$t.key[0]===typeFields_1$1.GlobalTypes.UNSIGNED_TX);if(dt.length!==1)throw new Error("Format Error: Only one UNSIGNED_TX allowed");const bt=tt(dt[0].value),{inputCount:gt,outputCount:kt}=bt.getInputOutputCounts(),pt=[],yt=[];for(const $t of tools_1$1.range(gt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each input: input index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}pt.push(wt)}for(const $t of tools_1$1.range(kt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each output: output index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}yt.push(wt)}return psbtFromKeyVals(bt,{globalMapKeyVals:lt,inputKeyVals:pt,outputKeyVals:yt})}fromBuffer.psbtFromBuffer=psbtFromBuffer;function checkKeyBuffer(et,tt,rt){if(!tt.equals(Buffer.from([rt])))throw new Error(`Format Error: Invalid ${et} key: ${tt.toString("hex")}`)}fromBuffer.checkKeyBuffer=checkKeyBuffer;function psbtFromKeyVals(et,{globalMapKeyVals:tt,inputKeyVals:rt,outputKeyVals:nt}){const it={unsignedTx:et};let st=0;for(const dt of tt)switch(dt.key[0]){case typeFields_1$1.GlobalTypes.UNSIGNED_TX:if(checkKeyBuffer("global",dt.key,typeFields_1$1.GlobalTypes.UNSIGNED_TX),st>0)throw new Error("Format Error: GlobalMap has multiple UNSIGNED_TX");st++;break;case typeFields_1$1.GlobalTypes.GLOBAL_XPUB:it.globalXpub===void 0&&(it.globalXpub=[]),it.globalXpub.push(convert$2.globals.globalXpub.decode(dt));break;default:it.unknownKeyVals||(it.unknownKeyVals=[]),it.unknownKeyVals.push(dt)}const at=rt.length,ot=nt.length,lt=[],ut=[];for(const dt of tools_1$1.range(at)){const bt={};for(const gt of rt[dt])switch(convert$2.inputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.InputTypes.NON_WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.NON_WITNESS_UTXO),bt.nonWitnessUtxo!==void 0)throw new Error("Format Error: Input has multiple NON_WITNESS_UTXO");bt.nonWitnessUtxo=convert$2.inputs.nonWitnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_UTXO),bt.witnessUtxo!==void 0)throw new Error("Format Error: Input has multiple WITNESS_UTXO");bt.witnessUtxo=convert$2.inputs.witnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.PARTIAL_SIG:bt.partialSig===void 0&&(bt.partialSig=[]),bt.partialSig.push(convert$2.inputs.partialSig.decode(gt));break;case typeFields_1$1.InputTypes.SIGHASH_TYPE:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.SIGHASH_TYPE),bt.sighashType!==void 0)throw new Error("Format Error: Input has multiple SIGHASH_TYPE");bt.sighashType=convert$2.inputs.sighashType.decode(gt);break;case typeFields_1$1.InputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Input has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.inputs.redeemScript.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Input has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.inputs.witnessScript.decode(gt);break;case typeFields_1$1.InputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.inputs.bip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.FINAL_SCRIPTSIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTSIG),bt.finalScriptSig=convert$2.inputs.finalScriptSig.decode(gt);break;case typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS),bt.finalScriptWitness=convert$2.inputs.finalScriptWitness.decode(gt);break;case typeFields_1$1.InputTypes.POR_COMMITMENT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.POR_COMMITMENT),bt.porCommitment=convert$2.inputs.porCommitment.decode(gt);break;case typeFields_1$1.InputTypes.TAP_KEY_SIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_KEY_SIG),bt.tapKeySig=convert$2.inputs.tapKeySig.decode(gt);break;case typeFields_1$1.InputTypes.TAP_SCRIPT_SIG:bt.tapScriptSig===void 0&&(bt.tapScriptSig=[]),bt.tapScriptSig.push(convert$2.inputs.tapScriptSig.decode(gt));break;case typeFields_1$1.InputTypes.TAP_LEAF_SCRIPT:bt.tapLeafScript===void 0&&(bt.tapLeafScript=[]),bt.tapLeafScript.push(convert$2.inputs.tapLeafScript.decode(gt));break;case typeFields_1$1.InputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.inputs.tapBip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.inputs.tapInternalKey.decode(gt);break;case typeFields_1$1.InputTypes.TAP_MERKLE_ROOT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_MERKLE_ROOT),bt.tapMerkleRoot=convert$2.inputs.tapMerkleRoot.decode(gt);break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}lt.push(bt)}for(const dt of tools_1$1.range(ot)){const bt={};for(const gt of nt[dt])switch(convert$2.outputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.OutputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Output has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.outputs.redeemScript.decode(gt);break;case typeFields_1$1.OutputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Output has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.outputs.witnessScript.decode(gt);break;case typeFields_1$1.OutputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.outputs.bip32Derivation.decode(gt));break;case typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.outputs.tapInternalKey.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_TREE:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_TREE),bt.tapTree=convert$2.outputs.tapTree.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.outputs.tapBip32Derivation.decode(gt));break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}ut.push(bt)}return{globalMap:it,inputs:lt,outputs:ut}}fromBuffer.psbtFromKeyVals=psbtFromKeyVals;var toBuffer={};Object.defineProperty(toBuffer,"__esModule",{value:!0});const convert$1=converter,tools_1=tools;function psbtToBuffer({globalMap:et,inputs:tt,outputs:rt}){const{globalKeyVals:nt,inputKeyVals:it,outputKeyVals:st}=psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}),at=tools_1.keyValsToBuffer(nt),ot=bt=>bt.length===0?[Buffer.from([0])]:bt.map(tools_1.keyValsToBuffer),lt=ot(it),ut=ot(st),dt=Buffer.allocUnsafe(5);return dt.writeUIntBE(482972169471,0,5),Buffer.concat([dt,at].concat(lt,ut))}toBuffer.psbtToBuffer=psbtToBuffer;const sortKeyVals=(et,tt)=>et.key.compare(tt.key);function keyValsFromMap(et,tt){const rt=new Set,nt=Object.entries(et).reduce((st,[at,ot])=>{if(at==="unknownKeyVals")return st;const lt=tt[at];if(lt===void 0)return st;const ut=(Array.isArray(ot)?ot:[ot]).map(lt.encode);return ut.map(bt=>bt.key.toString("hex")).forEach(bt=>{if(rt.has(bt))throw new Error("Serialize Error: Duplicate key: "+bt);rt.add(bt)}),st.concat(ut)},[]),it=et.unknownKeyVals?et.unknownKeyVals.filter(st=>!rt.has(st.key.toString("hex"))):[];return nt.concat(it).sort(sortKeyVals)}function psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}){return{globalKeyVals:keyValsFromMap(et,convert$1.globals),inputKeyVals:tt.map(nt=>keyValsFromMap(nt,convert$1.inputs)),outputKeyVals:rt.map(nt=>keyValsFromMap(nt,convert$1.outputs))}}toBuffer.psbtToKeyVals=psbtToKeyVals;(function(et){function tt(rt){for(var nt in rt)et.hasOwnProperty(nt)||(et[nt]=rt[nt])}Object.defineProperty(et,"__esModule",{value:!0}),tt(fromBuffer),tt(toBuffer)})(parser$1);Object.defineProperty(combiner,"__esModule",{value:!0});const parser_1$1=parser$1;function combine$1(et){const tt=et[0],rt=parser_1$1.psbtToKeyVals(tt),nt=et.slice(1);if(nt.length===0)throw new Error("Combine: Nothing to combine");const it=getTx(tt);if(it===void 0)throw new Error("Combine: Self missing transaction");const st=getKeySet(rt.globalKeyVals),at=rt.inputKeyVals.map(getKeySet),ot=rt.outputKeyVals.map(getKeySet);for(const lt of nt){const ut=getTx(lt);if(ut===void 0||!ut.toBuffer().equals(it.toBuffer()))throw new Error("Combine: One of the Psbts does not have the same transaction.");const dt=parser_1$1.psbtToKeyVals(lt);getKeySet(dt.globalKeyVals).forEach(keyPusher(st,rt.globalKeyVals,dt.globalKeyVals)),dt.inputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(at[yt],rt.inputKeyVals[yt],dt.inputKeyVals[yt]))),dt.outputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(ot[yt],rt.outputKeyVals[yt],dt.outputKeyVals[yt])))}return parser_1$1.psbtFromKeyVals(it,{globalMapKeyVals:rt.globalKeyVals,inputKeyVals:rt.inputKeyVals,outputKeyVals:rt.outputKeyVals})}combiner.combine=combine$1;function keyPusher(et,tt,rt){return nt=>{if(et.has(nt))return;const it=rt.filter(st=>st.key.toString("hex")===nt)[0];tt.push(it),et.add(nt)}}function getTx(et){return et.globalMap.unsignedTx}function getKeySet(et){const tt=new Set;return et.forEach(rt=>{const nt=rt.key.toString("hex");if(tt.has(nt))throw new Error("Combine: KeyValue Map keys should be unique");tt.add(nt)}),tt}var utils={};(function(et){Object.defineProperty(et,"__esModule",{value:!0});const tt=converter;function rt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No input #${pt}`);return yt}et.checkForInput=rt;function nt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No output #${pt}`);return yt}et.checkForOutput=nt;function it(kt,pt,yt){if(kt.key[0]$t.key.equals(kt.key)).length!==0)throw new Error(`Duplicate Key: ${kt.key.toString("hex")}`)}et.checkHasKey=it;function st(kt){let pt=0;return Object.keys(kt).forEach(yt=>{Number(isNaN(Number(yt)))&&pt++}),pt}et.getEnumLength=st;function at(kt,pt){let yt=!1;if(pt.nonWitnessUtxo||pt.witnessUtxo){const $t=!!pt.redeemScript,mt=!!pt.witnessScript,wt=!$t||!!pt.finalScriptSig,St=!mt||!!pt.finalScriptWitness,Bt=!!pt.finalScriptSig||!!pt.finalScriptWitness;yt=wt&&St&&Bt}if(yt===!1)throw new Error(`Input #${kt} has too much or too little data to clean`)}et.inputCheckUncleanFinalized=at;function ot(kt,pt,yt,$t){throw new Error(`Data for ${kt} key ${pt} is incorrect: Expected ${yt} and got ${JSON.stringify($t)}`)}function lt(kt){return(pt,yt)=>{for(const $t of Object.keys(pt)){const mt=pt[$t],{canAdd:wt,canAddToArray:St,check:Bt,expected:Ft}=tt[kt+"s"][$t]||{},Lt=!!St;if(Bt)if(Lt){if(!Array.isArray(mt)||yt[$t]&&!Array.isArray(yt[$t]))throw new Error(`Key type ${$t} must be an array`);mt.every(Bt)||ot(kt,$t,Ft,mt);const zt=yt[$t]||[],Ht=new Set;if(!mt.every(Wt=>St(zt,Wt,Ht)))throw new Error("Can not add duplicate data to array");yt[$t]=zt.concat(mt)}else{if(Bt(mt)||ot(kt,$t,Ft,mt),!wt(yt,mt))throw new Error(`Can not add duplicate data to ${kt}`);yt[$t]=mt}}}}et.updateGlobal=lt("global"),et.updateInput=lt("input"),et.updateOutput=lt("output");function ut(kt,pt){const yt=kt.length-1,$t=rt(kt,yt);et.updateInput(pt,$t)}et.addInputAttributes=ut;function dt(kt,pt){const yt=kt.length-1,$t=nt(kt,yt);et.updateOutput(pt,$t)}et.addOutputAttributes=dt;function bt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Version: Invalid Transaction");return pt.writeUInt32LE(kt,0),pt}et.defaultVersionSetter=bt;function gt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Locktime: Invalid Transaction");return pt.writeUInt32LE(kt,pt.length-4),pt}et.defaultLocktimeSetter=gt})(utils);Object.defineProperty(psbt,"__esModule",{value:!0});const combiner_1=combiner,parser_1=parser$1,typeFields_1=typeFields,utils_1$1=utils;let Psbt$1=class{constructor(tt){this.inputs=[],this.outputs=[],this.globalMap={unsignedTx:tt}}static fromBase64(tt,rt){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt){const nt=parser_1.psbtFromBuffer(tt,rt),it=new this(nt.globalMap.unsignedTx);return Object.assign(it,nt),it}toBase64(){return this.toBuffer().toString("base64")}toHex(){return this.toBuffer().toString("hex")}toBuffer(){return parser_1.psbtToBuffer(this)}updateGlobal(tt){return utils_1$1.updateGlobal(tt,this.globalMap),this}updateInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.updateInput(rt,nt),this}updateOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.updateOutput(rt,nt),this}addUnknownKeyValToGlobal(tt){return utils_1$1.checkHasKey(tt,this.globalMap.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.GlobalTypes)),this.globalMap.unknownKeyVals||(this.globalMap.unknownKeyVals=[]),this.globalMap.unknownKeyVals.push(tt),this}addUnknownKeyValToInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.InputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addUnknownKeyValToOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.OutputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addInput(tt){this.globalMap.unsignedTx.addInput(tt),this.inputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.inputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToInput(nt,it)),utils_1$1.addInputAttributes(this.inputs,tt),this}addOutput(tt){this.globalMap.unsignedTx.addOutput(tt),this.outputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.outputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToOutput(nt,it)),utils_1$1.addOutputAttributes(this.outputs,tt),this}clearFinalizedInput(tt){const rt=utils_1$1.checkForInput(this.inputs,tt);utils_1$1.inputCheckUncleanFinalized(tt,rt);for(const nt of Object.keys(rt))["witnessUtxo","nonWitnessUtxo","finalScriptSig","finalScriptWitness","unknownKeyVals"].includes(nt)||delete rt[nt];return this}combine(...tt){const rt=combiner_1.combine([this].concat(tt));return Object.assign(this,rt),this}getTransaction(){return this.globalMap.unsignedTx.toBuffer()}};psbt.Psbt=Psbt$1;var bip371={},psbtutils={};Object.defineProperty(psbtutils,"__esModule",{value:!0});psbtutils.signatureBlocksAction=psbtutils.checkInputForSig=psbtutils.pubkeyInScript=psbtutils.pubkeyPositionInScript=psbtutils.witnessStackToScriptWitness=psbtutils.isP2TR=psbtutils.isP2SHScript=psbtutils.isP2WSHScript=psbtutils.isP2WPKH=psbtutils.isP2PKH=psbtutils.isP2PK=psbtutils.isP2MS=void 0;const varuint$1=varint,bscript$1=script,transaction_1$2=transaction,crypto_1=crypto$2,payments$1=payments$3;function isPaymentFactory(et){return tt=>{try{return et({output:tt}),!0}catch{return!1}}}psbtutils.isP2MS=isPaymentFactory(payments$1.p2ms);psbtutils.isP2PK=isPaymentFactory(payments$1.p2pk);psbtutils.isP2PKH=isPaymentFactory(payments$1.p2pkh);psbtutils.isP2WPKH=isPaymentFactory(payments$1.p2wpkh);psbtutils.isP2WSHScript=isPaymentFactory(payments$1.p2wsh);psbtutils.isP2SHScript=isPaymentFactory(payments$1.p2sh);psbtutils.isP2TR=isPaymentFactory(payments$1.p2tr);function witnessStackToScriptWitness(et){let tt=Buffer.allocUnsafe(0);function rt(at){tt=Buffer.concat([tt,Buffer.from(at)])}function nt(at){const ot=tt.length,lt=varuint$1.encodingLength(at);tt=Buffer.concat([tt,Buffer.allocUnsafe(lt)]),varuint$1.encode(at,tt,ot)}function it(at){nt(at.length),rt(at)}function st(at){nt(at.length),at.forEach(it)}return st(et),tt}psbtutils.witnessStackToScriptWitness=witnessStackToScriptWitness;function pubkeyPositionInScript(et,tt){const rt=(0,crypto_1.hash160)(et),nt=et.slice(1,33),it=bscript$1.decompile(tt);if(it===null)throw new Error("Unknown script error");return it.findIndex(st=>typeof st=="number"?!1:st.equals(et)||st.equals(rt)||st.equals(nt))}psbtutils.pubkeyPositionInScript=pubkeyPositionInScript;function pubkeyInScript(et,tt){return pubkeyPositionInScript(et,tt)!==-1}psbtutils.pubkeyInScript=pubkeyInScript;function checkInputForSig(et,tt){return extractPartialSigs(et).some(nt=>signatureBlocksAction(nt,bscript$1.signature.decode,tt))}psbtutils.checkInputForSig=checkInputForSig;function signatureBlocksAction(et,tt,rt){const{hashType:nt}=tt(et),it=[];switch(nt&transaction_1$2.Transaction.SIGHASH_ANYONECANPAY&&it.push("addInput"),nt&31){case transaction_1$2.Transaction.SIGHASH_ALL:break;case transaction_1$2.Transaction.SIGHASH_SINGLE:case transaction_1$2.Transaction.SIGHASH_NONE:it.push("addOutput"),it.push("setInputSequence");break}return it.indexOf(rt)===-1}psbtutils.signatureBlocksAction=signatureBlocksAction;function extractPartialSigs(et){let tt=[];if((et.partialSig||[]).length===0){if(!et.finalScriptSig&&!et.finalScriptWitness)return[];tt=getPsigsFromInputFinalScripts(et)}else tt=et.partialSig;return tt.map(rt=>rt.signature)}function getPsigsFromInputFinalScripts(et){const tt=et.finalScriptSig?bscript$1.decompile(et.finalScriptSig)||[]:[],rt=et.finalScriptWitness?bscript$1.decompile(et.finalScriptWitness)||[]:[];return tt.concat(rt).filter(nt=>Buffer.isBuffer(nt)&&bscript$1.isCanonicalScriptSignature(nt)).map(nt=>({signature:nt}))}Object.defineProperty(bip371,"__esModule",{value:!0});bip371.checkTaprootInputForSigs=bip371.tapTreeFromList=bip371.tapTreeToList=bip371.tweakInternalPubKey=bip371.checkTaprootOutputFields=bip371.checkTaprootInputFields=bip371.isTaprootOutput=bip371.isTaprootInput=bip371.serializeTaprootSignature=bip371.tapScriptFinalizer=bip371.toXOnly=void 0;const types_1=types$6,transaction_1$1=transaction,psbtutils_1$1=psbtutils,bip341_1$1=bip341,payments_1=payments$3,psbtutils_2=psbtutils,toXOnly=et=>et.length===32?et:et.slice(1,33);bip371.toXOnly=toXOnly;function tapScriptFinalizer(et,tt,rt){const nt=findTapLeafToFinalize(tt,et,rt);try{const st=sortSignatures(tt,nt).concat(nt.script).concat(nt.controlBlock);return{finalScriptWitness:(0,psbtutils_1$1.witnessStackToScriptWitness)(st)}}catch(it){throw new Error(`Can not finalize taproot input #${et}: ${it}`)}}bip371.tapScriptFinalizer=tapScriptFinalizer;function serializeTaprootSignature(et,tt){const rt=tt?Buffer.from([tt]):Buffer.from([]);return Buffer.concat([et,rt])}bip371.serializeTaprootSignature=serializeTaprootSignature;function isTaprootInput(et){return et&&!!(et.tapInternalKey||et.tapMerkleRoot||et.tapLeafScript&&et.tapLeafScript.length||et.tapBip32Derivation&&et.tapBip32Derivation.length||et.witnessUtxo&&(0,psbtutils_1$1.isP2TR)(et.witnessUtxo.script))}bip371.isTaprootInput=isTaprootInput;function isTaprootOutput(et,tt){return et&&!!(et.tapInternalKey||et.tapTree||et.tapBip32Derivation&&et.tapBip32Derivation.length||tt&&(0,psbtutils_1$1.isP2TR)(tt))}bip371.isTaprootOutput=isTaprootOutput;function checkTaprootInputFields(et,tt,rt){checkMixedTaprootAndNonTaprootInputFields(et,tt,rt),checkIfTapLeafInTree(et,tt,rt)}bip371.checkTaprootInputFields=checkTaprootInputFields;function checkTaprootOutputFields(et,tt,rt){checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt),checkTaprootScriptPubkey(et,tt)}bip371.checkTaprootOutputFields=checkTaprootOutputFields;function checkTaprootScriptPubkey(et,tt){if(!tt.tapTree&&!tt.tapInternalKey)return;const rt=tt.tapInternalKey||et.tapInternalKey,nt=tt.tapTree||et.tapTree;if(rt){const{script:it}=et,st=getTaprootScripPubkey(rt,nt);if(it&&!it.equals(st))throw new Error("Error adding output. Script or address missmatch.")}}function getTaprootScripPubkey(et,tt){const rt=tt&&tapTreeFromList(tt.leaves),{output:nt}=(0,payments_1.p2tr)({internalPubkey:et,scriptTree:rt});return nt}function tweakInternalPubKey(et,tt){const rt=tt.tapInternalKey,nt=rt&&(0,bip341_1$1.tweakKey)(rt,tt.tapMerkleRoot);if(!nt)throw new Error(`Cannot tweak tap internal key for input #${et}. Public key: ${rt&&rt.toString("hex")}`);return nt.x}bip371.tweakInternalPubKey=tweakInternalPubKey;function tapTreeToList(et){if(!(0,types_1.isTaptree)(et))throw new Error("Cannot convert taptree to tapleaf list. Expecting a tapree structure.");return _tapTreeToList(et)}bip371.tapTreeToList=tapTreeToList;function tapTreeFromList(et=[]){return et.length===1&&et[0].depth===0?{output:et[0].script,version:et[0].leafVersion}:instertLeavesInTree(et)}bip371.tapTreeFromList=tapTreeFromList;function checkTaprootInputForSigs(et,tt){return extractTaprootSigs(et).some(nt=>(0,psbtutils_2.signatureBlocksAction)(nt,decodeSchnorrSignature,tt))}bip371.checkTaprootInputForSigs=checkTaprootInputForSigs;function decodeSchnorrSignature(et){return{signature:et.slice(0,64),hashType:et.slice(64)[0]||transaction_1$1.Transaction.SIGHASH_DEFAULT}}function extractTaprootSigs(et){const tt=[];if(et.tapKeySig&&tt.push(et.tapKeySig),et.tapScriptSig&&tt.push(...et.tapScriptSig.map(rt=>rt.signature)),!tt.length){const rt=getTapKeySigFromWithness(et.finalScriptWitness);rt&&tt.push(rt)}return tt}function getTapKeySigFromWithness(et){if(!et)return;const tt=et.slice(2);if(tt.length===64||tt.length===65)return tt}function _tapTreeToList(et,tt=[],rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");return et?(0,types_1.isTapleaf)(et)?(tt.push({depth:rt,leafVersion:et.version||bip341_1$1.LEAF_VERSION_TAPSCRIPT,script:et.output}),tt):(et[0]&&_tapTreeToList(et[0],tt,rt+1),et[1]&&_tapTreeToList(et[1],tt,rt+1),tt):[]}function instertLeavesInTree(et){let tt;for(const rt of et)if(tt=instertLeafInTree(rt,tt),!tt)throw new Error("No room left to insert tapleaf in tree");return tt}function instertLeafInTree(et,tt,rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");if(et.depth===rt)return tt?void 0:{output:et.script,version:et.leafVersion};if((0,types_1.isTapleaf)(tt))return;const nt=instertLeafInTree(et,tt&&tt[0],rt+1);if(nt)return[nt,tt&&tt[1]];const it=instertLeafInTree(et,tt&&tt[1],rt+1);if(it)return[tt&&tt[0],it]}function checkMixedTaprootAndNonTaprootInputFields(et,tt,rt){const nt=isTaprootInput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootInput(tt),st=et===tt&&isTaprootInput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt){const nt=isTaprootOutput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootOutput(tt),st=et===tt&&isTaprootOutput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkIfTapLeafInTree(et,tt,rt){if(tt.tapMerkleRoot){const nt=(tt.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot)),it=(et.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot));if(!nt||!it)throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}else if(et.tapMerkleRoot&&!(tt.tapLeafScript||[]).every(it=>isTapLeafInTree(it,et.tapMerkleRoot)))throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}function isTapLeafInTree(et,tt){if(!tt)return!0;const rt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(0,bip341_1$1.rootHashFromPath)(et.controlBlock,rt).equals(tt)}function sortSignatures(et,tt){const rt=(0,bip341_1$1.tapleafHash)({output:tt.script,version:tt.leafVersion});return(et.tapScriptSig||[]).filter(nt=>nt.leafHash.equals(rt)).map(nt=>addPubkeyPositionInScript(tt.script,nt)).sort((nt,it)=>it.positionInScript-nt.positionInScript).map(nt=>nt.signature)}function addPubkeyPositionInScript(et,tt){return Object.assign({positionInScript:(0,psbtutils_1$1.pubkeyPositionInScript)(tt.pubkey,et)},tt)}function findTapLeafToFinalize(et,tt,rt){if(!et.tapScriptSig||!et.tapScriptSig.length)throw new Error(`Can not finalize taproot input #${tt}. No tapleaf script signature provided.`);const nt=(et.tapLeafScript||[]).sort((it,st)=>it.controlBlock.length-st.controlBlock.length).find(it=>canFinalizeLeaf(it,et.tapScriptSig,rt));if(!nt)throw new Error(`Can not finalize taproot input #${tt}. Signature for tapleaf script not found.`);return nt}function canFinalizeLeaf(et,tt,rt){const nt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(!rt||rt.equals(nt))&&tt.find(st=>st.leafHash.equals(nt))!==void 0}function hasNonTaprootFields(et){return et&&!!(et.redeemScript||et.witnessScript||et.bip32Derivation&&et.bip32Derivation.length)}Object.defineProperty(psbt$1,"__esModule",{value:!0});psbt$1.Psbt=void 0;const bip174_1=psbt,varuint=varint,utils_1=utils,address_1=address,bufferutils_1=bufferutils,networks_1=networks$1,payments=payments$3,bip341_1=bip341,bscript=script,transaction_1=transaction,bip371_1=bip371,psbtutils_1=psbtutils,DEFAULT_OPTS={network:networks_1.bitcoin,maximumFeeRate:5e3};class Psbt{static fromBase64(tt,rt={}){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt={}){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt={}){const nt=bip174_1.Psbt.fromBuffer(tt,transactionFromBuffer),it=new Psbt(rt,nt);return checkTxForDupeIns(it.__CACHE.__TX,it.__CACHE),it}constructor(tt={},rt=new bip174_1.Psbt(new PsbtTransaction)){this.data=rt,this.opts=Object.assign({},DEFAULT_OPTS,tt),this.__CACHE={__NON_WITNESS_UTXO_TX_CACHE:[],__NON_WITNESS_UTXO_BUF_CACHE:[],__TX_IN_CACHE:{},__TX:this.data.globalMap.unsignedTx.tx,__UNSAFE_SIGN_NONSEGWIT:!1},this.data.inputs.length===0&&this.setVersion(2);const nt=(it,st,at,ot)=>Object.defineProperty(it,st,{enumerable:at,writable:ot});nt(this,"__CACHE",!1,!0),nt(this,"opts",!1,!0)}get inputCount(){return this.data.inputs.length}get version(){return this.__CACHE.__TX.version}set version(tt){this.setVersion(tt)}get locktime(){return this.__CACHE.__TX.locktime}set locktime(tt){this.setLocktime(tt)}get txInputs(){return this.__CACHE.__TX.ins.map(tt=>({hash:(0,bufferutils_1.cloneBuffer)(tt.hash),index:tt.index,sequence:tt.sequence}))}get txOutputs(){return this.__CACHE.__TX.outs.map(tt=>{let rt;try{rt=(0,address_1.fromOutputScript)(tt.script,this.opts.network)}catch{}return{script:(0,bufferutils_1.cloneBuffer)(tt.script),value:tt.value,address:rt}})}combine(...tt){return this.data.combine(...tt.map(rt=>rt.data)),this}clone(){const tt=Psbt.fromBuffer(this.data.toBuffer());return tt.opts=JSON.parse(JSON.stringify(this.opts)),tt}setMaximumFeeRate(tt){check32Bit(tt),this.opts.maximumFeeRate=tt}setVersion(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setVersion");const rt=this.__CACHE;return rt.__TX.version=tt,rt.__EXTRACTED_TX=void 0,this}setLocktime(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setLocktime");const rt=this.__CACHE;return rt.__TX.locktime=tt,rt.__EXTRACTED_TX=void 0,this}setInputSequence(tt,rt){check32Bit(rt),checkInputsForPartialSig(this.data.inputs,"setInputSequence");const nt=this.__CACHE;if(nt.__TX.ins.length<=tt)throw new Error("Input index too high");return nt.__TX.ins[tt].sequence=rt,nt.__EXTRACTED_TX=void 0,this}addInputs(tt){return tt.forEach(rt=>this.addInput(rt)),this}addInput(tt){if(arguments.length>1||!tt||tt.hash===void 0||tt.index===void 0)throw new Error("Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]");(0,bip371_1.checkTaprootInputFields)(tt,tt,"addInput"),checkInputsForPartialSig(this.data.inputs,"addInput"),tt.witnessScript&&checkInvalidP2WSH(tt.witnessScript);const rt=this.__CACHE;this.data.addInput(tt);const nt=rt.__TX.ins[rt.__TX.ins.length-1];checkTxInputCache(rt,nt);const it=this.data.inputs.length-1,st=this.data.inputs[it];return st.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,st,it),rt.__FEE=void 0,rt.__FEE_RATE=void 0,rt.__EXTRACTED_TX=void 0,this}addOutputs(tt){return tt.forEach(rt=>this.addOutput(rt)),this}addOutput(tt){if(arguments.length>1||!tt||tt.value===void 0||tt.address===void 0&&tt.script===void 0)throw new Error("Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]");checkInputsForPartialSig(this.data.inputs,"addOutput");const{address:rt}=tt;if(typeof rt=="string"){const{network:it}=this.opts,st=(0,address_1.toOutputScript)(rt,it);tt=Object.assign(tt,{script:st})}(0,bip371_1.checkTaprootOutputFields)(tt,tt,"addOutput");const nt=this.__CACHE;return this.data.addOutput(tt),nt.__FEE=void 0,nt.__FEE_RATE=void 0,nt.__EXTRACTED_TX=void 0,this}extractTransaction(tt){if(!this.data.inputs.every(isFinalized))throw new Error("Not finalized");const rt=this.__CACHE;if(tt||checkFees(this,rt,this.opts),rt.__EXTRACTED_TX)return rt.__EXTRACTED_TX;const nt=rt.__TX.clone();return inputFinalizeGetAmts(this.data.inputs,nt,rt,!0),nt}getFeeRate(){return getTxCacheValue("__FEE_RATE","fee rate",this.data.inputs,this.__CACHE)}getFee(){return getTxCacheValue("__FEE","fee",this.data.inputs,this.__CACHE)}finalizeAllInputs(){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).forEach(tt=>this.finalizeInput(tt)),this}finalizeInput(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(nt)?this._finalizeTaprootInput(tt,nt,void 0,rt):this._finalizeInput(tt,nt,rt)}finalizeTaprootInput(tt,rt,nt=bip371_1.tapScriptFinalizer){const it=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(it))return this._finalizeTaprootInput(tt,it,rt,nt);throw new Error(`Cannot finalize input #${tt}. Not Taproot.`)}_finalizeInput(tt,rt,nt=getFinalScripts){const{script:it,isP2SH:st,isP2WSH:at,isSegwit:ot}=getScriptFromInput(tt,rt,this.__CACHE);if(!it)throw new Error(`No script found for input #${tt}`);checkPartialSigSighashes(rt);const{finalScriptSig:lt,finalScriptWitness:ut}=nt(tt,rt,it,ot,st,at);if(lt&&this.data.updateInput(tt,{finalScriptSig:lt}),ut&&this.data.updateInput(tt,{finalScriptWitness:ut}),!lt&&!ut)throw new Error(`Unknown error finalizing input #${tt}`);return this.data.clearFinalizedInput(tt),this}_finalizeTaprootInput(tt,rt,nt,it=bip371_1.tapScriptFinalizer){if(!rt.witnessUtxo)throw new Error(`Cannot finalize input #${tt}. Missing withness utxo.`);if(rt.tapKeySig){const st=payments.p2tr({output:rt.witnessUtxo.script,signature:rt.tapKeySig}),at=(0,psbtutils_1.witnessStackToScriptWitness)(st.witness);this.data.updateInput(tt,{finalScriptWitness:at})}else{const{finalScriptWitness:st}=it(tt,rt,nt);this.data.updateInput(tt,{finalScriptWitness:st})}return this.data.clearFinalizedInput(tt),this}getInputType(tt){const rt=(0,utils_1.checkForInput)(this.data.inputs,tt),nt=getScriptFromUtxo(tt,rt,this.__CACHE),it=getMeaningfulScript(nt,tt,"input",rt.redeemScript||redeemFromFinalScriptSig(rt.finalScriptSig),rt.witnessScript||redeemFromFinalWitnessScript(rt.finalScriptWitness)),st=it.type==="raw"?"":it.type+"-",at=classifyScript(it.meaningfulScript);return st+at}inputHasPubkey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return pubkeyInInput(rt,nt,tt,this.__CACHE)}inputHasHDKey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}outputHasPubkey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt);return pubkeyInOutput(rt,nt,tt,this.__CACHE)}outputHasHDKey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}validateSignaturesOfAllInputs(tt){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).map(nt=>this.validateSignaturesOfInput(nt,tt)).reduce((nt,it)=>it===!0&&nt,!0)}validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt];return(0,bip371_1.isTaprootInput)(it)?this.validateSignaturesOfTaprootInput(tt,rt,nt):this._validateSignaturesOfInput(tt,rt,nt)}_validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).partialSig;if(!it||!st||st.length<1)throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");const at=nt?st.filter(bt=>bt.pubkey.equals(nt)):st;if(at.length<1)throw new Error("No signatures for this pubkey");const ot=[];let lt,ut,dt;for(const bt of at){const gt=bscript.signature.decode(bt.signature),{hash:kt,script:pt}=dt!==gt.hashType?getHashForSig(tt,Object.assign({},it,{sighashType:gt.hashType}),this.__CACHE,!0):{hash:lt,script:ut};dt=gt.hashType,lt=kt,ut=pt,checkScriptForPubkey(bt.pubkey,pt,"verify"),ot.push(rt(bt.pubkey,kt,gt.signature))}return ot.every(bt=>bt===!0)}validateSignaturesOfTaprootInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).tapKeySig,at=(it||{}).tapScriptSig;if(!it&&!st&&!(at&&!at.length))throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");nt=nt&&(0,bip371_1.toXOnly)(nt);const ot=nt?getTaprootHashesForSig(tt,it,this.data.inputs,nt,this.__CACHE):getAllTaprootHashesForSig(tt,it,this.data.inputs,this.__CACHE);if(!ot.length)throw new Error("No signatures for this pubkey");const lt=ot.find(dt=>!dt.leafHash);let ut=0;if(st&<){if(!rt(lt.pubkey,lt.hash,trimTaprootSig(st)))return!1;ut++}if(at)for(const dt of at){const bt=ot.find(gt=>dt.pubkey.equals(gt.pubkey));if(bt){if(!rt(dt.pubkey,bt.hash,trimTaprootSig(dt.signature)))return!1;ut++}}return ut>0}signAllInputsHD(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){if(!tt||!tt.publicKey||!tt.fingerprint)throw new Error("Need HDSigner to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInputHD(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsHDAsync(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((nt,it)=>{if(!tt||!tt.publicKey||!tt.fingerprint)return it(new Error("Need HDSigner to sign input"));const st=[],at=[];for(const ot of range(this.data.inputs.length))at.push(this.signInputHDAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInputHD(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){if(!rt||!rt.publicKey||!rt.fingerprint)throw new Error("Need HDSigner to sign input");return getSignersFromHD(tt,this.data.inputs,rt).forEach(st=>this.signInput(tt,st,nt)),this}signInputHDAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((it,st)=>{if(!rt||!rt.publicKey||!rt.fingerprint)return st(new Error("Need HDSigner to sign input"));const ot=getSignersFromHD(tt,this.data.inputs,rt).map(lt=>this.signInputAsync(tt,lt,nt));return Promise.all(ot).then(()=>{it()}).catch(st)})}signAllInputs(tt,rt){if(!tt||!tt.publicKey)throw new Error("Need Signer to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInput(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsAsync(tt,rt){return new Promise((nt,it)=>{if(!tt||!tt.publicKey)return it(new Error("Need Signer to sign input"));const st=[],at=[];for(const[ot]of this.data.inputs.entries())at.push(this.signInputAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInput(tt,rt,nt){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInput(tt,it,rt,void 0,nt):this._signInput(tt,rt,nt)}signTaprootInput(tt,rt,nt,it){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInput(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)}_signInput(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt),at=[{pubkey:rt.publicKey,signature:bscript.signature.encode(rt.sign(it),st)}];return this.data.updateInput(tt,{partialSig:at}),this}_signTaprootInput(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=at.filter(ut=>!ut.leafHash).map(ut=>(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType))[0],lt=at.filter(ut=>!!ut.leafHash).map(ut=>({pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType),leafHash:ut.leafHash}));return ot&&this.data.updateInput(tt,{tapKeySig:ot}),lt.length&&this.data.updateInput(tt,{tapScriptSig:lt}),this}signInputAsync(tt,rt,nt){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInputAsync(tt,it,rt,void 0,nt):this._signInputAsync(tt,rt,nt)})}signTaprootInputAsync(tt,rt,nt,it){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInputAsync(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)})}_signInputAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt);return Promise.resolve(rt.sign(it)).then(at=>{const ot=[{pubkey:rt.publicKey,signature:bscript.signature.encode(at,st)}];this.data.updateInput(tt,{partialSig:ot})})}async _signTaprootInputAsync(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=[],lt=at.filter(dt=>!dt.leafHash)[0];if(lt){const dt=Promise.resolve(nt.signSchnorr(lt.hash)).then(bt=>({tapKeySig:(0,bip371_1.serializeTaprootSignature)(bt,rt.sighashType)}));ot.push(dt)}const ut=at.filter(dt=>!!dt.leafHash);if(ut.length){const dt=ut.map(bt=>Promise.resolve(nt.signSchnorr(bt.hash)).then(gt=>({tapScriptSig:[{pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(gt,rt.sighashType),leafHash:bt.leafHash}]})));ot.push(...dt)}return Promise.all(ot).then(dt=>{dt.forEach(bt=>this.data.updateInput(tt,bt))})}checkTaprootHashesForSig(tt,rt,nt,it,st){if(typeof nt.signSchnorr!="function")throw new Error(`Need Schnorr Signer to sign taproot input #${tt}.`);const at=getTaprootHashesForSig(tt,rt,this.data.inputs,nt.publicKey,this.__CACHE,it,st);if(!at||!at.length)throw new Error(`Can not sign for input #${tt} with the key ${nt.publicKey.toString("hex")}`);return at}toBuffer(){return checkCache(this.__CACHE),this.data.toBuffer()}toHex(){return checkCache(this.__CACHE),this.data.toHex()}toBase64(){return checkCache(this.__CACHE),this.data.toBase64()}updateGlobal(tt){return this.data.updateGlobal(tt),this}updateInput(tt,rt){return rt.witnessScript&&checkInvalidP2WSH(rt.witnessScript),(0,bip371_1.checkTaprootInputFields)(this.data.inputs[tt],rt,"updateInput"),this.data.updateInput(tt,rt),rt.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,this.data.inputs[tt],tt),this}updateOutput(tt,rt){const nt=this.data.outputs[tt];return(0,bip371_1.checkTaprootOutputFields)(nt,rt,"updateOutput"),this.data.updateOutput(tt,rt),this}addUnknownKeyValToGlobal(tt){return this.data.addUnknownKeyValToGlobal(tt),this}addUnknownKeyValToInput(tt,rt){return this.data.addUnknownKeyValToInput(tt,rt),this}addUnknownKeyValToOutput(tt,rt){return this.data.addUnknownKeyValToOutput(tt,rt),this}clearFinalizedInput(tt){return this.data.clearFinalizedInput(tt),this}}psbt$1.Psbt=Psbt;const transactionFromBuffer=et=>new PsbtTransaction(et);class PsbtTransaction{constructor(tt=Buffer.from([2,0,0,0,0,0,0,0,0,0])){this.tx=transaction_1.Transaction.fromBuffer(tt),checkTxEmpty(this.tx),Object.defineProperty(this,"tx",{enumerable:!1,writable:!0})}getInputOutputCounts(){return{inputCount:this.tx.ins.length,outputCount:this.tx.outs.length}}addInput(tt){if(tt.hash===void 0||tt.index===void 0||!Buffer.isBuffer(tt.hash)&&typeof tt.hash!="string"||typeof tt.index!="number")throw new Error("Error adding input.");const rt=typeof tt.hash=="string"?(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash,"hex")):tt.hash;this.tx.addInput(rt,tt.index,tt.sequence)}addOutput(tt){if(tt.script===void 0||tt.value===void 0||!Buffer.isBuffer(tt.script)||typeof tt.value!="number")throw new Error("Error adding output.");this.tx.addOutput(tt.script,tt.value)}toBuffer(){return this.tx.toBuffer()}}function canFinalize(et,tt,rt){switch(rt){case"pubkey":case"pubkeyhash":case"witnesspubkeyhash":return hasSigs(1,et.partialSig);case"multisig":const nt=payments.p2ms({output:tt});return hasSigs(nt.m,et.partialSig,nt.pubkeys);default:return!1}}function checkCache(et){if(et.__UNSAFE_SIGN_NONSEGWIT!==!1)throw new Error("Not BIP174 compliant, can not export")}function hasSigs(et,tt,rt){if(!tt)return!1;let nt;if(rt?nt=rt.map(it=>{const st=compressPubkey(it);return tt.find(at=>at.pubkey.equals(st))}).filter(it=>!!it):nt=tt,nt.length>et)throw new Error("Too many signatures");return nt.length===et}function isFinalized(et){return!!et.finalScriptSig||!!et.finalScriptWitness}function bip32DerivationIsMine(et){return tt=>!(!tt.masterFingerprint.equals(et.fingerprint)||!et.derivePath(tt.path).publicKey.equals(tt.pubkey))}function check32Bit(et){if(typeof et!="number"||et!==Math.floor(et)||et>4294967295||et<0)throw new Error("Invalid 32 bit integer")}function checkFees(et,tt,rt){const nt=tt.__FEE_RATE||et.getFeeRate(),it=tt.__EXTRACTED_TX.virtualSize(),st=nt*it;if(nt>=rt.maximumFeeRate)throw new Error(`Warning: You are paying around ${(st/1e8).toFixed(8)} in fees, which is ${nt} satoshi per byte for a transaction with a VSize of ${it} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`)}function checkInputsForPartialSig(et,tt){et.forEach(rt=>{if((0,bip371_1.isTaprootInput)(rt)?(0,bip371_1.checkTaprootInputForSigs)(rt,tt):(0,psbtutils_1.checkInputForSig)(rt,tt))throw new Error("Can not modify transaction, signatures exist.")})}function checkPartialSigSighashes(et){if(!et.sighashType||!et.partialSig)return;const{partialSig:tt,sighashType:rt}=et;tt.forEach(nt=>{const{hashType:it}=bscript.signature.decode(nt.signature);if(rt!==it)throw new Error("Signature sighash does not match input sighash type")})}function checkScriptForPubkey(et,tt,rt){if(!(0,psbtutils_1.pubkeyInScript)(et,tt))throw new Error(`Can not ${rt} for this input with the key ${et.toString("hex")}`)}function checkTxEmpty(et){if(!et.ins.every(rt=>rt.script&&rt.script.length===0&&rt.witness&&rt.witness.length===0))throw new Error("Format Error: Transaction ScriptSigs are not empty")}function checkTxForDupeIns(et,tt){et.ins.forEach(rt=>{checkTxInputCache(tt,rt)})}function checkTxInputCache(et,tt){const rt=(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash)).toString("hex")+":"+tt.index;if(et.__TX_IN_CACHE[rt])throw new Error("Duplicate input detected.");et.__TX_IN_CACHE[rt]=1}function scriptCheckerFactory(et,tt){return(rt,nt,it,st)=>{const at=et({redeem:{output:it}}).output;if(!nt.equals(at))throw new Error(`${tt} for ${st} #${rt} doesn't match the scriptPubKey in the prevout`)}}const checkRedeemScript=scriptCheckerFactory(payments.p2sh,"Redeem script"),checkWitnessScript=scriptCheckerFactory(payments.p2wsh,"Witness script");function getTxCacheValue(et,tt,rt,nt){if(!rt.every(isFinalized))throw new Error(`PSBT must be finalized to calculate ${tt}`);if(et==="__FEE_RATE"&&nt.__FEE_RATE)return nt.__FEE_RATE;if(et==="__FEE"&&nt.__FEE)return nt.__FEE;let it,st=!0;if(nt.__EXTRACTED_TX?(it=nt.__EXTRACTED_TX,st=!1):it=nt.__TX.clone(),inputFinalizeGetAmts(rt,it,nt,st),et==="__FEE_RATE")return nt.__FEE_RATE;if(et==="__FEE")return nt.__FEE}function getFinalScripts(et,tt,rt,nt,it,st){const at=classifyScript(rt);if(!canFinalize(tt,rt,at))throw new Error(`Can not finalize input #${et}`);return prepareFinalScripts(rt,at,tt.partialSig,nt,it,st)}function prepareFinalScripts(et,tt,rt,nt,it,st){let at,ot;const lt=getPayment(et,tt,rt),ut=st?payments.p2wsh({redeem:lt}):null,dt=it?payments.p2sh({redeem:ut||lt}):null;return nt?(ut?ot=(0,psbtutils_1.witnessStackToScriptWitness)(ut.witness):ot=(0,psbtutils_1.witnessStackToScriptWitness)(lt.witness),dt&&(at=dt.input)):dt?at=dt.input:at=lt.input,{finalScriptSig:at,finalScriptWitness:ot}}function getHashAndSighashType(et,tt,rt,nt,it){const st=(0,utils_1.checkForInput)(et,tt),{hash:at,sighashType:ot,script:lt}=getHashForSig(tt,st,nt,!1,it);return checkScriptForPubkey(rt,lt,"sign"),{hash:at,sighashType:ot}}function getHashForSig(et,tt,rt,nt,it){const st=rt.__TX,at=tt.sighashType||transaction_1.Transaction.SIGHASH_ALL;checkSighashTypeAllowed(at,it);let ot,lt;if(tt.nonWitnessUtxo){const bt=nonWitnessUtxoTxFromCache(rt,tt,et),gt=st.ins[et].hash,kt=bt.getHash();if(!gt.equals(kt))throw new Error(`Non-witness UTXO hash for input #${et} doesn't match the hash specified in the prevout`);const pt=st.ins[et].index;lt=bt.outs[pt]}else if(tt.witnessUtxo)lt=tt.witnessUtxo;else throw new Error("Need a Utxo input item for signing");const{meaningfulScript:ut,type:dt}=getMeaningfulScript(lt.script,et,"input",tt.redeemScript,tt.witnessScript);if(["p2sh-p2wsh","p2wsh"].indexOf(dt)>=0)ot=st.hashForWitnessV0(et,ut,lt.value,at);else if((0,psbtutils_1.isP2WPKH)(ut)){const bt=payments.p2pkh({hash:ut.slice(2)}).output;ot=st.hashForWitnessV0(et,bt,lt.value,at)}else{if(tt.nonWitnessUtxo===void 0&&rt.__UNSAFE_SIGN_NONSEGWIT===!1)throw new Error(`Input #${et} has witnessUtxo but non-segwit script: ${ut.toString("hex")}`);!nt&&rt.__UNSAFE_SIGN_NONSEGWIT!==!1&&console.warn(`Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as Psbt's predecesor (TransactionBuilder - now removed) when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant. +`,bech32:"tb",bip32:{public:70617039,private:70615956},pubKeyHash:111,scriptHash:196,wif:239};var payments$3={},embed={},script={},bip66$1={};Object.defineProperty(bip66$1,"__esModule",{value:!0});bip66$1.encode=bip66$1.decode=bip66$1.check=void 0;function check$d(et){if(et.length<8||et.length>72||et[0]!==48||et[1]!==et.length-2||et[2]!==2)return!1;const tt=et[3];if(tt===0||5+tt>=et.length||et[4+tt]!==2)return!1;const rt=et[5+tt];return!(rt===0||6+tt+rt!==et.length||et[4]&128||tt>1&&et[4]===0&&!(et[5]&128)||et[tt+6]&128||rt>1&&et[tt+6]===0&&!(et[tt+7]&128))}bip66$1.check=check$d;function decode$m(et){if(et.length<8)throw new Error("DER sequence length is too short");if(et.length>72)throw new Error("DER sequence length is too long");if(et[0]!==48)throw new Error("Expected DER sequence");if(et[1]!==et.length-2)throw new Error("DER sequence length is invalid");if(et[2]!==2)throw new Error("Expected DER integer");const tt=et[3];if(tt===0)throw new Error("R length is zero");if(5+tt>=et.length)throw new Error("R length is too long");if(et[4+tt]!==2)throw new Error("Expected DER integer (2)");const rt=et[5+tt];if(rt===0)throw new Error("S length is zero");if(6+tt+rt!==et.length)throw new Error("S length is invalid");if(et[4]&128)throw new Error("R value is negative");if(tt>1&&et[4]===0&&!(et[5]&128))throw new Error("R value excessively padded");if(et[tt+6]&128)throw new Error("S value is negative");if(rt>1&&et[tt+6]===0&&!(et[tt+7]&128))throw new Error("S value excessively padded");return{r:et.slice(4,4+tt),s:et.slice(6+tt)}}bip66$1.decode=decode$m;function encode$n(et,tt){const rt=et.length,nt=tt.length;if(rt===0)throw new Error("R length is zero");if(nt===0)throw new Error("S length is zero");if(rt>33)throw new Error("R length is too long");if(nt>33)throw new Error("S length is too long");if(et[0]&128)throw new Error("R value is negative");if(tt[0]&128)throw new Error("S value is negative");if(rt>1&&et[0]===0&&!(et[1]&128))throw new Error("R value excessively padded");if(nt>1&&tt[0]===0&&!(tt[1]&128))throw new Error("S value excessively padded");const it=Buffer.allocUnsafe(6+rt+nt);return it[0]=48,it[1]=it.length-2,it[2]=2,it[3]=et.length,et.copy(it,4),it[4+rt]=2,it[5+rt]=tt.length,tt.copy(it,6+rt),it}bip66$1.encode=encode$n;var ops={};Object.defineProperty(ops,"__esModule",{value:!0});ops.REVERSE_OPS=ops.OPS=void 0;const OPS$8={OP_FALSE:0,OP_0:0,OP_PUSHDATA1:76,OP_PUSHDATA2:77,OP_PUSHDATA4:78,OP_1NEGATE:79,OP_RESERVED:80,OP_TRUE:81,OP_1:81,OP_2:82,OP_3:83,OP_4:84,OP_5:85,OP_6:86,OP_7:87,OP_8:88,OP_9:89,OP_10:90,OP_11:91,OP_12:92,OP_13:93,OP_14:94,OP_15:95,OP_16:96,OP_NOP:97,OP_VER:98,OP_IF:99,OP_NOTIF:100,OP_VERIF:101,OP_VERNOTIF:102,OP_ELSE:103,OP_ENDIF:104,OP_VERIFY:105,OP_RETURN:106,OP_TOALTSTACK:107,OP_FROMALTSTACK:108,OP_2DROP:109,OP_2DUP:110,OP_3DUP:111,OP_2OVER:112,OP_2ROT:113,OP_2SWAP:114,OP_IFDUP:115,OP_DEPTH:116,OP_DROP:117,OP_DUP:118,OP_NIP:119,OP_OVER:120,OP_PICK:121,OP_ROLL:122,OP_ROT:123,OP_SWAP:124,OP_TUCK:125,OP_CAT:126,OP_SUBSTR:127,OP_LEFT:128,OP_RIGHT:129,OP_SIZE:130,OP_INVERT:131,OP_AND:132,OP_OR:133,OP_XOR:134,OP_EQUAL:135,OP_EQUALVERIFY:136,OP_RESERVED1:137,OP_RESERVED2:138,OP_1ADD:139,OP_1SUB:140,OP_2MUL:141,OP_2DIV:142,OP_NEGATE:143,OP_ABS:144,OP_NOT:145,OP_0NOTEQUAL:146,OP_ADD:147,OP_SUB:148,OP_MUL:149,OP_DIV:150,OP_MOD:151,OP_LSHIFT:152,OP_RSHIFT:153,OP_BOOLAND:154,OP_BOOLOR:155,OP_NUMEQUAL:156,OP_NUMEQUALVERIFY:157,OP_NUMNOTEQUAL:158,OP_LESSTHAN:159,OP_GREATERTHAN:160,OP_LESSTHANOREQUAL:161,OP_GREATERTHANOREQUAL:162,OP_MIN:163,OP_MAX:164,OP_WITHIN:165,OP_RIPEMD160:166,OP_SHA1:167,OP_SHA256:168,OP_HASH160:169,OP_HASH256:170,OP_CODESEPARATOR:171,OP_CHECKSIG:172,OP_CHECKSIGVERIFY:173,OP_CHECKMULTISIG:174,OP_CHECKMULTISIGVERIFY:175,OP_NOP1:176,OP_NOP2:177,OP_CHECKLOCKTIMEVERIFY:177,OP_NOP3:178,OP_CHECKSEQUENCEVERIFY:178,OP_NOP4:179,OP_NOP5:180,OP_NOP6:181,OP_NOP7:182,OP_NOP8:183,OP_NOP9:184,OP_NOP10:185,OP_CHECKSIGADD:186,OP_PUBKEYHASH:253,OP_PUBKEY:254,OP_INVALIDOPCODE:255};ops.OPS=OPS$8;const REVERSE_OPS={};ops.REVERSE_OPS=REVERSE_OPS;for(const et of Object.keys(OPS$8)){const tt=OPS$8[et];REVERSE_OPS[tt]=et}var push_data={};Object.defineProperty(push_data,"__esModule",{value:!0});push_data.decode=push_data.encode=push_data.encodingLength=void 0;const ops_1=ops;function encodingLength$2(et){return etet.length)return null;nt=et.readUInt8(tt+1),it=2}else if(rt===ops_1.OPS.OP_PUSHDATA2){if(tt+3>et.length)return null;nt=et.readUInt16LE(tt+1),it=3}else{if(tt+5>et.length)return null;if(rt!==ops_1.OPS.OP_PUSHDATA4)throw new Error("Unexpected opcode");nt=et.readUInt32LE(tt+1),it=5}return{opcode:rt,number:nt,size:it}}push_data.decode=decode$l;var script_number={};Object.defineProperty(script_number,"__esModule",{value:!0});script_number.encode=script_number.decode=void 0;function decode$k(et,tt,rt){tt=tt||4,rt=rt===void 0?!0:rt;const nt=et.length;if(nt===0)return 0;if(nt>tt)throw new TypeError("Script number overflow");if(rt&&!(et[nt-1]&127)&&(nt<=1||!(et[nt-2]&128)))throw new Error("Non-minimally encoded script number");if(nt===5){const st=et.readUInt32LE(0),at=et.readUInt8(4);return at&128?-((at&-129)*4294967296+st):at*4294967296+st}let it=0;for(let st=0;st2147483647?5:et>8388607?4:et>32767?3:et>127?2:et>0?1:0}function encode$l(et){let tt=Math.abs(et);const rt=scriptNumSize(tt),nt=Buffer.allocUnsafe(rt),it=et<0;for(let st=0;st>=8;return nt[rt-1]&128?nt.writeUInt8(it?128:0,rt-1):it&&(nt[rt-1]|=128),nt}script_number.encode=encode$l;var script_signature={},types$6={},types$5={Array:function(et){return et!=null&&et.constructor===Array},Boolean:function(et){return typeof et=="boolean"},Function:function(et){return typeof et=="function"},Nil:function(et){return et==null},Number:function(et){return typeof et=="number"},Object:function(et){return typeof et=="object"},String:function(et){return typeof et=="string"},"":function(){return!0}};types$5.Null=types$5.Nil;for(var typeName$1 in types$5)types$5[typeName$1].toJSON=(function(et){return et}).bind(null,typeName$1);var native$1=types$5,native=native$1;function getTypeName(et){return et.name||et.toString().match(/function (.*?)\s*\(/)[1]}function getValueTypeName$1(et){return native.Nil(et)?"":getTypeName(et.constructor)}function getValue$3(et){return native.Function(et)?"":native.String(et)?JSON.stringify(et):et&&native.Object(et)?"":et}function captureStackTrace(et,tt){Error.captureStackTrace&&Error.captureStackTrace(et,tt)}function tfJSON$1(et){return native.Function(et)?et.toJSON?et.toJSON():getTypeName(et):native.Array(et)?"Array":et&&native.Object(et)?"Object":et!==void 0?et:""}function tfErrorString(et,tt,rt){var nt=getValue$3(tt);return"Expected "+tfJSON$1(et)+", got"+(rt!==""?" "+rt:"")+(nt!==""?" "+nt:"")}function TfTypeError$1(et,tt,rt){rt=rt||getValueTypeName$1(tt),this.message=tfErrorString(et,tt,rt),captureStackTrace(this,TfTypeError$1),this.__type=et,this.__value=tt,this.__valueTypeName=rt}TfTypeError$1.prototype=Object.create(Error.prototype);TfTypeError$1.prototype.constructor=TfTypeError$1;function tfPropertyErrorString(et,tt,rt,nt,it){var st='" of type ';return tt==="key"&&(st='" with key type '),tfErrorString('property "'+tfJSON$1(rt)+st+tfJSON$1(et),nt,it)}function TfPropertyTypeError$1(et,tt,rt,nt,it){et?(it=it||getValueTypeName$1(nt),this.message=tfPropertyErrorString(et,rt,tt,nt,it)):this.message='Unexpected property "'+tt+'"',captureStackTrace(this,TfTypeError$1),this.__label=rt,this.__property=tt,this.__type=et,this.__value=nt,this.__valueTypeName=it}TfPropertyTypeError$1.prototype=Object.create(Error.prototype);TfPropertyTypeError$1.prototype.constructor=TfTypeError$1;function tfCustomError(et,tt){return new TfTypeError$1(et,{},tt)}function tfSubError$1(et,tt,rt){return et instanceof TfPropertyTypeError$1?(tt=tt+"."+et.__property,et=new TfPropertyTypeError$1(et.__type,tt,et.__label,et.__value,et.__valueTypeName)):et instanceof TfTypeError$1&&(et=new TfPropertyTypeError$1(et.__type,tt,rt,et.__value,et.__valueTypeName)),captureStackTrace(et),et}var errors$1={TfTypeError:TfTypeError$1,TfPropertyTypeError:TfPropertyTypeError$1,tfCustomError,tfSubError:tfSubError$1,tfJSON:tfJSON$1,getValueTypeName:getValueTypeName$1},extra,hasRequiredExtra;function requireExtra(){if(hasRequiredExtra)return extra;hasRequiredExtra=1;var et=native$1,tt=errors$1;function rt(Lt){return Buffer.isBuffer(Lt)}function nt(Lt){return typeof Lt=="string"&&/^([0-9a-f]{2})+$/i.test(Lt)}function it(Lt,zt){var Vt=Lt.toJSON();function Wt(lr){if(!Lt(lr))return!1;if(lr.length===zt)return!0;throw tt.tfCustomError(Vt+"(Length: "+zt+")",Vt+"(Length: "+lr.length+")")}return Wt.toJSON=function(){return Vt},Wt}var st=it.bind(null,et.Array),at=it.bind(null,rt),ot=it.bind(null,nt),lt=it.bind(null,et.String);function ut(Lt,zt,Vt){Vt=Vt||et.Number;function Wt(lr,qt){return Vt(lr,qt)&&lr>Lt&&lr>24===Lt}function kt(Lt){return Lt<<16>>16===Lt}function pt(Lt){return(Lt|0)===Lt}function yt(Lt){return typeof Lt=="number"&&Lt>=-dt&&Lt<=dt&&Math.floor(Lt)===Lt}function $t(Lt){return(Lt&255)===Lt}function mt(Lt){return(Lt&65535)===Lt}function wt(Lt){return Lt>>>0===Lt}function St(Lt){return typeof Lt=="number"&&Lt>=0&&Lt<=dt&&Math.floor(Lt)===Lt}var Bt={ArrayN:st,Buffer:rt,BufferN:at,Finite:bt,Hex:nt,HexN:ot,Int8:gt,Int16:kt,Int32:pt,Int53:yt,Range:ut,StringN:lt,UInt8:$t,UInt16:mt,UInt32:wt,UInt53:St};for(var Ot in Bt)Bt[Ot].toJSON=(function(Lt){return Lt}).bind(null,Ot);return extra=Bt,extra}var ERRORS=errors$1,NATIVE=native$1,tfJSON=ERRORS.tfJSON,TfTypeError=ERRORS.TfTypeError,TfPropertyTypeError=ERRORS.TfPropertyTypeError,tfSubError=ERRORS.tfSubError,getValueTypeName=ERRORS.getValueTypeName,TYPES={arrayOf:function(tt,rt){tt=compile$1(tt),rt=rt||{};function nt(it,st){return!NATIVE.Array(it)||NATIVE.Nil(it)||rt.minLength!==void 0&&it.lengthrt.maxLength||rt.length!==void 0&&it.length!==rt.length?!1:it.every(function(at,ot){try{return typeforce$4(tt,at,st)}catch(lt){throw tfSubError(lt,ot)}})}return nt.toJSON=function(){var it="["+tfJSON(tt)+"]";return rt.length!==void 0?it+="{"+rt.length+"}":(rt.minLength!==void 0||rt.maxLength!==void 0)&&(it+="{"+(rt.minLength===void 0?0:rt.minLength)+","+(rt.maxLength===void 0?1/0:rt.maxLength)+"}"),it},nt},maybe:function et(tt){tt=compile$1(tt);function rt(nt,it){return NATIVE.Nil(nt)||tt(nt,it,et)}return rt.toJSON=function(){return"?"+tfJSON(tt)},rt},map:function(tt,rt){tt=compile$1(tt),rt&&(rt=compile$1(rt));function nt(it,st){if(!NATIVE.Object(it)||NATIVE.Nil(it))return!1;for(var at in it){try{rt&&typeforce$4(rt,at,st)}catch(lt){throw tfSubError(lt,at,"key")}try{var ot=it[at];typeforce$4(tt,ot,st)}catch(lt){throw tfSubError(lt,at)}}return!0}return rt?nt.toJSON=function(){return"{"+tfJSON(rt)+": "+tfJSON(tt)+"}"}:nt.toJSON=function(){return"{"+tfJSON(tt)+"}"},nt},object:function(tt){var rt={};for(var nt in tt)rt[nt]=compile$1(tt[nt]);function it(st,at){if(!NATIVE.Object(st)||NATIVE.Nil(st))return!1;var ot;try{for(ot in rt){var lt=rt[ot],ut=st[ot];typeforce$4(lt,ut,at)}}catch(dt){throw tfSubError(dt,ot)}if(at){for(ot in st)if(!rt[ot])throw new TfPropertyTypeError(void 0,ot)}return!0}return it.toJSON=function(){return tfJSON(rt)},it},anyOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.some(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join("|")},rt},allOf:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return tt.every(function(st){try{return typeforce$4(st,nt,it)}catch{return!1}})}return rt.toJSON=function(){return tt.map(tfJSON).join(" & ")},rt},quacksLike:function(tt){function rt(nt){return tt===getValueTypeName(nt)}return rt.toJSON=function(){return tt},rt},tuple:function(){var tt=[].slice.call(arguments).map(compile$1);function rt(nt,it){return NATIVE.Nil(nt)||NATIVE.Nil(nt.length)||it&&nt.length!==tt.length?!1:tt.every(function(st,at){try{return typeforce$4(st,nt[at],it)}catch(ot){throw tfSubError(ot,at)}})}return rt.toJSON=function(){return"("+tt.map(tfJSON).join(", ")+")"},rt},value:function(tt){function rt(nt){return nt===tt}return rt.toJSON=function(){return tt},rt}};TYPES.oneOf=TYPES.anyOf;function compile$1(et){if(NATIVE.String(et))return et[0]==="?"?TYPES.maybe(et.slice(1)):NATIVE[et]||TYPES.quacksLike(et);if(et&&NATIVE.Object(et)){if(NATIVE.Array(et)){if(et.length!==1)throw new TypeError("Expected compile() parameter of type Array of length 1");return TYPES.arrayOf(et[0])}return TYPES.object(et)}else if(NATIVE.Function(et))return et;return TYPES.value(et)}function typeforce$4(et,tt,rt,nt){if(NATIVE.Function(et)){if(et(tt,rt))return!0;throw new TfTypeError(nt||et,tt)}return typeforce$4(compile$1(et),tt,rt)}for(var typeName in NATIVE)typeforce$4[typeName]=NATIVE[typeName];for(typeName in TYPES)typeforce$4[typeName]=TYPES[typeName];var EXTRA=requireExtra();for(typeName in EXTRA)typeforce$4[typeName]=EXTRA[typeName];typeforce$4.compile=compile$1;typeforce$4.TfTypeError=TfTypeError;typeforce$4.TfPropertyTypeError=TfPropertyTypeError;var typeforce_1=typeforce$4;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.oneOf=et.Null=et.BufferN=et.Function=et.UInt32=et.UInt8=et.tuple=et.maybe=et.Hex=et.Buffer=et.String=et.Boolean=et.Array=et.Number=et.Hash256bit=et.Hash160bit=et.Buffer256bit=et.isTaptree=et.isTapleaf=et.TAPLEAF_VERSION_MASK=et.Network=et.ECPoint=et.Satoshi=et.Signer=et.BIP32Path=et.UInt31=et.isPoint=et.typeforce=void 0;const tt=buffer$2;et.typeforce=typeforce_1;const rt=tt.Buffer.alloc(32,0),nt=tt.Buffer.from("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f","hex");function it(kt){if(!tt.Buffer.isBuffer(kt)||kt.length<33)return!1;const pt=kt[0],yt=kt.slice(1,33);if(yt.compare(rt)===0||yt.compare(nt)>=0)return!1;if((pt===2||pt===3)&&kt.length===33)return!0;const $t=kt.slice(33);return $t.compare(rt)===0||$t.compare(nt)>=0?!1:pt===4&&kt.length===65}et.isPoint=it;const st=Math.pow(2,31)-1;function at(kt){return et.typeforce.UInt32(kt)&&kt<=st}et.UInt31=at;function ot(kt){return et.typeforce.String(kt)&&!!kt.match(/^(m\/)?(\d+'?\/)*\d+'?$/)}et.BIP32Path=ot,ot.toJSON=()=>"BIP32 derivation path";function lt(kt){return(et.typeforce.Buffer(kt.publicKey)||typeof kt.getPublicKey=="function")&&typeof kt.sign=="function"}et.Signer=lt;const ut=21*1e14;function dt(kt){return et.typeforce.UInt53(kt)&&kt<=ut}et.Satoshi=dt,et.ECPoint=et.typeforce.quacksLike("Point"),et.Network=et.typeforce.compile({messagePrefix:et.typeforce.oneOf(et.typeforce.Buffer,et.typeforce.String),bip32:{public:et.typeforce.UInt32,private:et.typeforce.UInt32},pubKeyHash:et.typeforce.UInt8,scriptHash:et.typeforce.UInt8,wif:et.typeforce.UInt8}),et.TAPLEAF_VERSION_MASK=254;function bt(kt){return!kt||!("output"in kt)||!tt.Buffer.isBuffer(kt.output)?!1:kt.version!==void 0?(kt.version&et.TAPLEAF_VERSION_MASK)===kt.version:!0}et.isTapleaf=bt;function gt(kt){return(0,et.Array)(kt)?kt.length!==2?!1:kt.every(pt=>gt(pt)):bt(kt)}et.isTaptree=gt,et.Buffer256bit=et.typeforce.BufferN(32),et.Hash160bit=et.typeforce.BufferN(20),et.Hash256bit=et.typeforce.BufferN(32),et.Number=et.typeforce.Number,et.Array=et.typeforce.Array,et.Boolean=et.typeforce.Boolean,et.String=et.typeforce.String,et.Buffer=et.typeforce.Buffer,et.Hex=et.typeforce.Hex,et.maybe=et.typeforce.maybe,et.tuple=et.typeforce.tuple,et.UInt8=et.typeforce.UInt8,et.UInt32=et.typeforce.UInt32,et.Function=et.typeforce.Function,et.BufferN=et.typeforce.BufferN,et.Null=et.typeforce.Null,et.oneOf=et.typeforce.oneOf})(types$6);Object.defineProperty(script_signature,"__esModule",{value:!0});script_signature.encode=script_signature.decode=void 0;const bip66=bip66$1,types$4=types$6,{typeforce:typeforce$3}=types$4,ZERO$1=Buffer.alloc(1,0);function toDER(et){let tt=0;for(;et[tt]===0;)++tt;return tt===et.length?ZERO$1:(et=et.slice(tt),et[0]&128?Buffer.concat([ZERO$1,et],1+et.length):et)}function fromDER(et){et[0]===0&&(et=et.slice(1));const tt=Buffer.alloc(32,0),rt=Math.max(0,32-et.length);return et.copy(tt,rt),tt}function decode$j(et){const tt=et.readUInt8(et.length-1),rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=bip66.decode(et.slice(0,-1)),it=fromDER(nt.r),st=fromDER(nt.s);return{signature:Buffer.concat([it,st],64),hashType:tt}}script_signature.decode=decode$j;function encode$k(et,tt){typeforce$3({signature:types$4.BufferN(64),hashType:types$4.UInt8},{signature:et,hashType:tt});const rt=tt&-129;if(rt<=0||rt>=4)throw new Error("Invalid hashType "+tt);const nt=Buffer.allocUnsafe(1);nt.writeUInt8(tt,0);const it=toDER(et.slice(0,32)),st=toDER(et.slice(32,64));return Buffer.concat([bip66.encode(it,st),nt])}script_signature.encode=encode$k;(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.signature=et.number=et.isCanonicalScriptSignature=et.isDefinedHashType=et.isCanonicalPubKey=et.toStack=et.fromASM=et.toASM=et.decompile=et.compile=et.countNonPushOnlyOPs=et.isPushOnly=et.OPS=void 0;const tt=bip66$1,rt=ops;Object.defineProperty(et,"OPS",{enumerable:!0,get:function(){return rt.OPS}});const nt=push_data,it=script_number,st=script_signature,at=types$6,{typeforce:ot}=at,lt=rt.OPS.OP_RESERVED;function ut(Wt){return at.Number(Wt)&&(Wt===rt.OPS.OP_0||Wt>=rt.OPS.OP_1&&Wt<=rt.OPS.OP_16||Wt===rt.OPS.OP_1NEGATE)}function dt(Wt){return at.Buffer(Wt)||ut(Wt)}function bt(Wt){return at.Array(Wt)&&Wt.every(dt)}et.isPushOnly=bt;function gt(Wt){return Wt.length-Wt.filter(dt).length}et.countNonPushOnlyOPs=gt;function kt(Wt){if(Wt.length===0)return rt.OPS.OP_0;if(Wt.length===1){if(Wt[0]>=1&&Wt[0]<=16)return lt+Wt[0];if(Wt[0]===129)return rt.OPS.OP_1NEGATE}}function pt(Wt){return Buffer.isBuffer(Wt)}function yt(Wt){return at.Array(Wt)}function $t(Wt){return Buffer.isBuffer(Wt)}function mt(Wt){if(pt(Wt))return Wt;ot(at.Array,Wt);const lr=Wt.reduce((Mt,ht)=>$t(ht)?ht.length===1&&kt(ht)!==void 0?Mt+1:Mt+nt.encodingLength(ht.length)+ht.length:Mt+1,0),qt=Buffer.allocUnsafe(lr);let Ft=0;if(Wt.forEach(Mt=>{if($t(Mt)){const ht=kt(Mt);if(ht!==void 0){qt.writeUInt8(ht,Ft),Ft+=1;return}Ft+=nt.encode(qt,Mt.length,Ft),Mt.copy(qt,Ft),Ft+=Mt.length}else qt.writeUInt8(Mt,Ft),Ft+=1}),Ft!==qt.length)throw new Error("Could not decode chunks");return qt}et.compile=mt;function wt(Wt){if(yt(Wt))return Wt;ot(at.Buffer,Wt);const lr=[];let qt=0;for(;qtrt.OPS.OP_0&&Ft<=rt.OPS.OP_PUSHDATA4){const Mt=nt.decode(Wt,qt);if(Mt===null||(qt+=Mt.size,qt+Mt.number>Wt.length))return null;const ht=Wt.slice(qt,qt+Mt.number);qt+=Mt.number;const Et=kt(ht);Et!==void 0?lr.push(Et):lr.push(ht)}else lr.push(Ft),qt+=1}return lr}et.decompile=wt;function St(Wt){return pt(Wt)&&(Wt=wt(Wt)),Wt.map(lr=>{if($t(lr)){const qt=kt(lr);if(qt===void 0)return lr.toString("hex");lr=qt}return rt.REVERSE_OPS[lr]}).join(" ")}et.toASM=St;function Bt(Wt){return ot(at.String,Wt),mt(Wt.split(" ").map(lr=>rt.OPS[lr]!==void 0?rt.OPS[lr]:(ot(at.Hex,lr),Buffer.from(lr,"hex"))))}et.fromASM=Bt;function Ot(Wt){return Wt=wt(Wt),ot(bt,Wt),Wt.map(lr=>$t(lr)?lr:lr===rt.OPS.OP_0?Buffer.allocUnsafe(0):it.encode(lr-lt))}et.toStack=Ot;function Lt(Wt){return at.isPoint(Wt)}et.isCanonicalPubKey=Lt;function zt(Wt){const lr=Wt&-129;return lr>0&&lr<4}et.isDefinedHashType=zt;function Vt(Wt){return!Buffer.isBuffer(Wt)||!zt(Wt[Wt.length-1])?!1:tt.check(Wt.slice(0,-1))}et.isCanonicalScriptSignature=Vt,et.number=it,et.signature=st})(script);var lazy$8={};Object.defineProperty(lazy$8,"__esModule",{value:!0});lazy$8.value=lazy$8.prop=void 0;function prop(et,tt,rt){Object.defineProperty(et,tt,{configurable:!0,enumerable:!0,get(){const nt=rt.call(this);return this[tt]=nt,nt},set(nt){Object.defineProperty(this,tt,{configurable:!0,enumerable:!0,value:nt,writable:!0})}})}lazy$8.prop=prop;function value$1(et){let tt;return()=>(tt!==void 0||(tt=et()),tt)}lazy$8.value=value$1;Object.defineProperty(embed,"__esModule",{value:!0});embed.p2data=void 0;const networks_1$8=networks$1,bscript$b=script,types_1$9=types$6,lazy$7=lazy$8,OPS$7=bscript$b.OPS;function stacksEqual$4(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2data(et,tt){if(!et.data&&!et.output)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$9.typeforce)({network:types_1$9.typeforce.maybe(types_1$9.typeforce.Object),output:types_1$9.typeforce.maybe(types_1$9.typeforce.Buffer),data:types_1$9.typeforce.maybe(types_1$9.typeforce.arrayOf(types_1$9.typeforce.Buffer))},et);const nt={name:"embed",network:et.network||networks_1$8.bitcoin};if(lazy$7.prop(nt,"output",()=>{if(et.data)return bscript$b.compile([OPS$7.OP_RETURN].concat(et.data))}),lazy$7.prop(nt,"data",()=>{if(et.output)return bscript$b.decompile(et.output).slice(1)}),tt.validate&&et.output){const it=bscript$b.decompile(et.output);if(it[0]!==OPS$7.OP_RETURN)throw new TypeError("Output is invalid");if(!it.slice(1).every(types_1$9.typeforce.Buffer))throw new TypeError("Output is invalid");if(et.data&&!stacksEqual$4(et.data,nt.data))throw new TypeError("Data mismatch")}return Object.assign(nt,et)}embed.p2data=p2data;var p2ms$1={};Object.defineProperty(p2ms$1,"__esModule",{value:!0});p2ms$1.p2ms=void 0;const networks_1$7=networks$1,bscript$a=script,types_1$8=types$6,lazy$6=lazy$8,OPS$6=bscript$a.OPS,OP_INT_BASE=OPS$6.OP_RESERVED;function stacksEqual$3(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2ms(et,tt){if(!et.input&&!et.output&&!(et.pubkeys&&et.m!==void 0)&&!et.signatures)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{});function rt(lt){return bscript$a.isCanonicalScriptSignature(lt)||(tt.allowIncomplete&<===OPS$6.OP_0)!==void 0}(0,types_1$8.typeforce)({network:types_1$8.typeforce.maybe(types_1$8.typeforce.Object),m:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),n:types_1$8.typeforce.maybe(types_1$8.typeforce.Number),output:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer),pubkeys:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(types_1$8.isPoint)),signatures:types_1$8.typeforce.maybe(types_1$8.typeforce.arrayOf(rt)),input:types_1$8.typeforce.maybe(types_1$8.typeforce.Buffer)},et);const it={network:et.network||networks_1$7.bitcoin};let st=[],at=!1;function ot(lt){at||(at=!0,st=bscript$a.decompile(lt),it.m=st[0]-OP_INT_BASE,it.n=st[st.length-2]-OP_INT_BASE,it.pubkeys=st.slice(1,-2))}if(lazy$6.prop(it,"output",()=>{if(et.m&&it.n&&et.pubkeys)return bscript$a.compile([].concat(OP_INT_BASE+et.m,et.pubkeys,OP_INT_BASE+it.n,OPS$6.OP_CHECKMULTISIG))}),lazy$6.prop(it,"m",()=>{if(it.output)return ot(it.output),it.m}),lazy$6.prop(it,"n",()=>{if(it.pubkeys)return it.pubkeys.length}),lazy$6.prop(it,"pubkeys",()=>{if(et.output)return ot(et.output),it.pubkeys}),lazy$6.prop(it,"signatures",()=>{if(et.input)return bscript$a.decompile(et.input).slice(1)}),lazy$6.prop(it,"input",()=>{if(et.signatures)return bscript$a.compile([OPS$6.OP_0].concat(et.signatures))}),lazy$6.prop(it,"witness",()=>{if(it.input)return[]}),lazy$6.prop(it,"name",()=>{if(!(!it.m||!it.n))return`p2ms(${it.m} of ${it.n})`}),tt.validate){if(et.output){if(ot(et.output),!types_1$8.typeforce.Number(st[0]))throw new TypeError("Output is invalid");if(!types_1$8.typeforce.Number(st[st.length-2]))throw new TypeError("Output is invalid");if(st[st.length-1]!==OPS$6.OP_CHECKMULTISIG)throw new TypeError("Output is invalid");if(it.m<=0||it.n>16||it.m>it.n||it.n!==st.length-3)throw new TypeError("Output is invalid");if(!it.pubkeys.every(lt=>(0,types_1$8.isPoint)(lt)))throw new TypeError("Output is invalid");if(et.m!==void 0&&et.m!==it.m)throw new TypeError("m mismatch");if(et.n!==void 0&&et.n!==it.n)throw new TypeError("n mismatch");if(et.pubkeys&&!stacksEqual$3(et.pubkeys,it.pubkeys))throw new TypeError("Pubkeys mismatch")}if(et.pubkeys){if(et.n!==void 0&&et.n!==et.pubkeys.length)throw new TypeError("Pubkey count mismatch");if(it.n=et.pubkeys.length,it.nit.m)throw new TypeError("Too many signatures provided")}if(et.input){if(et.input[0]!==OPS$6.OP_0)throw new TypeError("Input is invalid");if(it.signatures.length===0||!it.signatures.every(rt))throw new TypeError("Input has invalid signature(s)");if(et.signatures&&!stacksEqual$3(et.signatures,it.signatures))throw new TypeError("Signature mismatch");if(et.m!==void 0&&et.m!==et.signatures.length)throw new TypeError("Signature count mismatch")}}return Object.assign(it,et)}p2ms$1.p2ms=p2ms;var p2pk$1={};Object.defineProperty(p2pk$1,"__esModule",{value:!0});p2pk$1.p2pk=void 0;const networks_1$6=networks$1,bscript$9=script,types_1$7=types$6,lazy$5=lazy$8,OPS$5=bscript$9.OPS;function p2pk(et,tt){if(!et.input&&!et.output&&!et.pubkey&&!et.input&&!et.signature)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$7.typeforce)({network:types_1$7.typeforce.maybe(types_1$7.typeforce.Object),output:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer),pubkey:types_1$7.typeforce.maybe(types_1$7.isPoint),signature:types_1$7.typeforce.maybe(bscript$9.isCanonicalScriptSignature),input:types_1$7.typeforce.maybe(types_1$7.typeforce.Buffer)},et);const rt=lazy$5.value(()=>bscript$9.decompile(et.input)),it={name:"p2pk",network:et.network||networks_1$6.bitcoin};if(lazy$5.prop(it,"output",()=>{if(et.pubkey)return bscript$9.compile([et.pubkey,OPS$5.OP_CHECKSIG])}),lazy$5.prop(it,"pubkey",()=>{if(et.output)return et.output.slice(1,-1)}),lazy$5.prop(it,"signature",()=>{if(et.input)return rt()[0]}),lazy$5.prop(it,"input",()=>{if(et.signature)return bscript$9.compile([et.signature])}),lazy$5.prop(it,"witness",()=>{if(it.input)return[]}),tt.validate){if(et.output){if(et.output[et.output.length-1]!==OPS$5.OP_CHECKSIG)throw new TypeError("Output is invalid");if(!(0,types_1$7.isPoint)(it.pubkey))throw new TypeError("Output pubkey is invalid");if(et.pubkey&&!et.pubkey.equals(it.pubkey))throw new TypeError("Pubkey mismatch")}if(et.signature&&et.input&&!et.input.equals(it.input))throw new TypeError("Signature mismatch");if(et.input){if(rt().length!==1)throw new TypeError("Input is invalid");if(!bscript$9.isCanonicalScriptSignature(it.signature))throw new TypeError("Input has invalid signature")}}return Object.assign(it,et)}p2pk$1.p2pk=p2pk;var p2pkh$1={},crypto$2={},ripemd160={},_sha2={},_assert={};Object.defineProperty(_assert,"__esModule",{value:!0});_assert.output=_assert.exists=_assert.hash=_assert.bytes=_assert.bool=_assert.number=void 0;function number(et){if(!Number.isSafeInteger(et)||et<0)throw new Error(`Wrong positive integer: ${et}`)}_assert.number=number;function bool(et){if(typeof et!="boolean")throw new Error(`Expected boolean, not ${et}`)}_assert.bool=bool;function isBytes(et){return et instanceof Uint8Array||et!=null&&typeof et=="object"&&et.constructor.name==="Uint8Array"}function bytes(et,...tt){if(!isBytes(et))throw new Error("Expected Uint8Array");if(tt.length>0&&!tt.includes(et.length))throw new Error(`Expected Uint8Array of length ${tt}, not of length=${et.length}`)}_assert.bytes=bytes;function hash$1(et){if(typeof et!="function"||typeof et.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");number(et.outputLen),number(et.blockLen)}_assert.hash=hash$1;function exists(et,tt=!0){if(et.destroyed)throw new Error("Hash instance has been destroyed");if(tt&&et.finished)throw new Error("Hash#digest() has already been called")}_assert.exists=exists;function output(et,tt){bytes(et);const rt=tt.outputLen;if(et.lengthnew Uint8Array(Vt.buffer,Vt.byteOffset,Vt.byteLength);et.u8=rt;const nt=Vt=>new Uint32Array(Vt.buffer,Vt.byteOffset,Math.floor(Vt.byteLength/4));et.u32=nt;function it(Vt){return Vt instanceof Uint8Array||Vt!=null&&typeof Vt=="object"&&Vt.constructor.name==="Uint8Array"}const st=Vt=>new DataView(Vt.buffer,Vt.byteOffset,Vt.byteLength);et.createView=st;const at=(Vt,Wt)=>Vt<<32-Wt|Vt>>>Wt;if(et.rotr=at,et.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68,!et.isLE)throw new Error("Non little-endian hardware is not supported");const ot=Array.from({length:256},(Vt,Wt)=>Wt.toString(16).padStart(2,"0"));function lt(Vt){if(!it(Vt))throw new Error("Uint8Array expected");let Wt="";for(let lr=0;lr=ut._0&&Vt<=ut._9)return Vt-ut._0;if(Vt>=ut._A&&Vt<=ut._F)return Vt-(ut._A-10);if(Vt>=ut._a&&Vt<=ut._f)return Vt-(ut._a-10)}function bt(Vt){if(typeof Vt!="string")throw new Error("hex string expected, got "+typeof Vt);const Wt=Vt.length,lr=Wt/2;if(Wt%2)throw new Error("padded hex string expected, got unpadded hex of length "+Wt);const qt=new Uint8Array(lr);for(let Ft=0,Mt=0;Ft{};et.nextTick=gt;async function kt(Vt,Wt,lr){let qt=Date.now();for(let Ft=0;Ft=0&&MtVt().update(yt(qt)).digest(),lr=Vt();return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=()=>Vt(),Wt}et.wrapConstructor=Bt;function Ot(Vt){const Wt=(qt,Ft)=>Vt(Ft).update(yt(qt)).digest(),lr=Vt({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Vt(qt),Wt}et.wrapConstructorWithOpts=Ot;function Lt(Vt){const Wt=(qt,Ft)=>Vt(Ft).update(yt(qt)).digest(),lr=Vt({});return Wt.outputLen=lr.outputLen,Wt.blockLen=lr.blockLen,Wt.create=qt=>Vt(qt),Wt}et.wrapXOFConstructorWithOpts=Lt;function zt(Vt=32){if(tt.crypto&&typeof tt.crypto.getRandomValues=="function")return tt.crypto.getRandomValues(new Uint8Array(Vt));throw new Error("crypto.getRandomValues must be defined")}et.randomBytes=zt})(utils$1);Object.defineProperty(_sha2,"__esModule",{value:!0});_sha2.SHA2=void 0;const _assert_js_1=_assert,utils_js_1$3=utils$1;function setBigUint64(et,tt,rt,nt){if(typeof et.setBigUint64=="function")return et.setBigUint64(tt,rt,nt);const it=BigInt(32),st=BigInt(4294967295),at=Number(rt>>it&st),ot=Number(rt&st),lt=nt?4:0,ut=nt?0:4;et.setUint32(tt+lt,at,nt),et.setUint32(tt+ut,ot,nt)}class SHA2 extends utils_js_1$3.Hash{constructor(tt,rt,nt,it){super(),this.blockLen=tt,this.outputLen=rt,this.padOffset=nt,this.isLE=it,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(tt),this.view=(0,utils_js_1$3.createView)(this.buffer)}update(tt){(0,_assert_js_1.exists)(this);const{view:rt,buffer:nt,blockLen:it}=this;tt=(0,utils_js_1$3.toBytes)(tt);const st=tt.length;for(let at=0;atit-at&&(this.process(nt,0),at=0);for(let bt=at;btdt.length)throw new Error("_sha2: outputLen bigger than state");for(let bt=0;bttt),Pi=Id.map(et=>(9*et+5)%16);let idxL=[Id],idxR=[Pi];for(let et=0;et<4;et++)for(let tt of[idxL,idxR])tt.push(tt[et].map(rt=>Rho[rt]));const shifts=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(et=>new Uint8Array(et)),shiftsL=idxL.map((et,tt)=>et.map(rt=>shifts[tt][rt])),shiftsR=idxR.map((et,tt)=>et.map(rt=>shifts[tt][rt])),Kl=new Uint32Array([0,1518500249,1859775393,2400959708,2840853838]),Kr=new Uint32Array([1352829926,1548603684,1836072691,2053994217,0]),rotl$1=(et,tt)=>et<>>32-tt;function f$2(et,tt,rt,nt){return et===0?tt^rt^nt:et===1?tt&rt|~tt&nt:et===2?(tt|~rt)^nt:et===3?tt&nt|rt&~nt:tt^(rt|~nt)}const BUF=new Uint32Array(16);class RIPEMD160 extends _sha2_js_1$2.SHA2{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:tt,h1:rt,h2:nt,h3:it,h4:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.h0=tt|0,this.h1=rt|0,this.h2=nt|0,this.h3=it|0,this.h4=st|0}process(tt,rt){for(let kt=0;kt<16;kt++,rt+=4)BUF[kt]=tt.getUint32(rt,!0);let nt=this.h0|0,it=nt,st=this.h1|0,at=st,ot=this.h2|0,lt=ot,ut=this.h3|0,dt=ut,bt=this.h4|0,gt=bt;for(let kt=0;kt<5;kt++){const pt=4-kt,yt=Kl[kt],$t=Kr[kt],mt=idxL[kt],wt=idxR[kt],St=shiftsL[kt],Bt=shiftsR[kt];for(let Ot=0;Ot<16;Ot++){const Lt=rotl$1(nt+f$2(kt,st,ot,ut)+BUF[mt[Ot]]+yt,St[Ot])+bt|0;nt=bt,bt=ut,ut=rotl$1(ot,10)|0,ot=st,st=Lt}for(let Ot=0;Ot<16;Ot++){const Lt=rotl$1(it+f$2(pt,at,lt,dt)+BUF[wt[Ot]]+$t,Bt[Ot])+gt|0;it=gt,gt=dt,dt=rotl$1(lt,10)|0,lt=at,at=Lt}}this.set(this.h1+ot+dt|0,this.h2+ut+gt|0,this.h3+bt+it|0,this.h4+nt+at|0,this.h0+st+lt|0)}roundClean(){BUF.fill(0)}destroy(){this.destroyed=!0,this.buffer.fill(0),this.set(0,0,0,0,0)}}ripemd160.RIPEMD160=RIPEMD160;ripemd160.ripemd160=(0,utils_js_1$2.wrapConstructor)(()=>new RIPEMD160);var sha1={};Object.defineProperty(sha1,"__esModule",{value:!0});sha1.sha1=void 0;const _sha2_js_1$1=_sha2,utils_js_1$1=utils$1,rotl=(et,tt)=>et<>>32-tt>>>0,Chi$1=(et,tt,rt)=>et&tt^~et&rt,Maj$1=(et,tt,rt)=>et&tt^et&rt^tt&rt,IV$1=new Uint32Array([1732584193,4023233417,2562383102,271733878,3285377520]),SHA1_W=new Uint32Array(80);class SHA1 extends _sha2_js_1$1.SHA2{constructor(){super(64,20,8,!1),this.A=IV$1[0]|0,this.B=IV$1[1]|0,this.C=IV$1[2]|0,this.D=IV$1[3]|0,this.E=IV$1[4]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st}=this;return[tt,rt,nt,it,st]}set(tt,rt,nt,it,st){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0}process(tt,rt){for(let lt=0;lt<16;lt++,rt+=4)SHA1_W[lt]=tt.getUint32(rt,!1);for(let lt=16;lt<80;lt++)SHA1_W[lt]=rotl(SHA1_W[lt-3]^SHA1_W[lt-8]^SHA1_W[lt-14]^SHA1_W[lt-16],1);let{A:nt,B:it,C:st,D:at,E:ot}=this;for(let lt=0;lt<80;lt++){let ut,dt;lt<20?(ut=Chi$1(it,st,at),dt=1518500249):lt<40?(ut=it^st^at,dt=1859775393):lt<60?(ut=Maj$1(it,st,at),dt=2400959708):(ut=it^st^at,dt=3395469782);const bt=rotl(nt,5)+ut+ot+dt+SHA1_W[lt]|0;ot=at,at=st,st=rotl(it,30),it=nt,nt=bt}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,this.set(nt,it,st,at,ot)}roundClean(){SHA1_W.fill(0)}destroy(){this.set(0,0,0,0,0),this.buffer.fill(0)}}sha1.sha1=(0,utils_js_1$1.wrapConstructor)(()=>new SHA1);var sha256$2={};Object.defineProperty(sha256$2,"__esModule",{value:!0});sha256$2.sha224=sha256$2.sha256=void 0;const _sha2_js_1=_sha2,utils_js_1=utils$1,Chi=(et,tt,rt)=>et&tt^~et&rt,Maj=(et,tt,rt)=>et&tt^et&rt^tt&rt,SHA256_K=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),IV=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),SHA256_W=new Uint32Array(64);class SHA256 extends _sha2_js_1.SHA2{constructor(){super(64,32,8,!1),this.A=IV[0]|0,this.B=IV[1]|0,this.C=IV[2]|0,this.D=IV[3]|0,this.E=IV[4]|0,this.F=IV[5]|0,this.G=IV[6]|0,this.H=IV[7]|0}get(){const{A:tt,B:rt,C:nt,D:it,E:st,F:at,G:ot,H:lt}=this;return[tt,rt,nt,it,st,at,ot,lt]}set(tt,rt,nt,it,st,at,ot,lt){this.A=tt|0,this.B=rt|0,this.C=nt|0,this.D=it|0,this.E=st|0,this.F=at|0,this.G=ot|0,this.H=lt|0}process(tt,rt){for(let bt=0;bt<16;bt++,rt+=4)SHA256_W[bt]=tt.getUint32(rt,!1);for(let bt=16;bt<64;bt++){const gt=SHA256_W[bt-15],kt=SHA256_W[bt-2],pt=(0,utils_js_1.rotr)(gt,7)^(0,utils_js_1.rotr)(gt,18)^gt>>>3,yt=(0,utils_js_1.rotr)(kt,17)^(0,utils_js_1.rotr)(kt,19)^kt>>>10;SHA256_W[bt]=yt+SHA256_W[bt-7]+pt+SHA256_W[bt-16]|0}let{A:nt,B:it,C:st,D:at,E:ot,F:lt,G:ut,H:dt}=this;for(let bt=0;bt<64;bt++){const gt=(0,utils_js_1.rotr)(ot,6)^(0,utils_js_1.rotr)(ot,11)^(0,utils_js_1.rotr)(ot,25),kt=dt+gt+Chi(ot,lt,ut)+SHA256_K[bt]+SHA256_W[bt]|0,yt=((0,utils_js_1.rotr)(nt,2)^(0,utils_js_1.rotr)(nt,13)^(0,utils_js_1.rotr)(nt,22))+Maj(nt,it,st)|0;dt=ut,ut=lt,lt=ot,ot=at+kt|0,at=st,st=it,it=nt,nt=kt+yt|0}nt=nt+this.A|0,it=it+this.B|0,st=st+this.C|0,at=at+this.D|0,ot=ot+this.E|0,lt=lt+this.F|0,ut=ut+this.G|0,dt=dt+this.H|0,this.set(nt,it,st,at,ot,lt,ut,dt)}roundClean(){SHA256_W.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}class SHA224 extends SHA256{constructor(){super(),this.A=-1056596264,this.B=914150663,this.C=812702999,this.D=-150054599,this.E=-4191439,this.F=1750603025,this.G=1694076839,this.H=-1090891868,this.outputLen=28}}sha256$2.sha256=(0,utils_js_1.wrapConstructor)(()=>new SHA256);sha256$2.sha224=(0,utils_js_1.wrapConstructor)(()=>new SHA224);(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.taggedHash=et.TAGGED_HASH_PREFIXES=et.TAGS=et.hash256=et.hash160=et.sha256=et.sha1=et.ripemd160=void 0;const tt=ripemd160,rt=sha1,nt=sha256$2;function it(dt){return Buffer.from((0,tt.ripemd160)(Uint8Array.from(dt)))}et.ripemd160=it;function st(dt){return Buffer.from((0,rt.sha1)(Uint8Array.from(dt)))}et.sha1=st;function at(dt){return Buffer.from((0,nt.sha256)(Uint8Array.from(dt)))}et.sha256=at;function ot(dt){return Buffer.from((0,tt.ripemd160)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash160=ot;function lt(dt){return Buffer.from((0,nt.sha256)((0,nt.sha256)(Uint8Array.from(dt))))}et.hash256=lt,et.TAGS=["BIP0340/challenge","BIP0340/aux","BIP0340/nonce","TapLeaf","TapBranch","TapSighash","TapTweak","KeyAgg list","KeyAgg coefficient"],et.TAGGED_HASH_PREFIXES={"BIP0340/challenge":Buffer.from([123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124,123,181,45,122,159,239,88,50,62,177,191,122,64,125,179,130,210,243,242,216,27,177,34,79,73,254,81,143,109,72,211,124]),"BIP0340/aux":Buffer.from([241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144,241,239,78,94,192,99,202,218,109,148,202,250,157,152,126,160,105,38,88,57,236,193,31,151,45,119,165,46,216,193,204,144]),"BIP0340/nonce":Buffer.from([7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47,7,73,119,52,167,155,203,53,91,155,140,125,3,79,18,28,244,52,215,62,247,45,218,25,135,0,97,251,82,191,235,47]),TapLeaf:Buffer.from([174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238,174,234,143,220,66,8,152,49,5,115,75,88,8,29,30,38,56,211,95,28,181,64,8,212,211,87,202,3,190,120,233,238]),TapBranch:Buffer.from([25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21,25,65,161,242,229,110,185,95,162,169,241,148,190,92,1,247,33,111,51,237,130,176,145,70,52,144,208,91,245,22,160,21]),TapSighash:Buffer.from([244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49,244,10,72,223,75,42,112,200,180,146,75,242,101,70,97,237,61,149,253,102,163,19,235,135,35,117,151,198,40,228,160,49]),TapTweak:Buffer.from([232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233,232,15,225,99,156,156,160,80,227,175,27,57,193,67,198,62,66,156,188,235,21,217,64,251,181,197,161,244,175,87,197,233]),"KeyAgg list":Buffer.from([72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240,72,28,151,28,60,11,70,215,240,178,117,174,89,141,78,44,126,215,49,156,89,74,92,110,199,158,160,212,153,2,148,240]),"KeyAgg coefficient":Buffer.from([191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129,191,201,4,3,77,28,136,232,200,14,34,229,61,36,86,109,100,130,78,214,66,114,129,192,145,0,249,77,205,82,201,129])};function ut(dt,bt){return at(Buffer.concat([et.TAGGED_HASH_PREFIXES[dt],bt]))}et.taggedHash=ut})(crypto$2);function base$1(et){if(et.length>=255)throw new TypeError("Alphabet too long");for(var tt=new Uint8Array(256),rt=0;rt>>0,St=new Uint8Array(wt);$t!==mt;){for(var Bt=kt[$t],Ot=0,Lt=wt-1;(Bt!==0||Ot>>0,St[Lt]=Bt%at>>>0,Bt=Bt/at>>>0;if(Bt!==0)throw new Error("Non-zero carry");yt=Ot,$t++}for(var zt=wt-yt;zt!==wt&&St[zt]===0;)zt++;for(var Vt=ot.repeat(pt);zt>>0,wt=new Uint8Array(mt);kt[pt];){var St=tt[kt.charCodeAt(pt)];if(St===255)return;for(var Bt=0,Ot=mt-1;(St!==0||Bt<$t)&&Ot!==-1;Ot--,Bt++)St+=at*wt[Ot]>>>0,wt[Ot]=St%256>>>0,St=St/256>>>0;if(St!==0)throw new Error("Non-zero carry");$t=Bt,pt++}for(var Lt=mt-$t;Lt!==mt&&wt[Lt]===0;)Lt++;for(var zt=new Uint8Array(yt+(mt-Lt)),Vt=yt;Lt!==mt;)zt[Vt++]=wt[Lt++];return zt}function gt(kt){var pt=bt(kt);if(pt)return pt;throw new Error("Non-base"+at+" character")}return{encode:dt,decodeUnsafe:bt,decode:gt}}var src=base$1;const basex=src,ALPHABET$1="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var bs58=basex(ALPHABET$1),base58=bs58,base=function(et){function tt(st){var at=Uint8Array.from(st),ot=et(at),lt=at.length+4,ut=new Uint8Array(lt);return ut.set(at,0),ut.set(ot.subarray(0,4),at.length),base58.encode(ut,lt)}function rt(st){var at=st.slice(0,-4),ot=st.slice(-4),lt=et(at);if(!(ot[0]^lt[0]|ot[1]^lt[1]|ot[2]^lt[2]|ot[3]^lt[3]))return at}function nt(st){var at=base58.decodeUnsafe(st);if(at)return rt(at)}function it(st){var at=base58.decode(st),ot=rt(at);if(!ot)throw new Error("Invalid checksum");return ot}return{encode:tt,decode:it,decodeUnsafe:nt}},{sha256:sha256$1}=sha256$2,bs58checkBase=base;function sha256x2(et){return sha256$1(sha256$1(et))}var bs58check$3=bs58checkBase(sha256x2);Object.defineProperty(p2pkh$1,"__esModule",{value:!0});p2pkh$1.p2pkh=void 0;const bcrypto$5=crypto$2,networks_1$5=networks$1,bscript$8=script,types_1$6=types$6,lazy$4=lazy$8,bs58check$2=bs58check$3,OPS$4=bscript$8.OPS;function p2pkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$6.typeforce)({network:types_1$6.typeforce.maybe(types_1$6.typeforce.Object),address:types_1$6.typeforce.maybe(types_1$6.typeforce.String),hash:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(20)),output:types_1$6.typeforce.maybe(types_1$6.typeforce.BufferN(25)),pubkey:types_1$6.typeforce.maybe(types_1$6.isPoint),signature:types_1$6.typeforce.maybe(bscript$8.isCanonicalScriptSignature),input:types_1$6.typeforce.maybe(types_1$6.typeforce.Buffer)},et);const rt=lazy$4.value(()=>{const at=Buffer.from(bs58check$2.decode(et.address)),ot=at.readUInt8(0),lt=at.slice(1);return{version:ot,hash:lt}}),nt=lazy$4.value(()=>bscript$8.decompile(et.input)),it=et.network||networks_1$5.bitcoin,st={name:"p2pkh",network:it};if(lazy$4.prop(st,"address",()=>{if(!st.hash)return;const at=Buffer.allocUnsafe(21);return at.writeUInt8(it.pubKeyHash,0),st.hash.copy(at,1),bs58check$2.encode(at)}),lazy$4.prop(st,"hash",()=>{if(et.output)return et.output.slice(3,23);if(et.address)return rt().hash;if(et.pubkey||st.pubkey)return bcrypto$5.hash160(et.pubkey||st.pubkey)}),lazy$4.prop(st,"output",()=>{if(st.hash)return bscript$8.compile([OPS$4.OP_DUP,OPS$4.OP_HASH160,st.hash,OPS$4.OP_EQUALVERIFY,OPS$4.OP_CHECKSIG])}),lazy$4.prop(st,"pubkey",()=>{if(et.input)return nt()[1]}),lazy$4.prop(st,"signature",()=>{if(et.input)return nt()[0]}),lazy$4.prop(st,"input",()=>{if(et.pubkey&&et.signature)return bscript$8.compile([et.signature,et.pubkey])}),lazy$4.prop(st,"witness",()=>{if(st.input)return[]}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().version!==it.pubKeyHash)throw new TypeError("Invalid version or Network mismatch");if(rt().hash.length!==20)throw new TypeError("Invalid address");at=rt().hash}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==25||et.output[0]!==OPS$4.OP_DUP||et.output[1]!==OPS$4.OP_HASH160||et.output[2]!==20||et.output[23]!==OPS$4.OP_EQUALVERIFY||et.output[24]!==OPS$4.OP_CHECKSIG)throw new TypeError("Output is invalid");const ot=et.output.slice(3,23);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.pubkey){const ot=bcrypto$5.hash160(et.pubkey);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.input){const ot=nt();if(ot.length!==2)throw new TypeError("Input is invalid");if(!bscript$8.isCanonicalScriptSignature(ot[0]))throw new TypeError("Input has invalid signature");if(!(0,types_1$6.isPoint)(ot[1]))throw new TypeError("Input has invalid pubkey");if(et.signature&&!et.signature.equals(ot[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(ot[1]))throw new TypeError("Pubkey mismatch");const lt=bcrypto$5.hash160(ot[1]);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch")}}return Object.assign(st,et)}p2pkh$1.p2pkh=p2pkh;var p2sh$1={};Object.defineProperty(p2sh$1,"__esModule",{value:!0});p2sh$1.p2sh=void 0;const bcrypto$4=crypto$2,networks_1$4=networks$1,bscript$7=script,types_1$5=types$6,lazy$3=lazy$8,bs58check$1=bs58check$3,OPS$3=bscript$7.OPS;function stacksEqual$2(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function p2sh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.input)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$5.typeforce)({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),address:types_1$5.typeforce.maybe(types_1$5.typeforce.String),hash:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(20)),output:types_1$5.typeforce.maybe(types_1$5.typeforce.BufferN(23)),redeem:types_1$5.typeforce.maybe({network:types_1$5.typeforce.maybe(types_1$5.typeforce.Object),output:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))}),input:types_1$5.typeforce.maybe(types_1$5.typeforce.Buffer),witness:types_1$5.typeforce.maybe(types_1$5.typeforce.arrayOf(types_1$5.typeforce.Buffer))},et);let rt=et.network;rt||(rt=et.redeem&&et.redeem.network||networks_1$4.bitcoin);const nt={network:rt},it=lazy$3.value(()=>{const ot=Buffer.from(bs58check$1.decode(et.address)),lt=ot.readUInt8(0),ut=ot.slice(1);return{version:lt,hash:ut}}),st=lazy$3.value(()=>bscript$7.decompile(et.input)),at=lazy$3.value(()=>{const ot=st(),lt=ot[ot.length-1];return{network:rt,output:lt===OPS$3.OP_FALSE?Buffer.from([]):lt,input:bscript$7.compile(ot.slice(0,-1)),witness:et.witness||[]}});if(lazy$3.prop(nt,"address",()=>{if(!nt.hash)return;const ot=Buffer.allocUnsafe(21);return ot.writeUInt8(nt.network.scriptHash,0),nt.hash.copy(ot,1),bs58check$1.encode(ot)}),lazy$3.prop(nt,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return it().hash;if(nt.redeem&&nt.redeem.output)return bcrypto$4.hash160(nt.redeem.output)}),lazy$3.prop(nt,"output",()=>{if(nt.hash)return bscript$7.compile([OPS$3.OP_HASH160,nt.hash,OPS$3.OP_EQUAL])}),lazy$3.prop(nt,"redeem",()=>{if(et.input)return at()}),lazy$3.prop(nt,"input",()=>{if(!(!et.redeem||!et.redeem.input||!et.redeem.output))return bscript$7.compile([].concat(bscript$7.decompile(et.redeem.input),et.redeem.output))}),lazy$3.prop(nt,"witness",()=>{if(nt.redeem&&nt.redeem.witness)return nt.redeem.witness;if(nt.input)return[]}),lazy$3.prop(nt,"name",()=>{const ot=["p2sh"];return nt.redeem!==void 0&&nt.redeem.name!==void 0&&ot.push(nt.redeem.name),ot.join("-")}),tt.validate){let ot=Buffer.from([]);if(et.address){if(it().version!==rt.scriptHash)throw new TypeError("Invalid version or Network mismatch");if(it().hash.length!==20)throw new TypeError("Invalid address");ot=it().hash}if(et.hash){if(ot.length>0&&!ot.equals(et.hash))throw new TypeError("Hash mismatch");ot=et.hash}if(et.output){if(et.output.length!==23||et.output[0]!==OPS$3.OP_HASH160||et.output[1]!==20||et.output[22]!==OPS$3.OP_EQUAL)throw new TypeError("Output is invalid");const ut=et.output.slice(2,22);if(ot.length>0&&!ot.equals(ut))throw new TypeError("Hash mismatch");ot=ut}const lt=ut=>{if(ut.output){const dt=bscript$7.decompile(ut.output);if(!dt||dt.length<1)throw new TypeError("Redeem.output too short");if(ut.output.byteLength>520)throw new TypeError("Redeem.output unspendable if larger than 520 bytes");if(bscript$7.countNonPushOnlyOPs(dt)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const bt=bcrypto$4.hash160(ut.output);if(ot.length>0&&!ot.equals(bt))throw new TypeError("Hash mismatch");ot=bt}if(ut.input){const dt=ut.input.length>0,bt=ut.witness&&ut.witness.length>0;if(!dt&&!bt)throw new TypeError("Empty input");if(dt&&bt)throw new TypeError("Input and witness provided");if(dt){const gt=bscript$7.decompile(ut.input);if(!bscript$7.isPushOnly(gt))throw new TypeError("Non push-only scriptSig")}}};if(et.input){const ut=st();if(!ut||ut.length<1)throw new TypeError("Input too short");if(!Buffer.isBuffer(at().output))throw new TypeError("Input is invalid");lt(at())}if(et.redeem){if(et.redeem.network&&et.redeem.network!==rt)throw new TypeError("Network mismatch");if(et.input){const ut=at();if(et.redeem.output&&!et.redeem.output.equals(ut.output))throw new TypeError("Redeem.output mismatch");if(et.redeem.input&&!et.redeem.input.equals(ut.input))throw new TypeError("Redeem.input mismatch")}lt(et.redeem)}if(et.witness&&et.redeem&&et.redeem.witness&&!stacksEqual$2(et.redeem.witness,et.witness))throw new TypeError("Witness and redeem.witness mismatch")}return Object.assign(nt,et)}p2sh$1.p2sh=p2sh;var p2wpkh$1={},dist={};Object.defineProperty(dist,"__esModule",{value:!0});dist.bech32m=dist.bech32=void 0;const ALPHABET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",ALPHABET_MAP={};for(let et=0;et>25;return(et&33554431)<<5^-(tt>>0&1)&996825010^-(tt>>1&1)&642813549^-(tt>>2&1)&513874426^-(tt>>3&1)&1027748829^-(tt>>4&1)&705979059}function prefixChk(et){let tt=1;for(let rt=0;rt126)return"Invalid prefix ("+et+")";tt=polymodStep(tt)^nt>>5}tt=polymodStep(tt);for(let rt=0;rt=rt;)st-=rt,ot.push(it>>st&at);if(nt)st>0&&ot.push(it<=tt)return"Excess padding";if(it<lt)throw new TypeError("Exceeds length limit");at=at.toLowerCase();let ut=prefixChk(at);if(typeof ut=="string")throw new Error(ut);let dt=at+"1";for(let bt=0;bt>5)throw new Error("Non 5-bit word");ut=polymodStep(ut)^gt,dt+=ALPHABET.charAt(gt)}for(let bt=0;bt<6;++bt)ut=polymodStep(ut);ut^=tt;for(let bt=0;bt<6;++bt){const gt=ut>>(5-bt)*5&31;dt+=ALPHABET.charAt(gt)}return dt}function nt(at,ot){if(ot=ot||90,at.length<8)return at+" too short";if(at.length>ot)return"Exceeds length limit";const lt=at.toLowerCase(),ut=at.toUpperCase();if(at!==lt&&at!==ut)return"Mixed-case string "+at;at=lt;const dt=at.lastIndexOf("1");if(dt===-1)return"No separator character for "+at;if(dt===0)return"Missing prefix for "+at;const bt=at.slice(0,dt),gt=at.slice(dt+1);if(gt.length<6)return"Data too short";let kt=prefixChk(bt);if(typeof kt=="string")return kt;const pt=[];for(let yt=0;yt=gt.length)&&pt.push(mt)}return kt!==tt?"Invalid checksum for "+at:{prefix:bt,words:pt}}function it(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt}function st(at,ot){const lt=nt(at,ot);if(typeof lt=="object")return lt;throw new Error(lt)}return{decodeUnsafe:it,decode:st,encode:rt,toWords,fromWordsUnsafe,fromWords}}dist.bech32=getLibraryFromEncoding("bech32");dist.bech32m=getLibraryFromEncoding("bech32m");Object.defineProperty(p2wpkh$1,"__esModule",{value:!0});p2wpkh$1.p2wpkh=void 0;const bcrypto$3=crypto$2,networks_1$3=networks$1,bscript$6=script,types_1$4=types$6,lazy$2=lazy$8,bech32_1$3=dist,OPS$2=bscript$6.OPS,EMPTY_BUFFER$2=Buffer.alloc(0);function p2wpkh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.pubkey&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$4.typeforce)({address:types_1$4.typeforce.maybe(types_1$4.typeforce.String),hash:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(20)),input:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(0)),network:types_1$4.typeforce.maybe(types_1$4.typeforce.Object),output:types_1$4.typeforce.maybe(types_1$4.typeforce.BufferN(22)),pubkey:types_1$4.typeforce.maybe(types_1$4.isPoint),signature:types_1$4.typeforce.maybe(bscript$6.isCanonicalScriptSignature),witness:types_1$4.typeforce.maybe(types_1$4.typeforce.arrayOf(types_1$4.typeforce.Buffer))},et);const rt=lazy$2.value(()=>{const st=bech32_1$3.bech32.decode(et.address),at=st.words.shift(),ot=bech32_1$3.bech32.fromWords(st.words);return{version:at,prefix:st.prefix,data:Buffer.from(ot)}}),nt=et.network||networks_1$3.bitcoin,it={name:"p2wpkh",network:nt};if(lazy$2.prop(it,"address",()=>{if(!it.hash)return;const st=bech32_1$3.bech32.toWords(it.hash);return st.unshift(0),bech32_1$3.bech32.encode(nt.bech32,st)}),lazy$2.prop(it,"hash",()=>{if(et.output)return et.output.slice(2,22);if(et.address)return rt().data;if(et.pubkey||it.pubkey)return bcrypto$3.hash160(et.pubkey||it.pubkey)}),lazy$2.prop(it,"output",()=>{if(it.hash)return bscript$6.compile([OPS$2.OP_0,it.hash])}),lazy$2.prop(it,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.witness)return et.witness[1]}),lazy$2.prop(it,"signature",()=>{if(et.witness)return et.witness[0]}),lazy$2.prop(it,"input",()=>{if(it.witness)return EMPTY_BUFFER$2}),lazy$2.prop(it,"witness",()=>{if(et.pubkey&&et.signature)return[et.signature,et.pubkey]}),tt.validate){let st=Buffer.from([]);if(et.address){if(nt&&nt.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==20)throw new TypeError("Invalid address data");st=rt().data}if(et.hash){if(st.length>0&&!st.equals(et.hash))throw new TypeError("Hash mismatch");st=et.hash}if(et.output){if(et.output.length!==22||et.output[0]!==OPS$2.OP_0||et.output[1]!==20)throw new TypeError("Output is invalid");if(st.length>0&&!st.equals(et.output.slice(2)))throw new TypeError("Hash mismatch");st=et.output.slice(2)}if(et.pubkey){const at=bcrypto$3.hash160(et.pubkey);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch");if(st=at,!(0,types_1$4.isPoint)(et.pubkey)||et.pubkey.length!==33)throw new TypeError("Invalid pubkey for p2wpkh")}if(et.witness){if(et.witness.length!==2)throw new TypeError("Witness is invalid");if(!bscript$6.isCanonicalScriptSignature(et.witness[0]))throw new TypeError("Witness has invalid signature");if(!(0,types_1$4.isPoint)(et.witness[1])||et.witness[1].length!==33)throw new TypeError("Witness has invalid pubkey");if(et.signature&&!et.signature.equals(et.witness[0]))throw new TypeError("Signature mismatch");if(et.pubkey&&!et.pubkey.equals(et.witness[1]))throw new TypeError("Pubkey mismatch");const at=bcrypto$3.hash160(et.witness[1]);if(st.length>0&&!st.equals(at))throw new TypeError("Hash mismatch")}}return Object.assign(it,et)}p2wpkh$1.p2wpkh=p2wpkh;var p2wsh$1={};Object.defineProperty(p2wsh$1,"__esModule",{value:!0});p2wsh$1.p2wsh=void 0;const bcrypto$2=crypto$2,networks_1$2=networks$1,bscript$5=script,types_1$3=types$6,lazy$1=lazy$8,bech32_1$2=dist,OPS$1=bscript$5.OPS,EMPTY_BUFFER$1=Buffer.alloc(0);function stacksEqual$1(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}function chunkHasUncompressedPubkey(et){return!!(Buffer.isBuffer(et)&&et.length===65&&et[0]===4&&(0,types_1$3.isPoint)(et))}function p2wsh(et,tt){if(!et.address&&!et.hash&&!et.output&&!et.redeem&&!et.witness)throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$3.typeforce)({network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),address:types_1$3.typeforce.maybe(types_1$3.typeforce.String),hash:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(32)),output:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(34)),redeem:types_1$3.typeforce.maybe({input:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),network:types_1$3.typeforce.maybe(types_1$3.typeforce.Object),output:types_1$3.typeforce.maybe(types_1$3.typeforce.Buffer),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))}),input:types_1$3.typeforce.maybe(types_1$3.typeforce.BufferN(0)),witness:types_1$3.typeforce.maybe(types_1$3.typeforce.arrayOf(types_1$3.typeforce.Buffer))},et);const rt=lazy$1.value(()=>{const at=bech32_1$2.bech32.decode(et.address),ot=at.words.shift(),lt=bech32_1$2.bech32.fromWords(at.words);return{version:ot,prefix:at.prefix,data:Buffer.from(lt)}}),nt=lazy$1.value(()=>bscript$5.decompile(et.redeem.input));let it=et.network;it||(it=et.redeem&&et.redeem.network||networks_1$2.bitcoin);const st={network:it};if(lazy$1.prop(st,"address",()=>{if(!st.hash)return;const at=bech32_1$2.bech32.toWords(st.hash);return at.unshift(0),bech32_1$2.bech32.encode(it.bech32,at)}),lazy$1.prop(st,"hash",()=>{if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(st.redeem&&st.redeem.output)return bcrypto$2.sha256(st.redeem.output)}),lazy$1.prop(st,"output",()=>{if(st.hash)return bscript$5.compile([OPS$1.OP_0,st.hash])}),lazy$1.prop(st,"redeem",()=>{if(et.witness)return{output:et.witness[et.witness.length-1],input:EMPTY_BUFFER$1,witness:et.witness.slice(0,-1)}}),lazy$1.prop(st,"input",()=>{if(st.witness)return EMPTY_BUFFER$1}),lazy$1.prop(st,"witness",()=>{if(et.redeem&&et.redeem.input&&et.redeem.input.length>0&&et.redeem.output&&et.redeem.output.length>0){const at=bscript$5.toStack(nt());return st.redeem=Object.assign({witness:at},et.redeem),st.redeem.input=EMPTY_BUFFER$1,[].concat(at,et.redeem.output)}if(et.redeem&&et.redeem.output&&et.redeem.witness)return[].concat(et.redeem.witness,et.redeem.output)}),lazy$1.prop(st,"name",()=>{const at=["p2wsh"];return st.redeem!==void 0&&st.redeem.name!==void 0&&at.push(st.redeem.name),at.join("-")}),tt.validate){let at=Buffer.from([]);if(et.address){if(rt().prefix!==it.bech32)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==0)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");at=rt().data}if(et.hash){if(at.length>0&&!at.equals(et.hash))throw new TypeError("Hash mismatch");at=et.hash}if(et.output){if(et.output.length!==34||et.output[0]!==OPS$1.OP_0||et.output[1]!==32)throw new TypeError("Output is invalid");const ot=et.output.slice(2);if(at.length>0&&!at.equals(ot))throw new TypeError("Hash mismatch");at=ot}if(et.redeem){if(et.redeem.network&&et.redeem.network!==it)throw new TypeError("Network mismatch");if(et.redeem.input&&et.redeem.input.length>0&&et.redeem.witness&&et.redeem.witness.length>0)throw new TypeError("Ambiguous witness source");if(et.redeem.output){const ot=bscript$5.decompile(et.redeem.output);if(!ot||ot.length<1)throw new TypeError("Redeem.output is invalid");if(et.redeem.output.byteLength>3600)throw new TypeError("Redeem.output unspendable if larger than 3600 bytes");if(bscript$5.countNonPushOnlyOPs(ot)>201)throw new TypeError("Redeem.output unspendable with more than 201 non-push ops");const lt=bcrypto$2.sha256(et.redeem.output);if(at.length>0&&!at.equals(lt))throw new TypeError("Hash mismatch");at=lt}if(et.redeem.input&&!bscript$5.isPushOnly(nt()))throw new TypeError("Non push-only scriptSig");if(et.witness&&et.redeem.witness&&!stacksEqual$1(et.witness,et.redeem.witness))throw new TypeError("Witness and redeem.witness mismatch");if(et.redeem.input&&nt().some(chunkHasUncompressedPubkey)||et.redeem.output&&(bscript$5.decompile(et.redeem.output)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("redeem.input or redeem.output contains uncompressed pubkey")}if(et.witness&&et.witness.length>0){const ot=et.witness[et.witness.length-1];if(et.redeem&&et.redeem.output&&!et.redeem.output.equals(ot))throw new TypeError("Witness and redeem.output mismatch");if(et.witness.some(chunkHasUncompressedPubkey)||(bscript$5.decompile(ot)||[]).some(chunkHasUncompressedPubkey))throw new TypeError("Witness contains uncompressed pubkey")}}return Object.assign(st,et)}p2wsh$1.p2wsh=p2wsh;var p2tr$1={},ecc_lib={};Object.defineProperty(ecc_lib,"__esModule",{value:!0});ecc_lib.getEccLib=ecc_lib.initEccLib=void 0;const _ECCLIB_CACHE={};function initEccLib(et){et?et!==_ECCLIB_CACHE.eccLib&&(verifyEcc(et),_ECCLIB_CACHE.eccLib=et):_ECCLIB_CACHE.eccLib=et}ecc_lib.initEccLib=initEccLib;function getEccLib(){if(!_ECCLIB_CACHE.eccLib)throw new Error("No ECC Library provided. You must call initEccLib() with a valid TinySecp256k1Interface instance");return _ECCLIB_CACHE.eccLib}ecc_lib.getEccLib=getEccLib;const h$5=et=>Buffer.from(et,"hex");function verifyEcc(et){assert(typeof et.isXOnlyPoint=="function"),assert(et.isXOnlyPoint(h$5("79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"))),assert(et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffeeffffc2e"))),assert(et.isXOnlyPoint(h$5("f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9"))),assert(et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000001"))),assert(!et.isXOnlyPoint(h$5("0000000000000000000000000000000000000000000000000000000000000000"))),assert(!et.isXOnlyPoint(h$5("fffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"))),assert(typeof et.xOnlyPointAddTweak=="function"),tweakAddVectors.forEach(tt=>{const rt=et.xOnlyPointAddTweak(h$5(tt.pubkey),h$5(tt.tweak));tt.result===null?assert(rt===null):(assert(rt!==null),assert(rt.parity===tt.parity),assert(Buffer.from(rt.xOnlyPubkey).equals(h$5(tt.result))))})}function assert(et){if(!et)throw new Error("ecc library invalid")}const tweakAddVectors=[{pubkey:"79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798",tweak:"fffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364140",parity:-1,result:null},{pubkey:"1617d38ed8d8657da4d4761e8057bc396ea9e4b9d29776d4be096016dbd2509b",tweak:"a8397a935f0dfceba6ba9618f6451ef4d80637abf4e6af2669fbc9de6a8fd2ac",parity:1,result:"e478f99dab91052ab39a33ea35fd5e6e4933f4d28023cd597c9a1f6760346adf"},{pubkey:"2c0b7cf95324a07d05398b240174dc0c2be444d96b159aa6c7f7b1e668680991",tweak:"823c3cd2142744b075a87eade7e1b8678ba308d566226a0056ca2b7a76f86b47",parity:0,result:"9534f8dc8c6deda2dc007655981c78b49c5d96c778fbf363462a11ec9dfd948c"}];var bip341={},bufferutils={},Buffer$2=safeBufferExports.Buffer,MAX_SAFE_INTEGER$3=9007199254740991;function checkUInt53$1(et){if(et<0||et>MAX_SAFE_INTEGER$3||et%1!==0)throw new RangeError("value out of range")}function encode$j(et,tt,rt){if(checkUInt53$1(et),tt||(tt=Buffer$2.allocUnsafe(encodingLength$1(et))),!Buffer$2.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),encode$j.bytes=1):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),encode$j.bytes=3):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),encode$j.bytes=5):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),encode$j.bytes=9),tt}function decode$i(et,tt){if(!Buffer$2.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);var rt=et.readUInt8(tt);if(rt<253)return decode$i.bytes=1,rt;if(rt===253)return decode$i.bytes=3,et.readUInt16LE(tt+1);if(rt===254)return decode$i.bytes=5,et.readUInt32LE(tt+1);decode$i.bytes=9;var nt=et.readUInt32LE(tt+1),it=et.readUInt32LE(tt+5),st=it*4294967296+nt;return checkUInt53$1(st),st}function encodingLength$1(et){return checkUInt53$1(et),et<253?1:et<=65535?3:et<=4294967295?5:9}var varuintBitcoin={encode:encode$j,decode:decode$i,encodingLength:encodingLength$1};Object.defineProperty(bufferutils,"__esModule",{value:!0});bufferutils.BufferReader=bufferutils.BufferWriter=bufferutils.cloneBuffer=bufferutils.reverseBuffer=bufferutils.writeUInt64LE=bufferutils.readUInt64LE=bufferutils.varuint=void 0;const types$3=types$6,{typeforce:typeforce$2}=types$3,varuint$7=varuintBitcoin;bufferutils.varuint=varuint$7;function verifuint$1(et,tt){if(typeof et!="number")throw new Error("cannot write a non-number as a number");if(et<0)throw new Error("specified a negative value for writing an unsigned value");if(et>tt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE$1(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint$1(nt+rt,9007199254740991),nt+rt}bufferutils.readUInt64LE=readUInt64LE$1;function writeUInt64LE$1(et,tt,rt){return verifuint$1(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}bufferutils.writeUInt64LE=writeUInt64LE$1;function reverseBuffer$1(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;ntthis.writeVarSlice(rt))}end(){if(this.buffer.length===this.offset)return this.buffer;throw new Error(`buffer size ${this.buffer.length}, offset ${this.offset}`)}}bufferutils.BufferWriter=BufferWriter;class BufferReader{constructor(tt,rt=0){this.buffer=tt,this.offset=rt,typeforce$2(types$3.tuple(types$3.Buffer,types$3.UInt32),[tt,rt])}readUInt8(){const tt=this.buffer.readUInt8(this.offset);return this.offset++,tt}readInt32(){const tt=this.buffer.readInt32LE(this.offset);return this.offset+=4,tt}readUInt32(){const tt=this.buffer.readUInt32LE(this.offset);return this.offset+=4,tt}readUInt64(){const tt=readUInt64LE$1(this.buffer,this.offset);return this.offset+=8,tt}readVarInt(){const tt=varuint$7.decode(this.buffer,this.offset);return this.offset+=varuint$7.decode.bytes,tt}readSlice(tt){if(this.buffer.length"left"in yt&&"right"in yt;function ot(yt,$t){if(yt.length<33)throw new TypeError(`The control-block length is too small. Got ${yt.length}, expected min 33.`);const mt=(yt.length-33)/32;let wt=$t;for(let St=0;StSt.hash.compare(Bt.hash));const[mt,wt]=$t;return{hash:kt(mt.hash,wt.hash),left:mt,right:wt}}et.toHashTree=lt;function ut(yt,$t){if(at(yt)){const mt=ut(yt.left,$t);if(mt!==void 0)return[...mt,yt.right.hash];const wt=ut(yt.right,$t);if(wt!==void 0)return[...wt,yt.left.hash]}else if(yt.hash.equals($t))return[]}et.findScriptPath=ut;function dt(yt){const $t=yt.version||et.LEAF_VERSION_TAPSCRIPT;return nt.taggedHash("TapLeaf",tt.Buffer.concat([tt.Buffer.from([$t]),pt(yt.output)]))}et.tapleafHash=dt;function bt(yt,$t){return nt.taggedHash("TapTweak",tt.Buffer.concat($t?[yt,$t]:[yt]))}et.tapTweakHash=bt;function gt(yt,$t){if(!tt.Buffer.isBuffer(yt)||yt.length!==32||$t&&$t.length!==32)return null;const mt=bt(yt,$t),wt=(0,rt.getEccLib)().xOnlyPointAddTweak(yt,mt);return!wt||wt.xOnlyPubkey===null?null:{parity:wt.parity,x:tt.Buffer.from(wt.xOnlyPubkey)}}et.tweakKey=gt;function kt(yt,$t){return nt.taggedHash("TapBranch",tt.Buffer.concat([yt,$t]))}function pt(yt){const $t=it.varuint.encodingLength(yt.length),mt=tt.Buffer.allocUnsafe($t);return it.varuint.encode(yt.length,mt),tt.Buffer.concat([mt,yt])}})(bip341);Object.defineProperty(p2tr$1,"__esModule",{value:!0});p2tr$1.p2tr=void 0;const buffer_1=buffer$2,networks_1$1=networks$1,bscript$4=script,types_1$2=types$6,ecc_lib_1=ecc_lib,bip341_1$2=bip341,lazy=lazy$8,bech32_1$1=dist,OPS=bscript$4.OPS,TAPROOT_WITNESS_VERSION=1,ANNEX_PREFIX=80;function p2tr(et,tt){if(!et.address&&!et.output&&!et.pubkey&&!et.internalPubkey&&!(et.witness&&et.witness.length>1))throw new TypeError("Not enough data");tt=Object.assign({validate:!0},tt||{}),(0,types_1$2.typeforce)({address:types_1$2.typeforce.maybe(types_1$2.typeforce.String),input:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(0)),network:types_1$2.typeforce.maybe(types_1$2.typeforce.Object),output:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(34)),internalPubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),hash:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),pubkey:types_1$2.typeforce.maybe(types_1$2.typeforce.BufferN(32)),signature:types_1$2.typeforce.maybe(types_1$2.typeforce.anyOf(types_1$2.typeforce.BufferN(64),types_1$2.typeforce.BufferN(65))),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer)),scriptTree:types_1$2.typeforce.maybe(types_1$2.isTaptree),redeem:types_1$2.typeforce.maybe({output:types_1$2.typeforce.maybe(types_1$2.typeforce.Buffer),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number),witness:types_1$2.typeforce.maybe(types_1$2.typeforce.arrayOf(types_1$2.typeforce.Buffer))}),redeemVersion:types_1$2.typeforce.maybe(types_1$2.typeforce.Number)},et);const rt=lazy.value(()=>{const ot=bech32_1$1.bech32m.decode(et.address),lt=ot.words.shift(),ut=bech32_1$1.bech32m.fromWords(ot.words);return{version:lt,prefix:ot.prefix,data:buffer_1.Buffer.from(ut)}}),nt=lazy.value(()=>{if(!(!et.witness||!et.witness.length))return et.witness.length>=2&&et.witness[et.witness.length-1][0]===ANNEX_PREFIX?et.witness.slice(0,-1):et.witness.slice()}),it=lazy.value(()=>{if(et.scriptTree)return(0,bip341_1$2.toHashTree)(et.scriptTree);if(et.hash)return{hash:et.hash}}),st=et.network||networks_1$1.bitcoin,at={name:"p2tr",network:st};if(lazy.prop(at,"address",()=>{if(!at.pubkey)return;const ot=bech32_1$1.bech32m.toWords(at.pubkey);return ot.unshift(TAPROOT_WITNESS_VERSION),bech32_1$1.bech32m.encode(st.bech32,ot)}),lazy.prop(at,"hash",()=>{const ot=it();if(ot)return ot.hash;const lt=nt();if(lt&<.length>1){const ut=lt[lt.length-1],dt=ut[0]&types_1$2.TAPLEAF_VERSION_MASK,bt=lt[lt.length-2],gt=(0,bip341_1$2.tapleafHash)({output:bt,version:dt});return(0,bip341_1$2.rootHashFromPath)(ut,gt)}return null}),lazy.prop(at,"output",()=>{if(at.pubkey)return bscript$4.compile([OPS.OP_1,at.pubkey])}),lazy.prop(at,"redeemVersion",()=>et.redeemVersion?et.redeemVersion:et.redeem&&et.redeem.redeemVersion!==void 0&&et.redeem.redeemVersion!==null?et.redeem.redeemVersion:bip341_1$2.LEAF_VERSION_TAPSCRIPT),lazy.prop(at,"redeem",()=>{const ot=nt();if(!(!ot||ot.length<2))return{output:ot[ot.length-2],witness:ot.slice(0,-2),redeemVersion:ot[ot.length-1][0]&types_1$2.TAPLEAF_VERSION_MASK}}),lazy.prop(at,"pubkey",()=>{if(et.pubkey)return et.pubkey;if(et.output)return et.output.slice(2);if(et.address)return rt().data;if(at.internalPubkey){const ot=(0,bip341_1$2.tweakKey)(at.internalPubkey,at.hash);if(ot)return ot.x}}),lazy.prop(at,"internalPubkey",()=>{if(et.internalPubkey)return et.internalPubkey;const ot=nt();if(ot&&ot.length>1)return ot[ot.length-1].slice(1,33)}),lazy.prop(at,"signature",()=>{if(et.signature)return et.signature;const ot=nt();if(!(!ot||ot.length!==1))return ot[0]}),lazy.prop(at,"witness",()=>{if(et.witness)return et.witness;const ot=it();if(ot&&et.redeem&&et.redeem.output&&et.internalPubkey){const lt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion}),ut=(0,bip341_1$2.findScriptPath)(ot,lt);if(!ut)return;const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,ot.hash);if(!dt)return;const bt=buffer_1.Buffer.concat([buffer_1.Buffer.from([at.redeemVersion|dt.parity]),et.internalPubkey].concat(ut));return[et.redeem.output,bt]}if(et.signature)return[et.signature]}),tt.validate){let ot=buffer_1.Buffer.from([]);if(et.address){if(st&&st.bech32!==rt().prefix)throw new TypeError("Invalid prefix or Network mismatch");if(rt().version!==TAPROOT_WITNESS_VERSION)throw new TypeError("Invalid address version");if(rt().data.length!==32)throw new TypeError("Invalid address data");ot=rt().data}if(et.pubkey){if(ot.length>0&&!ot.equals(et.pubkey))throw new TypeError("Pubkey mismatch");ot=et.pubkey}if(et.output){if(et.output.length!==34||et.output[0]!==OPS.OP_1||et.output[1]!==32)throw new TypeError("Output is invalid");if(ot.length>0&&!ot.equals(et.output.slice(2)))throw new TypeError("Pubkey mismatch");ot=et.output.slice(2)}if(et.internalPubkey){const dt=(0,bip341_1$2.tweakKey)(et.internalPubkey,at.hash);if(ot.length>0&&!ot.equals(dt.x))throw new TypeError("Pubkey mismatch");ot=dt.x}if(ot&&ot.length&&!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(ot))throw new TypeError("Invalid pubkey for p2tr");const lt=it();if(et.hash&<&&!et.hash.equals(lt.hash))throw new TypeError("Hash mismatch");if(et.redeem&&et.redeem.output&<){const dt=(0,bip341_1$2.tapleafHash)({output:et.redeem.output,version:at.redeemVersion});if(!(0,bip341_1$2.findScriptPath)(lt,dt))throw new TypeError("Redeem script not in tree")}const ut=nt();if(et.redeem&&at.redeem){if(et.redeem.redeemVersion&&et.redeem.redeemVersion!==at.redeem.redeemVersion)throw new TypeError("Redeem.redeemVersion and witness mismatch");if(et.redeem.output){if(bscript$4.decompile(et.redeem.output).length===0)throw new TypeError("Redeem.output is invalid");if(at.redeem.output&&!et.redeem.output.equals(at.redeem.output))throw new TypeError("Redeem.output and witness mismatch")}if(et.redeem.witness&&at.redeem.witness&&!stacksEqual(et.redeem.witness,at.redeem.witness))throw new TypeError("Redeem.witness and witness mismatch")}if(ut&&ut.length)if(ut.length===1){if(et.signature&&!et.signature.equals(ut[0]))throw new TypeError("Signature mismatch")}else{const dt=ut[ut.length-1];if(dt.length<33)throw new TypeError(`The control-block length is too small. Got ${dt.length}, expected min 33.`);if((dt.length-33)%32!==0)throw new TypeError(`The control-block length of ${dt.length} is incorrect!`);const bt=(dt.length-33)/32;if(bt>128)throw new TypeError(`The script path is too long. Got ${bt}, expected max 128.`);const gt=dt.slice(1,33);if(et.internalPubkey&&!et.internalPubkey.equals(gt))throw new TypeError("Internal pubkey mismatch");if(!(0,ecc_lib_1.getEccLib)().isXOnlyPoint(gt))throw new TypeError("Invalid internalPubkey for p2tr witness");const kt=dt[0]&types_1$2.TAPLEAF_VERSION_MASK,pt=ut[ut.length-2],yt=(0,bip341_1$2.tapleafHash)({output:pt,version:kt}),$t=(0,bip341_1$2.rootHashFromPath)(dt,yt),mt=(0,bip341_1$2.tweakKey)(gt,$t);if(!mt)throw new TypeError("Invalid outputKey for p2tr witness");if(ot.length&&!ot.equals(mt.x))throw new TypeError("Pubkey mismatch for p2tr witness");if(mt.parity!==(dt[0]&1))throw new Error("Incorrect parity")}}return Object.assign(at,et)}p2tr$1.p2tr=p2tr;function stacksEqual(et,tt){return et.length!==tt.length?!1:et.every((rt,nt)=>rt.equals(tt[nt]))}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.p2tr=et.p2wsh=et.p2wpkh=et.p2sh=et.p2pkh=et.p2pk=et.p2ms=et.embed=void 0;const tt=embed;Object.defineProperty(et,"embed",{enumerable:!0,get:function(){return tt.p2data}});const rt=p2ms$1;Object.defineProperty(et,"p2ms",{enumerable:!0,get:function(){return rt.p2ms}});const nt=p2pk$1;Object.defineProperty(et,"p2pk",{enumerable:!0,get:function(){return nt.p2pk}});const it=p2pkh$1;Object.defineProperty(et,"p2pkh",{enumerable:!0,get:function(){return it.p2pkh}});const st=p2sh$1;Object.defineProperty(et,"p2sh",{enumerable:!0,get:function(){return st.p2sh}});const at=p2wpkh$1;Object.defineProperty(et,"p2wpkh",{enumerable:!0,get:function(){return at.p2wpkh}});const ot=p2wsh$1;Object.defineProperty(et,"p2wsh",{enumerable:!0,get:function(){return ot.p2wsh}});const lt=p2tr$1;Object.defineProperty(et,"p2tr",{enumerable:!0,get:function(){return lt.p2tr}})})(payments$3);Object.defineProperty(address,"__esModule",{value:!0});address.toOutputScript=address.fromOutputScript=address.toBech32=address.toBase58Check=address.fromBech32=address.fromBase58Check=void 0;const networks=networks$1,payments$2=payments$3,bscript$3=script,types_1$1=types$6,bech32_1=dist,bs58check=bs58check$3,FUTURE_SEGWIT_MAX_SIZE=40,FUTURE_SEGWIT_MIN_SIZE=2,FUTURE_SEGWIT_MAX_VERSION=16,FUTURE_SEGWIT_MIN_VERSION=2,FUTURE_SEGWIT_VERSION_DIFF=80,FUTURE_SEGWIT_VERSION_WARNING="WARNING: Sending to a future segwit version address can lead to loss of funds. End users MUST be warned carefully in the GUI and asked if they wish to proceed with caution. Wallets should verify the segwit version from the output of fromBech32, then decide when it is safe to use which version of segwit.";function _toFutureSegwitAddress(et,tt){const rt=et.slice(2);if(rt.lengthFUTURE_SEGWIT_MAX_SIZE)throw new TypeError("Invalid program length for segwit address");const nt=et[0]-FUTURE_SEGWIT_VERSION_DIFF;if(ntFUTURE_SEGWIT_MAX_VERSION)throw new TypeError("Invalid version for segwit address");if(et[1]!==rt.length)throw new TypeError("Invalid script for segwit address");return console.warn(FUTURE_SEGWIT_VERSION_WARNING),toBech32(rt,nt,tt.bech32)}function fromBase58Check(et){const tt=Buffer.from(bs58check.decode(et));if(tt.length<21)throw new TypeError(et+" is too short");if(tt.length>21)throw new TypeError(et+" is too long");const rt=tt.readUInt8(0),nt=tt.slice(1);return{version:rt,hash:nt}}address.fromBase58Check=fromBase58Check;function fromBech32(et){let tt,rt;try{tt=bech32_1.bech32.decode(et)}catch{}if(tt){if(rt=tt.words[0],rt!==0)throw new TypeError(et+" uses wrong encoding")}else if(tt=bech32_1.bech32m.decode(et),rt=tt.words[0],rt===0)throw new TypeError(et+" uses wrong encoding");const nt=bech32_1.bech32.fromWords(tt.words.slice(1));return{version:rt,prefix:tt.prefix,data:Buffer.from(nt)}}address.fromBech32=fromBech32;function toBase58Check(et,tt){(0,types_1$1.typeforce)((0,types_1$1.tuple)(types_1$1.Hash160bit,types_1$1.UInt8),arguments);const rt=Buffer.allocUnsafe(21);return rt.writeUInt8(tt,0),et.copy(rt,1),bs58check.encode(rt)}address.toBase58Check=toBase58Check;function toBech32(et,tt,rt){const nt=bech32_1.bech32.toWords(et);return nt.unshift(tt),tt===0?bech32_1.bech32.encode(rt,nt):bech32_1.bech32m.encode(rt,nt)}address.toBech32=toBech32;function fromOutputScript(et,tt){tt=tt||networks.bitcoin;try{return payments$2.p2pkh({output:et,network:tt}).address}catch{}try{return payments$2.p2sh({output:et,network:tt}).address}catch{}try{return payments$2.p2wpkh({output:et,network:tt}).address}catch{}try{return payments$2.p2wsh({output:et,network:tt}).address}catch{}try{return payments$2.p2tr({output:et,network:tt}).address}catch{}try{return _toFutureSegwitAddress(et,tt)}catch{}throw new Error(bscript$3.toASM(et)+" has no matching Address")}address.fromOutputScript=fromOutputScript;function toOutputScript(et,tt){tt=tt||networks.bitcoin;let rt,nt;try{rt=fromBase58Check(et)}catch{}if(rt){if(rt.version===tt.pubKeyHash)return payments$2.p2pkh({hash:rt.hash}).output;if(rt.version===tt.scriptHash)return payments$2.p2sh({hash:rt.hash}).output}else{try{nt=fromBech32(et)}catch{}if(nt){if(nt.prefix!==tt.bech32)throw new Error(et+" has an invalid prefix");if(nt.version===0){if(nt.data.length===20)return payments$2.p2wpkh({hash:nt.data}).output;if(nt.data.length===32)return payments$2.p2wsh({hash:nt.data}).output}else if(nt.version===1){if(nt.data.length===32)return payments$2.p2tr({pubkey:nt.data}).output}else if(nt.version>=FUTURE_SEGWIT_MIN_VERSION&&nt.version<=FUTURE_SEGWIT_MAX_VERSION&&nt.data.length>=FUTURE_SEGWIT_MIN_SIZE&&nt.data.length<=FUTURE_SEGWIT_MAX_SIZE)return console.warn(FUTURE_SEGWIT_VERSION_WARNING),bscript$3.compile([nt.version+FUTURE_SEGWIT_VERSION_DIFF,nt.data])}}throw new Error(et+" has no matching Script")}address.toOutputScript=toOutputScript;var block={},merkle={};Object.defineProperty(merkle,"__esModule",{value:!0});merkle.fastMerkleRoot=void 0;function fastMerkleRoot(et,tt){if(!Array.isArray(et))throw TypeError("Expected values Array");if(typeof tt!="function")throw TypeError("Expected digest Function");let rt=et.length;const nt=et.concat();for(;rt>1;){let it=0;for(let st=0;strt+varSliceSize(nt),0)}const EMPTY_BUFFER=Buffer.allocUnsafe(0),EMPTY_WITNESS=[],ZERO=Buffer.from("0000000000000000000000000000000000000000000000000000000000000000","hex"),ONE=Buffer.from("0000000000000000000000000000000000000000000000000000000000000001","hex"),VALUE_UINT64_MAX=Buffer.from("ffffffffffffffff","hex"),BLANK_OUTPUT={script:EMPTY_BUFFER,valueBuffer:VALUE_UINT64_MAX};function isOutput(et){return et.value!==void 0}class Transaction{constructor(){this.version=1,this.locktime=0,this.ins=[],this.outs=[]}static fromBuffer(tt,rt){const nt=new bufferutils_1$2.BufferReader(tt),it=new Transaction;it.version=nt.readInt32();const st=nt.readUInt8(),at=nt.readUInt8();let ot=!1;st===Transaction.ADVANCED_TRANSACTION_MARKER&&at===Transaction.ADVANCED_TRANSACTION_FLAG?ot=!0:nt.offset-=2;const lt=nt.readVarInt();for(let dt=0;dttt.witness.length!==0)}weight(){const tt=this.byteLength(!1),rt=this.byteLength(!0);return tt*3+rt}virtualSize(){return Math.ceil(this.weight()/4)}byteLength(tt=!0){const rt=tt&&this.hasWitnesses();return(rt?10:8)+bufferutils_1$2.varuint.encodingLength(this.ins.length)+bufferutils_1$2.varuint.encodingLength(this.outs.length)+this.ins.reduce((nt,it)=>nt+40+varSliceSize(it.script),0)+this.outs.reduce((nt,it)=>nt+8+varSliceSize(it.script),0)+(rt?this.ins.reduce((nt,it)=>nt+vectorSize(it.witness),0):0)}clone(){const tt=new Transaction;return tt.version=this.version,tt.locktime=this.locktime,tt.ins=this.ins.map(rt=>({hash:rt.hash,index:rt.index,script:rt.script,sequence:rt.sequence,witness:rt.witness})),tt.outs=this.outs.map(rt=>({script:rt.script,value:rt.value})),tt}hashForSignature(tt,rt,nt){if(typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Number),arguments),tt>=this.ins.length)return ONE;const it=bscript$2.compile(bscript$2.decompile(rt).filter(ot=>ot!==script_1.OPS.OP_CODESEPARATOR)),st=this.clone();if((nt&31)===Transaction.SIGHASH_NONE)st.outs=[],st.ins.forEach((ot,lt)=>{lt!==tt&&(ot.sequence=0)});else if((nt&31)===Transaction.SIGHASH_SINGLE){if(tt>=this.outs.length)return ONE;st.outs.length=tt+1;for(let ot=0;ot{lt!==tt&&(ot.sequence=0)})}nt&Transaction.SIGHASH_ANYONECANPAY?(st.ins=[st.ins[tt]],st.ins[0].script=it):(st.ins.forEach(ot=>{ot.script=EMPTY_BUFFER}),st.ins[tt].script=it);const at=Buffer.allocUnsafe(st.byteLength(!1)+4);return at.writeInt32LE(nt,at.length-4),st.__toBuffer(at,0,!1),bcrypto$1.hash256(at)}hashForWitnessV1(tt,rt,nt,it,st,at){if(typeforce$1(types$2.tuple(types$2.UInt32,typeforce$1.arrayOf(types$2.Buffer),typeforce$1.arrayOf(types$2.Satoshi),types$2.UInt32),arguments),nt.length!==this.ins.length||rt.length!==this.ins.length)throw new Error("Must supply prevout script and value for all inputs");const ot=it===Transaction.SIGHASH_DEFAULT?Transaction.SIGHASH_ALL:it&Transaction.SIGHASH_OUTPUT_MASK,ut=(it&Transaction.SIGHASH_INPUT_MASK)===Transaction.SIGHASH_ANYONECANPAY,dt=ot===Transaction.SIGHASH_NONE,bt=ot===Transaction.SIGHASH_SINGLE;let gt=EMPTY_BUFFER,kt=EMPTY_BUFFER,pt=EMPTY_BUFFER,yt=EMPTY_BUFFER,$t=EMPTY_BUFFER;if(!ut){let Bt=bufferutils_1$2.BufferWriter.withCapacity(36*this.ins.length);this.ins.forEach(Ot=>{Bt.writeSlice(Ot.hash),Bt.writeUInt32(Ot.index)}),gt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(8*this.ins.length),nt.forEach(Ot=>Bt.writeUInt64(Ot)),kt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(rt.map(varSliceSize).reduce((Ot,Lt)=>Ot+Lt)),rt.forEach(Ot=>Bt.writeVarSlice(Ot)),pt=bcrypto$1.sha256(Bt.end()),Bt=bufferutils_1$2.BufferWriter.withCapacity(4*this.ins.length),this.ins.forEach(Ot=>Bt.writeUInt32(Ot.sequence)),yt=bcrypto$1.sha256(Bt.end())}if(dt||bt){if(bt&&tt8+varSliceSize(Lt.script)).reduce((Lt,zt)=>Lt+zt),Ot=bufferutils_1$2.BufferWriter.withCapacity(Bt);this.outs.forEach(Lt=>{Ot.writeUInt64(Lt.value),Ot.writeVarSlice(Lt.script)}),$t=bcrypto$1.sha256(Ot.end())}const mt=(st?2:0)+(at?1:0),wt=174-(ut?49:0)-(dt?32:0)+(at?32:0)+(st?37:0),St=bufferutils_1$2.BufferWriter.withCapacity(wt);if(St.writeUInt8(it),St.writeInt32(this.version),St.writeUInt32(this.locktime),St.writeSlice(gt),St.writeSlice(kt),St.writeSlice(pt),St.writeSlice(yt),dt||bt||St.writeSlice($t),St.writeUInt8(mt),ut){const Bt=this.ins[tt];St.writeSlice(Bt.hash),St.writeUInt32(Bt.index),St.writeUInt64(nt[tt]),St.writeVarSlice(rt[tt]),St.writeUInt32(Bt.sequence)}else St.writeUInt32(tt);if(at){const Bt=bufferutils_1$2.BufferWriter.withCapacity(varSliceSize(at));Bt.writeVarSlice(at),St.writeSlice(bcrypto$1.sha256(Bt.end()))}return bt&&St.writeSlice($t),st&&(St.writeSlice(st),St.writeUInt8(0),St.writeUInt32(4294967295)),bcrypto$1.taggedHash("TapSighash",Buffer.concat([Buffer.from([0]),St.end()]))}hashForWitnessV0(tt,rt,nt,it){typeforce$1(types$2.tuple(types$2.UInt32,types$2.Buffer,types$2.Satoshi,types$2.UInt32),arguments);let st=Buffer.from([]),at,ot=ZERO,lt=ZERO,ut=ZERO;if(it&Transaction.SIGHASH_ANYONECANPAY||(st=Buffer.allocUnsafe(36*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeSlice(bt.hash),at.writeUInt32(bt.index)}),lt=bcrypto$1.hash256(st)),!(it&Transaction.SIGHASH_ANYONECANPAY)&&(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE&&(st=Buffer.allocUnsafe(4*this.ins.length),at=new bufferutils_1$2.BufferWriter(st,0),this.ins.forEach(bt=>{at.writeUInt32(bt.sequence)}),ut=bcrypto$1.hash256(st)),(it&31)!==Transaction.SIGHASH_SINGLE&&(it&31)!==Transaction.SIGHASH_NONE){const bt=this.outs.reduce((gt,kt)=>gt+8+varSliceSize(kt.script),0);st=Buffer.allocUnsafe(bt),at=new bufferutils_1$2.BufferWriter(st,0),this.outs.forEach(gt=>{at.writeUInt64(gt.value),at.writeVarSlice(gt.script)}),ot=bcrypto$1.hash256(st)}else if((it&31)===Transaction.SIGHASH_SINGLE&&tt{it.writeSlice(at.hash),it.writeUInt32(at.index),it.writeVarSlice(at.script),it.writeUInt32(at.sequence)}),it.writeVarInt(this.outs.length),this.outs.forEach(at=>{isOutput(at)?it.writeUInt64(at.value):it.writeSlice(at.valueBuffer),it.writeVarSlice(at.script)}),st&&this.ins.forEach(at=>{it.writeVector(at.witness)}),it.writeUInt32(this.locktime),rt!==void 0?tt.slice(rt,it.offset):tt}}transaction.Transaction=Transaction;Transaction.DEFAULT_SEQUENCE=4294967295;Transaction.SIGHASH_DEFAULT=0;Transaction.SIGHASH_ALL=1;Transaction.SIGHASH_NONE=2;Transaction.SIGHASH_SINGLE=3;Transaction.SIGHASH_ANYONECANPAY=128;Transaction.SIGHASH_OUTPUT_MASK=3;Transaction.SIGHASH_INPUT_MASK=128;Transaction.ADVANCED_TRANSACTION_MARKER=0;Transaction.ADVANCED_TRANSACTION_FLAG=1;Object.defineProperty(block,"__esModule",{value:!0});block.Block=void 0;const bufferutils_1$1=bufferutils,bcrypto=crypto$2,merkle_1=merkle,transaction_1$3=transaction,types$1=types$6,{typeforce}=types$1,errorMerkleNoTxes=new TypeError("Cannot compute merkle root for zero transactions"),errorWitnessNotSegwit=new TypeError("Cannot compute witness commit for non-segwit block");class Block{constructor(){this.version=1,this.prevHash=void 0,this.merkleRoot=void 0,this.timestamp=0,this.witnessCommit=void 0,this.bits=0,this.nonce=0,this.transactions=void 0}static fromBuffer(tt){if(tt.length<80)throw new Error("Buffer too small (< 80 bytes)");const rt=new bufferutils_1$1.BufferReader(tt),nt=new Block;if(nt.version=rt.readInt32(),nt.prevHash=rt.readSlice(32),nt.merkleRoot=rt.readSlice(32),nt.timestamp=rt.readUInt32(),nt.bits=rt.readUInt32(),nt.nonce=rt.readUInt32(),tt.length===80)return nt;const it=()=>{const ot=transaction_1$3.Transaction.fromBuffer(rt.buffer.slice(rt.offset),!0);return rt.offset+=ot.byteLength(),ot},st=rt.readVarInt();nt.transactions=[];for(let ot=0;ot>24)-3,nt=tt&8388607,it=Buffer.alloc(32,0);return it.writeUIntBE(nt,29-rt,3),it}static calculateMerkleRoot(tt,rt){if(typeforce([{getHash:types$1.Function}],tt),tt.length===0)throw errorMerkleNoTxes;if(rt&&!txesHaveWitnessCommit(tt))throw errorWitnessNotSegwit;const nt=tt.map(st=>st.getHash(rt)),it=(0,merkle_1.fastMerkleRoot)(nt,bcrypto.hash256);return rt?bcrypto.hash256(Buffer.concat([it,tt[0].ins[0].witness[0]])):it}getWitnessCommit(){if(!txesHaveWitnessCommit(this.transactions))return null;const tt=this.transactions[0].outs.filter(nt=>nt.script.slice(0,6).equals(Buffer.from("6a24aa21a9ed","hex"))).map(nt=>nt.script.slice(6,38));if(tt.length===0)return null;const rt=tt[tt.length-1];return rt instanceof Buffer&&rt.length===32?rt:null}hasWitnessCommit(){return this.witnessCommit instanceof Buffer&&this.witnessCommit.length===32||this.getWitnessCommit()!==null}hasWitness(){return anyTxHasWitness(this.transactions)}weight(){const tt=this.byteLength(!1,!1),rt=this.byteLength(!1,!0);return tt*3+rt}byteLength(tt,rt=!0){return tt||!this.transactions?80:80+bufferutils_1$1.varuint.encodingLength(this.transactions.length)+this.transactions.reduce((nt,it)=>nt+it.byteLength(rt),0)}getHash(){return bcrypto.hash256(this.toBuffer(!0))}getId(){return(0,bufferutils_1$1.reverseBuffer)(this.getHash()).toString("hex")}getUTCDate(){const tt=new Date(0);return tt.setUTCSeconds(this.timestamp),tt}toBuffer(tt){const rt=Buffer.allocUnsafe(this.byteLength(tt)),nt=new bufferutils_1$1.BufferWriter(rt);return nt.writeInt32(this.version),nt.writeSlice(this.prevHash),nt.writeSlice(this.merkleRoot),nt.writeUInt32(this.timestamp),nt.writeUInt32(this.bits),nt.writeUInt32(this.nonce),tt||!this.transactions||(bufferutils_1$1.varuint.encode(this.transactions.length,rt,nt.offset),nt.offset+=bufferutils_1$1.varuint.encode.bytes,this.transactions.forEach(it=>{const st=it.byteLength();it.toBuffer(rt,nt.offset),nt.offset+=st})),rt}toHex(tt){return this.toBuffer(tt).toString("hex")}checkTxRoots(){const tt=this.hasWitnessCommit();return!tt&&this.hasWitness()?!1:this.__checkMerkleRoot()&&(tt?this.__checkWitnessCommit():!0)}checkProofOfWork(){const tt=(0,bufferutils_1$1.reverseBuffer)(this.getHash()),rt=Block.calculateTarget(this.bits);return tt.compare(rt)<=0}__checkMerkleRoot(){if(!this.transactions)throw errorMerkleNoTxes;const tt=Block.calculateMerkleRoot(this.transactions);return this.merkleRoot.compare(tt)===0}__checkWitnessCommit(){if(!this.transactions)throw errorMerkleNoTxes;if(!this.hasWitnessCommit())throw errorWitnessNotSegwit;const tt=Block.calculateMerkleRoot(this.transactions,!0);return this.witnessCommit.compare(tt)===0}}block.Block=Block;function txesHaveWitnessCommit(et){return et instanceof Array&&et[0]&&et[0].ins&&et[0].ins instanceof Array&&et[0].ins[0]&&et[0].ins[0].witness&&et[0].ins[0].witness instanceof Array&&et[0].ins[0].witness.length>0}function anyTxHasWitness(et){return et instanceof Array&&et.some(tt=>typeof tt=="object"&&tt.ins instanceof Array&&tt.ins.some(rt=>typeof rt=="object"&&rt.witness instanceof Array&&rt.witness.length>0))}var psbt$1={},psbt={},combiner={},parser$1={},fromBuffer={},converter={},typeFields={};(function(et){Object.defineProperty(et,"__esModule",{value:!0}),function(tt){tt[tt.UNSIGNED_TX=0]="UNSIGNED_TX",tt[tt.GLOBAL_XPUB=1]="GLOBAL_XPUB"}(et.GlobalTypes||(et.GlobalTypes={})),et.GLOBAL_TYPE_NAMES=["unsignedTx","globalXpub"],function(tt){tt[tt.NON_WITNESS_UTXO=0]="NON_WITNESS_UTXO",tt[tt.WITNESS_UTXO=1]="WITNESS_UTXO",tt[tt.PARTIAL_SIG=2]="PARTIAL_SIG",tt[tt.SIGHASH_TYPE=3]="SIGHASH_TYPE",tt[tt.REDEEM_SCRIPT=4]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=5]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=6]="BIP32_DERIVATION",tt[tt.FINAL_SCRIPTSIG=7]="FINAL_SCRIPTSIG",tt[tt.FINAL_SCRIPTWITNESS=8]="FINAL_SCRIPTWITNESS",tt[tt.POR_COMMITMENT=9]="POR_COMMITMENT",tt[tt.TAP_KEY_SIG=19]="TAP_KEY_SIG",tt[tt.TAP_SCRIPT_SIG=20]="TAP_SCRIPT_SIG",tt[tt.TAP_LEAF_SCRIPT=21]="TAP_LEAF_SCRIPT",tt[tt.TAP_BIP32_DERIVATION=22]="TAP_BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=23]="TAP_INTERNAL_KEY",tt[tt.TAP_MERKLE_ROOT=24]="TAP_MERKLE_ROOT"}(et.InputTypes||(et.InputTypes={})),et.INPUT_TYPE_NAMES=["nonWitnessUtxo","witnessUtxo","partialSig","sighashType","redeemScript","witnessScript","bip32Derivation","finalScriptSig","finalScriptWitness","porCommitment","tapKeySig","tapScriptSig","tapLeafScript","tapBip32Derivation","tapInternalKey","tapMerkleRoot"],function(tt){tt[tt.REDEEM_SCRIPT=0]="REDEEM_SCRIPT",tt[tt.WITNESS_SCRIPT=1]="WITNESS_SCRIPT",tt[tt.BIP32_DERIVATION=2]="BIP32_DERIVATION",tt[tt.TAP_INTERNAL_KEY=5]="TAP_INTERNAL_KEY",tt[tt.TAP_TREE=6]="TAP_TREE",tt[tt.TAP_BIP32_DERIVATION=7]="TAP_BIP32_DERIVATION"}(et.OutputTypes||(et.OutputTypes={})),et.OUTPUT_TYPE_NAMES=["redeemScript","witnessScript","bip32Derivation","tapInternalKey","tapTree","tapBip32Derivation"]})(typeFields);var globalXpub$1={};Object.defineProperty(globalXpub$1,"__esModule",{value:!0});const typeFields_1$g=typeFields,range$2=et=>[...Array(et).keys()];function decode$h(et){if(et.key[0]!==typeFields_1$g.GlobalTypes.GLOBAL_XPUB)throw new Error("Decode Error: could not decode globalXpub with key 0x"+et.key.toString("hex"));if(et.key.length!==79||![2,3].includes(et.key[46]))throw new Error("Decode Error: globalXpub has invalid extended pubkey in key 0x"+et.key.toString("hex"));if(et.value.length/4%1!==0)throw new Error("Decode Error: Global GLOBAL_XPUB value length should be multiple of 4");const tt=et.key.slice(1),rt={masterFingerprint:et.value.slice(0,4),extendedPubkey:tt,path:"m"};for(const nt of range$2(et.value.length/4-1)){const it=et.value.readUInt32LE(nt*4+4),st=!!(it&2147483648),at=it&2147483647;rt.path+="/"+at.toString(10)+(st?"'":"")}return rt}globalXpub$1.decode=decode$h;function encode$i(et){const tt=Buffer.from([typeFields_1$g.GlobalTypes.GLOBAL_XPUB]),rt=Buffer.concat([tt,et.extendedPubkey]),nt=et.path.split("/"),it=Buffer.allocUnsafe(nt.length*4);et.masterFingerprint.copy(it,0);let st=4;return nt.slice(1).forEach(at=>{const ot=at.slice(-1)==="'";let lt=2147483647&parseInt(ot?at.slice(0,-1):at,10);ot&&(lt+=2147483648),it.writeUInt32LE(lt,st),st+=4}),{key:rt,value:it}}globalXpub$1.encode=encode$i;globalXpub$1.expected="{ masterFingerprint: Buffer; extendedPubkey: Buffer; path: string; }";function check$c(et){const tt=et.extendedPubkey,rt=et.masterFingerprint,nt=et.path;return Buffer.isBuffer(tt)&&tt.length===78&&[2,3].indexOf(tt[45])>-1&&Buffer.isBuffer(rt)&&rt.length===4&&typeof nt=="string"&&!!nt.match(/^m(\/\d+'?)*$/)}globalXpub$1.check=check$c;function canAddToArray$3(et,tt,rt){const nt=tt.extendedPubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.extendedPubkey.equals(tt.extendedPubkey)).length===0)}globalXpub$1.canAddToArray=canAddToArray$3;var unsignedTx$1={};Object.defineProperty(unsignedTx$1,"__esModule",{value:!0});const typeFields_1$f=typeFields;function encode$h(et){return{key:Buffer.from([typeFields_1$f.GlobalTypes.UNSIGNED_TX]),value:et.toBuffer()}}unsignedTx$1.encode=encode$h;var finalScriptSig$1={};Object.defineProperty(finalScriptSig$1,"__esModule",{value:!0});const typeFields_1$e=typeFields;function decode$g(et){if(et.key[0]!==typeFields_1$e.InputTypes.FINAL_SCRIPTSIG)throw new Error("Decode Error: could not decode finalScriptSig with key 0x"+et.key.toString("hex"));return et.value}finalScriptSig$1.decode=decode$g;function encode$g(et){return{key:Buffer.from([typeFields_1$e.InputTypes.FINAL_SCRIPTSIG]),value:et}}finalScriptSig$1.encode=encode$g;finalScriptSig$1.expected="Buffer";function check$b(et){return Buffer.isBuffer(et)}finalScriptSig$1.check=check$b;function canAdd$8(et,tt){return!!et&&!!tt&&et.finalScriptSig===void 0}finalScriptSig$1.canAdd=canAdd$8;var finalScriptWitness$1={};Object.defineProperty(finalScriptWitness$1,"__esModule",{value:!0});const typeFields_1$d=typeFields;function decode$f(et){if(et.key[0]!==typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS)throw new Error("Decode Error: could not decode finalScriptWitness with key 0x"+et.key.toString("hex"));return et.value}finalScriptWitness$1.decode=decode$f;function encode$f(et){return{key:Buffer.from([typeFields_1$d.InputTypes.FINAL_SCRIPTWITNESS]),value:et}}finalScriptWitness$1.encode=encode$f;finalScriptWitness$1.expected="Buffer";function check$a(et){return Buffer.isBuffer(et)}finalScriptWitness$1.check=check$a;function canAdd$7(et,tt){return!!et&&!!tt&&et.finalScriptWitness===void 0}finalScriptWitness$1.canAdd=canAdd$7;var nonWitnessUtxo$1={};Object.defineProperty(nonWitnessUtxo$1,"__esModule",{value:!0});const typeFields_1$c=typeFields;function decode$e(et){if(et.key[0]!==typeFields_1$c.InputTypes.NON_WITNESS_UTXO)throw new Error("Decode Error: could not decode nonWitnessUtxo with key 0x"+et.key.toString("hex"));return et.value}nonWitnessUtxo$1.decode=decode$e;function encode$e(et){return{key:Buffer.from([typeFields_1$c.InputTypes.NON_WITNESS_UTXO]),value:et}}nonWitnessUtxo$1.encode=encode$e;nonWitnessUtxo$1.expected="Buffer";function check$9(et){return Buffer.isBuffer(et)}nonWitnessUtxo$1.check=check$9;function canAdd$6(et,tt){return!!et&&!!tt&&et.nonWitnessUtxo===void 0}nonWitnessUtxo$1.canAdd=canAdd$6;var partialSig$1={};Object.defineProperty(partialSig$1,"__esModule",{value:!0});const typeFields_1$b=typeFields;function decode$d(et){if(et.key[0]!==typeFields_1$b.InputTypes.PARTIAL_SIG)throw new Error("Decode Error: could not decode partialSig with key 0x"+et.key.toString("hex"));if(!(et.key.length===34||et.key.length===66)||![2,3,4].includes(et.key[1]))throw new Error("Decode Error: partialSig has invalid pubkey in key 0x"+et.key.toString("hex"));return{pubkey:et.key.slice(1),signature:et.value}}partialSig$1.decode=decode$d;function encode$d(et){const tt=Buffer.from([typeFields_1$b.InputTypes.PARTIAL_SIG]);return{key:Buffer.concat([tt,et.pubkey]),value:et.signature}}partialSig$1.encode=encode$d;partialSig$1.expected="{ pubkey: Buffer; signature: Buffer; }";function check$8(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.signature)&&[33,65].includes(et.pubkey.length)&&[2,3,4].includes(et.pubkey[0])&&isDerSigWithSighash(et.signature)}partialSig$1.check=check$8;function isDerSigWithSighash(et){if(!Buffer.isBuffer(et)||et.length<9||et[0]!==48||et.length!==et[1]+3||et[2]!==2)return!1;const tt=et[3];if(tt>33||tt<1||et[3+tt+1]!==2)return!1;const rt=et[3+tt+2];return!(rt>33||rt<1||et.length!==3+tt+2+rt+2)}function canAddToArray$2(et,tt,rt){const nt=tt.pubkey.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)).length===0)}partialSig$1.canAddToArray=canAddToArray$2;var porCommitment$1={};Object.defineProperty(porCommitment$1,"__esModule",{value:!0});const typeFields_1$a=typeFields;function decode$c(et){if(et.key[0]!==typeFields_1$a.InputTypes.POR_COMMITMENT)throw new Error("Decode Error: could not decode porCommitment with key 0x"+et.key.toString("hex"));return et.value.toString("utf8")}porCommitment$1.decode=decode$c;function encode$c(et){return{key:Buffer.from([typeFields_1$a.InputTypes.POR_COMMITMENT]),value:Buffer.from(et,"utf8")}}porCommitment$1.encode=encode$c;porCommitment$1.expected="string";function check$7(et){return typeof et=="string"}porCommitment$1.check=check$7;function canAdd$5(et,tt){return!!et&&!!tt&&et.porCommitment===void 0}porCommitment$1.canAdd=canAdd$5;var sighashType$1={};Object.defineProperty(sighashType$1,"__esModule",{value:!0});const typeFields_1$9=typeFields;function decode$b(et){if(et.key[0]!==typeFields_1$9.InputTypes.SIGHASH_TYPE)throw new Error("Decode Error: could not decode sighashType with key 0x"+et.key.toString("hex"));return et.value.readUInt32LE(0)}sighashType$1.decode=decode$b;function encode$b(et){const tt=Buffer.from([typeFields_1$9.InputTypes.SIGHASH_TYPE]),rt=Buffer.allocUnsafe(4);return rt.writeUInt32LE(et,0),{key:tt,value:rt}}sighashType$1.encode=encode$b;sighashType$1.expected="number";function check$6(et){return typeof et=="number"}sighashType$1.check=check$6;function canAdd$4(et,tt){return!!et&&!!tt&&et.sighashType===void 0}sighashType$1.canAdd=canAdd$4;var tapKeySig$1={};Object.defineProperty(tapKeySig$1,"__esModule",{value:!0});const typeFields_1$8=typeFields;function decode$a(et){if(et.key[0]!==typeFields_1$8.InputTypes.TAP_KEY_SIG||et.key.length!==1)throw new Error("Decode Error: could not decode tapKeySig with key 0x"+et.key.toString("hex"));if(!check$5(et.value))throw new Error("Decode Error: tapKeySig not a valid 64-65-byte BIP340 signature");return et.value}tapKeySig$1.decode=decode$a;function encode$a(et){return{key:Buffer.from([typeFields_1$8.InputTypes.TAP_KEY_SIG]),value:et}}tapKeySig$1.encode=encode$a;tapKeySig$1.expected="Buffer";function check$5(et){return Buffer.isBuffer(et)&&(et.length===64||et.length===65)}tapKeySig$1.check=check$5;function canAdd$3(et,tt){return!!et&&!!tt&&et.tapKeySig===void 0}tapKeySig$1.canAdd=canAdd$3;var tapLeafScript$1={};Object.defineProperty(tapLeafScript$1,"__esModule",{value:!0});const typeFields_1$7=typeFields;function decode$9(et){if(et.key[0]!==typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT)throw new Error("Decode Error: could not decode tapLeafScript with key 0x"+et.key.toString("hex"));if((et.key.length-2)%32!==0)throw new Error("Decode Error: tapLeafScript has invalid control block in key 0x"+et.key.toString("hex"));const tt=et.value[et.value.length-1];if((et.key[1]&254)!==tt)throw new Error("Decode Error: tapLeafScript bad leaf version in key 0x"+et.key.toString("hex"));const rt=et.value.slice(0,-1);return{controlBlock:et.key.slice(1),script:rt,leafVersion:tt}}tapLeafScript$1.decode=decode$9;function encode$9(et){const tt=Buffer.from([typeFields_1$7.InputTypes.TAP_LEAF_SCRIPT]),rt=Buffer.from([et.leafVersion]);return{key:Buffer.concat([tt,et.controlBlock]),value:Buffer.concat([et.script,rt])}}tapLeafScript$1.encode=encode$9;tapLeafScript$1.expected="{ controlBlock: Buffer; leafVersion: number, script: Buffer; }";function check$4(et){return Buffer.isBuffer(et.controlBlock)&&(et.controlBlock.length-1)%32===0&&(et.controlBlock[0]&254)===et.leafVersion&&Buffer.isBuffer(et.script)}tapLeafScript$1.check=check$4;function canAddToArray$1(et,tt,rt){const nt=tt.controlBlock.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.controlBlock.equals(tt.controlBlock)).length===0)}tapLeafScript$1.canAddToArray=canAddToArray$1;var tapMerkleRoot$1={};Object.defineProperty(tapMerkleRoot$1,"__esModule",{value:!0});const typeFields_1$6=typeFields;function decode$8(et){if(et.key[0]!==typeFields_1$6.InputTypes.TAP_MERKLE_ROOT||et.key.length!==1)throw new Error("Decode Error: could not decode tapMerkleRoot with key 0x"+et.key.toString("hex"));if(!check$3(et.value))throw new Error("Decode Error: tapMerkleRoot not a 32-byte hash");return et.value}tapMerkleRoot$1.decode=decode$8;function encode$8(et){return{key:Buffer.from([typeFields_1$6.InputTypes.TAP_MERKLE_ROOT]),value:et}}tapMerkleRoot$1.encode=encode$8;tapMerkleRoot$1.expected="Buffer";function check$3(et){return Buffer.isBuffer(et)&&et.length===32}tapMerkleRoot$1.check=check$3;function canAdd$2(et,tt){return!!et&&!!tt&&et.tapMerkleRoot===void 0}tapMerkleRoot$1.canAdd=canAdd$2;var tapScriptSig$1={};Object.defineProperty(tapScriptSig$1,"__esModule",{value:!0});const typeFields_1$5=typeFields;function decode$7(et){if(et.key[0]!==typeFields_1$5.InputTypes.TAP_SCRIPT_SIG)throw new Error("Decode Error: could not decode tapScriptSig with key 0x"+et.key.toString("hex"));if(et.key.length!==65)throw new Error("Decode Error: tapScriptSig has invalid key 0x"+et.key.toString("hex"));if(et.value.length!==64&&et.value.length!==65)throw new Error("Decode Error: tapScriptSig has invalid signature in key 0x"+et.key.toString("hex"));const tt=et.key.slice(1,33),rt=et.key.slice(33);return{pubkey:tt,leafHash:rt,signature:et.value}}tapScriptSig$1.decode=decode$7;function encode$7(et){const tt=Buffer.from([typeFields_1$5.InputTypes.TAP_SCRIPT_SIG]);return{key:Buffer.concat([tt,et.pubkey,et.leafHash]),value:et.signature}}tapScriptSig$1.encode=encode$7;tapScriptSig$1.expected="{ pubkey: Buffer; leafHash: Buffer; signature: Buffer; }";function check$2(et){return Buffer.isBuffer(et.pubkey)&&Buffer.isBuffer(et.leafHash)&&Buffer.isBuffer(et.signature)&&et.pubkey.length===32&&et.leafHash.length===32&&(et.signature.length===64||et.signature.length===65)}tapScriptSig$1.check=check$2;function canAddToArray(et,tt,rt){const nt=tt.pubkey.toString("hex")+tt.leafHash.toString("hex");return rt.has(nt)?!1:(rt.add(nt),et.filter(it=>it.pubkey.equals(tt.pubkey)&&it.leafHash.equals(tt.leafHash)).length===0)}tapScriptSig$1.canAddToArray=canAddToArray;var witnessUtxo$1={},tools={},varint={};Object.defineProperty(varint,"__esModule",{value:!0});const MAX_SAFE_INTEGER$2=9007199254740991;function checkUInt53(et){if(et<0||et>MAX_SAFE_INTEGER$2||et%1!==0)throw new RangeError("value out of range")}function encode$6(et,tt,rt){if(checkUInt53(et),tt||(tt=Buffer.allocUnsafe(encodingLength(et))),!Buffer.isBuffer(tt))throw new TypeError("buffer must be a Buffer instance");return rt||(rt=0),et<253?(tt.writeUInt8(et,rt),Object.assign(encode$6,{bytes:1})):et<=65535?(tt.writeUInt8(253,rt),tt.writeUInt16LE(et,rt+1),Object.assign(encode$6,{bytes:3})):et<=4294967295?(tt.writeUInt8(254,rt),tt.writeUInt32LE(et,rt+1),Object.assign(encode$6,{bytes:5})):(tt.writeUInt8(255,rt),tt.writeUInt32LE(et>>>0,rt+1),tt.writeUInt32LE(et/4294967296|0,rt+5),Object.assign(encode$6,{bytes:9})),tt}varint.encode=encode$6;function decode$6(et,tt){if(!Buffer.isBuffer(et))throw new TypeError("buffer must be a Buffer instance");tt||(tt=0);const rt=et.readUInt8(tt);if(rt<253)return Object.assign(decode$6,{bytes:1}),rt;if(rt===253)return Object.assign(decode$6,{bytes:3}),et.readUInt16LE(tt+1);if(rt===254)return Object.assign(decode$6,{bytes:5}),et.readUInt32LE(tt+1);{Object.assign(decode$6,{bytes:9});const nt=et.readUInt32LE(tt+1),st=et.readUInt32LE(tt+5)*4294967296+nt;return checkUInt53(st),st}}varint.decode=decode$6;function encodingLength(et){return checkUInt53(et),et<253?1:et<=65535?3:et<=4294967295?5:9}varint.encodingLength=encodingLength;Object.defineProperty(tools,"__esModule",{value:!0});const varuint$6=varint;tools.range=et=>[...Array(et).keys()];function reverseBuffer(et){if(et.length<1)return et;let tt=et.length-1,rt=0;for(let nt=0;nttt)throw new Error("RangeError: value out of range");if(Math.floor(et)!==et)throw new Error("value has a fractional component")}function readUInt64LE(et,tt){const rt=et.readUInt32LE(tt);let nt=et.readUInt32LE(tt+4);return nt*=4294967296,verifuint(nt+rt,9007199254740991),nt+rt}tools.readUInt64LE=readUInt64LE;function writeUInt64LE(et,tt,rt){return verifuint(tt,9007199254740991),et.writeInt32LE(tt&-1,rt),et.writeUInt32LE(Math.floor(tt/4294967296),rt+4),rt+8}tools.writeUInt64LE=writeUInt64LE;Object.defineProperty(witnessUtxo$1,"__esModule",{value:!0});const typeFields_1$4=typeFields,tools_1$2=tools,varuint$5=varint;function decode$5(et){if(et.key[0]!==typeFields_1$4.InputTypes.WITNESS_UTXO)throw new Error("Decode Error: could not decode witnessUtxo with key 0x"+et.key.toString("hex"));const tt=tools_1$2.readUInt64LE(et.value,0);let rt=8;const nt=varuint$5.decode(et.value,rt);rt+=varuint$5.encodingLength(nt);const it=et.value.slice(rt);if(it.length!==nt)throw new Error("Decode Error: WITNESS_UTXO script is not proper length");return{script:it,value:tt}}witnessUtxo$1.decode=decode$5;function encode$5(et){const{script:tt,value:rt}=et,nt=varuint$5.encodingLength(tt.length),it=Buffer.allocUnsafe(8+nt+tt.length);return tools_1$2.writeUInt64LE(it,rt,0),varuint$5.encode(tt.length,it,8),tt.copy(it,8+nt),{key:Buffer.from([typeFields_1$4.InputTypes.WITNESS_UTXO]),value:it}}witnessUtxo$1.encode=encode$5;witnessUtxo$1.expected="{ script: Buffer; value: number; }";function check$1(et){return Buffer.isBuffer(et.script)&&typeof et.value=="number"}witnessUtxo$1.check=check$1;function canAdd$1(et,tt){return!!et&&!!tt&&et.witnessUtxo===void 0}witnessUtxo$1.canAdd=canAdd$1;var tapTree$1={};Object.defineProperty(tapTree$1,"__esModule",{value:!0});const typeFields_1$3=typeFields,varuint$4=varint;function decode$4(et){if(et.key[0]!==typeFields_1$3.OutputTypes.TAP_TREE||et.key.length!==1)throw new Error("Decode Error: could not decode tapTree with key 0x"+et.key.toString("hex"));let tt=0;const rt=[];for(;tt[Buffer.of(nt.depth,nt.leafVersion),varuint$4.encode(nt.script.length),nt.script]));return{key:tt,value:Buffer.concat(rt)}}tapTree$1.encode=encode$4;tapTree$1.expected="{ leaves: [{ depth: number; leafVersion: number, script: Buffer; }] }";function check(et){return Array.isArray(et.leaves)&&et.leaves.every(tt=>tt.depth>=0&&tt.depth<=128&&(tt.leafVersion&254)===tt.leafVersion&&Buffer.isBuffer(tt.script))}tapTree$1.check=check;function canAdd(et,tt){return!!et&&!!tt&&et.tapTree===void 0}tapTree$1.canAdd=canAdd;var bip32Derivation$2={};Object.defineProperty(bip32Derivation$2,"__esModule",{value:!0});const range$1=et=>[...Array(et).keys()],isValidDERKey=et=>et.length===33&&[2,3].includes(et[0])||et.length===65&&et[0]===4;function makeConverter$4(et,tt=isValidDERKey){function rt(ot){if(ot.key[0]!==et)throw new Error("Decode Error: could not decode bip32Derivation with key 0x"+ot.key.toString("hex"));const lt=ot.key.slice(1);if(!tt(lt))throw new Error("Decode Error: bip32Derivation has invalid pubkey in key 0x"+ot.key.toString("hex"));if(ot.value.length/4%1!==0)throw new Error("Decode Error: Input BIP32_DERIVATION value length should be multiple of 4");const ut={masterFingerprint:ot.value.slice(0,4),pubkey:lt,path:"m"};for(const dt of range$1(ot.value.length/4-1)){const bt=ot.value.readUInt32LE(dt*4+4),gt=!!(bt&2147483648),kt=bt&2147483647;ut.path+="/"+kt.toString(10)+(gt?"'":"")}return ut}function nt(ot){const lt=Buffer.from([et]),ut=Buffer.concat([lt,ot.pubkey]),dt=ot.path.split("/"),bt=Buffer.allocUnsafe(dt.length*4);ot.masterFingerprint.copy(bt,0);let gt=4;return dt.slice(1).forEach(kt=>{const pt=kt.slice(-1)==="'";let yt=2147483647&parseInt(pt?kt.slice(0,-1):kt,10);pt&&(yt+=2147483648),bt.writeUInt32LE(yt,gt),gt+=4}),{key:ut,value:bt}}const it="{ masterFingerprint: Buffer; pubkey: Buffer; path: string; }";function st(ot){return Buffer.isBuffer(ot.pubkey)&&Buffer.isBuffer(ot.masterFingerprint)&&typeof ot.path=="string"&&tt(ot.pubkey)&&ot.masterFingerprint.length===4}function at(ot,lt,ut){const dt=lt.pubkey.toString("hex");return ut.has(dt)?!1:(ut.add(dt),ot.filter(bt=>bt.pubkey.equals(lt.pubkey)).length===0)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:at}}bip32Derivation$2.makeConverter=makeConverter$4;var checkPubkey$1={};Object.defineProperty(checkPubkey$1,"__esModule",{value:!0});function makeChecker(et){return tt;function tt(rt){let nt;if(et.includes(rt.key[0])&&(nt=rt.key.slice(1),!(nt.length===33||nt.length===65)||![2,3,4].includes(nt[0])))throw new Error("Format Error: invalid pubkey in key 0x"+rt.key.toString("hex"));return nt}}checkPubkey$1.makeChecker=makeChecker;var redeemScript$1={};Object.defineProperty(redeemScript$1,"__esModule",{value:!0});function makeConverter$3(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode redeemScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.redeemScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}redeemScript$1.makeConverter=makeConverter$3;var tapBip32Derivation$1={};Object.defineProperty(tapBip32Derivation$1,"__esModule",{value:!0});const varuint$3=varint,bip32Derivation$1=bip32Derivation$2,isValidBIP340Key=et=>et.length===32;function makeConverter$2(et){const tt=bip32Derivation$1.makeConverter(et,isValidBIP340Key);function rt(at){const ot=varuint$3.decode(at.value),lt=varuint$3.encodingLength(ot),ut=tt.decode({key:at.key,value:at.value.slice(lt+ot*32)}),dt=new Array(ot);for(let bt=0,gt=lt;btBuffer.isBuffer(ot)&&ot.length===32)&&tt.check(at)}return{decode:rt,encode:nt,check:st,expected:it,canAddToArray:tt.canAddToArray}}tapBip32Derivation$1.makeConverter=makeConverter$2;var tapInternalKey$1={};Object.defineProperty(tapInternalKey$1,"__esModule",{value:!0});function makeConverter$1(et){function tt(at){if(at.key[0]!==et||at.key.length!==1)throw new Error("Decode Error: could not decode tapInternalKey with key 0x"+at.key.toString("hex"));if(at.value.length!==32)throw new Error("Decode Error: tapInternalKey not a 32-byte x-only pubkey");return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)&&at.length===32}function st(at,ot){return!!at&&!!ot&&at.tapInternalKey===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}tapInternalKey$1.makeConverter=makeConverter$1;var witnessScript$1={};Object.defineProperty(witnessScript$1,"__esModule",{value:!0});function makeConverter(et){function tt(at){if(at.key[0]!==et)throw new Error("Decode Error: could not decode witnessScript with key 0x"+at.key.toString("hex"));return at.value}function rt(at){return{key:Buffer.from([et]),value:at}}const nt="Buffer";function it(at){return Buffer.isBuffer(at)}function st(at,ot){return!!at&&!!ot&&at.witnessScript===void 0}return{decode:tt,encode:rt,check:it,expected:nt,canAdd:st}}witnessScript$1.makeConverter=makeConverter;Object.defineProperty(converter,"__esModule",{value:!0});const typeFields_1$2=typeFields,globalXpub=globalXpub$1,unsignedTx=unsignedTx$1,finalScriptSig=finalScriptSig$1,finalScriptWitness=finalScriptWitness$1,nonWitnessUtxo=nonWitnessUtxo$1,partialSig=partialSig$1,porCommitment=porCommitment$1,sighashType=sighashType$1,tapKeySig=tapKeySig$1,tapLeafScript=tapLeafScript$1,tapMerkleRoot=tapMerkleRoot$1,tapScriptSig=tapScriptSig$1,witnessUtxo=witnessUtxo$1,tapTree=tapTree$1,bip32Derivation=bip32Derivation$2,checkPubkey=checkPubkey$1,redeemScript=redeemScript$1,tapBip32Derivation=tapBip32Derivation$1,tapInternalKey=tapInternalKey$1,witnessScript=witnessScript$1,globals={unsignedTx,globalXpub,checkPubkey:checkPubkey.makeChecker([])};converter.globals=globals;const inputs={nonWitnessUtxo,partialSig,sighashType,finalScriptSig,finalScriptWitness,porCommitment,witnessUtxo,bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.InputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.InputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.InputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.InputTypes.PARTIAL_SIG,typeFields_1$2.InputTypes.BIP32_DERIVATION]),tapKeySig,tapScriptSig,tapLeafScript,tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.InputTypes.TAP_BIP32_DERIVATION),tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.InputTypes.TAP_INTERNAL_KEY),tapMerkleRoot};converter.inputs=inputs;const outputs={bip32Derivation:bip32Derivation.makeConverter(typeFields_1$2.OutputTypes.BIP32_DERIVATION),redeemScript:redeemScript.makeConverter(typeFields_1$2.OutputTypes.REDEEM_SCRIPT),witnessScript:witnessScript.makeConverter(typeFields_1$2.OutputTypes.WITNESS_SCRIPT),checkPubkey:checkPubkey.makeChecker([typeFields_1$2.OutputTypes.BIP32_DERIVATION]),tapBip32Derivation:tapBip32Derivation.makeConverter(typeFields_1$2.OutputTypes.TAP_BIP32_DERIVATION),tapTree,tapInternalKey:tapInternalKey.makeConverter(typeFields_1$2.OutputTypes.TAP_INTERNAL_KEY)};converter.outputs=outputs;Object.defineProperty(fromBuffer,"__esModule",{value:!0});const convert$2=converter,tools_1$1=tools,varuint$2=varint,typeFields_1$1=typeFields;function psbtFromBuffer(et,tt){let rt=0;function nt(){const $t=varuint$2.decode(et,rt);rt+=varuint$2.encodingLength($t);const mt=et.slice(rt,rt+$t);return rt+=$t,mt}function it(){const $t=et.readUInt32BE(rt);return rt+=4,$t}function st(){const $t=et.readUInt8(rt);return rt+=1,$t}function at(){const $t=nt(),mt=nt();return{key:$t,value:mt}}function ot(){if(rt>=et.length)throw new Error("Format Error: Unexpected End of PSBT");const $t=et.readUInt8(rt)===0;return $t&&rt++,$t}if(it()!==1886610036)throw new Error("Format Error: Invalid Magic Number");if(st()!==255)throw new Error("Format Error: Magic Number must be followed by 0xff separator");const lt=[],ut={};for(;!ot();){const $t=at(),mt=$t.key.toString("hex");if(ut[mt])throw new Error("Format Error: Keys must be unique for global keymap: key "+mt);ut[mt]=1,lt.push($t)}const dt=lt.filter($t=>$t.key[0]===typeFields_1$1.GlobalTypes.UNSIGNED_TX);if(dt.length!==1)throw new Error("Format Error: Only one UNSIGNED_TX allowed");const bt=tt(dt[0].value),{inputCount:gt,outputCount:kt}=bt.getInputOutputCounts(),pt=[],yt=[];for(const $t of tools_1$1.range(gt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each input: input index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}pt.push(wt)}for(const $t of tools_1$1.range(kt)){const mt={},wt=[];for(;!ot();){const St=at(),Bt=St.key.toString("hex");if(mt[Bt])throw new Error("Format Error: Keys must be unique for each output: output index "+$t+" key "+Bt);mt[Bt]=1,wt.push(St)}yt.push(wt)}return psbtFromKeyVals(bt,{globalMapKeyVals:lt,inputKeyVals:pt,outputKeyVals:yt})}fromBuffer.psbtFromBuffer=psbtFromBuffer;function checkKeyBuffer(et,tt,rt){if(!tt.equals(Buffer.from([rt])))throw new Error(`Format Error: Invalid ${et} key: ${tt.toString("hex")}`)}fromBuffer.checkKeyBuffer=checkKeyBuffer;function psbtFromKeyVals(et,{globalMapKeyVals:tt,inputKeyVals:rt,outputKeyVals:nt}){const it={unsignedTx:et};let st=0;for(const dt of tt)switch(dt.key[0]){case typeFields_1$1.GlobalTypes.UNSIGNED_TX:if(checkKeyBuffer("global",dt.key,typeFields_1$1.GlobalTypes.UNSIGNED_TX),st>0)throw new Error("Format Error: GlobalMap has multiple UNSIGNED_TX");st++;break;case typeFields_1$1.GlobalTypes.GLOBAL_XPUB:it.globalXpub===void 0&&(it.globalXpub=[]),it.globalXpub.push(convert$2.globals.globalXpub.decode(dt));break;default:it.unknownKeyVals||(it.unknownKeyVals=[]),it.unknownKeyVals.push(dt)}const at=rt.length,ot=nt.length,lt=[],ut=[];for(const dt of tools_1$1.range(at)){const bt={};for(const gt of rt[dt])switch(convert$2.inputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.InputTypes.NON_WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.NON_WITNESS_UTXO),bt.nonWitnessUtxo!==void 0)throw new Error("Format Error: Input has multiple NON_WITNESS_UTXO");bt.nonWitnessUtxo=convert$2.inputs.nonWitnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_UTXO:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_UTXO),bt.witnessUtxo!==void 0)throw new Error("Format Error: Input has multiple WITNESS_UTXO");bt.witnessUtxo=convert$2.inputs.witnessUtxo.decode(gt);break;case typeFields_1$1.InputTypes.PARTIAL_SIG:bt.partialSig===void 0&&(bt.partialSig=[]),bt.partialSig.push(convert$2.inputs.partialSig.decode(gt));break;case typeFields_1$1.InputTypes.SIGHASH_TYPE:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.SIGHASH_TYPE),bt.sighashType!==void 0)throw new Error("Format Error: Input has multiple SIGHASH_TYPE");bt.sighashType=convert$2.inputs.sighashType.decode(gt);break;case typeFields_1$1.InputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Input has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.inputs.redeemScript.decode(gt);break;case typeFields_1$1.InputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Input has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.inputs.witnessScript.decode(gt);break;case typeFields_1$1.InputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.inputs.bip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.FINAL_SCRIPTSIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTSIG),bt.finalScriptSig=convert$2.inputs.finalScriptSig.decode(gt);break;case typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.FINAL_SCRIPTWITNESS),bt.finalScriptWitness=convert$2.inputs.finalScriptWitness.decode(gt);break;case typeFields_1$1.InputTypes.POR_COMMITMENT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.POR_COMMITMENT),bt.porCommitment=convert$2.inputs.porCommitment.decode(gt);break;case typeFields_1$1.InputTypes.TAP_KEY_SIG:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_KEY_SIG),bt.tapKeySig=convert$2.inputs.tapKeySig.decode(gt);break;case typeFields_1$1.InputTypes.TAP_SCRIPT_SIG:bt.tapScriptSig===void 0&&(bt.tapScriptSig=[]),bt.tapScriptSig.push(convert$2.inputs.tapScriptSig.decode(gt));break;case typeFields_1$1.InputTypes.TAP_LEAF_SCRIPT:bt.tapLeafScript===void 0&&(bt.tapLeafScript=[]),bt.tapLeafScript.push(convert$2.inputs.tapLeafScript.decode(gt));break;case typeFields_1$1.InputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.inputs.tapBip32Derivation.decode(gt));break;case typeFields_1$1.InputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.inputs.tapInternalKey.decode(gt);break;case typeFields_1$1.InputTypes.TAP_MERKLE_ROOT:checkKeyBuffer("input",gt.key,typeFields_1$1.InputTypes.TAP_MERKLE_ROOT),bt.tapMerkleRoot=convert$2.inputs.tapMerkleRoot.decode(gt);break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}lt.push(bt)}for(const dt of tools_1$1.range(ot)){const bt={};for(const gt of nt[dt])switch(convert$2.outputs.checkPubkey(gt),gt.key[0]){case typeFields_1$1.OutputTypes.REDEEM_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.REDEEM_SCRIPT),bt.redeemScript!==void 0)throw new Error("Format Error: Output has multiple REDEEM_SCRIPT");bt.redeemScript=convert$2.outputs.redeemScript.decode(gt);break;case typeFields_1$1.OutputTypes.WITNESS_SCRIPT:if(checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.WITNESS_SCRIPT),bt.witnessScript!==void 0)throw new Error("Format Error: Output has multiple WITNESS_SCRIPT");bt.witnessScript=convert$2.outputs.witnessScript.decode(gt);break;case typeFields_1$1.OutputTypes.BIP32_DERIVATION:bt.bip32Derivation===void 0&&(bt.bip32Derivation=[]),bt.bip32Derivation.push(convert$2.outputs.bip32Derivation.decode(gt));break;case typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_INTERNAL_KEY),bt.tapInternalKey=convert$2.outputs.tapInternalKey.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_TREE:checkKeyBuffer("output",gt.key,typeFields_1$1.OutputTypes.TAP_TREE),bt.tapTree=convert$2.outputs.tapTree.decode(gt);break;case typeFields_1$1.OutputTypes.TAP_BIP32_DERIVATION:bt.tapBip32Derivation===void 0&&(bt.tapBip32Derivation=[]),bt.tapBip32Derivation.push(convert$2.outputs.tapBip32Derivation.decode(gt));break;default:bt.unknownKeyVals||(bt.unknownKeyVals=[]),bt.unknownKeyVals.push(gt)}ut.push(bt)}return{globalMap:it,inputs:lt,outputs:ut}}fromBuffer.psbtFromKeyVals=psbtFromKeyVals;var toBuffer={};Object.defineProperty(toBuffer,"__esModule",{value:!0});const convert$1=converter,tools_1=tools;function psbtToBuffer({globalMap:et,inputs:tt,outputs:rt}){const{globalKeyVals:nt,inputKeyVals:it,outputKeyVals:st}=psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}),at=tools_1.keyValsToBuffer(nt),ot=bt=>bt.length===0?[Buffer.from([0])]:bt.map(tools_1.keyValsToBuffer),lt=ot(it),ut=ot(st),dt=Buffer.allocUnsafe(5);return dt.writeUIntBE(482972169471,0,5),Buffer.concat([dt,at].concat(lt,ut))}toBuffer.psbtToBuffer=psbtToBuffer;const sortKeyVals=(et,tt)=>et.key.compare(tt.key);function keyValsFromMap(et,tt){const rt=new Set,nt=Object.entries(et).reduce((st,[at,ot])=>{if(at==="unknownKeyVals")return st;const lt=tt[at];if(lt===void 0)return st;const ut=(Array.isArray(ot)?ot:[ot]).map(lt.encode);return ut.map(bt=>bt.key.toString("hex")).forEach(bt=>{if(rt.has(bt))throw new Error("Serialize Error: Duplicate key: "+bt);rt.add(bt)}),st.concat(ut)},[]),it=et.unknownKeyVals?et.unknownKeyVals.filter(st=>!rt.has(st.key.toString("hex"))):[];return nt.concat(it).sort(sortKeyVals)}function psbtToKeyVals({globalMap:et,inputs:tt,outputs:rt}){return{globalKeyVals:keyValsFromMap(et,convert$1.globals),inputKeyVals:tt.map(nt=>keyValsFromMap(nt,convert$1.inputs)),outputKeyVals:rt.map(nt=>keyValsFromMap(nt,convert$1.outputs))}}toBuffer.psbtToKeyVals=psbtToKeyVals;(function(et){function tt(rt){for(var nt in rt)et.hasOwnProperty(nt)||(et[nt]=rt[nt])}Object.defineProperty(et,"__esModule",{value:!0}),tt(fromBuffer),tt(toBuffer)})(parser$1);Object.defineProperty(combiner,"__esModule",{value:!0});const parser_1$1=parser$1;function combine$1(et){const tt=et[0],rt=parser_1$1.psbtToKeyVals(tt),nt=et.slice(1);if(nt.length===0)throw new Error("Combine: Nothing to combine");const it=getTx(tt);if(it===void 0)throw new Error("Combine: Self missing transaction");const st=getKeySet(rt.globalKeyVals),at=rt.inputKeyVals.map(getKeySet),ot=rt.outputKeyVals.map(getKeySet);for(const lt of nt){const ut=getTx(lt);if(ut===void 0||!ut.toBuffer().equals(it.toBuffer()))throw new Error("Combine: One of the Psbts does not have the same transaction.");const dt=parser_1$1.psbtToKeyVals(lt);getKeySet(dt.globalKeyVals).forEach(keyPusher(st,rt.globalKeyVals,dt.globalKeyVals)),dt.inputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(at[yt],rt.inputKeyVals[yt],dt.inputKeyVals[yt]))),dt.outputKeyVals.map(getKeySet).forEach((pt,yt)=>pt.forEach(keyPusher(ot[yt],rt.outputKeyVals[yt],dt.outputKeyVals[yt])))}return parser_1$1.psbtFromKeyVals(it,{globalMapKeyVals:rt.globalKeyVals,inputKeyVals:rt.inputKeyVals,outputKeyVals:rt.outputKeyVals})}combiner.combine=combine$1;function keyPusher(et,tt,rt){return nt=>{if(et.has(nt))return;const it=rt.filter(st=>st.key.toString("hex")===nt)[0];tt.push(it),et.add(nt)}}function getTx(et){return et.globalMap.unsignedTx}function getKeySet(et){const tt=new Set;return et.forEach(rt=>{const nt=rt.key.toString("hex");if(tt.has(nt))throw new Error("Combine: KeyValue Map keys should be unique");tt.add(nt)}),tt}var utils={};(function(et){Object.defineProperty(et,"__esModule",{value:!0});const tt=converter;function rt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No input #${pt}`);return yt}et.checkForInput=rt;function nt(kt,pt){const yt=kt[pt];if(yt===void 0)throw new Error(`No output #${pt}`);return yt}et.checkForOutput=nt;function it(kt,pt,yt){if(kt.key[0]$t.key.equals(kt.key)).length!==0)throw new Error(`Duplicate Key: ${kt.key.toString("hex")}`)}et.checkHasKey=it;function st(kt){let pt=0;return Object.keys(kt).forEach(yt=>{Number(isNaN(Number(yt)))&&pt++}),pt}et.getEnumLength=st;function at(kt,pt){let yt=!1;if(pt.nonWitnessUtxo||pt.witnessUtxo){const $t=!!pt.redeemScript,mt=!!pt.witnessScript,wt=!$t||!!pt.finalScriptSig,St=!mt||!!pt.finalScriptWitness,Bt=!!pt.finalScriptSig||!!pt.finalScriptWitness;yt=wt&&St&&Bt}if(yt===!1)throw new Error(`Input #${kt} has too much or too little data to clean`)}et.inputCheckUncleanFinalized=at;function ot(kt,pt,yt,$t){throw new Error(`Data for ${kt} key ${pt} is incorrect: Expected ${yt} and got ${JSON.stringify($t)}`)}function lt(kt){return(pt,yt)=>{for(const $t of Object.keys(pt)){const mt=pt[$t],{canAdd:wt,canAddToArray:St,check:Bt,expected:Ot}=tt[kt+"s"][$t]||{},Lt=!!St;if(Bt)if(Lt){if(!Array.isArray(mt)||yt[$t]&&!Array.isArray(yt[$t]))throw new Error(`Key type ${$t} must be an array`);mt.every(Bt)||ot(kt,$t,Ot,mt);const zt=yt[$t]||[],Vt=new Set;if(!mt.every(Wt=>St(zt,Wt,Vt)))throw new Error("Can not add duplicate data to array");yt[$t]=zt.concat(mt)}else{if(Bt(mt)||ot(kt,$t,Ot,mt),!wt(yt,mt))throw new Error(`Can not add duplicate data to ${kt}`);yt[$t]=mt}}}}et.updateGlobal=lt("global"),et.updateInput=lt("input"),et.updateOutput=lt("output");function ut(kt,pt){const yt=kt.length-1,$t=rt(kt,yt);et.updateInput(pt,$t)}et.addInputAttributes=ut;function dt(kt,pt){const yt=kt.length-1,$t=nt(kt,yt);et.updateOutput(pt,$t)}et.addOutputAttributes=dt;function bt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Version: Invalid Transaction");return pt.writeUInt32LE(kt,0),pt}et.defaultVersionSetter=bt;function gt(kt,pt){if(!Buffer.isBuffer(pt)||pt.length<4)throw new Error("Set Locktime: Invalid Transaction");return pt.writeUInt32LE(kt,pt.length-4),pt}et.defaultLocktimeSetter=gt})(utils);Object.defineProperty(psbt,"__esModule",{value:!0});const combiner_1=combiner,parser_1=parser$1,typeFields_1=typeFields,utils_1$1=utils;let Psbt$1=class{constructor(tt){this.inputs=[],this.outputs=[],this.globalMap={unsignedTx:tt}}static fromBase64(tt,rt){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt){const nt=parser_1.psbtFromBuffer(tt,rt),it=new this(nt.globalMap.unsignedTx);return Object.assign(it,nt),it}toBase64(){return this.toBuffer().toString("base64")}toHex(){return this.toBuffer().toString("hex")}toBuffer(){return parser_1.psbtToBuffer(this)}updateGlobal(tt){return utils_1$1.updateGlobal(tt,this.globalMap),this}updateInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.updateInput(rt,nt),this}updateOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.updateOutput(rt,nt),this}addUnknownKeyValToGlobal(tt){return utils_1$1.checkHasKey(tt,this.globalMap.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.GlobalTypes)),this.globalMap.unknownKeyVals||(this.globalMap.unknownKeyVals=[]),this.globalMap.unknownKeyVals.push(tt),this}addUnknownKeyValToInput(tt,rt){const nt=utils_1$1.checkForInput(this.inputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.InputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addUnknownKeyValToOutput(tt,rt){const nt=utils_1$1.checkForOutput(this.outputs,tt);return utils_1$1.checkHasKey(rt,nt.unknownKeyVals,utils_1$1.getEnumLength(typeFields_1.OutputTypes)),nt.unknownKeyVals||(nt.unknownKeyVals=[]),nt.unknownKeyVals.push(rt),this}addInput(tt){this.globalMap.unsignedTx.addInput(tt),this.inputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.inputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToInput(nt,it)),utils_1$1.addInputAttributes(this.inputs,tt),this}addOutput(tt){this.globalMap.unsignedTx.addOutput(tt),this.outputs.push({unknownKeyVals:[]});const rt=tt.unknownKeyVals||[],nt=this.outputs.length-1;if(!Array.isArray(rt))throw new Error("unknownKeyVals must be an Array");return rt.forEach(it=>this.addUnknownKeyValToOutput(nt,it)),utils_1$1.addOutputAttributes(this.outputs,tt),this}clearFinalizedInput(tt){const rt=utils_1$1.checkForInput(this.inputs,tt);utils_1$1.inputCheckUncleanFinalized(tt,rt);for(const nt of Object.keys(rt))["witnessUtxo","nonWitnessUtxo","finalScriptSig","finalScriptWitness","unknownKeyVals"].includes(nt)||delete rt[nt];return this}combine(...tt){const rt=combiner_1.combine([this].concat(tt));return Object.assign(this,rt),this}getTransaction(){return this.globalMap.unsignedTx.toBuffer()}};psbt.Psbt=Psbt$1;var bip371={},psbtutils={};Object.defineProperty(psbtutils,"__esModule",{value:!0});psbtutils.signatureBlocksAction=psbtutils.checkInputForSig=psbtutils.pubkeyInScript=psbtutils.pubkeyPositionInScript=psbtutils.witnessStackToScriptWitness=psbtutils.isP2TR=psbtutils.isP2SHScript=psbtutils.isP2WSHScript=psbtutils.isP2WPKH=psbtutils.isP2PKH=psbtutils.isP2PK=psbtutils.isP2MS=void 0;const varuint$1=varint,bscript$1=script,transaction_1$2=transaction,crypto_1=crypto$2,payments$1=payments$3;function isPaymentFactory(et){return tt=>{try{return et({output:tt}),!0}catch{return!1}}}psbtutils.isP2MS=isPaymentFactory(payments$1.p2ms);psbtutils.isP2PK=isPaymentFactory(payments$1.p2pk);psbtutils.isP2PKH=isPaymentFactory(payments$1.p2pkh);psbtutils.isP2WPKH=isPaymentFactory(payments$1.p2wpkh);psbtutils.isP2WSHScript=isPaymentFactory(payments$1.p2wsh);psbtutils.isP2SHScript=isPaymentFactory(payments$1.p2sh);psbtutils.isP2TR=isPaymentFactory(payments$1.p2tr);function witnessStackToScriptWitness(et){let tt=Buffer.allocUnsafe(0);function rt(at){tt=Buffer.concat([tt,Buffer.from(at)])}function nt(at){const ot=tt.length,lt=varuint$1.encodingLength(at);tt=Buffer.concat([tt,Buffer.allocUnsafe(lt)]),varuint$1.encode(at,tt,ot)}function it(at){nt(at.length),rt(at)}function st(at){nt(at.length),at.forEach(it)}return st(et),tt}psbtutils.witnessStackToScriptWitness=witnessStackToScriptWitness;function pubkeyPositionInScript(et,tt){const rt=(0,crypto_1.hash160)(et),nt=et.slice(1,33),it=bscript$1.decompile(tt);if(it===null)throw new Error("Unknown script error");return it.findIndex(st=>typeof st=="number"?!1:st.equals(et)||st.equals(rt)||st.equals(nt))}psbtutils.pubkeyPositionInScript=pubkeyPositionInScript;function pubkeyInScript(et,tt){return pubkeyPositionInScript(et,tt)!==-1}psbtutils.pubkeyInScript=pubkeyInScript;function checkInputForSig(et,tt){return extractPartialSigs(et).some(nt=>signatureBlocksAction(nt,bscript$1.signature.decode,tt))}psbtutils.checkInputForSig=checkInputForSig;function signatureBlocksAction(et,tt,rt){const{hashType:nt}=tt(et),it=[];switch(nt&transaction_1$2.Transaction.SIGHASH_ANYONECANPAY&&it.push("addInput"),nt&31){case transaction_1$2.Transaction.SIGHASH_ALL:break;case transaction_1$2.Transaction.SIGHASH_SINGLE:case transaction_1$2.Transaction.SIGHASH_NONE:it.push("addOutput"),it.push("setInputSequence");break}return it.indexOf(rt)===-1}psbtutils.signatureBlocksAction=signatureBlocksAction;function extractPartialSigs(et){let tt=[];if((et.partialSig||[]).length===0){if(!et.finalScriptSig&&!et.finalScriptWitness)return[];tt=getPsigsFromInputFinalScripts(et)}else tt=et.partialSig;return tt.map(rt=>rt.signature)}function getPsigsFromInputFinalScripts(et){const tt=et.finalScriptSig?bscript$1.decompile(et.finalScriptSig)||[]:[],rt=et.finalScriptWitness?bscript$1.decompile(et.finalScriptWitness)||[]:[];return tt.concat(rt).filter(nt=>Buffer.isBuffer(nt)&&bscript$1.isCanonicalScriptSignature(nt)).map(nt=>({signature:nt}))}Object.defineProperty(bip371,"__esModule",{value:!0});bip371.checkTaprootInputForSigs=bip371.tapTreeFromList=bip371.tapTreeToList=bip371.tweakInternalPubKey=bip371.checkTaprootOutputFields=bip371.checkTaprootInputFields=bip371.isTaprootOutput=bip371.isTaprootInput=bip371.serializeTaprootSignature=bip371.tapScriptFinalizer=bip371.toXOnly=void 0;const types_1=types$6,transaction_1$1=transaction,psbtutils_1$1=psbtutils,bip341_1$1=bip341,payments_1=payments$3,psbtutils_2=psbtutils,toXOnly=et=>et.length===32?et:et.slice(1,33);bip371.toXOnly=toXOnly;function tapScriptFinalizer(et,tt,rt){const nt=findTapLeafToFinalize(tt,et,rt);try{const st=sortSignatures(tt,nt).concat(nt.script).concat(nt.controlBlock);return{finalScriptWitness:(0,psbtutils_1$1.witnessStackToScriptWitness)(st)}}catch(it){throw new Error(`Can not finalize taproot input #${et}: ${it}`)}}bip371.tapScriptFinalizer=tapScriptFinalizer;function serializeTaprootSignature(et,tt){const rt=tt?Buffer.from([tt]):Buffer.from([]);return Buffer.concat([et,rt])}bip371.serializeTaprootSignature=serializeTaprootSignature;function isTaprootInput(et){return et&&!!(et.tapInternalKey||et.tapMerkleRoot||et.tapLeafScript&&et.tapLeafScript.length||et.tapBip32Derivation&&et.tapBip32Derivation.length||et.witnessUtxo&&(0,psbtutils_1$1.isP2TR)(et.witnessUtxo.script))}bip371.isTaprootInput=isTaprootInput;function isTaprootOutput(et,tt){return et&&!!(et.tapInternalKey||et.tapTree||et.tapBip32Derivation&&et.tapBip32Derivation.length||tt&&(0,psbtutils_1$1.isP2TR)(tt))}bip371.isTaprootOutput=isTaprootOutput;function checkTaprootInputFields(et,tt,rt){checkMixedTaprootAndNonTaprootInputFields(et,tt,rt),checkIfTapLeafInTree(et,tt,rt)}bip371.checkTaprootInputFields=checkTaprootInputFields;function checkTaprootOutputFields(et,tt,rt){checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt),checkTaprootScriptPubkey(et,tt)}bip371.checkTaprootOutputFields=checkTaprootOutputFields;function checkTaprootScriptPubkey(et,tt){if(!tt.tapTree&&!tt.tapInternalKey)return;const rt=tt.tapInternalKey||et.tapInternalKey,nt=tt.tapTree||et.tapTree;if(rt){const{script:it}=et,st=getTaprootScripPubkey(rt,nt);if(it&&!it.equals(st))throw new Error("Error adding output. Script or address missmatch.")}}function getTaprootScripPubkey(et,tt){const rt=tt&&tapTreeFromList(tt.leaves),{output:nt}=(0,payments_1.p2tr)({internalPubkey:et,scriptTree:rt});return nt}function tweakInternalPubKey(et,tt){const rt=tt.tapInternalKey,nt=rt&&(0,bip341_1$1.tweakKey)(rt,tt.tapMerkleRoot);if(!nt)throw new Error(`Cannot tweak tap internal key for input #${et}. Public key: ${rt&&rt.toString("hex")}`);return nt.x}bip371.tweakInternalPubKey=tweakInternalPubKey;function tapTreeToList(et){if(!(0,types_1.isTaptree)(et))throw new Error("Cannot convert taptree to tapleaf list. Expecting a tapree structure.");return _tapTreeToList(et)}bip371.tapTreeToList=tapTreeToList;function tapTreeFromList(et=[]){return et.length===1&&et[0].depth===0?{output:et[0].script,version:et[0].leafVersion}:instertLeavesInTree(et)}bip371.tapTreeFromList=tapTreeFromList;function checkTaprootInputForSigs(et,tt){return extractTaprootSigs(et).some(nt=>(0,psbtutils_2.signatureBlocksAction)(nt,decodeSchnorrSignature,tt))}bip371.checkTaprootInputForSigs=checkTaprootInputForSigs;function decodeSchnorrSignature(et){return{signature:et.slice(0,64),hashType:et.slice(64)[0]||transaction_1$1.Transaction.SIGHASH_DEFAULT}}function extractTaprootSigs(et){const tt=[];if(et.tapKeySig&&tt.push(et.tapKeySig),et.tapScriptSig&&tt.push(...et.tapScriptSig.map(rt=>rt.signature)),!tt.length){const rt=getTapKeySigFromWithness(et.finalScriptWitness);rt&&tt.push(rt)}return tt}function getTapKeySigFromWithness(et){if(!et)return;const tt=et.slice(2);if(tt.length===64||tt.length===65)return tt}function _tapTreeToList(et,tt=[],rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");return et?(0,types_1.isTapleaf)(et)?(tt.push({depth:rt,leafVersion:et.version||bip341_1$1.LEAF_VERSION_TAPSCRIPT,script:et.output}),tt):(et[0]&&_tapTreeToList(et[0],tt,rt+1),et[1]&&_tapTreeToList(et[1],tt,rt+1),tt):[]}function instertLeavesInTree(et){let tt;for(const rt of et)if(tt=instertLeafInTree(rt,tt),!tt)throw new Error("No room left to insert tapleaf in tree");return tt}function instertLeafInTree(et,tt,rt=0){if(rt>bip341_1$1.MAX_TAPTREE_DEPTH)throw new Error("Max taptree depth exceeded.");if(et.depth===rt)return tt?void 0:{output:et.script,version:et.leafVersion};if((0,types_1.isTapleaf)(tt))return;const nt=instertLeafInTree(et,tt&&tt[0],rt+1);if(nt)return[nt,tt&&tt[1]];const it=instertLeafInTree(et,tt&&tt[1],rt+1);if(it)return[tt&&tt[0],it]}function checkMixedTaprootAndNonTaprootInputFields(et,tt,rt){const nt=isTaprootInput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootInput(tt),st=et===tt&&isTaprootInput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkMixedTaprootAndNonTaprootOutputFields(et,tt,rt){const nt=isTaprootOutput(et)&&hasNonTaprootFields(tt),it=hasNonTaprootFields(et)&&isTaprootOutput(tt),st=et===tt&&isTaprootOutput(tt)&&hasNonTaprootFields(tt);if(nt||it||st)throw new Error(`Invalid arguments for Psbt.${rt}. Cannot use both taproot and non-taproot fields.`)}function checkIfTapLeafInTree(et,tt,rt){if(tt.tapMerkleRoot){const nt=(tt.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot)),it=(et.tapLeafScript||[]).every(st=>isTapLeafInTree(st,tt.tapMerkleRoot));if(!nt||!it)throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}else if(et.tapMerkleRoot&&!(tt.tapLeafScript||[]).every(it=>isTapLeafInTree(it,et.tapMerkleRoot)))throw new Error(`Invalid arguments for Psbt.${rt}. Tapleaf not part of taptree.`)}function isTapLeafInTree(et,tt){if(!tt)return!0;const rt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(0,bip341_1$1.rootHashFromPath)(et.controlBlock,rt).equals(tt)}function sortSignatures(et,tt){const rt=(0,bip341_1$1.tapleafHash)({output:tt.script,version:tt.leafVersion});return(et.tapScriptSig||[]).filter(nt=>nt.leafHash.equals(rt)).map(nt=>addPubkeyPositionInScript(tt.script,nt)).sort((nt,it)=>it.positionInScript-nt.positionInScript).map(nt=>nt.signature)}function addPubkeyPositionInScript(et,tt){return Object.assign({positionInScript:(0,psbtutils_1$1.pubkeyPositionInScript)(tt.pubkey,et)},tt)}function findTapLeafToFinalize(et,tt,rt){if(!et.tapScriptSig||!et.tapScriptSig.length)throw new Error(`Can not finalize taproot input #${tt}. No tapleaf script signature provided.`);const nt=(et.tapLeafScript||[]).sort((it,st)=>it.controlBlock.length-st.controlBlock.length).find(it=>canFinalizeLeaf(it,et.tapScriptSig,rt));if(!nt)throw new Error(`Can not finalize taproot input #${tt}. Signature for tapleaf script not found.`);return nt}function canFinalizeLeaf(et,tt,rt){const nt=(0,bip341_1$1.tapleafHash)({output:et.script,version:et.leafVersion});return(!rt||rt.equals(nt))&&tt.find(st=>st.leafHash.equals(nt))!==void 0}function hasNonTaprootFields(et){return et&&!!(et.redeemScript||et.witnessScript||et.bip32Derivation&&et.bip32Derivation.length)}Object.defineProperty(psbt$1,"__esModule",{value:!0});psbt$1.Psbt=void 0;const bip174_1=psbt,varuint=varint,utils_1=utils,address_1=address,bufferutils_1=bufferutils,networks_1=networks$1,payments=payments$3,bip341_1=bip341,bscript=script,transaction_1=transaction,bip371_1=bip371,psbtutils_1=psbtutils,DEFAULT_OPTS={network:networks_1.bitcoin,maximumFeeRate:5e3};class Psbt{static fromBase64(tt,rt={}){const nt=Buffer.from(tt,"base64");return this.fromBuffer(nt,rt)}static fromHex(tt,rt={}){const nt=Buffer.from(tt,"hex");return this.fromBuffer(nt,rt)}static fromBuffer(tt,rt={}){const nt=bip174_1.Psbt.fromBuffer(tt,transactionFromBuffer),it=new Psbt(rt,nt);return checkTxForDupeIns(it.__CACHE.__TX,it.__CACHE),it}constructor(tt={},rt=new bip174_1.Psbt(new PsbtTransaction)){this.data=rt,this.opts=Object.assign({},DEFAULT_OPTS,tt),this.__CACHE={__NON_WITNESS_UTXO_TX_CACHE:[],__NON_WITNESS_UTXO_BUF_CACHE:[],__TX_IN_CACHE:{},__TX:this.data.globalMap.unsignedTx.tx,__UNSAFE_SIGN_NONSEGWIT:!1},this.data.inputs.length===0&&this.setVersion(2);const nt=(it,st,at,ot)=>Object.defineProperty(it,st,{enumerable:at,writable:ot});nt(this,"__CACHE",!1,!0),nt(this,"opts",!1,!0)}get inputCount(){return this.data.inputs.length}get version(){return this.__CACHE.__TX.version}set version(tt){this.setVersion(tt)}get locktime(){return this.__CACHE.__TX.locktime}set locktime(tt){this.setLocktime(tt)}get txInputs(){return this.__CACHE.__TX.ins.map(tt=>({hash:(0,bufferutils_1.cloneBuffer)(tt.hash),index:tt.index,sequence:tt.sequence}))}get txOutputs(){return this.__CACHE.__TX.outs.map(tt=>{let rt;try{rt=(0,address_1.fromOutputScript)(tt.script,this.opts.network)}catch{}return{script:(0,bufferutils_1.cloneBuffer)(tt.script),value:tt.value,address:rt}})}combine(...tt){return this.data.combine(...tt.map(rt=>rt.data)),this}clone(){const tt=Psbt.fromBuffer(this.data.toBuffer());return tt.opts=JSON.parse(JSON.stringify(this.opts)),tt}setMaximumFeeRate(tt){check32Bit(tt),this.opts.maximumFeeRate=tt}setVersion(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setVersion");const rt=this.__CACHE;return rt.__TX.version=tt,rt.__EXTRACTED_TX=void 0,this}setLocktime(tt){check32Bit(tt),checkInputsForPartialSig(this.data.inputs,"setLocktime");const rt=this.__CACHE;return rt.__TX.locktime=tt,rt.__EXTRACTED_TX=void 0,this}setInputSequence(tt,rt){check32Bit(rt),checkInputsForPartialSig(this.data.inputs,"setInputSequence");const nt=this.__CACHE;if(nt.__TX.ins.length<=tt)throw new Error("Input index too high");return nt.__TX.ins[tt].sequence=rt,nt.__EXTRACTED_TX=void 0,this}addInputs(tt){return tt.forEach(rt=>this.addInput(rt)),this}addInput(tt){if(arguments.length>1||!tt||tt.hash===void 0||tt.index===void 0)throw new Error("Invalid arguments for Psbt.addInput. Requires single object with at least [hash] and [index]");(0,bip371_1.checkTaprootInputFields)(tt,tt,"addInput"),checkInputsForPartialSig(this.data.inputs,"addInput"),tt.witnessScript&&checkInvalidP2WSH(tt.witnessScript);const rt=this.__CACHE;this.data.addInput(tt);const nt=rt.__TX.ins[rt.__TX.ins.length-1];checkTxInputCache(rt,nt);const it=this.data.inputs.length-1,st=this.data.inputs[it];return st.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,st,it),rt.__FEE=void 0,rt.__FEE_RATE=void 0,rt.__EXTRACTED_TX=void 0,this}addOutputs(tt){return tt.forEach(rt=>this.addOutput(rt)),this}addOutput(tt){if(arguments.length>1||!tt||tt.value===void 0||tt.address===void 0&&tt.script===void 0)throw new Error("Invalid arguments for Psbt.addOutput. Requires single object with at least [script or address] and [value]");checkInputsForPartialSig(this.data.inputs,"addOutput");const{address:rt}=tt;if(typeof rt=="string"){const{network:it}=this.opts,st=(0,address_1.toOutputScript)(rt,it);tt=Object.assign(tt,{script:st})}(0,bip371_1.checkTaprootOutputFields)(tt,tt,"addOutput");const nt=this.__CACHE;return this.data.addOutput(tt),nt.__FEE=void 0,nt.__FEE_RATE=void 0,nt.__EXTRACTED_TX=void 0,this}extractTransaction(tt){if(!this.data.inputs.every(isFinalized))throw new Error("Not finalized");const rt=this.__CACHE;if(tt||checkFees(this,rt,this.opts),rt.__EXTRACTED_TX)return rt.__EXTRACTED_TX;const nt=rt.__TX.clone();return inputFinalizeGetAmts(this.data.inputs,nt,rt,!0),nt}getFeeRate(){return getTxCacheValue("__FEE_RATE","fee rate",this.data.inputs,this.__CACHE)}getFee(){return getTxCacheValue("__FEE","fee",this.data.inputs,this.__CACHE)}finalizeAllInputs(){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).forEach(tt=>this.finalizeInput(tt)),this}finalizeInput(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(nt)?this._finalizeTaprootInput(tt,nt,void 0,rt):this._finalizeInput(tt,nt,rt)}finalizeTaprootInput(tt,rt,nt=bip371_1.tapScriptFinalizer){const it=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(it))return this._finalizeTaprootInput(tt,it,rt,nt);throw new Error(`Cannot finalize input #${tt}. Not Taproot.`)}_finalizeInput(tt,rt,nt=getFinalScripts){const{script:it,isP2SH:st,isP2WSH:at,isSegwit:ot}=getScriptFromInput(tt,rt,this.__CACHE);if(!it)throw new Error(`No script found for input #${tt}`);checkPartialSigSighashes(rt);const{finalScriptSig:lt,finalScriptWitness:ut}=nt(tt,rt,it,ot,st,at);if(lt&&this.data.updateInput(tt,{finalScriptSig:lt}),ut&&this.data.updateInput(tt,{finalScriptWitness:ut}),!lt&&!ut)throw new Error(`Unknown error finalizing input #${tt}`);return this.data.clearFinalizedInput(tt),this}_finalizeTaprootInput(tt,rt,nt,it=bip371_1.tapScriptFinalizer){if(!rt.witnessUtxo)throw new Error(`Cannot finalize input #${tt}. Missing withness utxo.`);if(rt.tapKeySig){const st=payments.p2tr({output:rt.witnessUtxo.script,signature:rt.tapKeySig}),at=(0,psbtutils_1.witnessStackToScriptWitness)(st.witness);this.data.updateInput(tt,{finalScriptWitness:at})}else{const{finalScriptWitness:st}=it(tt,rt,nt);this.data.updateInput(tt,{finalScriptWitness:st})}return this.data.clearFinalizedInput(tt),this}getInputType(tt){const rt=(0,utils_1.checkForInput)(this.data.inputs,tt),nt=getScriptFromUtxo(tt,rt,this.__CACHE),it=getMeaningfulScript(nt,tt,"input",rt.redeemScript||redeemFromFinalScriptSig(rt.finalScriptSig),rt.witnessScript||redeemFromFinalWitnessScript(rt.finalScriptWitness)),st=it.type==="raw"?"":it.type+"-",at=classifyScript(it.meaningfulScript);return st+at}inputHasPubkey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt);return pubkeyInInput(rt,nt,tt,this.__CACHE)}inputHasHDKey(tt,rt){const nt=(0,utils_1.checkForInput)(this.data.inputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}outputHasPubkey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt);return pubkeyInOutput(rt,nt,tt,this.__CACHE)}outputHasHDKey(tt,rt){const nt=(0,utils_1.checkForOutput)(this.data.outputs,tt),it=bip32DerivationIsMine(rt);return!!nt.bip32Derivation&&nt.bip32Derivation.some(it)}validateSignaturesOfAllInputs(tt){return(0,utils_1.checkForInput)(this.data.inputs,0),range(this.data.inputs.length).map(nt=>this.validateSignaturesOfInput(nt,tt)).reduce((nt,it)=>it===!0&&nt,!0)}validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt];return(0,bip371_1.isTaprootInput)(it)?this.validateSignaturesOfTaprootInput(tt,rt,nt):this._validateSignaturesOfInput(tt,rt,nt)}_validateSignaturesOfInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).partialSig;if(!it||!st||st.length<1)throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");const at=nt?st.filter(bt=>bt.pubkey.equals(nt)):st;if(at.length<1)throw new Error("No signatures for this pubkey");const ot=[];let lt,ut,dt;for(const bt of at){const gt=bscript.signature.decode(bt.signature),{hash:kt,script:pt}=dt!==gt.hashType?getHashForSig(tt,Object.assign({},it,{sighashType:gt.hashType}),this.__CACHE,!0):{hash:lt,script:ut};dt=gt.hashType,lt=kt,ut=pt,checkScriptForPubkey(bt.pubkey,pt,"verify"),ot.push(rt(bt.pubkey,kt,gt.signature))}return ot.every(bt=>bt===!0)}validateSignaturesOfTaprootInput(tt,rt,nt){const it=this.data.inputs[tt],st=(it||{}).tapKeySig,at=(it||{}).tapScriptSig;if(!it&&!st&&!(at&&!at.length))throw new Error("No signatures to validate");if(typeof rt!="function")throw new Error("Need validator function to validate signatures");nt=nt&&(0,bip371_1.toXOnly)(nt);const ot=nt?getTaprootHashesForSig(tt,it,this.data.inputs,nt,this.__CACHE):getAllTaprootHashesForSig(tt,it,this.data.inputs,this.__CACHE);if(!ot.length)throw new Error("No signatures for this pubkey");const lt=ot.find(dt=>!dt.leafHash);let ut=0;if(st&<){if(!rt(lt.pubkey,lt.hash,trimTaprootSig(st)))return!1;ut++}if(at)for(const dt of at){const bt=ot.find(gt=>dt.pubkey.equals(gt.pubkey));if(bt){if(!rt(dt.pubkey,bt.hash,trimTaprootSig(dt.signature)))return!1;ut++}}return ut>0}signAllInputsHD(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){if(!tt||!tt.publicKey||!tt.fingerprint)throw new Error("Need HDSigner to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInputHD(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsHDAsync(tt,rt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((nt,it)=>{if(!tt||!tt.publicKey||!tt.fingerprint)return it(new Error("Need HDSigner to sign input"));const st=[],at=[];for(const ot of range(this.data.inputs.length))at.push(this.signInputHDAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInputHD(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){if(!rt||!rt.publicKey||!rt.fingerprint)throw new Error("Need HDSigner to sign input");return getSignersFromHD(tt,this.data.inputs,rt).forEach(st=>this.signInput(tt,st,nt)),this}signInputHDAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){return new Promise((it,st)=>{if(!rt||!rt.publicKey||!rt.fingerprint)return st(new Error("Need HDSigner to sign input"));const ot=getSignersFromHD(tt,this.data.inputs,rt).map(lt=>this.signInputAsync(tt,lt,nt));return Promise.all(ot).then(()=>{it()}).catch(st)})}signAllInputs(tt,rt){if(!tt||!tt.publicKey)throw new Error("Need Signer to sign input");const nt=[];for(const it of range(this.data.inputs.length))try{this.signInput(it,tt,rt),nt.push(!0)}catch{nt.push(!1)}if(nt.every(it=>it===!1))throw new Error("No inputs were signed");return this}signAllInputsAsync(tt,rt){return new Promise((nt,it)=>{if(!tt||!tt.publicKey)return it(new Error("Need Signer to sign input"));const st=[],at=[];for(const[ot]of this.data.inputs.entries())at.push(this.signInputAsync(ot,tt,rt).then(()=>{st.push(!0)},()=>{st.push(!1)}));return Promise.all(at).then(()=>{if(st.every(ot=>ot===!1))return it(new Error("No inputs were signed"));nt()})})}signInput(tt,rt,nt){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInput(tt,it,rt,void 0,nt):this._signInput(tt,rt,nt)}signTaprootInput(tt,rt,nt,it){if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInput(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)}_signInput(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt),at=[{pubkey:rt.publicKey,signature:bscript.signature.encode(rt.sign(it),st)}];return this.data.updateInput(tt,{partialSig:at}),this}_signTaprootInput(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=at.filter(ut=>!ut.leafHash).map(ut=>(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType))[0],lt=at.filter(ut=>!!ut.leafHash).map(ut=>({pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(nt.signSchnorr(ut.hash),rt.sighashType),leafHash:ut.leafHash}));return ot&&this.data.updateInput(tt,{tapKeySig:ot}),lt.length&&this.data.updateInput(tt,{tapScriptSig:lt}),this}signInputAsync(tt,rt,nt){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const it=(0,utils_1.checkForInput)(this.data.inputs,tt);return(0,bip371_1.isTaprootInput)(it)?this._signTaprootInputAsync(tt,it,rt,void 0,nt):this._signInputAsync(tt,rt,nt)})}signTaprootInputAsync(tt,rt,nt,it){return Promise.resolve().then(()=>{if(!rt||!rt.publicKey)throw new Error("Need Signer to sign input");const st=(0,utils_1.checkForInput)(this.data.inputs,tt);if((0,bip371_1.isTaprootInput)(st))return this._signTaprootInputAsync(tt,st,rt,nt,it);throw new Error(`Input #${tt} is not of type Taproot.`)})}_signInputAsync(tt,rt,nt=[transaction_1.Transaction.SIGHASH_ALL]){const{hash:it,sighashType:st}=getHashAndSighashType(this.data.inputs,tt,rt.publicKey,this.__CACHE,nt);return Promise.resolve(rt.sign(it)).then(at=>{const ot=[{pubkey:rt.publicKey,signature:bscript.signature.encode(at,st)}];this.data.updateInput(tt,{partialSig:ot})})}async _signTaprootInputAsync(tt,rt,nt,it,st=[transaction_1.Transaction.SIGHASH_DEFAULT]){const at=this.checkTaprootHashesForSig(tt,rt,nt,it,st),ot=[],lt=at.filter(dt=>!dt.leafHash)[0];if(lt){const dt=Promise.resolve(nt.signSchnorr(lt.hash)).then(bt=>({tapKeySig:(0,bip371_1.serializeTaprootSignature)(bt,rt.sighashType)}));ot.push(dt)}const ut=at.filter(dt=>!!dt.leafHash);if(ut.length){const dt=ut.map(bt=>Promise.resolve(nt.signSchnorr(bt.hash)).then(gt=>({tapScriptSig:[{pubkey:(0,bip371_1.toXOnly)(nt.publicKey),signature:(0,bip371_1.serializeTaprootSignature)(gt,rt.sighashType),leafHash:bt.leafHash}]})));ot.push(...dt)}return Promise.all(ot).then(dt=>{dt.forEach(bt=>this.data.updateInput(tt,bt))})}checkTaprootHashesForSig(tt,rt,nt,it,st){if(typeof nt.signSchnorr!="function")throw new Error(`Need Schnorr Signer to sign taproot input #${tt}.`);const at=getTaprootHashesForSig(tt,rt,this.data.inputs,nt.publicKey,this.__CACHE,it,st);if(!at||!at.length)throw new Error(`Can not sign for input #${tt} with the key ${nt.publicKey.toString("hex")}`);return at}toBuffer(){return checkCache(this.__CACHE),this.data.toBuffer()}toHex(){return checkCache(this.__CACHE),this.data.toHex()}toBase64(){return checkCache(this.__CACHE),this.data.toBase64()}updateGlobal(tt){return this.data.updateGlobal(tt),this}updateInput(tt,rt){return rt.witnessScript&&checkInvalidP2WSH(rt.witnessScript),(0,bip371_1.checkTaprootInputFields)(this.data.inputs[tt],rt,"updateInput"),this.data.updateInput(tt,rt),rt.nonWitnessUtxo&&addNonWitnessTxCache(this.__CACHE,this.data.inputs[tt],tt),this}updateOutput(tt,rt){const nt=this.data.outputs[tt];return(0,bip371_1.checkTaprootOutputFields)(nt,rt,"updateOutput"),this.data.updateOutput(tt,rt),this}addUnknownKeyValToGlobal(tt){return this.data.addUnknownKeyValToGlobal(tt),this}addUnknownKeyValToInput(tt,rt){return this.data.addUnknownKeyValToInput(tt,rt),this}addUnknownKeyValToOutput(tt,rt){return this.data.addUnknownKeyValToOutput(tt,rt),this}clearFinalizedInput(tt){return this.data.clearFinalizedInput(tt),this}}psbt$1.Psbt=Psbt;const transactionFromBuffer=et=>new PsbtTransaction(et);class PsbtTransaction{constructor(tt=Buffer.from([2,0,0,0,0,0,0,0,0,0])){this.tx=transaction_1.Transaction.fromBuffer(tt),checkTxEmpty(this.tx),Object.defineProperty(this,"tx",{enumerable:!1,writable:!0})}getInputOutputCounts(){return{inputCount:this.tx.ins.length,outputCount:this.tx.outs.length}}addInput(tt){if(tt.hash===void 0||tt.index===void 0||!Buffer.isBuffer(tt.hash)&&typeof tt.hash!="string"||typeof tt.index!="number")throw new Error("Error adding input.");const rt=typeof tt.hash=="string"?(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash,"hex")):tt.hash;this.tx.addInput(rt,tt.index,tt.sequence)}addOutput(tt){if(tt.script===void 0||tt.value===void 0||!Buffer.isBuffer(tt.script)||typeof tt.value!="number")throw new Error("Error adding output.");this.tx.addOutput(tt.script,tt.value)}toBuffer(){return this.tx.toBuffer()}}function canFinalize(et,tt,rt){switch(rt){case"pubkey":case"pubkeyhash":case"witnesspubkeyhash":return hasSigs(1,et.partialSig);case"multisig":const nt=payments.p2ms({output:tt});return hasSigs(nt.m,et.partialSig,nt.pubkeys);default:return!1}}function checkCache(et){if(et.__UNSAFE_SIGN_NONSEGWIT!==!1)throw new Error("Not BIP174 compliant, can not export")}function hasSigs(et,tt,rt){if(!tt)return!1;let nt;if(rt?nt=rt.map(it=>{const st=compressPubkey(it);return tt.find(at=>at.pubkey.equals(st))}).filter(it=>!!it):nt=tt,nt.length>et)throw new Error("Too many signatures");return nt.length===et}function isFinalized(et){return!!et.finalScriptSig||!!et.finalScriptWitness}function bip32DerivationIsMine(et){return tt=>!(!tt.masterFingerprint.equals(et.fingerprint)||!et.derivePath(tt.path).publicKey.equals(tt.pubkey))}function check32Bit(et){if(typeof et!="number"||et!==Math.floor(et)||et>4294967295||et<0)throw new Error("Invalid 32 bit integer")}function checkFees(et,tt,rt){const nt=tt.__FEE_RATE||et.getFeeRate(),it=tt.__EXTRACTED_TX.virtualSize(),st=nt*it;if(nt>=rt.maximumFeeRate)throw new Error(`Warning: You are paying around ${(st/1e8).toFixed(8)} in fees, which is ${nt} satoshi per byte for a transaction with a VSize of ${it} bytes (segwit counted as 0.25 byte per byte). Use setMaximumFeeRate method to raise your threshold, or pass true to the first arg of extractTransaction.`)}function checkInputsForPartialSig(et,tt){et.forEach(rt=>{if((0,bip371_1.isTaprootInput)(rt)?(0,bip371_1.checkTaprootInputForSigs)(rt,tt):(0,psbtutils_1.checkInputForSig)(rt,tt))throw new Error("Can not modify transaction, signatures exist.")})}function checkPartialSigSighashes(et){if(!et.sighashType||!et.partialSig)return;const{partialSig:tt,sighashType:rt}=et;tt.forEach(nt=>{const{hashType:it}=bscript.signature.decode(nt.signature);if(rt!==it)throw new Error("Signature sighash does not match input sighash type")})}function checkScriptForPubkey(et,tt,rt){if(!(0,psbtutils_1.pubkeyInScript)(et,tt))throw new Error(`Can not ${rt} for this input with the key ${et.toString("hex")}`)}function checkTxEmpty(et){if(!et.ins.every(rt=>rt.script&&rt.script.length===0&&rt.witness&&rt.witness.length===0))throw new Error("Format Error: Transaction ScriptSigs are not empty")}function checkTxForDupeIns(et,tt){et.ins.forEach(rt=>{checkTxInputCache(tt,rt)})}function checkTxInputCache(et,tt){const rt=(0,bufferutils_1.reverseBuffer)(Buffer.from(tt.hash)).toString("hex")+":"+tt.index;if(et.__TX_IN_CACHE[rt])throw new Error("Duplicate input detected.");et.__TX_IN_CACHE[rt]=1}function scriptCheckerFactory(et,tt){return(rt,nt,it,st)=>{const at=et({redeem:{output:it}}).output;if(!nt.equals(at))throw new Error(`${tt} for ${st} #${rt} doesn't match the scriptPubKey in the prevout`)}}const checkRedeemScript=scriptCheckerFactory(payments.p2sh,"Redeem script"),checkWitnessScript=scriptCheckerFactory(payments.p2wsh,"Witness script");function getTxCacheValue(et,tt,rt,nt){if(!rt.every(isFinalized))throw new Error(`PSBT must be finalized to calculate ${tt}`);if(et==="__FEE_RATE"&&nt.__FEE_RATE)return nt.__FEE_RATE;if(et==="__FEE"&&nt.__FEE)return nt.__FEE;let it,st=!0;if(nt.__EXTRACTED_TX?(it=nt.__EXTRACTED_TX,st=!1):it=nt.__TX.clone(),inputFinalizeGetAmts(rt,it,nt,st),et==="__FEE_RATE")return nt.__FEE_RATE;if(et==="__FEE")return nt.__FEE}function getFinalScripts(et,tt,rt,nt,it,st){const at=classifyScript(rt);if(!canFinalize(tt,rt,at))throw new Error(`Can not finalize input #${et}`);return prepareFinalScripts(rt,at,tt.partialSig,nt,it,st)}function prepareFinalScripts(et,tt,rt,nt,it,st){let at,ot;const lt=getPayment(et,tt,rt),ut=st?payments.p2wsh({redeem:lt}):null,dt=it?payments.p2sh({redeem:ut||lt}):null;return nt?(ut?ot=(0,psbtutils_1.witnessStackToScriptWitness)(ut.witness):ot=(0,psbtutils_1.witnessStackToScriptWitness)(lt.witness),dt&&(at=dt.input)):dt?at=dt.input:at=lt.input,{finalScriptSig:at,finalScriptWitness:ot}}function getHashAndSighashType(et,tt,rt,nt,it){const st=(0,utils_1.checkForInput)(et,tt),{hash:at,sighashType:ot,script:lt}=getHashForSig(tt,st,nt,!1,it);return checkScriptForPubkey(rt,lt,"sign"),{hash:at,sighashType:ot}}function getHashForSig(et,tt,rt,nt,it){const st=rt.__TX,at=tt.sighashType||transaction_1.Transaction.SIGHASH_ALL;checkSighashTypeAllowed(at,it);let ot,lt;if(tt.nonWitnessUtxo){const bt=nonWitnessUtxoTxFromCache(rt,tt,et),gt=st.ins[et].hash,kt=bt.getHash();if(!gt.equals(kt))throw new Error(`Non-witness UTXO hash for input #${et} doesn't match the hash specified in the prevout`);const pt=st.ins[et].index;lt=bt.outs[pt]}else if(tt.witnessUtxo)lt=tt.witnessUtxo;else throw new Error("Need a Utxo input item for signing");const{meaningfulScript:ut,type:dt}=getMeaningfulScript(lt.script,et,"input",tt.redeemScript,tt.witnessScript);if(["p2sh-p2wsh","p2wsh"].indexOf(dt)>=0)ot=st.hashForWitnessV0(et,ut,lt.value,at);else if((0,psbtutils_1.isP2WPKH)(ut)){const bt=payments.p2pkh({hash:ut.slice(2)}).output;ot=st.hashForWitnessV0(et,bt,lt.value,at)}else{if(tt.nonWitnessUtxo===void 0&&rt.__UNSAFE_SIGN_NONSEGWIT===!1)throw new Error(`Input #${et} has witnessUtxo but non-segwit script: ${ut.toString("hex")}`);!nt&&rt.__UNSAFE_SIGN_NONSEGWIT!==!1&&console.warn(`Warning: Signing non-segwit inputs without the full parent transaction means there is a chance that a miner could feed you incorrect information to trick you into paying large fees. This behavior is the same as Psbt's predecesor (TransactionBuilder - now removed) when signing non-segwit scripts. You are not able to export this Psbt with toBuffer|toBase64|toHex since it is not BIP174 compliant. ********************* PROCEED WITH CAUTION! -*********************`),ot=st.hashForSignature(et,ut,at)}return{script:ut,sighashType:at,hash:ot}}function getAllTaprootHashesForSig(et,tt,rt,nt){const it=[];if(tt.tapInternalKey){const at=getPrevoutTaprootKey(et,tt,nt);at&&it.push(at)}if(tt.tapScriptSig){const at=tt.tapScriptSig.map(ot=>ot.pubkey);it.push(...at)}return it.map(at=>getTaprootHashesForSig(et,tt,rt,at,nt)).flat()}function getPrevoutTaprootKey(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return(0,psbtutils_1.isP2TR)(nt)?nt.subarray(2,34):null}function trimTaprootSig(et){return et.length===64?et:et.subarray(0,64)}function getTaprootHashesForSig(et,tt,rt,nt,it,st,at){const ot=it.__TX,lt=tt.sighashType||transaction_1.Transaction.SIGHASH_DEFAULT;checkSighashTypeAllowed(lt,at);const ut=rt.map((pt,yt)=>getScriptAndAmountFromUtxo(yt,pt,it)),dt=ut.map(pt=>pt.script),bt=ut.map(pt=>pt.value),gt=[];if(tt.tapInternalKey&&!st){const pt=getPrevoutTaprootKey(et,tt,it)||Buffer.from([]);if((0,bip371_1.toXOnly)(nt).equals(pt)){const yt=ot.hashForWitnessV1(et,dt,bt,lt);gt.push({pubkey:nt,hash:yt})}}const kt=(tt.tapLeafScript||[]).filter(pt=>(0,psbtutils_1.pubkeyInScript)(nt,pt.script)).map(pt=>{const yt=(0,bip341_1.tapleafHash)({output:pt.script,version:pt.leafVersion});return Object.assign({hash:yt},pt)}).filter(pt=>!st||st.equals(pt.hash)).map(pt=>{const yt=ot.hashForWitnessV1(et,dt,bt,transaction_1.Transaction.SIGHASH_DEFAULT,pt.hash);return{pubkey:nt,hash:yt,leafHash:pt.hash}});return gt.concat(kt)}function checkSighashTypeAllowed(et,tt){if(tt&&tt.indexOf(et)<0){const rt=sighashTypeToString(et);throw new Error(`Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: ${rt}`)}}function getPayment(et,tt,rt){let nt;switch(tt){case"multisig":const it=getSortedSigs(et,rt);nt=payments.p2ms({output:et,signatures:it});break;case"pubkey":nt=payments.p2pk({output:et,signature:rt[0].signature});break;case"pubkeyhash":nt=payments.p2pkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break;case"witnesspubkeyhash":nt=payments.p2wpkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break}return nt}function getScriptFromInput(et,tt,rt){const nt=rt.__TX,it={script:null,isSegwit:!1,isP2SH:!1,isP2WSH:!1};if(it.isP2SH=!!tt.redeemScript,it.isP2WSH=!!tt.witnessScript,tt.witnessScript)it.script=tt.witnessScript;else if(tt.redeemScript)it.script=tt.redeemScript;else if(tt.nonWitnessUtxo){const st=nonWitnessUtxoTxFromCache(rt,tt,et),at=nt.ins[et].index;it.script=st.outs[at].script}else tt.witnessUtxo&&(it.script=tt.witnessUtxo.script);return(tt.witnessScript||(0,psbtutils_1.isP2WPKH)(it.script))&&(it.isSegwit=!0),it}function getSignersFromHD(et,tt,rt){const nt=(0,utils_1.checkForInput)(tt,et);if(!nt.bip32Derivation||nt.bip32Derivation.length===0)throw new Error("Need bip32Derivation to sign with HD");const it=nt.bip32Derivation.map(at=>{if(at.masterFingerprint.equals(rt.fingerprint))return at}).filter(at=>!!at);if(it.length===0)throw new Error("Need one bip32Derivation masterFingerprint to match the HDSigner fingerprint");return it.map(at=>{const ot=rt.derivePath(at.path);if(!at.pubkey.equals(ot.publicKey))throw new Error("pubkey did not match bip32Derivation");return ot})}function getSortedSigs(et,tt){return payments.p2ms({output:et}).pubkeys.map(nt=>(tt.filter(it=>it.pubkey.equals(nt))[0]||{}).signature).filter(nt=>!!nt)}function scriptWitnessToWitnessStack(et){let tt=0;function rt(at){return tt+=at,et.slice(tt-at,tt)}function nt(){const at=varuint.decode(et,tt);return tt+=varuint.decode.bytes,at}function it(){return rt(nt())}function st(){const at=nt(),ot=[];for(let lt=0;lt{if(nt&<.finalScriptSig&&(tt.ins[ut].script=lt.finalScriptSig),nt&<.finalScriptWitness&&(tt.ins[ut].witness=scriptWitnessToWitnessStack(lt.finalScriptWitness)),lt.witnessUtxo)it+=lt.witnessUtxo.value;else if(lt.nonWitnessUtxo){const dt=nonWitnessUtxoTxFromCache(rt,lt,ut),bt=tt.ins[ut].index,gt=dt.outs[bt];it+=gt.value}});const st=tt.outs.reduce((lt,ut)=>lt+ut.value,0),at=it-st;if(at<0)throw new Error("Outputs are spending more than Inputs");const ot=tt.virtualSize();rt.__FEE=at,rt.__EXTRACTED_TX=tt,rt.__FEE_RATE=Math.floor(at/ot)}function nonWitnessUtxoTxFromCache(et,tt,rt){const nt=et.__NON_WITNESS_UTXO_TX_CACHE;return nt[rt]||addNonWitnessTxCache(et,tt,rt),nt[rt]}function getScriptFromUtxo(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return nt}function getScriptAndAmountFromUtxo(et,tt,rt){if(tt.witnessUtxo!==void 0)return{script:tt.witnessUtxo.script,value:tt.witnessUtxo.value};if(tt.nonWitnessUtxo!==void 0){const it=nonWitnessUtxoTxFromCache(rt,tt,et).outs[rt.__TX.ins[et].index];return{script:it.script,value:it.value}}else throw new Error("Can't find pubkey in input without Utxo data")}function pubkeyInInput(et,tt,rt,nt){const it=getScriptFromUtxo(rt,tt,nt),{meaningfulScript:st}=getMeaningfulScript(it,rt,"input",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function pubkeyInOutput(et,tt,rt,nt){const it=nt.__TX.outs[rt].script,{meaningfulScript:st}=getMeaningfulScript(it,rt,"output",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function redeemFromFinalScriptSig(et){if(!et)return;const tt=bscript.decompile(et);if(!tt)return;const rt=tt[tt.length-1];if(!(!Buffer.isBuffer(rt)||isPubkeyLike(rt)||isSigLike(rt)||!bscript.decompile(rt)))return rt}function redeemFromFinalWitnessScript(et){if(!et)return;const tt=scriptWitnessToWitnessStack(et),rt=tt[tt.length-1];if(!(isPubkeyLike(rt)||!bscript.decompile(rt)))return rt}function compressPubkey(et){if(et.length===65){const tt=et[64]&1,rt=et.slice(0,33);return rt[0]=2|tt,rt}return et.slice()}function isPubkeyLike(et){return et.length===33&&bscript.isCanonicalPubKey(et)}function isSigLike(et){return bscript.isCanonicalScriptSignature(et)}function getMeaningfulScript(et,tt,rt,nt,it){const st=(0,psbtutils_1.isP2SHScript)(et),at=st&&nt&&(0,psbtutils_1.isP2WSHScript)(nt),ot=(0,psbtutils_1.isP2WSHScript)(et);if(st&&nt===void 0)throw new Error("scriptPubkey is P2SH but redeemScript missing");if((ot||at)&&it===void 0)throw new Error("scriptPubkey or redeemScript is P2WSH but witnessScript missing");let lt;return at?(lt=it,checkRedeemScript(tt,et,nt,rt),checkWitnessScript(tt,nt,it,rt),checkInvalidP2WSH(lt)):ot?(lt=it,checkWitnessScript(tt,et,it,rt),checkInvalidP2WSH(lt)):st?(lt=nt,checkRedeemScript(tt,et,nt,rt)):lt=et,{meaningfulScript:lt,type:at?"p2sh-p2wsh":st?"p2sh":ot?"p2wsh":"raw"}}function checkInvalidP2WSH(et){if((0,psbtutils_1.isP2WPKH)(et)||(0,psbtutils_1.isP2SHScript)(et))throw new Error("P2WPKH or P2SH can not be contained within P2WSH")}function classifyScript(et){return(0,psbtutils_1.isP2WPKH)(et)?"witnesspubkeyhash":(0,psbtutils_1.isP2PKH)(et)?"pubkeyhash":(0,psbtutils_1.isP2MS)(et)?"multisig":(0,psbtutils_1.isP2PK)(et)?"pubkey":"nonstandard"}function range(et){return[...Array(et).keys()]}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.initEccLib=et.Transaction=et.opcodes=et.Psbt=et.Block=et.script=et.payments=et.networks=et.crypto=et.address=void 0;const tt=address;et.address=tt;const rt=crypto$2;et.crypto=rt;const nt=networks$1;et.networks=nt;const it=payments$3;et.payments=it;const st=script;et.script=st;var at=block;Object.defineProperty(et,"Block",{enumerable:!0,get:function(){return at.Block}});var ot=psbt$1;Object.defineProperty(et,"Psbt",{enumerable:!0,get:function(){return ot.Psbt}});var lt=ops;Object.defineProperty(et,"opcodes",{enumerable:!0,get:function(){return lt.OPS}});var ut=transaction;Object.defineProperty(et,"Transaction",{enumerable:!0,get:function(){return ut.Transaction}});var dt=ecc_lib;Object.defineProperty(et,"initEccLib",{enumerable:!0,get:function(){return dt.initEccLib}})})(src$1);function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(et,tt){return et===tt||et!==et&&tt!==tt}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(et,tt){for(var rt=et.length;rt--;)if(eq$1(et[rt][0],tt))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(et){var tt=this.__data__,rt=assocIndexOf$3(tt,et);if(rt<0)return!1;var nt=tt.length-1;return rt==nt?tt.pop():splice.call(tt,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(et){var tt=this.__data__,rt=assocIndexOf$2(tt,et);return rt<0?void 0:tt[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(et){return assocIndexOf$1(this.__data__,et)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(et,tt){var rt=this.__data__,nt=assocIndexOf(rt,et);return nt<0?(++this.size,rt.push([et,tt])):rt[nt][1]=tt,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt-1&&et%1==0&&et-1&&et%1==0&&et<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$2="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(et){return isObjectLike$2(et)&&isLength$1(et.length)&&!!typedArrayTags[baseGetTag$1(et)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(et){return function(tt){return et(tt)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(et,tt){var rt=_freeGlobal,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st&&rt.process,ot=function(){try{var lt=it&&it.require&&it.require("util").types;return lt||at&&at.binding&&at.binding("util")}catch{}}();et.exports=ot})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$2=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$3=objectProto$5.hasOwnProperty;function arrayLikeKeys$2(et,tt){var rt=isArray$2(et),nt=!rt&&isArguments(et),it=!rt&&!nt&&isBuffer$1(et),st=!rt&&!nt&&!it&&isTypedArray(et),at=rt||nt||it||st,ot=at?baseTimes(et.length,String):[],lt=ot.length;for(var ut in et)(tt||hasOwnProperty$3.call(et,ut))&&!(at&&(ut=="length"||it&&(ut=="offset"||ut=="parent")||st&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||isIndex(ut,lt)))&&ot.push(ut);return ot}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$4=Object.prototype;function isPrototype$3(et){var tt=et&&et.constructor,rt=typeof tt=="function"&&tt.prototype||objectProto$4;return et===rt}var _isPrototype=isPrototype$3;function overArg$2(et,tt){return function(rt){return et(tt(rt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeys$1(et){if(!isPrototype$2(et))return nativeKeys(et);var tt=[];for(var rt in Object(et))hasOwnProperty$2.call(et,rt)&&rt!="constructor"&&tt.push(rt);return tt}var _baseKeys=baseKeys$1,isFunction$1=isFunction_1,isLength=isLength_1;function isArrayLike$2(et){return et!=null&&isLength(et.length)&&!isFunction$1(et)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(et){return isArrayLike$1(et)?arrayLikeKeys$1(et):baseKeys(et)}var keys_1=keys$3,copyObject$3=_copyObject,keys$2=keys_1;function baseAssign$1(et,tt){return et&©Object$3(tt,keys$2(tt),et)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(et){var tt=[];if(et!=null)for(var rt in Object(et))tt.push(rt);return tt}var _nativeKeysIn=nativeKeysIn$1,isObject$4=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty;function baseKeysIn$1(et){if(!isObject$4(et))return nativeKeysIn(et);var tt=isPrototype$1(et),rt=[];for(var nt in et)nt=="constructor"&&(tt||!hasOwnProperty$1.call(et,nt))||rt.push(nt);return rt}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;function keysIn$3(et){return isArrayLike(et)?arrayLikeKeys(et,!0):baseKeysIn(et)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(et,tt){return et&©Object$2(tt,keysIn$2(tt),et)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(et,tt){var rt=_root,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st?rt.Buffer:void 0,ot=at?at.allocUnsafe:void 0;function lt(ut,dt){if(dt)return ut.slice();var bt=ut.length,gt=ot?ot(bt):new ut.constructor(bt);return ut.copy(gt),gt}et.exports=lt})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(et,tt){var rt=-1,nt=et.length;for(tt||(tt=Array(nt));++rtwordsToBuffer(et,!0).toString("hex"),16:et=>wordsToBuffer(et,!0).toString("hex"),13:et=>wordsToBuffer(et,!0).toString("utf8"),19:et=>wordsToBuffer(et,!0).toString("hex"),23:et=>wordsToBuffer(et,!0).toString("hex"),6:wordsToIntBE,24:wordsToIntBE,9:fallbackAddressParser,3:routingInfoParser,5:featureBitsParser},unknownTagName="unknownTag";function unknownEncoder(et){return et.words=bech32.decode(et.words,Number.MAX_SAFE_INTEGER).words,et}function getUnknownParser(et){return tt=>({tagCode:parseInt(et),words:bech32.encode("unknown",tt,Number.MAX_SAFE_INTEGER)})}function wordsToIntBE(et){return et.reverse().reduce((tt,rt,nt)=>tt+rt*Math.pow(32,nt),0)}function intBEToWords(et,tt){const rt=[];if(tt===void 0&&(tt=5),et=Math.floor(et),et===0)return[0];for(;et>0;)rt.push(et&Math.pow(2,tt)-1),et=Math.floor(et/Math.pow(2,tt));return rt.reverse()}function sha256(et){return createHash("sha256").update(et).digest()}function convert(et,tt,rt){let nt=0,it=0;const st=(1<=rt;)it-=rt,at.push(nt>>it&st);return it>0&&at.push(nt<0;)rt=ot.slice(0,33).toString("hex"),nt=ot.slice(33,41).toString("hex"),it=parseInt(ot.slice(41,45).toString("hex"),16),st=parseInt(ot.slice(45,49).toString("hex"),16),at=parseInt(ot.slice(49,51).toString("hex"),16),ot=ot.slice(51),tt.push({pubkey:rt,short_channel_id:nt,fee_base_msat:it,fee_proportional_millionths:st,cltv_expiry_delta:at});return tt}function featureBitsParser(et){const tt=et.slice().reverse().map(nt=>[!!(nt&1),!!(nt&2),!!(nt&4),!!(nt&8),!!(nt&16)]).reduce((nt,it)=>nt.concat(it),[]);for(;tt.length{rt[nt]={required:tt[it*2],supported:tt[it*2+1]}}),tt.length>FEATUREBIT_ORDER.length*2){const nt=tt.slice(FEATUREBIT_ORDER.length*2);rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:nt,has_required:nt.reduce((it,st,at)=>at%2!==0?it||!1:it||st,!1)}}else rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:[],has_required:!1};return rt}function featureBitsEncoder(et){let tt=et.word_length,rt=[];for(FEATUREBIT_ORDER.forEach(nt=>{rt.push(!!(et[nt]||{}).required),rt.push(!!(et[nt]||{}).supported)});rt[rt.length-1]===!1;)rt.pop();for(;rt.length%5!==0;)rt.push(!1);if(et.extra_bits&&Array.isArray(et.extra_bits.bits)&&et.extra_bits.bits.length>0){for(;rt.lengthtt)throw new Error("word_length is too small to contain all featureBits");return tt===void 0&&(tt=Math.ceil(rt.length/5)),new Array(tt).fill(0).map((nt,it)=>rt[it*5+4]<<4|rt[it*5+3]<<3|rt[it*5+2]<<2|rt[it*5+1]<<1|rt[it*5]<<0).reverse()}function routingInfoEncoder(et){let tt=Buffer$1.from([]);return et.forEach(rt=>{tt=Buffer$1.concat([tt,hexToBuffer(rt.pubkey)]),tt=Buffer$1.concat([tt,hexToBuffer(rt.short_channel_id)]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_base_msat,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_proportional_millionths,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0].concat(intBEToWords(rt.cltv_expiry_delta,8)).slice(-2))])}),hexToWord(tt)}function purposeCommitEncoder(et){let tt;if(et!==void 0&&(typeof et=="string"||et instanceof String))et.match(/^([a-zA-Z0-9]{2})*$/)?tt=Buffer$1.from(et,"hex"):tt=sha256(Buffer$1.from(et,"utf8"));else throw new Error("purpose or purpose commit must be a string or hex string");return bech32.toWords(tt)}function tagsItems(et,tt){const rt=et.filter(it=>it.tagName===tt);return rt.length>0?rt[0].data:null}function tagsContainItem(et,tt){return tagsItems(et,tt)!==null}function orderKeys(et,tt){const rt={};if(Object.keys(et).sort().forEach(nt=>{rt[nt]=et[nt]}),tt===!0){const nt="__tagsObject_cache";Object.defineProperty(rt,"tagsObject",{get(){return this[nt]||Object.defineProperty(this,nt,{value:getTagsObject(this.tags)}),this[nt]}})}return rt}function satToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("satoshis must be an integer");const tt=new BN(et,10);return millisatToHrp(tt.mul(new BN(1e3,10)))}function millisatToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("millisatoshis must be an integer");const tt=new BN(et,10),rt=tt.toString(10),nt=rt.length;let it,st;return nt>11&&/0{11}$/.test(rt)?(it="",st=tt.div(MILLISATS_PER_BTC).toString(10)):nt>8&&/0{8}$/.test(rt)?(it="m",st=tt.div(MILLISATS_PER_MILLIBTC).toString(10)):nt>5&&/0{5}$/.test(rt)?(it="u",st=tt.div(MILLISATS_PER_MICROBTC).toString(10)):nt>2&&/0{2}$/.test(rt)?(it="n",st=tt.div(MILLISATS_PER_NANOBTC).toString(10)):(it="p",st=tt.mul(PICOBTC_PER_MILLISATS).toString(10)),st+it}function hrpToSat(et,tt){const rt=hrpToMillisat(et,!1);if(!rt.mod(new BN(1e3,10)).eq(new BN(0,10)))throw new Error("Amount is outside of valid range");const nt=rt.div(new BN(1e3,10));return tt?nt.toString():nt}function hrpToMillisat(et,tt){let rt,nt;if(et.slice(-1).match(/^[munp]$/))rt=et.slice(-1),nt=et.slice(0,-1);else{if(et.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");nt=et}if(!nt.match(/^\d+$/))throw new Error("Not a valid human readable amount");const it=new BN(nt,10),st=rt?it.mul(MILLISATS_PER_BTC).div(DIVISORS[rt]):it.mul(MILLISATS_PER_BTC);if(rt==="p"&&!it.mod(new BN(10,10)).eq(new BN(0,10))||st.gt(MAX_MILLISATS))throw new Error("Amount is outside of valid range");return tt?st.toString():st}function sign(et,tt){const rt=cloneDeep(et),nt=hexToBuffer(tt);if(rt.complete&&rt.paymentRequest)return rt;if(nt===void 0||nt.length!==32||!secp256k1.privateKeyVerify(nt))throw new Error("privateKey must be a 32 byte Buffer and valid private key");let it,st;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(st=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(it=hexToBuffer(rt.payeeNodeKey)),it&&st&&!st.equals(it))throw new Error("payee node key tag and payeeNodeKey attribute must match");it=st||it;const at=Buffer$1.from(secp256k1.publicKeyCreate(nt));if(it&&!at.equals(it))throw new Error("The private key given is not the private key of the node public key given");const ot=bech32.decode(rt.wordsTemp,Number.MAX_SAFE_INTEGER).words,lt=Buffer$1.concat([Buffer$1.from(rt.prefix,"utf8"),wordsToBuffer(ot)]),ut=sha256(lt),dt=secp256k1.ecdsaSign(ut,nt);dt.signature=Buffer$1.from(dt.signature);const bt=hexToWord(dt.signature.toString("hex")+"0"+dt.recid);return rt.payeeNodeKey=at.toString("hex"),rt.signature=dt.signature.toString("hex"),rt.recoveryFlag=dt.recid,rt.wordsTemp=bech32.encode("temp",ot.concat(bt),Number.MAX_SAFE_INTEGER),rt.complete=!0,rt.paymentRequest=bech32.encode(rt.prefix,ot.concat(bt),Number.MAX_SAFE_INTEGER),orderKeys(rt)}function encode$3(et,tt){const rt=cloneDeep(et);tt===void 0&&(tt=!0);const nt=!(rt.signature===void 0||rt.recoveryFlag===void 0);let it;if(rt.network===void 0&&!nt)rt.network=DEFAULTNETWORK,it=DEFAULTNETWORK;else{if(rt.network===void 0&&nt)throw new Error("Need network for proper payment request reconstruction");if(!rt.network.bech32||rt.network.pubKeyHash===void 0||rt.network.scriptHash===void 0||!Array.isArray(rt.network.validWitnessVersions))throw new Error("Invalid network");it=rt.network}if(rt.timestamp===void 0&&!nt)rt.timestamp=Math.floor(new Date().getTime()/1e3);else if(rt.timestamp===void 0&&nt)throw new Error("Need timestamp for proper payment request reconstruction");if(rt.tags===void 0)throw new Error("Payment Requests need tags array");if(!tagsContainItem(rt.tags,TAGNAMES[1]))throw new Error("Lightning Payment Request needs a payment hash");if(tagsContainItem(rt.tags,TAGNAMES[16]))if(tagsContainItem(rt.tags,TAGNAMES[5])){const St=tagsItems(rt.tags,TAGNAMES[5]);if(!St.payment_secret||!St.payment_secret.supported&&!St.payment_secret.required)throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included")}else if(tt)rt.tags.push({tagName:TAGNAMES[5],data:DEFAULTFEATUREBITS});else throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included");if(!tagsContainItem(rt.tags,TAGNAMES[13])&&!tagsContainItem(rt.tags,TAGNAMES[23]))if(tt)rt.tags.push({tagName:TAGNAMES[13],data:DEFAULTDESCRIPTION});else throw new Error("Payment request requires description or purpose commit hash");if(tagsContainItem(rt.tags,TAGNAMES[13])&&Buffer$1.from(tagsItems(rt.tags,TAGNAMES[13]),"utf8").length>639)throw new Error("Description is too long: Max length 639 bytes");!tagsContainItem(rt.tags,TAGNAMES[6])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[6],data:DEFAULTEXPIRETIME}),!tagsContainItem(rt.tags,TAGNAMES[24])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[24],data:DEFAULTCLTVEXPIRY});let st,at;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(at=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(st=hexToBuffer(rt.payeeNodeKey)),st&&at&&!at.equals(st))throw new Error("payeeNodeKey and tag payee node key do not match");st=st||at,st&&(rt.payeeNodeKey=st.toString("hex"));let ot,lt,ut;if(tagsContainItem(rt.tags,TAGNAMES[9])){const St=tagsItems(rt.tags,TAGNAMES[9]);if(ut=St.address,lt=St.addressHash,ot=St.code,lt===void 0||ot===void 0){let Bt,Ft;try{Bt=bitcoinjsAddress.fromBech32(ut),lt=Bt.data,ot=Bt.version}catch{try{Ft=bitcoinjsAddress.fromBase58Check(ut),Ft.version===it.pubKeyHash?ot=17:Ft.version===it.scriptHash&&(ot=18),lt=Ft.hash}catch{throw new Error("Fallback address type is unknown")}}if(Bt&&!(Bt.version in it.validWitnessVersions))throw new Error("Fallback address witness version is unknown");if(Bt&&Bt.prefix!==it.bech32)throw new Error("Fallback address network type does not match payment request network type");if(Ft&&Ft.version!==it.pubKeyHash&&Ft.version!==it.scriptHash)throw new Error("Fallback address version (base58) is unknown or the network type is incorrect");St.addressHash=lt.toString("hex"),St.code=ot}}tagsContainItem(rt.tags,TAGNAMES[3])&&tagsItems(rt.tags,TAGNAMES[3]).forEach(Bt=>{if(Bt.pubkey===void 0||Bt.short_channel_id===void 0||Bt.fee_base_msat===void 0||Bt.fee_proportional_millionths===void 0||Bt.cltv_expiry_delta===void 0)throw new Error("Routing info is incomplete");if(!secp256k1.publicKeyVerify(hexToBuffer(Bt.pubkey)))throw new Error("Routing info pubkey is not a valid pubkey");const Ft=hexToBuffer(Bt.short_channel_id);if(!(Ft instanceof Buffer$1)||Ft.length!==8)throw new Error("Routing info short channel id must be 8 bytes");if(typeof Bt.fee_base_msat!="number"||Math.floor(Bt.fee_base_msat)!==Bt.fee_base_msat)throw new Error("Routing info fee base msat is not an integer");if(typeof Bt.fee_proportional_millionths!="number"||Math.floor(Bt.fee_proportional_millionths)!==Bt.fee_proportional_millionths)throw new Error("Routing info fee proportional millionths is not an integer");if(typeof Bt.cltv_expiry_delta!="number"||Math.floor(Bt.cltv_expiry_delta)!==Bt.cltv_expiry_delta)throw new Error("Routing info cltv expiry delta is not an integer")});let dt="ln";dt+=it.bech32;let bt;if(rt.millisatoshis&&rt.satoshis){if(bt=millisatToHrp(new BN(rt.millisatoshis,10)),satToHrp(new BN(rt.satoshis,10))!==bt)throw new Error("satoshis and millisatoshis do not match")}else rt.millisatoshis?bt=millisatToHrp(new BN(rt.millisatoshis,10)):rt.satoshis?bt=satToHrp(new BN(rt.satoshis,10)):bt="";dt+=bt;const gt=intBEToWords(rt.timestamp);for(;gt.length<7;)gt.unshift(0);const kt=rt.tags;let pt=[];kt.forEach(St=>{const Bt=Object.keys(TAGENCODERS);if(nt&&Bt.push(unknownTagName),Bt.indexOf(St.tagName)===-1)throw new Error("Unknown tag key: "+St.tagName);let Ft;if(St.tagName!==unknownTagName){pt.push(TAGCODES[St.tagName]);const Lt=TAGENCODERS[St.tagName];Ft=Lt(St.data)}else{const Lt=unknownEncoder(St.data);pt.push(Lt.tagCode),Ft=Lt.words}pt=pt.concat([0].concat(intBEToWords(Ft.length)).slice(-2)),pt=pt.concat(Ft)});let yt=gt.concat(pt);const $t=Buffer$1.concat([Buffer$1.from(dt,"utf8"),Buffer$1.from(convert(yt,5,8))]),mt=sha256($t);let wt;if(nt)if(st){const St=Buffer$1.from(secp256k1.ecdsaRecover(Buffer$1.from(rt.signature,"hex"),rt.recoveryFlag,mt,!0));if(st&&!st.equals(St))throw new Error("Signature, message, and recoveryID did not produce the same pubkey as payeeNodeKey");wt=hexToWord(rt.signature+"0"+rt.recoveryFlag)}else throw new Error("Reconstruction with signature and recoveryID requires payeeNodeKey to verify correctness of input data.");return wt&&(yt=yt.concat(wt)),tagsContainItem(rt.tags,TAGNAMES[6])&&(rt.timeExpireDate=rt.timestamp+tagsItems(rt.tags,TAGNAMES[6]),rt.timeExpireDateString=new Date(rt.timeExpireDate*1e3).toISOString()),rt.timestampString=new Date(rt.timestamp*1e3).toISOString(),rt.complete=!!wt,rt.paymentRequest=rt.complete?bech32.encode(dt,yt,Number.MAX_SAFE_INTEGER):"",rt.prefix=dt,rt.wordsTemp=bech32.encode("temp",yt,Number.MAX_SAFE_INTEGER),orderKeys(rt)}function decode$3(et,tt){if(typeof et!="string")throw new Error("Lightning Payment Request must be string");if(et.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const rt=bech32.decode(et,Number.MAX_SAFE_INTEGER);et=et.toLowerCase();const nt=rt.prefix;let it=rt.words;const st=it.slice(-104),at=it.slice(0,-104);it=it.slice(0,-104);let ot=wordsToBuffer(st,!0);const lt=ot.slice(-1)[0];if(ot=ot.slice(0,-1),!(lt in[0,1,2,3])||ot.length!==64)throw new Error("Signature is missing or incorrect");let ut=nt.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(ut&&!ut[2]&&(ut=nt.match(/^ln(\S+)$/)),!ut)throw new Error("Not a proper lightning payment request");const dt=ut[1];let bt;if(tt){if(tt.bech32===void 0||tt.pubKeyHash===void 0||tt.scriptHash===void 0||!Array.isArray(tt.validWitnessVersions))throw new Error("Invalid network");bt=tt}else switch(dt){case DEFAULTNETWORK.bech32:bt=DEFAULTNETWORK;break;case TESTNETWORK.bech32:bt=TESTNETWORK;break;case REGTESTNETWORK.bech32:bt=REGTESTNETWORK;break;case SIMNETWORK.bech32:bt=SIMNETWORK;break}if(!bt||bt.bech32!==dt)throw new Error("Unknown coin bech32 prefix");const gt=ut[2];let kt,pt,yt;if(gt){const Mt=ut[3];try{kt=parseInt(hrpToSat(gt+Mt,!0))}catch{kt=null,yt=!0}pt=hrpToMillisat(gt+Mt,!0)}else kt=null,pt=null;const $t=wordsToIntBE(it.slice(0,7)),mt=new Date($t*1e3).toISOString();it=it.slice(7);const wt=[];let St,Bt,Ft,Lt;for(;it.length>0;){const Mt=it[0].toString();St=TAGNAMES[Mt]||unknownTagName,Bt=TAGPARSERS[Mt]||getUnknownParser(Mt),it=it.slice(1),Ft=wordsToIntBE(it.slice(0,2)),it=it.slice(2),Lt=it.slice(0,Ft),it=it.slice(Ft),wt.push({tagName:St,data:Bt(Lt,bt)})}let zt,Ht;tagsContainItem(wt,TAGNAMES[6])&&(zt=$t+tagsItems(wt,TAGNAMES[6]),Ht=new Date(zt*1e3).toISOString());const Wt=Buffer$1.concat([Buffer$1.from(nt,"utf8"),Buffer$1.from(convert(at,5,8))]),lr=sha256(Wt),qt=Buffer$1.from(secp256k1.ecdsaRecover(ot,lt,lr,!0));if(tagsContainItem(wt,TAGNAMES[19])&&tagsItems(wt,TAGNAMES[19])!==qt.toString("hex"))throw new Error("Lightning Payment Request signature pubkey does not match payee pubkey");let Ot={paymentRequest:et,complete:!0,prefix:nt,wordsTemp:bech32.encode("temp",at.concat(st),Number.MAX_SAFE_INTEGER),network:bt,satoshis:kt,millisatoshis:pt,timestamp:$t,timestampString:mt,payeeNodeKey:qt.toString("hex"),signature:ot.toString("hex"),recoveryFlag:lt,tags:wt};return yt&&delete Ot.satoshis,zt&&(Ot=Object.assign(Ot,{timeExpireDate:zt,timeExpireDateString:Ht})),orderKeys(Ot,!0)}function getTagsObject(et){const tt={};return et.forEach(rt=>{rt.tagName===unknownTagName?(tt.unknownTags||(tt.unknownTags=[]),tt.unknownTags.push(rt.data)):tt[rt.tagName]=rt.data}),tt}var payreq={encode:encode$3,decode:decode$3,sign,satToHrp,millisatToHrp,hrpToSat,hrpToMillisat};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(dt){return dt&&dt.__esModule?dt:{default:dt}};Object.defineProperty(et,"__esModule",{value:!0}),et.getIdFromRequest=et.decode=et.isHex=et.stringToBytes=et.isValue=et.utf8Encoder=void 0;const rt=tt(payreq),nt=tt(assert_1);let it;typeof window<"u"&&window&&window.TextEncoder?it=window.TextEncoder:it=util.TextEncoder,et.utf8Encoder=new it;const st=dt=>dt!=null;et.isValue=st;const at=dt=>(0,et.isValue)(dt)?et.utf8Encoder.encode(dt):dt;et.stringToBytes=at;function ot(dt){return Buffer.from(dt,"hex").toString("hex")===dt}et.isHex=ot;function lt(dt){let bt;return dt.indexOf("lnsb")===0&&(bt={bech32:"sb"}),rt.default.decode(dt,bt)}et.decode=lt;function ut(dt){const gt=lt(dt).tags.find(pt=>pt.tagName==="payment_hash");(0,nt.default)(gt&>.data,"Could not find payment hash on invoice request");const kt=gt==null?void 0:gt.data.toString();if(!kt||!kt.length)throw new Error("Could not get payment hash from payment request");return kt}et.getIdFromRequest=ut})(helpers);var hasRequiredLsat;function requireLsat(){if(hasRequiredLsat)return lsat$1;hasRequiredLsat=1;var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gt,kt,pt,yt){yt===void 0&&(yt=pt);var $t=Object.getOwnPropertyDescriptor(kt,pt);(!$t||("get"in $t?!kt.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return kt[pt]}}),Object.defineProperty(gt,yt,$t)}:function(gt,kt,pt,yt){yt===void 0&&(yt=pt),gt[yt]=kt[pt]}),tt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gt,kt){Object.defineProperty(gt,"default",{enumerable:!0,value:kt})}:function(gt,kt){gt.default=kt}),rt=commonjsGlobal&&commonjsGlobal.__importStar||function(gt){if(gt&>.__esModule)return gt;var kt={};if(gt!=null)for(var pt in gt)pt!=="default"&&Object.prototype.hasOwnProperty.call(gt,pt)&&et(kt,gt,pt);return tt(kt,gt),kt},nt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(lsat$1,"__esModule",{value:!0}),lsat$1.Lsat=lsat$1.parseChallengePart=void 0;const it=assert_1,st=bufio,at=nt(requireCryptoBrowserify()),ot=rt(macaroon$1),lt=requireDist(),ut=helpers;function dt(gt){let kt;const pt=gt.indexOf("=");it(pt>-1,'Incorrectly encoded challenge. Missing "=" separator.');const yt=gt.length-1-pt;return kt=gt.slice(-yt),it(kt.length,"Incorrectly encoded macaroon challenge"),it(kt[0]==='"'&&kt[kt.length-1]==='"',"Incorectly encoded challenge, challenges must be enclosed in double quotes."),kt=kt.slice(1,kt.length-1),kt}lsat$1.parseChallengePart=dt;class bt extends st.Struct{constructor(kt){super(kt),this.id="",this.validUntil=0,this.invoice="",this.baseMacaroon="",this.paymentHash=Buffer.alloc(32).toString("hex"),this.timeCreated=Date.now(),this.paymentPreimage=null,this.amountPaid=0,this.routingFeePaid=0,this.invoiceAmount=0,kt&&this.fromOptions(kt)}fromOptions(kt){it(typeof kt.baseMacaroon=="string","Require serialized macaroon"),this.baseMacaroon=kt.baseMacaroon,it(typeof kt.id=="string","Require string id"),this.id=kt.id,it(typeof kt.paymentHash=="string","Require paymentHash"),this.paymentHash=kt.paymentHash;const pt=this.getExpirationFromMacaroon(kt.baseMacaroon);return pt&&(this.validUntil=pt),kt.invoice&&this.addInvoice(kt.invoice),kt.timeCreated&&(this.timeCreated=kt.timeCreated),kt.paymentPreimage&&(this.paymentPreimage=kt.paymentPreimage),kt.amountPaid&&(this.amountPaid=kt.amountPaid),kt.routingFeePaid&&(this.routingFeePaid=kt.routingFeePaid),this}isExpired(){return this.validUntil===0?!1:this.validUntilwt.tagName==="payment_hash");it($t,"Could not find payment hash on invoice request");const mt=$t==null?void 0:$t.data;it(mt===this.paymentHash,"paymentHash from invoice did not match LSAT"),this.invoiceAmount=yt||0,this.invoice=kt}catch(pt){throw new Error(`Problem adding invoice data to LSAT: ${pt.message}`)}}static fromMacaroon(kt,pt){it(typeof kt=="string","Requires a raw macaroon string for macaroon to generate LSAT");let yt,$t;try{$t=(0,lt.decodeIdentifierFromMacaroon)(kt),yt=lt.Identifier.fromString($t)}catch(St){throw new Error(`Unexpected encoding for macaroon identifier: ${St.message}`)}const mt={id:$t,baseMacaroon:kt,paymentHash:yt.paymentHash.toString("hex")},wt=new this(mt);return pt&&wt.addInvoice(pt),wt}static fromToken(kt,pt){it(kt.includes(this.type),"Token must include LSAT prefix"),kt=kt.slice(this.type.length).trim();const[yt,$t]=kt.split(":"),mt=bt.fromMacaroon(yt,pt);return $t&&mt.setPreimage($t),mt}static fromChallenge(kt){const pt="macaroon=",yt="invoice=";let $t;$t=kt.split(","),$t.length<2&&($t=kt.split(" ")),it($t.length>=2,"Expected at least two challenges in the LSAT: invoice and macaroon");let mt="",wt="";for(const Ft of $t){if(!mt.length&&Ft.indexOf(pt)>-1)try{mt=dt(Ft)}catch(Lt){throw new Error(`Problem parsing macaroon challenge: ${Lt.message}`)}if(!wt.length&&Ft.indexOf(yt)>-1)try{wt=dt(Ft)}catch(Lt){throw new Error(`Problem parsing macaroon challenge: ${Lt.message}`)}if(wt.length&&mt.length)break}it(wt.length&&mt.length,"Expected WWW-Authenticate challenge with macaroon and invoice data");const St=(0,ut.getIdFromRequest)(wt),Bt=(0,lt.decodeIdentifierFromMacaroon)(mt);return new this({id:Bt,baseMacaroon:mt,paymentHash:St,invoice:wt})}static fromHeader(kt){const pt=kt.slice(this.type.length).trim();return it(kt.length!==pt.length,'header missing token type prefix "LSAT"'),bt.fromChallenge(pt)}}return lsat$1.Lsat=bt,bt.type="LSAT",lsat$1}var types={},lsat={};Object.defineProperty(lsat,"__esModule",{value:!0});var satisfier={};Object.defineProperty(satisfier,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(lsat,et),rt(satisfier,et)})(types);var satisfiers={},hasRequiredSatisfiers;function requireSatisfiers(){if(hasRequiredSatisfiers)return satisfiers;hasRequiredSatisfiers=1,Object.defineProperty(satisfiers,"__esModule",{value:!0}),satisfiers.createCapabilitiesSatisfier=satisfiers.createServicesSatisfier=satisfiers.expirationSatisfier=void 0;const et=requireDist();satisfiers.expirationSatisfier={condition:"expiration",satisfyPrevious:(nt,it)=>nt.condition!=="expiration"||it.condition!=="expiration"?!1:!(nt.value!(nt.condition!=="expiration"||nt.value{if(typeof nt!="string")throw new et.InvalidServicesError;return{condition:et.SERVICES_CAVEAT_CONDITION,satisfyPrevious:(it,st)=>{const at=(0,et.decodeServicesCaveat)(it.value.toString()),ot=(0,et.decodeServicesCaveat)(st.value.toString());if(!Array.isArray(at)||!Array.isArray(ot))throw new et.InvalidServicesError;let lt=new Map;lt=at.reduce((ut,dt)=>ut.set(dt.name,dt.tier),lt);for(const ut of ot)if(!lt.has(ut.name)||lt.get(ut.name)>ut.tier)return!1;return!0},satisfyFinal:it=>{const st=(0,et.decodeServicesCaveat)(it.value.toString());if(!Array.isArray(st))throw new et.InvalidServicesError;for(const at of st)if(at.name===nt)return!0;return!1}}};satisfiers.createServicesSatisfier=tt;const rt=(nt,it)=>{if(typeof it!="string")throw new et.InvalidCapabilitiesError;if(typeof nt!="string")throw new et.InvalidCapabilitiesError;return{condition:nt+et.SERVICE_CAPABILITIES_SUFFIX,satisfyPrevious:(st,at)=>{const ot=(0,et.decodeCapabilitiesValue)(st.value.toString()),lt=(0,et.decodeCapabilitiesValue)(at.value.toString());if(!Array.isArray(ot)||!Array.isArray(lt))throw new et.InvalidServicesError;let ut=new Set;ut=ot.reduce((dt,bt)=>dt.add(bt),ut);for(const dt of lt)if(!ut.has(dt))return!1;return!0},satisfyFinal:st=>{const at=(0,et.decodeCapabilitiesValue)(st.value.toString());if(!Array.isArray(at))throw new et.InvalidServicesError;for(const ot of at)if(ot===it)return!0;return!1}}};return satisfiers.createCapabilitiesSatisfier=rt,satisfiers}var macaroon={},base64={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)it.hasOwnProperty(st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(base64,"__esModule",{value:!0});var INVALID_BYTE=256,Coder=function(){function et(tt){tt===void 0&&(tt="="),this._paddingCharacter=tt}return et.prototype.encodedLength=function(tt){return this._paddingCharacter?(tt+2)/3*4|0:(tt*8+5)/6|0},et.prototype.encode=function(tt){for(var rt="",nt=0;nt>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),rt+=this._encodeByte(it>>>1*6&63),rt+=this._encodeByte(it>>>0*6&63)}var st=tt.length-nt;if(st>0){var it=tt[nt]<<16|(st===2?tt[nt+1]<<8:0);rt+=this._encodeByte(it>>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),st===2?rt+=this._encodeByte(it>>>1*6&63):rt+=this._paddingCharacter||"",rt+=this._paddingCharacter||""}return rt},et.prototype.maxDecodedLength=function(tt){return this._paddingCharacter?tt/4*3|0:(tt*6+7)/8|0},et.prototype.decodedLength=function(tt){return this.maxDecodedLength(tt.length-this._getPaddingLength(tt))},et.prototype.decode=function(tt){if(tt.length===0)return new Uint8Array(0);for(var rt=this._getPaddingLength(tt),nt=tt.length-rt,it=new Uint8Array(this.maxDecodedLength(nt)),st=0,at=0,ot=0,lt=0,ut=0,dt=0,bt=0;at>>4,it[st++]=ut<<4|dt>>>2,it[st++]=dt<<6|bt,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE,ot|=dt&INVALID_BYTE,ot|=bt&INVALID_BYTE;if(at>>4,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE),at>>2,ot|=dt&INVALID_BYTE),at>>8&0-65-26+97,rt+=51-tt>>>8&26-97-52+48,rt+=61-tt>>>8&52-48-62+43,rt+=62-tt>>>8&62-43-63+47,String.fromCharCode(rt)},et.prototype._decodeChar=function(tt){var rt=INVALID_BYTE;return rt+=(42-tt&tt-44)>>>8&-INVALID_BYTE+tt-43+62,rt+=(46-tt&tt-48)>>>8&-INVALID_BYTE+tt-47+63,rt+=(47-tt&tt-58)>>>8&-INVALID_BYTE+tt-48+52,rt+=(64-tt&tt-91)>>>8&-INVALID_BYTE+tt-65+0,rt+=(96-tt&tt-123)>>>8&-INVALID_BYTE+tt-97+26,rt},et.prototype._getPaddingLength=function(tt){var rt=0;if(this._paddingCharacter){for(var nt=tt.length-1;nt>=0&&tt[nt]===this._paddingCharacter;nt--)rt++;if(tt.length<4||rt>2)throw new Error("Base64Coder: incorrect padding")}return rt},et}();base64.Coder=Coder;var stdCoder=new Coder;function encode$2(et){return stdCoder.encode(et)}base64.encode=encode$2;function decode$2(et){return stdCoder.decode(et)}base64.decode=decode$2;var URLSafeCoder=function(et){__extends$1(tt,et);function tt(){return et!==null&&et.apply(this,arguments)||this}return tt.prototype._encodeByte=function(rt){var nt=rt;return nt+=65,nt+=25-rt>>>8&0-65-26+97,nt+=51-rt>>>8&26-97-52+48,nt+=61-rt>>>8&52-48-62+45,nt+=62-rt>>>8&62-45-63+95,String.fromCharCode(nt)},tt.prototype._decodeChar=function(rt){var nt=INVALID_BYTE;return nt+=(44-rt&rt-46)>>>8&-INVALID_BYTE+rt-45+62,nt+=(94-rt&rt-96)>>>8&-INVALID_BYTE+rt-95+63,nt+=(47-rt&rt-58)>>>8&-INVALID_BYTE+rt-48+52,nt+=(64-rt&rt-91)>>>8&-INVALID_BYTE+rt-65+0,nt+=(96-rt&rt-123)>>>8&-INVALID_BYTE+rt-97+26,nt},tt}(Coder);base64.URLSafeCoder=URLSafeCoder;var urlSafeCoder=new URLSafeCoder;function encodeURLSafe(et){return urlSafeCoder.encode(et)}base64.encodeURLSafe=encodeURLSafe;function decodeURLSafe(et){return urlSafeCoder.decode(et)}base64.decodeURLSafe=decodeURLSafe;base64.encodedLength=function(et){return stdCoder.encodedLength(et)};base64.maxDecodedLength=function(et){return stdCoder.maxDecodedLength(et)};base64.decodedLength=function(et){return stdCoder.decodedLength(et)};var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding(tt,et,rt);return __setModuleDefault(tt,et),tt};Object.defineProperty(macaroon,"__esModule",{value:!0});macaroon.getRawMacaroon=macaroon.verifyMacaroonCaveats=macaroon.getCaveatsFromMacaroon=void 0;const caveat_1=caveat,helpers_1=helpers,Macaroon=__importStar(macaroon$1),base64_1=base64;function getCaveatsFromMacaroon(et){var tt;const rt=Macaroon.importMacaroon(et),nt=[],it=(tt=rt._exportAsJSONObjectV2())===null||tt===void 0?void 0:tt.c;if(it)for(const st of it){if(!st.i)continue;const at=caveat_1.Caveat.decode(st.i);nt.push(at)}return nt}macaroon.getCaveatsFromMacaroon=getCaveatsFromMacaroon;function verifyMacaroonCaveats(et,tt,rt,nt={}){try{const it=Macaroon.importMacaroon(et),st=(0,helpers_1.stringToBytes)(tt);it.verify(st,()=>null);const at=getCaveatsFromMacaroon(et);return rt&&!Array.isArray(rt)&&(rt=[rt]),!at.length&&(!rt||!rt.length)?!0:(0,caveat_1.verifyCaveats)(at,rt,nt)}catch{return!1}}macaroon.verifyMacaroonCaveats=verifyMacaroonCaveats;function getRawMacaroon(et,tt=!1){const rt=et._exportBinaryV2();return tt?(0,base64_1.encodeURLSafe)(rt):(0,base64_1.encode)(rt)}macaroon.getRawMacaroon=getRawMacaroon;var service={};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(et,"__esModule",{value:!0}),et.decodeCapabilitiesValue=et.createNewCapabilitiesCaveat=et.SERVICE_CAPABILITIES_SUFFIX=et.encodeServicesCaveatValue=et.decodeServicesCaveat=et.SERVICES_CAVEAT_CONDITION=et.Service=et.InvalidCapabilitiesError=et.InvalidServicesError=et.NoServicesError=void 0;const rt=tt(bufio),nt=caveat;class it extends Error{constructor(...kt){super(...kt),this.name="NoServicesError",this.message="no services found",Error.captureStackTrace&&Error.captureStackTrace(this,it)}}et.NoServicesError=it;class st extends Error{constructor(kt){super(kt),this.name="InvalidServicesError",kt||(this.message='service must be of the form "name:tier"'),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidServicesError=st;class at extends Error{constructor(kt){super(kt),this.name="InvalidCapabilitiesError",kt||(this.message="capabilities must be a string or array of strings"),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidCapabilitiesError=at;class ot extends rt.default.Struct{constructor(kt){super(kt),this.name=kt.name,this.tier=kt.tier}}et.Service=ot,et.SERVICES_CAVEAT_CONDITION="services";const lt=gt=>{if(!gt.length)throw new it;const kt=[],pt=gt.split(",");for(const yt of pt){const[$t,mt]=yt.split(":");if(!$t||!mt)throw new st;if(isNaN(+mt))throw new st("tier must be a number");if(!isNaN(+$t))throw new st("service name must be a string");kt.push(new ot({name:$t,tier:+mt}))}return kt};et.decodeServicesCaveat=lt;const ut=gt=>{if(!gt.length)throw new it;let kt="";for(let pt=0;pt{let pt;if(!kt)pt="";else if(Array.isArray(kt))pt=kt.join(",");else{if(typeof kt!="string")throw new at;pt=kt}return new nt.Caveat({condition:gt+et.SERVICE_CAPABILITIES_SUFFIX,value:pt,comp:"="})};et.createNewCapabilitiesCaveat=dt;const bt=gt=>{if(typeof gt!="string")throw new at;return gt.toString().split(",").map(kt=>kt.trim())};et.decodeCapabilitiesValue=bt})(service);var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(identifier$1,et),rt(caveat,et),rt(requireLsat(),et),rt(types,et),rt(requireSatisfiers(),et),rt(macaroon,et),rt(service,et)}(dist$1)),dist$1}var distExports=requireDist(),lib={},client={},errors={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Class extends value "+String(rt)+" is not a constructor or null");et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(errors,"__esModule",{value:!0});errors.InternalError=errors.InvalidDataError=errors.RoutingError=errors.UnsupportedMethodError=errors.ConnectionError=errors.RejectionError=errors.MissingProviderError=void 0;function fixError(et,tt,rt){if(Object.setPrototypeOf(et,rt.prototype),tt===rt)if(et.name=tt.name,Error.captureStackTrace)Error.captureStackTrace(et,rt);else{var nt=new Error(et.message).stack;nt&&(et.stack=fixStack(nt,"new ".concat(tt.name)))}}function fixStack(et,tt){if(!et||!tt)return et;var rt=new RegExp("\\s+at\\s".concat(tt,"\\s")),nt=et.split(` +*********************`),ot=st.hashForSignature(et,ut,at)}return{script:ut,sighashType:at,hash:ot}}function getAllTaprootHashesForSig(et,tt,rt,nt){const it=[];if(tt.tapInternalKey){const at=getPrevoutTaprootKey(et,tt,nt);at&&it.push(at)}if(tt.tapScriptSig){const at=tt.tapScriptSig.map(ot=>ot.pubkey);it.push(...at)}return it.map(at=>getTaprootHashesForSig(et,tt,rt,at,nt)).flat()}function getPrevoutTaprootKey(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return(0,psbtutils_1.isP2TR)(nt)?nt.subarray(2,34):null}function trimTaprootSig(et){return et.length===64?et:et.subarray(0,64)}function getTaprootHashesForSig(et,tt,rt,nt,it,st,at){const ot=it.__TX,lt=tt.sighashType||transaction_1.Transaction.SIGHASH_DEFAULT;checkSighashTypeAllowed(lt,at);const ut=rt.map((pt,yt)=>getScriptAndAmountFromUtxo(yt,pt,it)),dt=ut.map(pt=>pt.script),bt=ut.map(pt=>pt.value),gt=[];if(tt.tapInternalKey&&!st){const pt=getPrevoutTaprootKey(et,tt,it)||Buffer.from([]);if((0,bip371_1.toXOnly)(nt).equals(pt)){const yt=ot.hashForWitnessV1(et,dt,bt,lt);gt.push({pubkey:nt,hash:yt})}}const kt=(tt.tapLeafScript||[]).filter(pt=>(0,psbtutils_1.pubkeyInScript)(nt,pt.script)).map(pt=>{const yt=(0,bip341_1.tapleafHash)({output:pt.script,version:pt.leafVersion});return Object.assign({hash:yt},pt)}).filter(pt=>!st||st.equals(pt.hash)).map(pt=>{const yt=ot.hashForWitnessV1(et,dt,bt,transaction_1.Transaction.SIGHASH_DEFAULT,pt.hash);return{pubkey:nt,hash:yt,leafHash:pt.hash}});return gt.concat(kt)}function checkSighashTypeAllowed(et,tt){if(tt&&tt.indexOf(et)<0){const rt=sighashTypeToString(et);throw new Error(`Sighash type is not allowed. Retry the sign method passing the sighashTypes array of whitelisted types. Sighash type: ${rt}`)}}function getPayment(et,tt,rt){let nt;switch(tt){case"multisig":const it=getSortedSigs(et,rt);nt=payments.p2ms({output:et,signatures:it});break;case"pubkey":nt=payments.p2pk({output:et,signature:rt[0].signature});break;case"pubkeyhash":nt=payments.p2pkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break;case"witnesspubkeyhash":nt=payments.p2wpkh({output:et,pubkey:rt[0].pubkey,signature:rt[0].signature});break}return nt}function getScriptFromInput(et,tt,rt){const nt=rt.__TX,it={script:null,isSegwit:!1,isP2SH:!1,isP2WSH:!1};if(it.isP2SH=!!tt.redeemScript,it.isP2WSH=!!tt.witnessScript,tt.witnessScript)it.script=tt.witnessScript;else if(tt.redeemScript)it.script=tt.redeemScript;else if(tt.nonWitnessUtxo){const st=nonWitnessUtxoTxFromCache(rt,tt,et),at=nt.ins[et].index;it.script=st.outs[at].script}else tt.witnessUtxo&&(it.script=tt.witnessUtxo.script);return(tt.witnessScript||(0,psbtutils_1.isP2WPKH)(it.script))&&(it.isSegwit=!0),it}function getSignersFromHD(et,tt,rt){const nt=(0,utils_1.checkForInput)(tt,et);if(!nt.bip32Derivation||nt.bip32Derivation.length===0)throw new Error("Need bip32Derivation to sign with HD");const it=nt.bip32Derivation.map(at=>{if(at.masterFingerprint.equals(rt.fingerprint))return at}).filter(at=>!!at);if(it.length===0)throw new Error("Need one bip32Derivation masterFingerprint to match the HDSigner fingerprint");return it.map(at=>{const ot=rt.derivePath(at.path);if(!at.pubkey.equals(ot.publicKey))throw new Error("pubkey did not match bip32Derivation");return ot})}function getSortedSigs(et,tt){return payments.p2ms({output:et}).pubkeys.map(nt=>(tt.filter(it=>it.pubkey.equals(nt))[0]||{}).signature).filter(nt=>!!nt)}function scriptWitnessToWitnessStack(et){let tt=0;function rt(at){return tt+=at,et.slice(tt-at,tt)}function nt(){const at=varuint.decode(et,tt);return tt+=varuint.decode.bytes,at}function it(){return rt(nt())}function st(){const at=nt(),ot=[];for(let lt=0;lt{if(nt&<.finalScriptSig&&(tt.ins[ut].script=lt.finalScriptSig),nt&<.finalScriptWitness&&(tt.ins[ut].witness=scriptWitnessToWitnessStack(lt.finalScriptWitness)),lt.witnessUtxo)it+=lt.witnessUtxo.value;else if(lt.nonWitnessUtxo){const dt=nonWitnessUtxoTxFromCache(rt,lt,ut),bt=tt.ins[ut].index,gt=dt.outs[bt];it+=gt.value}});const st=tt.outs.reduce((lt,ut)=>lt+ut.value,0),at=it-st;if(at<0)throw new Error("Outputs are spending more than Inputs");const ot=tt.virtualSize();rt.__FEE=at,rt.__EXTRACTED_TX=tt,rt.__FEE_RATE=Math.floor(at/ot)}function nonWitnessUtxoTxFromCache(et,tt,rt){const nt=et.__NON_WITNESS_UTXO_TX_CACHE;return nt[rt]||addNonWitnessTxCache(et,tt,rt),nt[rt]}function getScriptFromUtxo(et,tt,rt){const{script:nt}=getScriptAndAmountFromUtxo(et,tt,rt);return nt}function getScriptAndAmountFromUtxo(et,tt,rt){if(tt.witnessUtxo!==void 0)return{script:tt.witnessUtxo.script,value:tt.witnessUtxo.value};if(tt.nonWitnessUtxo!==void 0){const it=nonWitnessUtxoTxFromCache(rt,tt,et).outs[rt.__TX.ins[et].index];return{script:it.script,value:it.value}}else throw new Error("Can't find pubkey in input without Utxo data")}function pubkeyInInput(et,tt,rt,nt){const it=getScriptFromUtxo(rt,tt,nt),{meaningfulScript:st}=getMeaningfulScript(it,rt,"input",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function pubkeyInOutput(et,tt,rt,nt){const it=nt.__TX.outs[rt].script,{meaningfulScript:st}=getMeaningfulScript(it,rt,"output",tt.redeemScript,tt.witnessScript);return(0,psbtutils_1.pubkeyInScript)(et,st)}function redeemFromFinalScriptSig(et){if(!et)return;const tt=bscript.decompile(et);if(!tt)return;const rt=tt[tt.length-1];if(!(!Buffer.isBuffer(rt)||isPubkeyLike(rt)||isSigLike(rt)||!bscript.decompile(rt)))return rt}function redeemFromFinalWitnessScript(et){if(!et)return;const tt=scriptWitnessToWitnessStack(et),rt=tt[tt.length-1];if(!(isPubkeyLike(rt)||!bscript.decompile(rt)))return rt}function compressPubkey(et){if(et.length===65){const tt=et[64]&1,rt=et.slice(0,33);return rt[0]=2|tt,rt}return et.slice()}function isPubkeyLike(et){return et.length===33&&bscript.isCanonicalPubKey(et)}function isSigLike(et){return bscript.isCanonicalScriptSignature(et)}function getMeaningfulScript(et,tt,rt,nt,it){const st=(0,psbtutils_1.isP2SHScript)(et),at=st&&nt&&(0,psbtutils_1.isP2WSHScript)(nt),ot=(0,psbtutils_1.isP2WSHScript)(et);if(st&&nt===void 0)throw new Error("scriptPubkey is P2SH but redeemScript missing");if((ot||at)&&it===void 0)throw new Error("scriptPubkey or redeemScript is P2WSH but witnessScript missing");let lt;return at?(lt=it,checkRedeemScript(tt,et,nt,rt),checkWitnessScript(tt,nt,it,rt),checkInvalidP2WSH(lt)):ot?(lt=it,checkWitnessScript(tt,et,it,rt),checkInvalidP2WSH(lt)):st?(lt=nt,checkRedeemScript(tt,et,nt,rt)):lt=et,{meaningfulScript:lt,type:at?"p2sh-p2wsh":st?"p2sh":ot?"p2wsh":"raw"}}function checkInvalidP2WSH(et){if((0,psbtutils_1.isP2WPKH)(et)||(0,psbtutils_1.isP2SHScript)(et))throw new Error("P2WPKH or P2SH can not be contained within P2WSH")}function classifyScript(et){return(0,psbtutils_1.isP2WPKH)(et)?"witnesspubkeyhash":(0,psbtutils_1.isP2PKH)(et)?"pubkeyhash":(0,psbtutils_1.isP2MS)(et)?"multisig":(0,psbtutils_1.isP2PK)(et)?"pubkey":"nonstandard"}function range(et){return[...Array(et).keys()]}(function(et){Object.defineProperty(et,"__esModule",{value:!0}),et.initEccLib=et.Transaction=et.opcodes=et.Psbt=et.Block=et.script=et.payments=et.networks=et.crypto=et.address=void 0;const tt=address;et.address=tt;const rt=crypto$2;et.crypto=rt;const nt=networks$1;et.networks=nt;const it=payments$3;et.payments=it;const st=script;et.script=st;var at=block;Object.defineProperty(et,"Block",{enumerable:!0,get:function(){return at.Block}});var ot=psbt$1;Object.defineProperty(et,"Psbt",{enumerable:!0,get:function(){return ot.Psbt}});var lt=ops;Object.defineProperty(et,"opcodes",{enumerable:!0,get:function(){return lt.OPS}});var ut=transaction;Object.defineProperty(et,"Transaction",{enumerable:!0,get:function(){return ut.Transaction}});var dt=ecc_lib;Object.defineProperty(et,"initEccLib",{enumerable:!0,get:function(){return dt.initEccLib}})})(src$1);function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(et,tt){return et===tt||et!==et&&tt!==tt}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(et,tt){for(var rt=et.length;rt--;)if(eq$1(et[rt][0],tt))return rt;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(et){var tt=this.__data__,rt=assocIndexOf$3(tt,et);if(rt<0)return!1;var nt=tt.length-1;return rt==nt?tt.pop():splice.call(tt,rt,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(et){var tt=this.__data__,rt=assocIndexOf$2(tt,et);return rt<0?void 0:tt[rt][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(et){return assocIndexOf$1(this.__data__,et)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(et,tt){var rt=this.__data__,nt=assocIndexOf(rt,et);return nt<0?(++this.size,rt.push([et,tt])):rt[nt][1]=tt,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(et){var tt=-1,rt=et==null?0:et.length;for(this.clear();++tt-1&&et%1==0&&et-1&&et%1==0&&et<=MAX_SAFE_INTEGER}var isLength_1=isLength$2,baseGetTag$1=_baseGetTag,isLength$1=isLength_1,isObjectLike$2=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$2="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(et){return isObjectLike$2(et)&&isLength$1(et.length)&&!!typedArrayTags[baseGetTag$1(et)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(et){return function(tt){return et(tt)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};_nodeUtil.exports;(function(et,tt){var rt=_freeGlobal,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st&&rt.process,ot=function(){try{var lt=it&&it.require&&it.require("util").types;return lt||at&&at.binding&&at.binding("util")}catch{}}();et.exports=ot})(_nodeUtil,_nodeUtil.exports);var _nodeUtilExports=_nodeUtil.exports,baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtilExports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$1=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$1,baseTimes=_baseTimes,isArguments=isArguments_1,isArray$2=isArray_1,isBuffer$1=isBufferExports,isIndex=_isIndex,isTypedArray=isTypedArray_1,objectProto$5=Object.prototype,hasOwnProperty$3=objectProto$5.hasOwnProperty;function arrayLikeKeys$2(et,tt){var rt=isArray$2(et),nt=!rt&&isArguments(et),it=!rt&&!nt&&isBuffer$1(et),st=!rt&&!nt&&!it&&isTypedArray(et),at=rt||nt||it||st,ot=at?baseTimes(et.length,String):[],lt=ot.length;for(var ut in et)(tt||hasOwnProperty$3.call(et,ut))&&!(at&&(ut=="length"||it&&(ut=="offset"||ut=="parent")||st&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||isIndex(ut,lt)))&&ot.push(ut);return ot}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$4=Object.prototype;function isPrototype$3(et){var tt=et&&et.constructor,rt=typeof tt=="function"&&tt.prototype||objectProto$4;return et===rt}var _isPrototype=isPrototype$3;function overArg$2(et,tt){return function(rt){return et(tt(rt))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$3=Object.prototype,hasOwnProperty$2=objectProto$3.hasOwnProperty;function baseKeys$1(et){if(!isPrototype$2(et))return nativeKeys(et);var tt=[];for(var rt in Object(et))hasOwnProperty$2.call(et,rt)&&rt!="constructor"&&tt.push(rt);return tt}var _baseKeys=baseKeys$1,isFunction$1=isFunction_1,isLength=isLength_1;function isArrayLike$2(et){return et!=null&&isLength(et.length)&&!isFunction$1(et)}var isArrayLike_1=isArrayLike$2,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$1=isArrayLike_1;function keys$3(et){return isArrayLike$1(et)?arrayLikeKeys$1(et):baseKeys(et)}var keys_1=keys$3,copyObject$3=_copyObject,keys$2=keys_1;function baseAssign$1(et,tt){return et&©Object$3(tt,keys$2(tt),et)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(et){var tt=[];if(et!=null)for(var rt in Object(et))tt.push(rt);return tt}var _nativeKeysIn=nativeKeysIn$1,isObject$4=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$2=Object.prototype,hasOwnProperty$1=objectProto$2.hasOwnProperty;function baseKeysIn$1(et){if(!isObject$4(et))return nativeKeysIn(et);var tt=isPrototype$1(et),rt=[];for(var nt in et)nt=="constructor"&&(tt||!hasOwnProperty$1.call(et,nt))||rt.push(nt);return rt}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike=isArrayLike_1;function keysIn$3(et){return isArrayLike(et)?arrayLikeKeys(et,!0):baseKeysIn(et)}var keysIn_1=keysIn$3,copyObject$2=_copyObject,keysIn$2=keysIn_1;function baseAssignIn$1(et,tt){return et&©Object$2(tt,keysIn$2(tt),et)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};_cloneBuffer.exports;(function(et,tt){var rt=_root,nt=tt&&!tt.nodeType&&tt,it=nt&&!0&&et&&!et.nodeType&&et,st=it&&it.exports===nt,at=st?rt.Buffer:void 0,ot=at?at.allocUnsafe:void 0;function lt(ut,dt){if(dt)return ut.slice();var bt=ut.length,gt=ot?ot(bt):new ut.constructor(bt);return ut.copy(gt),gt}et.exports=lt})(_cloneBuffer,_cloneBuffer.exports);var _cloneBufferExports=_cloneBuffer.exports;function copyArray$1(et,tt){var rt=-1,nt=et.length;for(tt||(tt=Array(nt));++rtwordsToBuffer(et,!0).toString("hex"),16:et=>wordsToBuffer(et,!0).toString("hex"),13:et=>wordsToBuffer(et,!0).toString("utf8"),19:et=>wordsToBuffer(et,!0).toString("hex"),23:et=>wordsToBuffer(et,!0).toString("hex"),6:wordsToIntBE,24:wordsToIntBE,9:fallbackAddressParser,3:routingInfoParser,5:featureBitsParser},unknownTagName="unknownTag";function unknownEncoder(et){return et.words=bech32.decode(et.words,Number.MAX_SAFE_INTEGER).words,et}function getUnknownParser(et){return tt=>({tagCode:parseInt(et),words:bech32.encode("unknown",tt,Number.MAX_SAFE_INTEGER)})}function wordsToIntBE(et){return et.reverse().reduce((tt,rt,nt)=>tt+rt*Math.pow(32,nt),0)}function intBEToWords(et,tt){const rt=[];if(tt===void 0&&(tt=5),et=Math.floor(et),et===0)return[0];for(;et>0;)rt.push(et&Math.pow(2,tt)-1),et=Math.floor(et/Math.pow(2,tt));return rt.reverse()}function sha256(et){return createHash("sha256").update(et).digest()}function convert(et,tt,rt){let nt=0,it=0;const st=(1<=rt;)it-=rt,at.push(nt>>it&st);return it>0&&at.push(nt<0;)rt=ot.slice(0,33).toString("hex"),nt=ot.slice(33,41).toString("hex"),it=parseInt(ot.slice(41,45).toString("hex"),16),st=parseInt(ot.slice(45,49).toString("hex"),16),at=parseInt(ot.slice(49,51).toString("hex"),16),ot=ot.slice(51),tt.push({pubkey:rt,short_channel_id:nt,fee_base_msat:it,fee_proportional_millionths:st,cltv_expiry_delta:at});return tt}function featureBitsParser(et){const tt=et.slice().reverse().map(nt=>[!!(nt&1),!!(nt&2),!!(nt&4),!!(nt&8),!!(nt&16)]).reduce((nt,it)=>nt.concat(it),[]);for(;tt.length{rt[nt]={required:tt[it*2],supported:tt[it*2+1]}}),tt.length>FEATUREBIT_ORDER.length*2){const nt=tt.slice(FEATUREBIT_ORDER.length*2);rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:nt,has_required:nt.reduce((it,st,at)=>at%2!==0?it||!1:it||st,!1)}}else rt.extra_bits={start_bit:FEATUREBIT_ORDER.length*2,bits:[],has_required:!1};return rt}function featureBitsEncoder(et){let tt=et.word_length,rt=[];for(FEATUREBIT_ORDER.forEach(nt=>{rt.push(!!(et[nt]||{}).required),rt.push(!!(et[nt]||{}).supported)});rt[rt.length-1]===!1;)rt.pop();for(;rt.length%5!==0;)rt.push(!1);if(et.extra_bits&&Array.isArray(et.extra_bits.bits)&&et.extra_bits.bits.length>0){for(;rt.lengthtt)throw new Error("word_length is too small to contain all featureBits");return tt===void 0&&(tt=Math.ceil(rt.length/5)),new Array(tt).fill(0).map((nt,it)=>rt[it*5+4]<<4|rt[it*5+3]<<3|rt[it*5+2]<<2|rt[it*5+1]<<1|rt[it*5]<<0).reverse()}function routingInfoEncoder(et){let tt=Buffer$1.from([]);return et.forEach(rt=>{tt=Buffer$1.concat([tt,hexToBuffer(rt.pubkey)]),tt=Buffer$1.concat([tt,hexToBuffer(rt.short_channel_id)]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_base_msat,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0,0,0].concat(intBEToWords(rt.fee_proportional_millionths,8)).slice(-4))]),tt=Buffer$1.concat([tt,Buffer$1.from([0].concat(intBEToWords(rt.cltv_expiry_delta,8)).slice(-2))])}),hexToWord(tt)}function purposeCommitEncoder(et){let tt;if(et!==void 0&&(typeof et=="string"||et instanceof String))et.match(/^([a-zA-Z0-9]{2})*$/)?tt=Buffer$1.from(et,"hex"):tt=sha256(Buffer$1.from(et,"utf8"));else throw new Error("purpose or purpose commit must be a string or hex string");return bech32.toWords(tt)}function tagsItems(et,tt){const rt=et.filter(it=>it.tagName===tt);return rt.length>0?rt[0].data:null}function tagsContainItem(et,tt){return tagsItems(et,tt)!==null}function orderKeys(et,tt){const rt={};if(Object.keys(et).sort().forEach(nt=>{rt[nt]=et[nt]}),tt===!0){const nt="__tagsObject_cache";Object.defineProperty(rt,"tagsObject",{get(){return this[nt]||Object.defineProperty(this,nt,{value:getTagsObject(this.tags)}),this[nt]}})}return rt}function satToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("satoshis must be an integer");const tt=new BN(et,10);return millisatToHrp(tt.mul(new BN(1e3,10)))}function millisatToHrp(et){if(!et.toString().match(/^\d+$/))throw new Error("millisatoshis must be an integer");const tt=new BN(et,10),rt=tt.toString(10),nt=rt.length;let it,st;return nt>11&&/0{11}$/.test(rt)?(it="",st=tt.div(MILLISATS_PER_BTC).toString(10)):nt>8&&/0{8}$/.test(rt)?(it="m",st=tt.div(MILLISATS_PER_MILLIBTC).toString(10)):nt>5&&/0{5}$/.test(rt)?(it="u",st=tt.div(MILLISATS_PER_MICROBTC).toString(10)):nt>2&&/0{2}$/.test(rt)?(it="n",st=tt.div(MILLISATS_PER_NANOBTC).toString(10)):(it="p",st=tt.mul(PICOBTC_PER_MILLISATS).toString(10)),st+it}function hrpToSat(et,tt){const rt=hrpToMillisat(et,!1);if(!rt.mod(new BN(1e3,10)).eq(new BN(0,10)))throw new Error("Amount is outside of valid range");const nt=rt.div(new BN(1e3,10));return tt?nt.toString():nt}function hrpToMillisat(et,tt){let rt,nt;if(et.slice(-1).match(/^[munp]$/))rt=et.slice(-1),nt=et.slice(0,-1);else{if(et.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");nt=et}if(!nt.match(/^\d+$/))throw new Error("Not a valid human readable amount");const it=new BN(nt,10),st=rt?it.mul(MILLISATS_PER_BTC).div(DIVISORS[rt]):it.mul(MILLISATS_PER_BTC);if(rt==="p"&&!it.mod(new BN(10,10)).eq(new BN(0,10))||st.gt(MAX_MILLISATS))throw new Error("Amount is outside of valid range");return tt?st.toString():st}function sign(et,tt){const rt=cloneDeep(et),nt=hexToBuffer(tt);if(rt.complete&&rt.paymentRequest)return rt;if(nt===void 0||nt.length!==32||!secp256k1.privateKeyVerify(nt))throw new Error("privateKey must be a 32 byte Buffer and valid private key");let it,st;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(st=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(it=hexToBuffer(rt.payeeNodeKey)),it&&st&&!st.equals(it))throw new Error("payee node key tag and payeeNodeKey attribute must match");it=st||it;const at=Buffer$1.from(secp256k1.publicKeyCreate(nt));if(it&&!at.equals(it))throw new Error("The private key given is not the private key of the node public key given");const ot=bech32.decode(rt.wordsTemp,Number.MAX_SAFE_INTEGER).words,lt=Buffer$1.concat([Buffer$1.from(rt.prefix,"utf8"),wordsToBuffer(ot)]),ut=sha256(lt),dt=secp256k1.ecdsaSign(ut,nt);dt.signature=Buffer$1.from(dt.signature);const bt=hexToWord(dt.signature.toString("hex")+"0"+dt.recid);return rt.payeeNodeKey=at.toString("hex"),rt.signature=dt.signature.toString("hex"),rt.recoveryFlag=dt.recid,rt.wordsTemp=bech32.encode("temp",ot.concat(bt),Number.MAX_SAFE_INTEGER),rt.complete=!0,rt.paymentRequest=bech32.encode(rt.prefix,ot.concat(bt),Number.MAX_SAFE_INTEGER),orderKeys(rt)}function encode$3(et,tt){const rt=cloneDeep(et);tt===void 0&&(tt=!0);const nt=!(rt.signature===void 0||rt.recoveryFlag===void 0);let it;if(rt.network===void 0&&!nt)rt.network=DEFAULTNETWORK,it=DEFAULTNETWORK;else{if(rt.network===void 0&&nt)throw new Error("Need network for proper payment request reconstruction");if(!rt.network.bech32||rt.network.pubKeyHash===void 0||rt.network.scriptHash===void 0||!Array.isArray(rt.network.validWitnessVersions))throw new Error("Invalid network");it=rt.network}if(rt.timestamp===void 0&&!nt)rt.timestamp=Math.floor(new Date().getTime()/1e3);else if(rt.timestamp===void 0&&nt)throw new Error("Need timestamp for proper payment request reconstruction");if(rt.tags===void 0)throw new Error("Payment Requests need tags array");if(!tagsContainItem(rt.tags,TAGNAMES[1]))throw new Error("Lightning Payment Request needs a payment hash");if(tagsContainItem(rt.tags,TAGNAMES[16]))if(tagsContainItem(rt.tags,TAGNAMES[5])){const St=tagsItems(rt.tags,TAGNAMES[5]);if(!St.payment_secret||!St.payment_secret.supported&&!St.payment_secret.required)throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included")}else if(tt)rt.tags.push({tagName:TAGNAMES[5],data:DEFAULTFEATUREBITS});else throw new Error("Payment request requires feature bits with at least payment secret support flagged if payment secret is included");if(!tagsContainItem(rt.tags,TAGNAMES[13])&&!tagsContainItem(rt.tags,TAGNAMES[23]))if(tt)rt.tags.push({tagName:TAGNAMES[13],data:DEFAULTDESCRIPTION});else throw new Error("Payment request requires description or purpose commit hash");if(tagsContainItem(rt.tags,TAGNAMES[13])&&Buffer$1.from(tagsItems(rt.tags,TAGNAMES[13]),"utf8").length>639)throw new Error("Description is too long: Max length 639 bytes");!tagsContainItem(rt.tags,TAGNAMES[6])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[6],data:DEFAULTEXPIRETIME}),!tagsContainItem(rt.tags,TAGNAMES[24])&&!nt&&tt&&rt.tags.push({tagName:TAGNAMES[24],data:DEFAULTCLTVEXPIRY});let st,at;if(tagsContainItem(rt.tags,TAGNAMES[19])&&(at=hexToBuffer(tagsItems(rt.tags,TAGNAMES[19]))),rt.payeeNodeKey&&(st=hexToBuffer(rt.payeeNodeKey)),st&&at&&!at.equals(st))throw new Error("payeeNodeKey and tag payee node key do not match");st=st||at,st&&(rt.payeeNodeKey=st.toString("hex"));let ot,lt,ut;if(tagsContainItem(rt.tags,TAGNAMES[9])){const St=tagsItems(rt.tags,TAGNAMES[9]);if(ut=St.address,lt=St.addressHash,ot=St.code,lt===void 0||ot===void 0){let Bt,Ot;try{Bt=bitcoinjsAddress.fromBech32(ut),lt=Bt.data,ot=Bt.version}catch{try{Ot=bitcoinjsAddress.fromBase58Check(ut),Ot.version===it.pubKeyHash?ot=17:Ot.version===it.scriptHash&&(ot=18),lt=Ot.hash}catch{throw new Error("Fallback address type is unknown")}}if(Bt&&!(Bt.version in it.validWitnessVersions))throw new Error("Fallback address witness version is unknown");if(Bt&&Bt.prefix!==it.bech32)throw new Error("Fallback address network type does not match payment request network type");if(Ot&&Ot.version!==it.pubKeyHash&&Ot.version!==it.scriptHash)throw new Error("Fallback address version (base58) is unknown or the network type is incorrect");St.addressHash=lt.toString("hex"),St.code=ot}}tagsContainItem(rt.tags,TAGNAMES[3])&&tagsItems(rt.tags,TAGNAMES[3]).forEach(Bt=>{if(Bt.pubkey===void 0||Bt.short_channel_id===void 0||Bt.fee_base_msat===void 0||Bt.fee_proportional_millionths===void 0||Bt.cltv_expiry_delta===void 0)throw new Error("Routing info is incomplete");if(!secp256k1.publicKeyVerify(hexToBuffer(Bt.pubkey)))throw new Error("Routing info pubkey is not a valid pubkey");const Ot=hexToBuffer(Bt.short_channel_id);if(!(Ot instanceof Buffer$1)||Ot.length!==8)throw new Error("Routing info short channel id must be 8 bytes");if(typeof Bt.fee_base_msat!="number"||Math.floor(Bt.fee_base_msat)!==Bt.fee_base_msat)throw new Error("Routing info fee base msat is not an integer");if(typeof Bt.fee_proportional_millionths!="number"||Math.floor(Bt.fee_proportional_millionths)!==Bt.fee_proportional_millionths)throw new Error("Routing info fee proportional millionths is not an integer");if(typeof Bt.cltv_expiry_delta!="number"||Math.floor(Bt.cltv_expiry_delta)!==Bt.cltv_expiry_delta)throw new Error("Routing info cltv expiry delta is not an integer")});let dt="ln";dt+=it.bech32;let bt;if(rt.millisatoshis&&rt.satoshis){if(bt=millisatToHrp(new BN(rt.millisatoshis,10)),satToHrp(new BN(rt.satoshis,10))!==bt)throw new Error("satoshis and millisatoshis do not match")}else rt.millisatoshis?bt=millisatToHrp(new BN(rt.millisatoshis,10)):rt.satoshis?bt=satToHrp(new BN(rt.satoshis,10)):bt="";dt+=bt;const gt=intBEToWords(rt.timestamp);for(;gt.length<7;)gt.unshift(0);const kt=rt.tags;let pt=[];kt.forEach(St=>{const Bt=Object.keys(TAGENCODERS);if(nt&&Bt.push(unknownTagName),Bt.indexOf(St.tagName)===-1)throw new Error("Unknown tag key: "+St.tagName);let Ot;if(St.tagName!==unknownTagName){pt.push(TAGCODES[St.tagName]);const Lt=TAGENCODERS[St.tagName];Ot=Lt(St.data)}else{const Lt=unknownEncoder(St.data);pt.push(Lt.tagCode),Ot=Lt.words}pt=pt.concat([0].concat(intBEToWords(Ot.length)).slice(-2)),pt=pt.concat(Ot)});let yt=gt.concat(pt);const $t=Buffer$1.concat([Buffer$1.from(dt,"utf8"),Buffer$1.from(convert(yt,5,8))]),mt=sha256($t);let wt;if(nt)if(st){const St=Buffer$1.from(secp256k1.ecdsaRecover(Buffer$1.from(rt.signature,"hex"),rt.recoveryFlag,mt,!0));if(st&&!st.equals(St))throw new Error("Signature, message, and recoveryID did not produce the same pubkey as payeeNodeKey");wt=hexToWord(rt.signature+"0"+rt.recoveryFlag)}else throw new Error("Reconstruction with signature and recoveryID requires payeeNodeKey to verify correctness of input data.");return wt&&(yt=yt.concat(wt)),tagsContainItem(rt.tags,TAGNAMES[6])&&(rt.timeExpireDate=rt.timestamp+tagsItems(rt.tags,TAGNAMES[6]),rt.timeExpireDateString=new Date(rt.timeExpireDate*1e3).toISOString()),rt.timestampString=new Date(rt.timestamp*1e3).toISOString(),rt.complete=!!wt,rt.paymentRequest=rt.complete?bech32.encode(dt,yt,Number.MAX_SAFE_INTEGER):"",rt.prefix=dt,rt.wordsTemp=bech32.encode("temp",yt,Number.MAX_SAFE_INTEGER),orderKeys(rt)}function decode$3(et,tt){if(typeof et!="string")throw new Error("Lightning Payment Request must be string");if(et.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const rt=bech32.decode(et,Number.MAX_SAFE_INTEGER);et=et.toLowerCase();const nt=rt.prefix;let it=rt.words;const st=it.slice(-104),at=it.slice(0,-104);it=it.slice(0,-104);let ot=wordsToBuffer(st,!0);const lt=ot.slice(-1)[0];if(ot=ot.slice(0,-1),!(lt in[0,1,2,3])||ot.length!==64)throw new Error("Signature is missing or incorrect");let ut=nt.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(ut&&!ut[2]&&(ut=nt.match(/^ln(\S+)$/)),!ut)throw new Error("Not a proper lightning payment request");const dt=ut[1];let bt;if(tt){if(tt.bech32===void 0||tt.pubKeyHash===void 0||tt.scriptHash===void 0||!Array.isArray(tt.validWitnessVersions))throw new Error("Invalid network");bt=tt}else switch(dt){case DEFAULTNETWORK.bech32:bt=DEFAULTNETWORK;break;case TESTNETWORK.bech32:bt=TESTNETWORK;break;case REGTESTNETWORK.bech32:bt=REGTESTNETWORK;break;case SIMNETWORK.bech32:bt=SIMNETWORK;break}if(!bt||bt.bech32!==dt)throw new Error("Unknown coin bech32 prefix");const gt=ut[2];let kt,pt,yt;if(gt){const Mt=ut[3];try{kt=parseInt(hrpToSat(gt+Mt,!0))}catch{kt=null,yt=!0}pt=hrpToMillisat(gt+Mt,!0)}else kt=null,pt=null;const $t=wordsToIntBE(it.slice(0,7)),mt=new Date($t*1e3).toISOString();it=it.slice(7);const wt=[];let St,Bt,Ot,Lt;for(;it.length>0;){const Mt=it[0].toString();St=TAGNAMES[Mt]||unknownTagName,Bt=TAGPARSERS[Mt]||getUnknownParser(Mt),it=it.slice(1),Ot=wordsToIntBE(it.slice(0,2)),it=it.slice(2),Lt=it.slice(0,Ot),it=it.slice(Ot),wt.push({tagName:St,data:Bt(Lt,bt)})}let zt,Vt;tagsContainItem(wt,TAGNAMES[6])&&(zt=$t+tagsItems(wt,TAGNAMES[6]),Vt=new Date(zt*1e3).toISOString());const Wt=Buffer$1.concat([Buffer$1.from(nt,"utf8"),Buffer$1.from(convert(at,5,8))]),lr=sha256(Wt),qt=Buffer$1.from(secp256k1.ecdsaRecover(ot,lt,lr,!0));if(tagsContainItem(wt,TAGNAMES[19])&&tagsItems(wt,TAGNAMES[19])!==qt.toString("hex"))throw new Error("Lightning Payment Request signature pubkey does not match payee pubkey");let Ft={paymentRequest:et,complete:!0,prefix:nt,wordsTemp:bech32.encode("temp",at.concat(st),Number.MAX_SAFE_INTEGER),network:bt,satoshis:kt,millisatoshis:pt,timestamp:$t,timestampString:mt,payeeNodeKey:qt.toString("hex"),signature:ot.toString("hex"),recoveryFlag:lt,tags:wt};return yt&&delete Ft.satoshis,zt&&(Ft=Object.assign(Ft,{timeExpireDate:zt,timeExpireDateString:Vt})),orderKeys(Ft,!0)}function getTagsObject(et){const tt={};return et.forEach(rt=>{rt.tagName===unknownTagName?(tt.unknownTags||(tt.unknownTags=[]),tt.unknownTags.push(rt.data)):tt[rt.tagName]=rt.data}),tt}var payreq={encode:encode$3,decode:decode$3,sign,satToHrp,millisatToHrp,hrpToSat,hrpToMillisat};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(dt){return dt&&dt.__esModule?dt:{default:dt}};Object.defineProperty(et,"__esModule",{value:!0}),et.getIdFromRequest=et.decode=et.isHex=et.stringToBytes=et.isValue=et.utf8Encoder=void 0;const rt=tt(payreq),nt=tt(assert_1);let it;typeof window<"u"&&window&&window.TextEncoder?it=window.TextEncoder:it=util.TextEncoder,et.utf8Encoder=new it;const st=dt=>dt!=null;et.isValue=st;const at=dt=>(0,et.isValue)(dt)?et.utf8Encoder.encode(dt):dt;et.stringToBytes=at;function ot(dt){return Buffer.from(dt,"hex").toString("hex")===dt}et.isHex=ot;function lt(dt){let bt;return dt.indexOf("lnsb")===0&&(bt={bech32:"sb"}),rt.default.decode(dt,bt)}et.decode=lt;function ut(dt){const gt=lt(dt).tags.find(pt=>pt.tagName==="payment_hash");(0,nt.default)(gt&>.data,"Could not find payment hash on invoice request");const kt=gt==null?void 0:gt.data.toString();if(!kt||!kt.length)throw new Error("Could not get payment hash from payment request");return kt}et.getIdFromRequest=ut})(helpers);var hasRequiredLsat;function requireLsat(){if(hasRequiredLsat)return lsat$1;hasRequiredLsat=1;var et=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(gt,kt,pt,yt){yt===void 0&&(yt=pt);var $t=Object.getOwnPropertyDescriptor(kt,pt);(!$t||("get"in $t?!kt.__esModule:$t.writable||$t.configurable))&&($t={enumerable:!0,get:function(){return kt[pt]}}),Object.defineProperty(gt,yt,$t)}:function(gt,kt,pt,yt){yt===void 0&&(yt=pt),gt[yt]=kt[pt]}),tt=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(gt,kt){Object.defineProperty(gt,"default",{enumerable:!0,value:kt})}:function(gt,kt){gt.default=kt}),rt=commonjsGlobal&&commonjsGlobal.__importStar||function(gt){if(gt&>.__esModule)return gt;var kt={};if(gt!=null)for(var pt in gt)pt!=="default"&&Object.prototype.hasOwnProperty.call(gt,pt)&&et(kt,gt,pt);return tt(kt,gt),kt},nt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(lsat$1,"__esModule",{value:!0}),lsat$1.Lsat=lsat$1.parseChallengePart=void 0;const it=assert_1,st=bufio,at=nt(requireCryptoBrowserify()),ot=rt(macaroon$1),lt=requireDist(),ut=helpers;function dt(gt){let kt;const pt=gt.indexOf("=");it(pt>-1,'Incorrectly encoded challenge. Missing "=" separator.');const yt=gt.length-1-pt;return kt=gt.slice(-yt),it(kt.length,"Incorrectly encoded macaroon challenge"),it(kt[0]==='"'&&kt[kt.length-1]==='"',"Incorectly encoded challenge, challenges must be enclosed in double quotes."),kt=kt.slice(1,kt.length-1),kt}lsat$1.parseChallengePart=dt;class bt extends st.Struct{constructor(kt){super(kt),this.id="",this.validUntil=0,this.invoice="",this.baseMacaroon="",this.paymentHash=Buffer.alloc(32).toString("hex"),this.timeCreated=Date.now(),this.paymentPreimage=null,this.amountPaid=0,this.routingFeePaid=0,this.invoiceAmount=0,kt&&this.fromOptions(kt)}fromOptions(kt){it(typeof kt.baseMacaroon=="string","Require serialized macaroon"),this.baseMacaroon=kt.baseMacaroon,it(typeof kt.id=="string","Require string id"),this.id=kt.id,it(typeof kt.paymentHash=="string","Require paymentHash"),this.paymentHash=kt.paymentHash;const pt=this.getExpirationFromMacaroon(kt.baseMacaroon);return pt&&(this.validUntil=pt),kt.invoice&&this.addInvoice(kt.invoice),kt.timeCreated&&(this.timeCreated=kt.timeCreated),kt.paymentPreimage&&(this.paymentPreimage=kt.paymentPreimage),kt.amountPaid&&(this.amountPaid=kt.amountPaid),kt.routingFeePaid&&(this.routingFeePaid=kt.routingFeePaid),this}isExpired(){return this.validUntil===0?!1:this.validUntilwt.tagName==="payment_hash");it($t,"Could not find payment hash on invoice request");const mt=$t==null?void 0:$t.data;it(mt===this.paymentHash,"paymentHash from invoice did not match LSAT"),this.invoiceAmount=yt||0,this.invoice=kt}catch(pt){throw new Error(`Problem adding invoice data to LSAT: ${pt.message}`)}}static fromMacaroon(kt,pt){it(typeof kt=="string","Requires a raw macaroon string for macaroon to generate LSAT");let yt,$t;try{$t=(0,lt.decodeIdentifierFromMacaroon)(kt),yt=lt.Identifier.fromString($t)}catch(St){throw new Error(`Unexpected encoding for macaroon identifier: ${St.message}`)}const mt={id:$t,baseMacaroon:kt,paymentHash:yt.paymentHash.toString("hex")},wt=new this(mt);return pt&&wt.addInvoice(pt),wt}static fromToken(kt,pt){it(kt.includes(this.type),"Token must include LSAT prefix"),kt=kt.slice(this.type.length).trim();const[yt,$t]=kt.split(":"),mt=bt.fromMacaroon(yt,pt);return $t&&mt.setPreimage($t),mt}static fromChallenge(kt){const pt="macaroon=",yt="invoice=";let $t;$t=kt.split(","),$t.length<2&&($t=kt.split(" ")),it($t.length>=2,"Expected at least two challenges in the LSAT: invoice and macaroon");let mt="",wt="";for(const Ot of $t){if(!mt.length&&Ot.indexOf(pt)>-1)try{mt=dt(Ot)}catch(Lt){throw new Error(`Problem parsing macaroon challenge: ${Lt.message}`)}if(!wt.length&&Ot.indexOf(yt)>-1)try{wt=dt(Ot)}catch(Lt){throw new Error(`Problem parsing macaroon challenge: ${Lt.message}`)}if(wt.length&&mt.length)break}it(wt.length&&mt.length,"Expected WWW-Authenticate challenge with macaroon and invoice data");const St=(0,ut.getIdFromRequest)(wt),Bt=(0,lt.decodeIdentifierFromMacaroon)(mt);return new this({id:Bt,baseMacaroon:mt,paymentHash:St,invoice:wt})}static fromHeader(kt){const pt=kt.slice(this.type.length).trim();return it(kt.length!==pt.length,'header missing token type prefix "LSAT"'),bt.fromChallenge(pt)}}return lsat$1.Lsat=bt,bt.type="LSAT",lsat$1}var types={},lsat={};Object.defineProperty(lsat,"__esModule",{value:!0});var satisfier={};Object.defineProperty(satisfier,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(lsat,et),rt(satisfier,et)})(types);var satisfiers={},hasRequiredSatisfiers;function requireSatisfiers(){if(hasRequiredSatisfiers)return satisfiers;hasRequiredSatisfiers=1,Object.defineProperty(satisfiers,"__esModule",{value:!0}),satisfiers.createCapabilitiesSatisfier=satisfiers.createServicesSatisfier=satisfiers.expirationSatisfier=void 0;const et=requireDist();satisfiers.expirationSatisfier={condition:"expiration",satisfyPrevious:(nt,it)=>nt.condition!=="expiration"||it.condition!=="expiration"?!1:!(nt.value!(nt.condition!=="expiration"||nt.value{if(typeof nt!="string")throw new et.InvalidServicesError;return{condition:et.SERVICES_CAVEAT_CONDITION,satisfyPrevious:(it,st)=>{const at=(0,et.decodeServicesCaveat)(it.value.toString()),ot=(0,et.decodeServicesCaveat)(st.value.toString());if(!Array.isArray(at)||!Array.isArray(ot))throw new et.InvalidServicesError;let lt=new Map;lt=at.reduce((ut,dt)=>ut.set(dt.name,dt.tier),lt);for(const ut of ot)if(!lt.has(ut.name)||lt.get(ut.name)>ut.tier)return!1;return!0},satisfyFinal:it=>{const st=(0,et.decodeServicesCaveat)(it.value.toString());if(!Array.isArray(st))throw new et.InvalidServicesError;for(const at of st)if(at.name===nt)return!0;return!1}}};satisfiers.createServicesSatisfier=tt;const rt=(nt,it)=>{if(typeof it!="string")throw new et.InvalidCapabilitiesError;if(typeof nt!="string")throw new et.InvalidCapabilitiesError;return{condition:nt+et.SERVICE_CAPABILITIES_SUFFIX,satisfyPrevious:(st,at)=>{const ot=(0,et.decodeCapabilitiesValue)(st.value.toString()),lt=(0,et.decodeCapabilitiesValue)(at.value.toString());if(!Array.isArray(ot)||!Array.isArray(lt))throw new et.InvalidServicesError;let ut=new Set;ut=ot.reduce((dt,bt)=>dt.add(bt),ut);for(const dt of lt)if(!ut.has(dt))return!1;return!0},satisfyFinal:st=>{const at=(0,et.decodeCapabilitiesValue)(st.value.toString());if(!Array.isArray(at))throw new et.InvalidServicesError;for(const ot of at)if(ot===it)return!0;return!1}}};return satisfiers.createCapabilitiesSatisfier=rt,satisfiers}var macaroon={},base64={},__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)it.hasOwnProperty(st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(base64,"__esModule",{value:!0});var INVALID_BYTE=256,Coder=function(){function et(tt){tt===void 0&&(tt="="),this._paddingCharacter=tt}return et.prototype.encodedLength=function(tt){return this._paddingCharacter?(tt+2)/3*4|0:(tt*8+5)/6|0},et.prototype.encode=function(tt){for(var rt="",nt=0;nt>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),rt+=this._encodeByte(it>>>1*6&63),rt+=this._encodeByte(it>>>0*6&63)}var st=tt.length-nt;if(st>0){var it=tt[nt]<<16|(st===2?tt[nt+1]<<8:0);rt+=this._encodeByte(it>>>3*6&63),rt+=this._encodeByte(it>>>2*6&63),st===2?rt+=this._encodeByte(it>>>1*6&63):rt+=this._paddingCharacter||"",rt+=this._paddingCharacter||""}return rt},et.prototype.maxDecodedLength=function(tt){return this._paddingCharacter?tt/4*3|0:(tt*6+7)/8|0},et.prototype.decodedLength=function(tt){return this.maxDecodedLength(tt.length-this._getPaddingLength(tt))},et.prototype.decode=function(tt){if(tt.length===0)return new Uint8Array(0);for(var rt=this._getPaddingLength(tt),nt=tt.length-rt,it=new Uint8Array(this.maxDecodedLength(nt)),st=0,at=0,ot=0,lt=0,ut=0,dt=0,bt=0;at>>4,it[st++]=ut<<4|dt>>>2,it[st++]=dt<<6|bt,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE,ot|=dt&INVALID_BYTE,ot|=bt&INVALID_BYTE;if(at>>4,ot|=lt&INVALID_BYTE,ot|=ut&INVALID_BYTE),at>>2,ot|=dt&INVALID_BYTE),at>>8&0-65-26+97,rt+=51-tt>>>8&26-97-52+48,rt+=61-tt>>>8&52-48-62+43,rt+=62-tt>>>8&62-43-63+47,String.fromCharCode(rt)},et.prototype._decodeChar=function(tt){var rt=INVALID_BYTE;return rt+=(42-tt&tt-44)>>>8&-INVALID_BYTE+tt-43+62,rt+=(46-tt&tt-48)>>>8&-INVALID_BYTE+tt-47+63,rt+=(47-tt&tt-58)>>>8&-INVALID_BYTE+tt-48+52,rt+=(64-tt&tt-91)>>>8&-INVALID_BYTE+tt-65+0,rt+=(96-tt&tt-123)>>>8&-INVALID_BYTE+tt-97+26,rt},et.prototype._getPaddingLength=function(tt){var rt=0;if(this._paddingCharacter){for(var nt=tt.length-1;nt>=0&&tt[nt]===this._paddingCharacter;nt--)rt++;if(tt.length<4||rt>2)throw new Error("Base64Coder: incorrect padding")}return rt},et}();base64.Coder=Coder;var stdCoder=new Coder;function encode$2(et){return stdCoder.encode(et)}base64.encode=encode$2;function decode$2(et){return stdCoder.decode(et)}base64.decode=decode$2;var URLSafeCoder=function(et){__extends$1(tt,et);function tt(){return et!==null&&et.apply(this,arguments)||this}return tt.prototype._encodeByte=function(rt){var nt=rt;return nt+=65,nt+=25-rt>>>8&0-65-26+97,nt+=51-rt>>>8&26-97-52+48,nt+=61-rt>>>8&52-48-62+45,nt+=62-rt>>>8&62-45-63+95,String.fromCharCode(nt)},tt.prototype._decodeChar=function(rt){var nt=INVALID_BYTE;return nt+=(44-rt&rt-46)>>>8&-INVALID_BYTE+rt-45+62,nt+=(94-rt&rt-96)>>>8&-INVALID_BYTE+rt-95+63,nt+=(47-rt&rt-58)>>>8&-INVALID_BYTE+rt-48+52,nt+=(64-rt&rt-91)>>>8&-INVALID_BYTE+rt-65+0,nt+=(96-rt&rt-123)>>>8&-INVALID_BYTE+rt-97+26,nt},tt}(Coder);base64.URLSafeCoder=URLSafeCoder;var urlSafeCoder=new URLSafeCoder;function encodeURLSafe(et){return urlSafeCoder.encode(et)}base64.encodeURLSafe=encodeURLSafe;function decodeURLSafe(et){return urlSafeCoder.decode(et)}base64.decodeURLSafe=decodeURLSafe;base64.encodedLength=function(et){return stdCoder.encodedLength(et)};base64.maxDecodedLength=function(et){return stdCoder.maxDecodedLength(et)};base64.decodedLength=function(et){return stdCoder.decodedLength(et)};var __createBinding=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(et,tt,rt,nt){nt===void 0&&(nt=rt);var it=Object.getOwnPropertyDescriptor(tt,rt);(!it||("get"in it?!tt.__esModule:it.writable||it.configurable))&&(it={enumerable:!0,get:function(){return tt[rt]}}),Object.defineProperty(et,nt,it)}:function(et,tt,rt,nt){nt===void 0&&(nt=rt),et[nt]=tt[rt]}),__setModuleDefault=commonjsGlobal&&commonjsGlobal.__setModuleDefault||(Object.create?function(et,tt){Object.defineProperty(et,"default",{enumerable:!0,value:tt})}:function(et,tt){et.default=tt}),__importStar=commonjsGlobal&&commonjsGlobal.__importStar||function(et){if(et&&et.__esModule)return et;var tt={};if(et!=null)for(var rt in et)rt!=="default"&&Object.prototype.hasOwnProperty.call(et,rt)&&__createBinding(tt,et,rt);return __setModuleDefault(tt,et),tt};Object.defineProperty(macaroon,"__esModule",{value:!0});macaroon.getRawMacaroon=macaroon.verifyMacaroonCaveats=macaroon.getCaveatsFromMacaroon=void 0;const caveat_1=caveat,helpers_1=helpers,Macaroon=__importStar(macaroon$1),base64_1=base64;function getCaveatsFromMacaroon(et){var tt;const rt=Macaroon.importMacaroon(et),nt=[],it=(tt=rt._exportAsJSONObjectV2())===null||tt===void 0?void 0:tt.c;if(it)for(const st of it){if(!st.i)continue;const at=caveat_1.Caveat.decode(st.i);nt.push(at)}return nt}macaroon.getCaveatsFromMacaroon=getCaveatsFromMacaroon;function verifyMacaroonCaveats(et,tt,rt,nt={}){try{const it=Macaroon.importMacaroon(et),st=(0,helpers_1.stringToBytes)(tt);it.verify(st,()=>null);const at=getCaveatsFromMacaroon(et);return rt&&!Array.isArray(rt)&&(rt=[rt]),!at.length&&(!rt||!rt.length)?!0:(0,caveat_1.verifyCaveats)(at,rt,nt)}catch{return!1}}macaroon.verifyMacaroonCaveats=verifyMacaroonCaveats;function getRawMacaroon(et,tt=!1){const rt=et._exportBinaryV2();return tt?(0,base64_1.encodeURLSafe)(rt):(0,base64_1.encode)(rt)}macaroon.getRawMacaroon=getRawMacaroon;var service={};(function(et){var tt=commonjsGlobal&&commonjsGlobal.__importDefault||function(gt){return gt&>.__esModule?gt:{default:gt}};Object.defineProperty(et,"__esModule",{value:!0}),et.decodeCapabilitiesValue=et.createNewCapabilitiesCaveat=et.SERVICE_CAPABILITIES_SUFFIX=et.encodeServicesCaveatValue=et.decodeServicesCaveat=et.SERVICES_CAVEAT_CONDITION=et.Service=et.InvalidCapabilitiesError=et.InvalidServicesError=et.NoServicesError=void 0;const rt=tt(bufio),nt=caveat;class it extends Error{constructor(...kt){super(...kt),this.name="NoServicesError",this.message="no services found",Error.captureStackTrace&&Error.captureStackTrace(this,it)}}et.NoServicesError=it;class st extends Error{constructor(kt){super(kt),this.name="InvalidServicesError",kt||(this.message='service must be of the form "name:tier"'),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidServicesError=st;class at extends Error{constructor(kt){super(kt),this.name="InvalidCapabilitiesError",kt||(this.message="capabilities must be a string or array of strings"),Error.captureStackTrace&&Error.captureStackTrace(this,st)}}et.InvalidCapabilitiesError=at;class ot extends rt.default.Struct{constructor(kt){super(kt),this.name=kt.name,this.tier=kt.tier}}et.Service=ot,et.SERVICES_CAVEAT_CONDITION="services";const lt=gt=>{if(!gt.length)throw new it;const kt=[],pt=gt.split(",");for(const yt of pt){const[$t,mt]=yt.split(":");if(!$t||!mt)throw new st;if(isNaN(+mt))throw new st("tier must be a number");if(!isNaN(+$t))throw new st("service name must be a string");kt.push(new ot({name:$t,tier:+mt}))}return kt};et.decodeServicesCaveat=lt;const ut=gt=>{if(!gt.length)throw new it;let kt="";for(let pt=0;pt{let pt;if(!kt)pt="";else if(Array.isArray(kt))pt=kt.join(",");else{if(typeof kt!="string")throw new at;pt=kt}return new nt.Caveat({condition:gt+et.SERVICE_CAPABILITIES_SUFFIX,value:pt,comp:"="})};et.createNewCapabilitiesCaveat=dt;const bt=gt=>{if(typeof gt!="string")throw new at;return gt.toString().split(",").map(kt=>kt.trim())};et.decodeCapabilitiesValue=bt})(service);var hasRequiredDist;function requireDist(){return hasRequiredDist||(hasRequiredDist=1,function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(identifier$1,et),rt(caveat,et),rt(requireLsat(),et),rt(types,et),rt(requireSatisfiers(),et),rt(macaroon,et),rt(service,et)}(dist$1)),dist$1}var distExports=requireDist(),lib={},client={},errors={},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(){var et=function(tt,rt){return et=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(nt,it){nt.__proto__=it}||function(nt,it){for(var st in it)Object.prototype.hasOwnProperty.call(it,st)&&(nt[st]=it[st])},et(tt,rt)};return function(tt,rt){if(typeof rt!="function"&&rt!==null)throw new TypeError("Class extends value "+String(rt)+" is not a constructor or null");et(tt,rt);function nt(){this.constructor=tt}tt.prototype=rt===null?Object.create(rt):(nt.prototype=rt.prototype,new nt)}}();Object.defineProperty(errors,"__esModule",{value:!0});errors.InternalError=errors.InvalidDataError=errors.RoutingError=errors.UnsupportedMethodError=errors.ConnectionError=errors.RejectionError=errors.MissingProviderError=void 0;function fixError(et,tt,rt){if(Object.setPrototypeOf(et,rt.prototype),tt===rt)if(et.name=tt.name,Error.captureStackTrace)Error.captureStackTrace(et,rt);else{var nt=new Error(et.message).stack;nt&&(et.stack=fixStack(nt,"new ".concat(tt.name)))}}function fixStack(et,tt){if(!et||!tt)return et;var rt=new RegExp("\\s+at\\s".concat(tt,"\\s")),nt=et.split(` `),it=nt.filter(function(st){return!st.match(rt)});return it.join(` `)}var MissingProviderError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.MissingProviderError=MissingProviderError;var RejectionError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.RejectionError=RejectionError;var ConnectionError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.ConnectionError=ConnectionError;var UnsupportedMethodError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.UnsupportedMethodError=UnsupportedMethodError;var RoutingError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.RoutingError=RoutingError;var InvalidDataError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.InvalidDataError=InvalidDataError;var InternalError=function(et){__extends(tt,et);function tt(rt){var nt=this.constructor,it=et.call(this,rt)||this;return fixError(it,nt,tt),it}return tt}(Error);errors.InternalError=InternalError;Object.defineProperty(client,"__esModule",{value:!0});client.requestProvider=void 0;var errors_1=errors;function requestProvider(et){return new Promise(function(tt,rt){if(typeof window>"u")return rt(new Error("Must be called in a browser context"));var nt=window.webln;if(!nt)return rt(new errors_1.MissingProviderError("Your browser has no WebLN provider"));nt.enable().then(function(){return tt(nt)}).catch(function(it){return rt(it)})})}client.requestProvider=requestProvider;var provider={};Object.defineProperty(provider,"__esModule",{value:!0});(function(et){var tt=commonjsGlobal&&commonjsGlobal.__createBinding||(Object.create?function(nt,it,st,at){at===void 0&&(at=st);var ot=Object.getOwnPropertyDescriptor(it,st);(!ot||("get"in ot?!it.__esModule:ot.writable||ot.configurable))&&(ot={enumerable:!0,get:function(){return it[st]}}),Object.defineProperty(nt,at,ot)}:function(nt,it,st,at){at===void 0&&(at=st),nt[at]=it[st]}),rt=commonjsGlobal&&commonjsGlobal.__exportStar||function(nt,it){for(var st in nt)st!=="default"&&!Object.prototype.hasOwnProperty.call(it,st)&&tt(it,nt,st)};Object.defineProperty(et,"__esModule",{value:!0}),rt(client,et),rt(provider,et),rt(errors,et)})(lib);async function buyLsat(et){const tt={amount:et};return api$1.post("/buy_lsat",JSON.stringify(tt))}async function payLsat(et){let tt;if(isSphinx()){const it=localStorage.getItem("lsat");if(it){localStorage.removeItem("lsat");const ot=JSON.parse(it);await distExports$1.updateLsat(ot.identifier,"expired")}let st;isE2E?st=await sphinxBridge.setBudget():st=await distExports$1.setBudget();let at=st==null?void 0:st.budget;at||(at=(await distExports$1.authorize()).budget);try{await buyLsat(at)}catch(ot){if(ot.status===402){tt=distExports.Lsat.fromHeader(ot.headers.get("www-authenticate"));let lt;isE2E?lt=await sphinxBridge.saveLsat(tt.invoice,tt.baseMacaroon,window.location.host):lt=await distExports$1.saveLsat(tt.invoice,tt.baseMacaroon,window.location.host),lt!=null&<.lsat&&(localStorage.setItem("lsat",JSON.stringify({macaroon:tt.baseMacaroon,identifier:tt.id,preimage:lt.lsat.split(":")[1]})),await et(at))}return}}localStorage.removeItem("lsat");const rt=await lib.requestProvider(),nt=50;try{await buyLsat(nt)}catch(it){tt=distExports.Lsat.fromHeader(it.headers.get("www-authenticate"));const st=await rt.sendPayment(tt.invoice);st!=null&&st.preimage&&localStorage.setItem("lsat",JSON.stringify({macaroon:tt.baseMacaroon,identifier:tt.id,preimage:st.preimage})),await et(nt)}}const createStoreImpl=et=>{let tt;const rt=new Set,nt=(lt,ut)=>{const dt=typeof lt=="function"?lt(tt):lt;if(!Object.is(dt,tt)){const bt=tt;tt=ut??(typeof dt!="object"||dt===null)?dt:Object.assign({},tt,dt),rt.forEach(gt=>gt(tt,bt))}},it=()=>tt,ot={setState:nt,getState:it,subscribe:lt=>(rt.add(lt),()=>rt.delete(lt)),destroy:()=>{rt.clear()}};return tt=et(nt,it,ot),ot},createStore=et=>et?createStoreImpl(et):createStoreImpl;var withSelector={exports:{}},withSelector_production_min={},shim={exports:{}},useSyncExternalStoreShim_production_min={};/** * @license React @@ -264,13 +264,13 @@ PROCEED WITH CAUTION! * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var h$3=reactExports,n$1=shimExports;function p$2(et,tt){return et===tt&&(et!==0||1/et===1/tt)||et!==et&&tt!==tt}var q$1=typeof Object.is=="function"?Object.is:p$2,r$4=n$1.useSyncExternalStore,t$1=h$3.useRef,u$2=h$3.useEffect,v$3=h$3.useMemo,w$2=h$3.useDebugValue;withSelector_production_min.useSyncExternalStoreWithSelector=function(et,tt,rt,nt,it){var st=t$1(null);if(st.current===null){var at={hasValue:!1,value:null};st.current=at}else at=st.current;st=v$3(function(){function lt(kt){if(!ut){if(ut=!0,dt=kt,kt=nt(kt),it!==void 0&&at.hasValue){var pt=at.value;if(it(pt,kt))return bt=pt}return bt=kt}if(pt=bt,q$1(dt,kt))return pt;var yt=nt(kt);return it!==void 0&&it(pt,yt)?pt:(dt=kt,bt=yt)}var ut=!1,dt,bt,gt=rt===void 0?null:rt;return[function(){return lt(tt())},gt===null?void 0:function(){return lt(gt())}]},[tt,rt,nt,it]);var ot=r$4(et,st[0],st[1]);return u$2(function(){at.hasValue=!0,at.value=ot},[ot]),w$2(ot),ot};withSelector.exports=withSelector_production_min;var withSelectorExports=withSelector.exports;const useSyncExternalStoreExports=getDefaultExportFromCjs(withSelectorExports),{useDebugValue}=React,{useSyncExternalStoreWithSelector}=useSyncExternalStoreExports;let didWarnAboutEqualityFn=!1;function useStore(et,tt=et.getState,rt){const nt=useSyncExternalStoreWithSelector(et.subscribe,et.getState,et.getServerState||et.getState,tt,rt);return useDebugValue(nt),nt}const createImpl=et=>{const tt=typeof et=="function"?createStore(et):et,rt=(nt,it)=>useStore(tt,nt,it);return Object.assign(rt,tt),rt},create=et=>et?createImpl(et):createImpl;var react=et=>create(et);const defaultData$6={isAdmin:!1,isAuthenticated:!1,pubKey:"",budget:0,nodeCount:0,tribeHost:"",tribeUuid:"",signedToken:"",swarmUiUrl:""},useUserStore=create(et=>({...defaultData$6,setIsAdmin:tt=>et({isAdmin:tt}),setPubKey:tt=>et({pubKey:tt}),setBudget:tt=>et({budget:tt}),setNodeCount:tt=>et(rt=>tt==="INCREMENT"?{nodeCount:rt.nodeCount+1}:{nodeCount:0}),setTribeUuid:tt=>et({tribeUuid:tt}),setTribeHost:tt=>et({tribeHost:tt}),setIsAuthenticated:tt=>et({isAuthenticated:tt}),setSignedToken:tt=>et({signedToken:tt}),setSwarmUiUrl:tt=>et({swarmUiUrl:tt})})),executeIfTetsRunning=et=>{isE2E&&et()};function executeIfProd(et){return isDevelopment||isE2E?null:et()}function addToGlobalForE2e(et,tt){executeIfTetsRunning(()=>{window.e2e||(window.e2e={}),window.e2e[tt]=et})}const E2E=()=>{const et=useUserStore();return reactExports.useEffect(()=>{isE2E&&addToGlobalForE2e(et,"userStore")},[et]),jsxRuntimeExports.jsx("div",{id:"e2e-check"})},E2ETests=reactExports.memo(()=>isE2E?jsxRuntimeExports.jsx(E2E,{}):null);async function getBalance(et){return api$1.get("/balance",{Authorization:et})}async function updateBudget(et){const tt=await getLSat();if(!tt){et(0);return}try{const rt=await getBalance(tt);et(rt.balance)}catch{et(0)}}const common={black:"#000",white:"#fff"},common$1=common,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},purple$1=purple,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lightBlue$1=lightBlue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey;function _extends(){return _extends=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt{tt[rt]=deepClone(et[rt])}),tt}function deepmerge(et,tt,rt={clone:!0}){const nt=rt.clone?_extends({},et):et;return isPlainObject$1(et)&&isPlainObject$1(tt)&&Object.keys(tt).forEach(it=>{it!=="__proto__"&&(isPlainObject$1(tt[it])&&it in et&&isPlainObject$1(et[it])?nt[it]=deepmerge(et[it],tt[it],rt):rt.clone?nt[it]=isPlainObject$1(tt[it])?deepClone(tt[it]):tt[it]:nt[it]=tt[it])}),nt}function formatMuiErrorMessage(et){let tt="https://mui.com/production-error/?code="+et;for(let rt=1;rt{tt.current=et}),reactExports.useRef((...rt)=>(0,tt.current)(...rt)).current}function useForkRef(...et){return reactExports.useMemo(()=>et.every(tt=>tt==null)?null:tt=>{et.forEach(rt=>{setRef(rt,tt)})},et)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(et){const{type:tt,tagName:rt}=et;return!!(rt==="INPUT"&&inputTypesWhitelist[tt]&&!et.readOnly||rt==="TEXTAREA"&&!et.readOnly||et.isContentEditable)}function handleKeyDown(et){et.metaKey||et.altKey||et.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(et){et.addEventListener("keydown",handleKeyDown,!0),et.addEventListener("mousedown",handlePointerDown,!0),et.addEventListener("pointerdown",handlePointerDown,!0),et.addEventListener("touchstart",handlePointerDown,!0),et.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(et){const{target:tt}=et;try{return tt.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(tt)}function useIsFocusVisible(){const et=reactExports.useCallback(it=>{it!=null&&prepare(it.ownerDocument)},[]),tt=reactExports.useRef(!1);function rt(){return tt.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),tt.current=!1,!0):!1}function nt(it){return isFocusVisible(it)?(tt.current=!0,!0):!1}return{isFocusVisibleRef:tt,onFocus:nt,onBlur:rt,ref:et}}function resolveProps(et,tt){const rt=_extends({},tt);return Object.keys(et).forEach(nt=>{if(nt.toString().match(/^(components|slots)$/))rt[nt]=_extends({},et[nt],rt[nt]);else if(nt.toString().match(/^(componentsProps|slotProps)$/)){const it=et[nt]||{},st=tt[nt];rt[nt]={},!st||!Object.keys(st)?rt[nt]=it:!it||!Object.keys(it)?rt[nt]=st:(rt[nt]=_extends({},st),Object.keys(it).forEach(at=>{rt[nt][at]=resolveProps(it[at],st[at])}))}else rt[nt]===void 0&&(rt[nt]=et[nt])}),rt}function composeClasses(et,tt,rt=void 0){const nt={};return Object.keys(et).forEach(it=>{nt[it]=et[it].reduce((st,at)=>{if(at){const ot=tt(at);ot!==""&&st.push(ot),rt&&rt[at]&&st.push(rt[at])}return st},[]).join(" ")}),nt}const defaultGenerator=et=>et,createClassNameGenerator=()=>{let et=defaultGenerator;return{configure(tt){et=tt},generate(tt){return et(tt)},reset(){et=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(et,tt,rt="Mui"){const nt=globalStateClassesMapping[tt];return nt?`${rt}-${nt}`:`${ClassNameGenerator$1.generate(et)}-${tt}`}function generateUtilityClasses(et,tt,rt="Mui"){const nt={};return tt.forEach(it=>{nt[it]=generateUtilityClass(et,it,rt)}),nt}const THEME_ID="$$material";function _objectWithoutPropertiesLoose(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),it,st;for(st=0;st=0)&&(rt[it]=et[it]);return rt}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(et){return reactPropsRegex.test(et)||et.charCodeAt(0)===111&&et.charCodeAt(1)===110&&et.charCodeAt(2)<91});function sheetForTag(et){if(et.sheet)return et.sheet;for(var tt=0;tt0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(et,tt){for(;--tt&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(et,caret()+(tt<6&&peek()==32&&next()==32))}function delimiter(et){for(;next();)switch(character){case et:return position;case 34:case 39:et!==34&&et!==39&&delimiter(character);break;case 40:et===41&&delimiter(et);break;case 92:next();break}return position}function commenter(et,tt){for(;next()&&et+character!==47+10;)if(et+character===42+42&&peek()===47)break;return"/*"+slice(tt,position-1)+"*"+from(et===47?et:next())}function identifier(et){for(;!token(peek());)next();return slice(et,position)}function compile(et){return dealloc(parse$1("",null,null,null,[""],et=alloc(et),0,[0],et))}function parse$1(et,tt,rt,nt,it,st,at,ot,lt){for(var ut=0,dt=0,bt=at,gt=0,kt=0,pt=0,yt=1,$t=1,mt=1,wt=0,St="",Bt=it,Ft=st,Lt=nt,zt=St;$t;)switch(pt=wt,wt=next()){case 40:if(pt!=108&&charat(zt,bt-1)==58){indexof(zt+=replace(delimit(wt),"&","&\f"),"&\f")!=-1&&(mt=-1);break}case 34:case 39:case 91:zt+=delimit(wt);break;case 9:case 10:case 13:case 32:zt+=whitespace(pt);break;case 92:zt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),tt,rt),lt);break;default:zt+="/"}break;case 123*yt:ot[ut++]=strlen(zt)*mt;case 125*yt:case 59:case 0:switch(wt){case 0:case 125:$t=0;case 59+dt:mt==-1&&(zt=replace(zt,/\f/g,"")),kt>0&&strlen(zt)-bt&&append(kt>32?declaration(zt+";",nt,rt,bt-1):declaration(replace(zt," ","")+";",nt,rt,bt-2),lt);break;case 59:zt+=";";default:if(append(Lt=ruleset(zt,tt,rt,ut,dt,it,ot,St,Bt=[],Ft=[],bt),st),wt===123)if(dt===0)parse$1(zt,tt,Lt,Lt,Bt,st,bt,ot,Ft);else switch(gt===99&&charat(zt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1(et,Lt,Lt,nt&&append(ruleset(et,Lt,Lt,0,0,it,ot,St,it,Bt=[],bt),Ft),it,Ft,bt,ot,nt?Bt:Ft);break;default:parse$1(zt,Lt,Lt,Lt,[""],Ft,0,ot,Ft)}}ut=dt=kt=0,yt=mt=1,St=zt="",bt=at;break;case 58:bt=1+strlen(zt),kt=pt;default:if(yt<1){if(wt==123)--yt;else if(wt==125&&yt++==0&&prev$1()==125)continue}switch(zt+=from(wt),wt*yt){case 38:mt=dt>0?1:(zt+="\f",-1);break;case 44:ot[ut++]=(strlen(zt)-1)*mt,mt=1;break;case 64:peek()===45&&(zt+=delimit(next())),gt=peek(),dt=bt=strlen(St=zt+=identifier(caret())),wt++;break;case 45:pt===45&&strlen(zt)==2&&(yt=0)}}return st}function ruleset(et,tt,rt,nt,it,st,at,ot,lt,ut,dt){for(var bt=it-1,gt=it===0?st:[""],kt=sizeof(gt),pt=0,yt=0,$t=0;pt0?gt[mt]+" "+wt:replace(wt,/&\f/g,gt[mt])))&&(lt[$t++]=St);return node(et,tt,rt,it===0?RULESET:ot,lt,ut,dt)}function comment(et,tt,rt){return node(et,tt,rt,COMMENT,from(char()),substr(et,2,-2),0)}function declaration(et,tt,rt,nt){return node(et,tt,rt,DECLARATION,substr(et,0,nt),substr(et,nt+1,-1),nt)}function serialize(et,tt){for(var rt="",nt=sizeof(et),it=0;it6)switch(charat(et,tt+1)){case 109:if(charat(et,tt+4)!==45)break;case 102:return replace(et,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(et,tt+3)==108?"$3":"$2-$3"))+et;case 115:return~indexof(et,"stretch")?prefix(replace(et,"stretch","fill-available"),tt)+et:et}break;case 4949:if(charat(et,tt+1)!==115)break;case 6444:switch(charat(et,strlen(et)-3-(~indexof(et,"!important")&&10))){case 107:return replace(et,":",":"+WEBKIT)+et;case 101:return replace(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(et,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+et}break;case 5936:switch(charat(et,tt+11)){case 114:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return WEBKIT+et+MS+et+et}return et}var prefixer=function(tt,rt,nt,it){if(tt.length>-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length);break;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],it);case RULESET:if(tt.length)return combine(tt.props,function(st){switch(match(st,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(st,/:(read-\w+)/,":"+MOZ+"$1")]})],it);case"::placeholder":return serialize([copy(tt,{props:[replace(st,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,MS+"input-$1")]})],it)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(tt){var rt=tt.key;if(rt==="css"){var nt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(nt,function(yt){var $t=yt.getAttribute("data-emotion");$t.indexOf(" ")!==-1&&(document.head.appendChild(yt),yt.setAttribute("data-s",""))})}var it=tt.stylisPlugins||defaultStylisPlugins,st={},at,ot=[];at=tt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+rt+' "]'),function(yt){for(var $t=yt.getAttribute("data-emotion").split(" "),mt=1;mt<$t.length;mt++)st[$t[mt]]=!0;ot.push(yt)});var lt,ut=[compat,removeLabel];{var dt,bt=[stringify,rulesheet(function(yt){dt.insert(yt)})],gt=middleware(ut.concat(it,bt)),kt=function($t){return serialize(compile($t),gt)};lt=function($t,mt,wt,St){dt=wt,kt($t?$t+"{"+mt.styles+"}":mt.styles),St&&(pt.inserted[mt.name]=!0)}}var pt={key:rt,sheet:new StyleSheet({key:rt,container:at,nonce:tt.nonce,speedy:tt.speedy,prepend:tt.prepend,insertionPoint:tt.insertionPoint}),nonce:tt.nonce,inserted:st,registered:{},insert:lt};return pt.sheet.hydrate(ot),pt},isBrowser=!0;function getRegisteredStyles(et,tt,rt){var nt="";return rt.split(" ").forEach(function(it){et[it]!==void 0?tt.push(et[it]+";"):nt+=it+" "}),nt}var registerStyles=function(tt,rt,nt){var it=tt.key+"-"+rt.name;(nt===!1||isBrowser===!1)&&tt.registered[it]===void 0&&(tt.registered[it]=rt.styles)},insertStyles=function(tt,rt,nt){registerStyles(tt,rt,nt);var it=tt.key+"-"+rt.name;if(tt.inserted[rt.name]===void 0){var st=rt;do tt.insert(rt===st?"."+it:"",st,tt.sheet,!0),st=st.next;while(st!==void 0)}};function murmur2(et){for(var tt=0,rt,nt=0,it=et.length;it>=4;++nt,it-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(it){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(tt){return tt.charCodeAt(1)===45},isProcessableValue=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName=memoize$1(function(et){return isCustomProperty(et)?et:et.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex,function(nt,it,st){return cursor={name:it,styles:st,next:cursor},it})}return unitlessKeys[tt]!==1&&!isCustomProperty(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(et,tt,rt){if(rt==null)return"";if(rt.__emotion_styles!==void 0)return rt;switch(typeof rt){case"boolean":return"";case"object":{if(rt.anim===1)return cursor={name:rt.name,styles:rt.styles,next:cursor},rt.name;if(rt.styles!==void 0){var nt=rt.next;if(nt!==void 0)for(;nt!==void 0;)cursor={name:nt.name,styles:nt.styles,next:cursor},nt=nt.next;var it=rt.styles+";";return it}return createStringFromObject(et,tt,rt)}case"function":{if(et!==void 0){var st=cursor,at=rt(et);return cursor=st,handleInterpolation(et,tt,at)}break}}if(tt==null)return rt;var ot=tt[rt];return ot!==void 0?ot:rt}function createStringFromObject(et,tt,rt){var nt="";if(Array.isArray(rt))for(var it=0;it96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tt,rt,nt){var it;if(rt){var st=rt.shouldForwardProp;it=tt.__emotion_forwardProp&&st?function(at){return tt.__emotion_forwardProp(at)&&st(at)}:st}return typeof it!="function"&&nt&&(it=tt.__emotion_forwardProp),it},Insertion=function(tt){var rt=tt.cache,nt=tt.serialized,it=tt.isStringTag;return registerStyles(rt,nt,it),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(rt,nt,it)}),null},createStyled$1=function et(tt,rt){var nt=tt.__emotion_real===tt,it=nt&&tt.__emotion_base||tt,st,at;rt!==void 0&&(st=rt.label,at=rt.target);var ot=composeShouldForwardProps(tt,rt,nt),lt=ot||getDefaultShouldForwardProp(it),ut=!lt("as");return function(){var dt=arguments,bt=nt&&tt.__emotion_styles!==void 0?tt.__emotion_styles.slice(0):[];if(st!==void 0&&bt.push("label:"+st+";"),dt[0]==null||dt[0].raw===void 0)bt.push.apply(bt,dt);else{bt.push(dt[0][0]);for(var gt=dt.length,kt=1;kt{const tt=typeof et=="function"?createStore(et):et,rt=(nt,it)=>useStore(tt,nt,it);return Object.assign(rt,tt),rt},create=et=>et?createImpl(et):createImpl;var react=et=>create(et);const defaultData$6={isAdmin:!1,isAuthenticated:!1,pubKey:"",budget:0,nodeCount:0,tribeHost:"",tribeUuid:"",signedToken:"",swarmUiUrl:""},useUserStore=create(et=>({...defaultData$6,setIsAdmin:tt=>et({isAdmin:tt}),setPubKey:tt=>et({pubKey:tt}),setBudget:tt=>et({budget:tt}),setNodeCount:tt=>et(rt=>tt==="INCREMENT"?{nodeCount:rt.nodeCount+1}:{nodeCount:0}),setTribeUuid:tt=>et({tribeUuid:tt}),setTribeHost:tt=>et({tribeHost:tt}),setIsAuthenticated:tt=>et({isAuthenticated:tt}),setSignedToken:tt=>et({signedToken:tt}),setSwarmUiUrl:tt=>et({swarmUiUrl:tt})})),executeIfTetsRunning=et=>{isE2E&&et()};function executeIfProd(et){return isDevelopment||isE2E?null:et()}function addToGlobalForE2e(et,tt){executeIfTetsRunning(()=>{window.e2e||(window.e2e={}),window.e2e[tt]=et})}const E2E=()=>{const et=useUserStore();return reactExports.useEffect(()=>{isE2E&&addToGlobalForE2e(et,"userStore")},[et]),jsxRuntimeExports.jsx("div",{id:"e2e-check"})},E2ETests=reactExports.memo(()=>isE2E?jsxRuntimeExports.jsx(E2E,{}):null);async function getBalance(et){return api$1.get("/balance",{Authorization:et})}async function updateBudget(et){const tt=await getLSat();if(!tt){et(0);return}try{const rt=await getBalance(tt);et(rt.balance)}catch{et(0)}}const common={black:"#000",white:"#fff"},common$1=common,red={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},red$1=red,purple={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},purple$1=purple,blue={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},blue$1=blue,lightBlue={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},lightBlue$1=lightBlue,green={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},green$1=green,orange={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},orange$1=orange,grey={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},grey$1=grey;function _extends(){return _extends=Object.assign?Object.assign.bind():function(et){for(var tt=1;tt{tt[rt]=deepClone(et[rt])}),tt}function deepmerge(et,tt,rt={clone:!0}){const nt=rt.clone?_extends({},et):et;return isPlainObject$1(et)&&isPlainObject$1(tt)&&Object.keys(tt).forEach(it=>{it!=="__proto__"&&(isPlainObject$1(tt[it])&&it in et&&isPlainObject$1(et[it])?nt[it]=deepmerge(et[it],tt[it],rt):rt.clone?nt[it]=isPlainObject$1(tt[it])?deepClone(tt[it]):tt[it]:nt[it]=tt[it])}),nt}function formatMuiErrorMessage(et){let tt="https://mui.com/production-error/?code="+et;for(let rt=1;rt{tt.current=et}),reactExports.useRef((...rt)=>(0,tt.current)(...rt)).current}function useForkRef(...et){return reactExports.useMemo(()=>et.every(tt=>tt==null)?null:tt=>{et.forEach(rt=>{setRef(rt,tt)})},et)}let hadKeyboardEvent=!0,hadFocusVisibleRecently=!1,hadFocusVisibleRecentlyTimeout;const inputTypesWhitelist={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function focusTriggersKeyboardModality(et){const{type:tt,tagName:rt}=et;return!!(rt==="INPUT"&&inputTypesWhitelist[tt]&&!et.readOnly||rt==="TEXTAREA"&&!et.readOnly||et.isContentEditable)}function handleKeyDown(et){et.metaKey||et.altKey||et.ctrlKey||(hadKeyboardEvent=!0)}function handlePointerDown(){hadKeyboardEvent=!1}function handleVisibilityChange(){this.visibilityState==="hidden"&&hadFocusVisibleRecently&&(hadKeyboardEvent=!0)}function prepare(et){et.addEventListener("keydown",handleKeyDown,!0),et.addEventListener("mousedown",handlePointerDown,!0),et.addEventListener("pointerdown",handlePointerDown,!0),et.addEventListener("touchstart",handlePointerDown,!0),et.addEventListener("visibilitychange",handleVisibilityChange,!0)}function isFocusVisible(et){const{target:tt}=et;try{return tt.matches(":focus-visible")}catch{}return hadKeyboardEvent||focusTriggersKeyboardModality(tt)}function useIsFocusVisible(){const et=reactExports.useCallback(it=>{it!=null&&prepare(it.ownerDocument)},[]),tt=reactExports.useRef(!1);function rt(){return tt.current?(hadFocusVisibleRecently=!0,window.clearTimeout(hadFocusVisibleRecentlyTimeout),hadFocusVisibleRecentlyTimeout=window.setTimeout(()=>{hadFocusVisibleRecently=!1},100),tt.current=!1,!0):!1}function nt(it){return isFocusVisible(it)?(tt.current=!0,!0):!1}return{isFocusVisibleRef:tt,onFocus:nt,onBlur:rt,ref:et}}function resolveProps(et,tt){const rt=_extends({},tt);return Object.keys(et).forEach(nt=>{if(nt.toString().match(/^(components|slots)$/))rt[nt]=_extends({},et[nt],rt[nt]);else if(nt.toString().match(/^(componentsProps|slotProps)$/)){const it=et[nt]||{},st=tt[nt];rt[nt]={},!st||!Object.keys(st)?rt[nt]=it:!it||!Object.keys(it)?rt[nt]=st:(rt[nt]=_extends({},st),Object.keys(it).forEach(at=>{rt[nt][at]=resolveProps(it[at],st[at])}))}else rt[nt]===void 0&&(rt[nt]=et[nt])}),rt}function composeClasses(et,tt,rt=void 0){const nt={};return Object.keys(et).forEach(it=>{nt[it]=et[it].reduce((st,at)=>{if(at){const ot=tt(at);ot!==""&&st.push(ot),rt&&rt[at]&&st.push(rt[at])}return st},[]).join(" ")}),nt}const defaultGenerator=et=>et,createClassNameGenerator=()=>{let et=defaultGenerator;return{configure(tt){et=tt},generate(tt){return et(tt)},reset(){et=defaultGenerator}}},ClassNameGenerator=createClassNameGenerator(),ClassNameGenerator$1=ClassNameGenerator,globalStateClassesMapping={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function generateUtilityClass(et,tt,rt="Mui"){const nt=globalStateClassesMapping[tt];return nt?`${rt}-${nt}`:`${ClassNameGenerator$1.generate(et)}-${tt}`}function generateUtilityClasses(et,tt,rt="Mui"){const nt={};return tt.forEach(it=>{nt[it]=generateUtilityClass(et,it,rt)}),nt}const THEME_ID="$$material";function _objectWithoutPropertiesLoose(et,tt){if(et==null)return{};var rt={},nt=Object.keys(et),it,st;for(st=0;st=0)&&(rt[it]=et[it]);return rt}var reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=memoize$1(function(et){return reactPropsRegex.test(et)||et.charCodeAt(0)===111&&et.charCodeAt(1)===110&&et.charCodeAt(2)<91});function sheetForTag(et){if(et.sheet)return et.sheet;for(var tt=0;tt0?charat(characters,--position):0,column--,character===10&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(et,tt){for(;--tt&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(et,caret()+(tt<6&&peek()==32&&next()==32))}function delimiter(et){for(;next();)switch(character){case et:return position;case 34:case 39:et!==34&&et!==39&&delimiter(character);break;case 40:et===41&&delimiter(et);break;case 92:next();break}return position}function commenter(et,tt){for(;next()&&et+character!==47+10;)if(et+character===42+42&&peek()===47)break;return"/*"+slice(tt,position-1)+"*"+from(et===47?et:next())}function identifier(et){for(;!token(peek());)next();return slice(et,position)}function compile(et){return dealloc(parse$1("",null,null,null,[""],et=alloc(et),0,[0],et))}function parse$1(et,tt,rt,nt,it,st,at,ot,lt){for(var ut=0,dt=0,bt=at,gt=0,kt=0,pt=0,yt=1,$t=1,mt=1,wt=0,St="",Bt=it,Ot=st,Lt=nt,zt=St;$t;)switch(pt=wt,wt=next()){case 40:if(pt!=108&&charat(zt,bt-1)==58){indexof(zt+=replace(delimit(wt),"&","&\f"),"&\f")!=-1&&(mt=-1);break}case 34:case 39:case 91:zt+=delimit(wt);break;case 9:case 10:case 13:case 32:zt+=whitespace(pt);break;case 92:zt+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),tt,rt),lt);break;default:zt+="/"}break;case 123*yt:ot[ut++]=strlen(zt)*mt;case 125*yt:case 59:case 0:switch(wt){case 0:case 125:$t=0;case 59+dt:mt==-1&&(zt=replace(zt,/\f/g,"")),kt>0&&strlen(zt)-bt&&append(kt>32?declaration(zt+";",nt,rt,bt-1):declaration(replace(zt," ","")+";",nt,rt,bt-2),lt);break;case 59:zt+=";";default:if(append(Lt=ruleset(zt,tt,rt,ut,dt,it,ot,St,Bt=[],Ot=[],bt),st),wt===123)if(dt===0)parse$1(zt,tt,Lt,Lt,Bt,st,bt,ot,Ot);else switch(gt===99&&charat(zt,3)===110?100:gt){case 100:case 108:case 109:case 115:parse$1(et,Lt,Lt,nt&&append(ruleset(et,Lt,Lt,0,0,it,ot,St,it,Bt=[],bt),Ot),it,Ot,bt,ot,nt?Bt:Ot);break;default:parse$1(zt,Lt,Lt,Lt,[""],Ot,0,ot,Ot)}}ut=dt=kt=0,yt=mt=1,St=zt="",bt=at;break;case 58:bt=1+strlen(zt),kt=pt;default:if(yt<1){if(wt==123)--yt;else if(wt==125&&yt++==0&&prev$1()==125)continue}switch(zt+=from(wt),wt*yt){case 38:mt=dt>0?1:(zt+="\f",-1);break;case 44:ot[ut++]=(strlen(zt)-1)*mt,mt=1;break;case 64:peek()===45&&(zt+=delimit(next())),gt=peek(),dt=bt=strlen(St=zt+=identifier(caret())),wt++;break;case 45:pt===45&&strlen(zt)==2&&(yt=0)}}return st}function ruleset(et,tt,rt,nt,it,st,at,ot,lt,ut,dt){for(var bt=it-1,gt=it===0?st:[""],kt=sizeof(gt),pt=0,yt=0,$t=0;pt0?gt[mt]+" "+wt:replace(wt,/&\f/g,gt[mt])))&&(lt[$t++]=St);return node(et,tt,rt,it===0?RULESET:ot,lt,ut,dt)}function comment(et,tt,rt){return node(et,tt,rt,COMMENT,from(char()),substr(et,2,-2),0)}function declaration(et,tt,rt,nt){return node(et,tt,rt,DECLARATION,substr(et,0,nt),substr(et,nt+1,-1),nt)}function serialize(et,tt){for(var rt="",nt=sizeof(et),it=0;it6)switch(charat(et,tt+1)){case 109:if(charat(et,tt+4)!==45)break;case 102:return replace(et,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(charat(et,tt+3)==108?"$3":"$2-$3"))+et;case 115:return~indexof(et,"stretch")?prefix(replace(et,"stretch","fill-available"),tt)+et:et}break;case 4949:if(charat(et,tt+1)!==115)break;case 6444:switch(charat(et,strlen(et)-3-(~indexof(et,"!important")&&10))){case 107:return replace(et,":",":"+WEBKIT)+et;case 101:return replace(et,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(charat(et,14)===45?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+et}break;case 5936:switch(charat(et,tt+11)){case 114:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb")+et;case 108:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"tb-rl")+et;case 45:return WEBKIT+et+MS+replace(et,/[svh]\w+-[tblr]{2}/,"lr")+et}return WEBKIT+et+MS+et+et}return et}var prefixer=function(tt,rt,nt,it){if(tt.length>-1&&!tt.return)switch(tt.type){case DECLARATION:tt.return=prefix(tt.value,tt.length);break;case KEYFRAMES:return serialize([copy(tt,{value:replace(tt.value,"@","@"+WEBKIT)})],it);case RULESET:if(tt.length)return combine(tt.props,function(st){switch(match(st,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return serialize([copy(tt,{props:[replace(st,/:(read-\w+)/,":"+MOZ+"$1")]})],it);case"::placeholder":return serialize([copy(tt,{props:[replace(st,/:(plac\w+)/,":"+WEBKIT+"input-$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,":"+MOZ+"$1")]}),copy(tt,{props:[replace(st,/:(plac\w+)/,MS+"input-$1")]})],it)}return""})}},defaultStylisPlugins=[prefixer],createCache=function(tt){var rt=tt.key;if(rt==="css"){var nt=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(nt,function(yt){var $t=yt.getAttribute("data-emotion");$t.indexOf(" ")!==-1&&(document.head.appendChild(yt),yt.setAttribute("data-s",""))})}var it=tt.stylisPlugins||defaultStylisPlugins,st={},at,ot=[];at=tt.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+rt+' "]'),function(yt){for(var $t=yt.getAttribute("data-emotion").split(" "),mt=1;mt<$t.length;mt++)st[$t[mt]]=!0;ot.push(yt)});var lt,ut=[compat,removeLabel];{var dt,bt=[stringify,rulesheet(function(yt){dt.insert(yt)})],gt=middleware(ut.concat(it,bt)),kt=function($t){return serialize(compile($t),gt)};lt=function($t,mt,wt,St){dt=wt,kt($t?$t+"{"+mt.styles+"}":mt.styles),St&&(pt.inserted[mt.name]=!0)}}var pt={key:rt,sheet:new StyleSheet({key:rt,container:at,nonce:tt.nonce,speedy:tt.speedy,prepend:tt.prepend,insertionPoint:tt.insertionPoint}),nonce:tt.nonce,inserted:st,registered:{},insert:lt};return pt.sheet.hydrate(ot),pt},isBrowser=!0;function getRegisteredStyles(et,tt,rt){var nt="";return rt.split(" ").forEach(function(it){et[it]!==void 0?tt.push(et[it]+";"):nt+=it+" "}),nt}var registerStyles=function(tt,rt,nt){var it=tt.key+"-"+rt.name;(nt===!1||isBrowser===!1)&&tt.registered[it]===void 0&&(tt.registered[it]=rt.styles)},insertStyles=function(tt,rt,nt){registerStyles(tt,rt,nt);var it=tt.key+"-"+rt.name;if(tt.inserted[rt.name]===void 0){var st=rt;do tt.insert(rt===st?"."+it:"",st,tt.sheet,!0),st=st.next;while(st!==void 0)}};function murmur2(et){for(var tt=0,rt,nt=0,it=et.length;it>=4;++nt,it-=4)rt=et.charCodeAt(nt)&255|(et.charCodeAt(++nt)&255)<<8|(et.charCodeAt(++nt)&255)<<16|(et.charCodeAt(++nt)&255)<<24,rt=(rt&65535)*1540483477+((rt>>>16)*59797<<16),rt^=rt>>>24,tt=(rt&65535)*1540483477+((rt>>>16)*59797<<16)^(tt&65535)*1540483477+((tt>>>16)*59797<<16);switch(it){case 3:tt^=(et.charCodeAt(nt+2)&255)<<16;case 2:tt^=(et.charCodeAt(nt+1)&255)<<8;case 1:tt^=et.charCodeAt(nt)&255,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16)}return tt^=tt>>>13,tt=(tt&65535)*1540483477+((tt>>>16)*59797<<16),((tt^tt>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(tt){return tt.charCodeAt(1)===45},isProcessableValue=function(tt){return tt!=null&&typeof tt!="boolean"},processStyleName=memoize$1(function(et){return isCustomProperty(et)?et:et.replace(hyphenateRegex,"-$&").toLowerCase()}),processStyleValue=function(tt,rt){switch(tt){case"animation":case"animationName":if(typeof rt=="string")return rt.replace(animationRegex,function(nt,it,st){return cursor={name:it,styles:st,next:cursor},it})}return unitlessKeys[tt]!==1&&!isCustomProperty(tt)&&typeof rt=="number"&&rt!==0?rt+"px":rt},noComponentSelectorMessage="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function handleInterpolation(et,tt,rt){if(rt==null)return"";if(rt.__emotion_styles!==void 0)return rt;switch(typeof rt){case"boolean":return"";case"object":{if(rt.anim===1)return cursor={name:rt.name,styles:rt.styles,next:cursor},rt.name;if(rt.styles!==void 0){var nt=rt.next;if(nt!==void 0)for(;nt!==void 0;)cursor={name:nt.name,styles:nt.styles,next:cursor},nt=nt.next;var it=rt.styles+";";return it}return createStringFromObject(et,tt,rt)}case"function":{if(et!==void 0){var st=cursor,at=rt(et);return cursor=st,handleInterpolation(et,tt,at)}break}}if(tt==null)return rt;var ot=tt[rt];return ot!==void 0?ot:rt}function createStringFromObject(et,tt,rt){var nt="";if(Array.isArray(rt))for(var it=0;it96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function(tt,rt,nt){var it;if(rt){var st=rt.shouldForwardProp;it=tt.__emotion_forwardProp&&st?function(at){return tt.__emotion_forwardProp(at)&&st(at)}:st}return typeof it!="function"&&nt&&(it=tt.__emotion_forwardProp),it},Insertion=function(tt){var rt=tt.cache,nt=tt.serialized,it=tt.isStringTag;return registerStyles(rt,nt,it),useInsertionEffectAlwaysWithSyncFallback(function(){return insertStyles(rt,nt,it)}),null},createStyled$1=function et(tt,rt){var nt=tt.__emotion_real===tt,it=nt&&tt.__emotion_base||tt,st,at;rt!==void 0&&(st=rt.label,at=rt.target);var ot=composeShouldForwardProps(tt,rt,nt),lt=ot||getDefaultShouldForwardProp(it),ut=!lt("as");return function(){var dt=arguments,bt=nt&&tt.__emotion_styles!==void 0?tt.__emotion_styles.slice(0):[];if(st!==void 0&&bt.push("label:"+st+";"),dt[0]==null||dt[0].raw===void 0)bt.push.apply(bt,dt);else{bt.push(dt[0][0]);for(var gt=dt.length,kt=1;kt{Array.isArray(et.__emotion_styles)&&(et.__emotion_styles=tt(et.__emotion_styles))},_excluded$d=["values","unit","step"],sortBreakpointsValues=et=>{const tt=Object.keys(et).map(rt=>({key:rt,val:et[rt]}))||[];return tt.sort((rt,nt)=>rt.val-nt.val),tt.reduce((rt,nt)=>_extends({},rt,{[nt.key]:nt.val}),{})};function createBreakpoints(et){const{values:tt={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:rt="px",step:nt=5}=et,it=_objectWithoutPropertiesLoose(et,_excluded$d),st=sortBreakpointsValues(tt),at=Object.keys(st);function ot(gt){return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt})`}function lt(gt){return`@media (max-width:${(typeof tt[gt]=="number"?tt[gt]:gt)-nt/100}${rt})`}function ut(gt,kt){const pt=at.indexOf(kt);return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt}) and (max-width:${(pt!==-1&&typeof tt[at[pt]]=="number"?tt[at[pt]]:kt)-nt/100}${rt})`}function dt(gt){return at.indexOf(gt)+1`@media (min-width:${values$1[et]}px)`};function handleBreakpoints(et,tt,rt){const nt=et.theme||{};if(Array.isArray(tt)){const st=nt.breakpoints||defaultBreakpoints;return tt.reduce((at,ot,lt)=>(at[st.up(st.keys[lt])]=rt(tt[lt]),at),{})}if(typeof tt=="object"){const st=nt.breakpoints||defaultBreakpoints;return Object.keys(tt).reduce((at,ot)=>{if(Object.keys(st.values||values$1).indexOf(ot)!==-1){const lt=st.up(ot);at[lt]=rt(tt[ot],ot)}else{const lt=ot;at[lt]=tt[lt]}return at},{})}return rt(tt)}function createEmptyBreakpointObject(et={}){var tt;return((tt=et.keys)==null?void 0:tt.reduce((nt,it)=>{const st=et.up(it);return nt[st]={},nt},{}))||{}}function removeUnusedBreakpoints(et,tt){return et.reduce((rt,nt)=>{const it=rt[nt];return(!it||Object.keys(it).length===0)&&delete rt[nt],rt},tt)}function mergeBreakpointsInOrder(et,...tt){const rt=createEmptyBreakpointObject(et),nt=[rt,...tt].reduce((it,st)=>deepmerge(it,st),{});return removeUnusedBreakpoints(Object.keys(rt),nt)}function computeBreakpointsBase(et,tt){if(typeof et!="object")return{};const rt={},nt=Object.keys(tt);return Array.isArray(et)?nt.forEach((it,st)=>{st{et[it]!=null&&(rt[it]=!0)}),rt}function resolveBreakpointValues({values:et,breakpoints:tt,base:rt}){const nt=rt||computeBreakpointsBase(et,tt),it=Object.keys(nt);if(it.length===0)return et;let st;return it.reduce((at,ot,lt)=>(Array.isArray(et)?(at[ot]=et[lt]!=null?et[lt]:et[st],st=lt):typeof et=="object"?(at[ot]=et[ot]!=null?et[ot]:et[st],st=ot):at[ot]=et,at),{})}function getPath(et,tt,rt=!0){if(!tt||typeof tt!="string")return null;if(et&&et.vars&&rt){const nt=`vars.${tt}`.split(".").reduce((it,st)=>it&&it[st]?it[st]:null,et);if(nt!=null)return nt}return tt.split(".").reduce((nt,it)=>nt&&nt[it]!=null?nt[it]:null,et)}function getStyleValue(et,tt,rt,nt=rt){let it;return typeof et=="function"?it=et(rt):Array.isArray(et)?it=et[rt]||nt:it=getPath(et,rt)||nt,tt&&(it=tt(it,nt,et)),it}function style$2(et){const{prop:tt,cssProperty:rt=et.prop,themeKey:nt,transform:it}=et,st=at=>{if(at[tt]==null)return null;const ot=at[tt],lt=at.theme,ut=getPath(lt,nt)||{};return handleBreakpoints(at,ot,bt=>{let gt=getStyleValue(ut,it,bt);return bt===gt&&typeof bt=="string"&&(gt=getStyleValue(ut,it,`${tt}${bt==="default"?"":capitalize(bt)}`,bt)),rt===!1?gt:{[rt]:gt}})};return st.propTypes={},st.filterProps=[tt],st}function memoize(et){const tt={};return rt=>(tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(et=>{if(et.length>2)if(aliases[et])et=aliases[et];else return[et];const[tt,rt]=et.split(""),nt=properties[tt],it=directions[rt]||"";return Array.isArray(it)?it.map(st=>nt+st):[nt+it]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(et,tt,rt,nt){var it;const st=(it=getPath(et,tt,!1))!=null?it:rt;return typeof st=="number"?at=>typeof at=="string"?at:st*at:Array.isArray(st)?at=>typeof at=="string"?at:st[at]:typeof st=="function"?st:()=>{}}function createUnarySpacing(et){return createUnaryUnit(et,"spacing",8)}function getValue(et,tt){if(typeof tt=="string"||tt==null)return tt;const rt=Math.abs(tt),nt=et(rt);return tt>=0?nt:typeof nt=="number"?-nt:`-${nt}`}function getStyleFromPropValue(et,tt){return rt=>et.reduce((nt,it)=>(nt[it]=getValue(tt,rt),nt),{})}function resolveCssProperty(et,tt,rt,nt){if(tt.indexOf(rt)===-1)return null;const it=getCssProperties(rt),st=getStyleFromPropValue(it,nt),at=et[rt];return handleBreakpoints(et,at,st)}function style$1(et,tt){const rt=createUnarySpacing(et.theme);return Object.keys(et).map(nt=>resolveCssProperty(et,tt,nt,rt)).reduce(merge,{})}function margin$1(et){return style$1(et,marginKeys)}margin$1.propTypes={};margin$1.filterProps=marginKeys;function padding$1(et){return style$1(et,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(et=8){if(et.mui)return et;const tt=createUnarySpacing({spacing:et}),rt=(...nt)=>(nt.length===0?[1]:nt).map(st=>{const at=tt(st);return typeof at=="number"?`${at}px`:at}).join(" ");return rt.mui=!0,rt}function compose(...et){const tt=et.reduce((nt,it)=>(it.filterProps.forEach(st=>{nt[st]=it}),nt),{}),rt=nt=>Object.keys(nt).reduce((it,st)=>tt[st]?merge(it,tt[st](nt)):it,{});return rt.propTypes={},rt.filterProps=et.reduce((nt,it)=>nt.concat(it.filterProps),[]),rt}function borderTransform(et){return typeof et!="number"?et:`${et}px solid`}function createBorderStyle(et,tt){return style$2({prop:et,themeKey:"borders",transform:tt})}const border$1=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=et=>{if(et.borderRadius!==void 0&&et.borderRadius!==null){const tt=createUnaryUnit(et.theme,"shape.borderRadius",4),rt=nt=>({borderRadius:getValue(tt,nt)});return handleBreakpoints(et,et.borderRadius,rt)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border$1,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=et=>{if(et.gap!==void 0&&et.gap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({gap:getValue(tt,nt)});return handleBreakpoints(et,et.gap,rt)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=et=>{if(et.columnGap!==void 0&&et.columnGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({columnGap:getValue(tt,nt)});return handleBreakpoints(et,et.columnGap,rt)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=et=>{if(et.rowGap!==void 0&&et.rowGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({rowGap:getValue(tt,nt)});return handleBreakpoints(et,et.rowGap,rt)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(et,tt){return tt==="grey"?tt:et}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(et){return et<=1&&et!==0?`${et*100}%`:et}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=et=>{if(et.maxWidth!==void 0&&et.maxWidth!==null){const tt=rt=>{var nt,it;const st=((nt=et.theme)==null||(nt=nt.breakpoints)==null||(nt=nt.values)==null?void 0:nt[rt])||values$1[rt];return st?((it=et.theme)==null||(it=it.breakpoints)==null?void 0:it.unit)!=="px"?{maxWidth:`${st}${et.theme.breakpoints.unit}`}:{maxWidth:st}:{maxWidth:sizingTransform(rt)}};return handleBreakpoints(et,et.maxWidth,tt)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin$1},mt:{style:margin$1},mr:{style:margin$1},mb:{style:margin$1},ml:{style:margin$1},mx:{style:margin$1},my:{style:margin$1},margin:{style:margin$1},marginTop:{style:margin$1},marginRight:{style:margin$1},marginBottom:{style:margin$1},marginLeft:{style:margin$1},marginX:{style:margin$1},marginY:{style:margin$1},marginInline:{style:margin$1},marginInlineStart:{style:margin$1},marginInlineEnd:{style:margin$1},marginBlock:{style:margin$1},marginBlockStart:{style:margin$1},marginBlockEnd:{style:margin$1},displayPrint:{cssProperty:!1,transform:et=>({"@media print":{display:et}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...et){const tt=et.reduce((nt,it)=>nt.concat(Object.keys(it)),[]),rt=new Set(tt);return et.every(nt=>rt.size===Object.keys(nt).length)}function callIfFn(et,tt){return typeof et=="function"?et(tt):et}function unstable_createStyleFunctionSx(){function et(rt,nt,it,st){const at={[rt]:nt,theme:it},ot=st[rt];if(!ot)return{[rt]:nt};const{cssProperty:lt=rt,themeKey:ut,transform:dt,style:bt}=ot;if(nt==null)return null;if(ut==="typography"&&nt==="inherit")return{[rt]:nt};const gt=getPath(it,ut)||{};return bt?bt(at):handleBreakpoints(at,nt,pt=>{let yt=getStyleValue(gt,dt,pt);return pt===yt&&typeof pt=="string"&&(yt=getStyleValue(gt,dt,`${rt}${pt==="default"?"":capitalize(pt)}`,pt)),lt===!1?yt:{[lt]:yt}})}function tt(rt){var nt;const{sx:it,theme:st={}}=rt||{};if(!it)return null;const at=(nt=st.unstable_sxConfig)!=null?nt:defaultSxConfig$1;function ot(lt){let ut=lt;if(typeof lt=="function")ut=lt(st);else if(typeof lt!="object")return lt;if(!ut)return null;const dt=createEmptyBreakpointObject(st.breakpoints),bt=Object.keys(dt);let gt=dt;return Object.keys(ut).forEach(kt=>{const pt=callIfFn(ut[kt],st);if(pt!=null)if(typeof pt=="object")if(at[kt])gt=merge(gt,et(kt,pt,st,at));else{const yt=handleBreakpoints({theme:st},pt,$t=>({[kt]:$t}));objectsHaveSameKeys(yt,pt)?gt[kt]=tt({sx:pt,theme:st}):gt=merge(gt,yt)}else gt=merge(gt,et(kt,pt,st,at))}),removeUnusedBreakpoints(bt,gt)}return Array.isArray(it)?it.map(ot):ot(it)}return tt}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx,_excluded$c=["breakpoints","palette","spacing","shape"];function createTheme$1(et={},...tt){const{breakpoints:rt={},palette:nt={},spacing:it,shape:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$c),ot=createBreakpoints(rt),lt=createSpacing(it);let ut=deepmerge({breakpoints:ot,direction:"ltr",components:{},palette:_extends({mode:"light"},nt),spacing:lt,shape:_extends({},shape$1,st)},at);return ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}function isObjectEmpty(et){return Object.keys(et).length===0}function useTheme$3(et=null){const tt=reactExports.useContext(ThemeContext$2);return!tt||isObjectEmpty(tt)?et:tt}const systemDefaultTheme$1=createTheme$1();function useTheme$2(et=systemDefaultTheme$1){return useTheme$3(et)}const _excluded$b=["variant"];function isEmpty$1(et){return et.length===0}function propsToClassKey(et){const{variant:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$b);let nt=tt||"";return Object.keys(rt).sort().forEach(it=>{it==="color"?nt+=isEmpty$1(nt)?et[it]:capitalize(et[it]):nt+=`${isEmpty$1(nt)?it:capitalize(it)}${capitalize(et[it].toString())}`}),nt}const _excluded$a=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty(et){return Object.keys(et).length===0}function isStringTag(et){return typeof et=="string"&&et.charCodeAt(0)>96}const getStyleOverrides=(et,tt)=>tt.components&&tt.components[et]&&tt.components[et].styleOverrides?tt.components[et].styleOverrides:null,transformVariants=et=>{const tt={};return et&&et.forEach(rt=>{const nt=propsToClassKey(rt.props);tt[nt]=rt.style}),tt},getVariantStyles=(et,tt)=>{let rt=[];return tt&&tt.components&&tt.components[et]&&tt.components[et].variants&&(rt=tt.components[et].variants),transformVariants(rt)},variantsResolver=(et,tt,rt)=>{const{ownerState:nt={}}=et,it=[];return rt&&rt.forEach(st=>{let at=!0;Object.keys(st.props).forEach(ot=>{nt[ot]!==st.props[ot]&&et[ot]!==st.props[ot]&&(at=!1)}),at&&it.push(tt[propsToClassKey(st.props)])}),it},themeVariantsResolver=(et,tt,rt,nt)=>{var it;const st=rt==null||(it=rt.components)==null||(it=it[nt])==null?void 0:it.variants;return variantsResolver(et,tt,st)};function shouldForwardProp(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const systemDefaultTheme=createTheme$1(),lowercaseFirstLetter=et=>et&&et.charAt(0).toLowerCase()+et.slice(1);function resolveTheme({defaultTheme:et,theme:tt,themeId:rt}){return isEmpty(tt)?et:tt[rt]||tt}function defaultOverridesResolver(et){return et?(tt,rt)=>rt[et]:null}const muiStyledFunctionResolver=({styledArg:et,props:tt,defaultTheme:rt,themeId:nt})=>{const it=et(_extends({},tt,{theme:resolveTheme(_extends({},tt,{defaultTheme:rt,themeId:nt}))}));let st;if(it&&it.variants&&(st=it.variants,delete it.variants),st){const at=variantsResolver(tt,transformVariants(st),st);return[it,...at]}return it};function createStyled(et={}){const{themeId:tt,defaultTheme:rt=systemDefaultTheme,rootShouldForwardProp:nt=shouldForwardProp,slotShouldForwardProp:it=shouldForwardProp}=et,st=at=>styleFunctionSx$1(_extends({},at,{theme:resolveTheme(_extends({},at,{defaultTheme:rt,themeId:tt}))}));return st.__mui_systemSx=!0,(at,ot={})=>{internal_processStyles(at,Bt=>Bt.filter(Ft=>!(Ft!=null&&Ft.__mui_systemSx)));const{name:lt,slot:ut,skipVariantsResolver:dt,skipSx:bt,overridesResolver:gt=defaultOverridesResolver(lowercaseFirstLetter(ut))}=ot,kt=_objectWithoutPropertiesLoose(ot,_excluded$a),pt=dt!==void 0?dt:ut&&ut!=="Root"&&ut!=="root"||!1,yt=bt||!1;let $t,mt=shouldForwardProp;ut==="Root"||ut==="root"?mt=nt:ut?mt=it:isStringTag(at)&&(mt=void 0);const wt=styled$2(at,_extends({shouldForwardProp:mt,label:$t},kt)),St=(Bt,...Ft)=>{const Lt=Ft?Ft.map(lr=>{if(typeof lr=="function"&&lr.__emotion_real!==lr)return qt=>muiStyledFunctionResolver({styledArg:lr,props:qt,defaultTheme:rt,themeId:tt});if(isPlainObject$1(lr)){let qt=lr,Ot;return lr&&lr.variants&&(Ot=lr.variants,delete qt.variants,qt=Mt=>{let ht=lr;return variantsResolver(Mt,transformVariants(Ot),Ot).forEach(Tt=>{ht=deepmerge(ht,Tt)}),ht}),qt}return lr}):[];let zt=Bt;if(isPlainObject$1(Bt)){let lr;Bt&&Bt.variants&&(lr=Bt.variants,delete zt.variants,zt=qt=>{let Ot=Bt;return variantsResolver(qt,transformVariants(lr),lr).forEach(ht=>{Ot=deepmerge(Ot,ht)}),Ot})}else typeof Bt=="function"&&Bt.__emotion_real!==Bt&&(zt=lr=>muiStyledFunctionResolver({styledArg:Bt,props:lr,defaultTheme:rt,themeId:tt}));lt&>&&Lt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt})),Ot=getStyleOverrides(lt,qt);if(Ot){const Mt={};return Object.entries(Ot).forEach(([ht,Et])=>{Mt[ht]=typeof Et=="function"?Et(_extends({},lr,{theme:qt})):Et}),gt(lr,Mt)}return null}),lt&&!pt&&Lt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt}));return themeVariantsResolver(lr,getVariantStyles(lt,qt),qt,lt)}),yt||Lt.push(st);const Ht=Lt.length-Ft.length;if(Array.isArray(Bt)&&Ht>0){const lr=new Array(Ht).fill("");zt=[...Bt,...lr],zt.raw=[...Bt.raw,...lr]}const Wt=wt(zt,...Lt);return at.muiName&&(Wt.muiName=at.muiName),Wt};return wt.withConfig&&(St.withConfig=wt.withConfig),St}}function getThemeProps(et){const{theme:tt,name:rt,props:nt}=et;return!tt||!tt.components||!tt.components[rt]||!tt.components[rt].defaultProps?nt:resolveProps(tt.components[rt].defaultProps,nt)}function useThemeProps$1({props:et,name:tt,defaultTheme:rt,themeId:nt}){let it=useTheme$2(rt);return nt&&(it=it[nt]||it),getThemeProps({theme:it,name:tt,props:et})}function clamp(et,tt=0,rt=1){return Math.min(Math.max(tt,et),rt)}function hexToRgb(et){et=et.slice(1);const tt=new RegExp(`.{1,${et.length>=6?2:1}}`,"g");let rt=et.match(tt);return rt&&rt[0].length===1&&(rt=rt.map(nt=>nt+nt)),rt?`rgb${rt.length===4?"a":""}(${rt.map((nt,it)=>it<3?parseInt(nt,16):Math.round(parseInt(nt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(et){if(et.type)return et;if(et.charAt(0)==="#")return decomposeColor(hexToRgb(et));const tt=et.indexOf("("),rt=et.substring(0,tt);if(["rgb","rgba","hsl","hsla","color"].indexOf(rt)===-1)throw new Error(formatMuiErrorMessage(9,et));let nt=et.substring(tt+1,et.length-1),it;if(rt==="color"){if(nt=nt.split(" "),it=nt.shift(),nt.length===4&&nt[3].charAt(0)==="/"&&(nt[3]=nt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(it)===-1)throw new Error(formatMuiErrorMessage(10,it))}else nt=nt.split(",");return nt=nt.map(st=>parseFloat(st)),{type:rt,values:nt,colorSpace:it}}function recomposeColor(et){const{type:tt,colorSpace:rt}=et;let{values:nt}=et;return tt.indexOf("rgb")!==-1?nt=nt.map((it,st)=>st<3?parseInt(it,10):it):tt.indexOf("hsl")!==-1&&(nt[1]=`${nt[1]}%`,nt[2]=`${nt[2]}%`),tt.indexOf("color")!==-1?nt=`${rt} ${nt.join(" ")}`:nt=`${nt.join(", ")}`,`${tt}(${nt})`}function hslToRgb(et){et=decomposeColor(et);const{values:tt}=et,rt=tt[0],nt=tt[1]/100,it=tt[2]/100,st=nt*Math.min(it,1-it),at=(ut,dt=(ut+rt/30)%12)=>it-st*Math.max(Math.min(dt-3,9-dt,1),-1);let ot="rgb";const lt=[Math.round(at(0)*255),Math.round(at(8)*255),Math.round(at(4)*255)];return et.type==="hsla"&&(ot+="a",lt.push(tt[3])),recomposeColor({type:ot,values:lt})}function getLuminance(et){et=decomposeColor(et);let tt=et.type==="hsl"||et.type==="hsla"?decomposeColor(hslToRgb(et)).values:et.values;return tt=tt.map(rt=>(et.type!=="color"&&(rt/=255),rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4)),Number((.2126*tt[0]+.7152*tt[1]+.0722*tt[2]).toFixed(3))}function getContrastRatio(et,tt){const rt=getLuminance(et),nt=getLuminance(tt);return(Math.max(rt,nt)+.05)/(Math.min(rt,nt)+.05)}function alpha(et,tt){return et=decomposeColor(et),tt=clamp(tt),(et.type==="rgb"||et.type==="hsl")&&(et.type+="a"),et.type==="color"?et.values[3]=`/${tt}`:et.values[3]=tt,recomposeColor(et)}function darken(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]*=1-tt;else if(et.type.indexOf("rgb")!==-1||et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]*=1-tt;return recomposeColor(et)}function lighten(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]+=(100-et.values[2])*tt;else if(et.type.indexOf("rgb")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(255-et.values[rt])*tt;else if(et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(1-et.values[rt])*tt;return recomposeColor(et)}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$1(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(et,tt){return typeof tt=="function"?tt(et):_extends({},et,tt)}function ThemeProvider$2(et){const{children:tt,theme:rt}=et,nt=useTheme$1(),it=reactExports.useMemo(()=>{const st=nt===null?rt:mergeOuterLocalTheme(nt,rt);return st!=null&&(st[nested]=nt!==null),st},[rt,nt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:it,children:tt})}const EMPTY_THEME={};function useThemeScoping(et,tt,rt,nt=!1){return reactExports.useMemo(()=>{const it=et&&tt[et]||tt;if(typeof rt=="function"){const st=rt(it),at=et?_extends({},tt,{[et]:st}):st;return nt?()=>at:at}return et?_extends({},tt,{[et]:rt}):_extends({},tt,rt)},[et,tt,rt,nt])}function ThemeProvider$1(et){const{children:tt,theme:rt,themeId:nt}=et,it=useTheme$3(EMPTY_THEME),st=useTheme$1()||EMPTY_THEME,at=useThemeScoping(nt,it,rt),ot=useThemeScoping(nt,st,rt,!0);return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:at,children:tt})})}function createMixins(et,tt){return _extends({toolbar:{minHeight:56,[et.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[et.up("sm")]:{minHeight:64}}},tt)}const _excluded$9=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(et,tt,rt,nt){const it=nt.light||nt,st=nt.dark||nt*1.5;et[tt]||(et.hasOwnProperty(rt)?et[tt]=et[rt]:tt==="light"?et.light=lighten(et.main,it):tt==="dark"&&(et.dark=darken(et.main,st)))}function getDefaultPrimary(et="light"){return et==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(et="light"){return et==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(et="light"){return et==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(et="light"){return et==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(et="light"){return et==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(et="light"){return et==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(et){const{mode:tt="light",contrastThreshold:rt=3,tonalOffset:nt=.2}=et,it=_objectWithoutPropertiesLoose(et,_excluded$9),st=et.primary||getDefaultPrimary(tt),at=et.secondary||getDefaultSecondary(tt),ot=et.error||getDefaultError(tt),lt=et.info||getDefaultInfo(tt),ut=et.success||getDefaultSuccess(tt),dt=et.warning||getDefaultWarning(tt);function bt(yt){return getContrastRatio(yt,dark.text.primary)>=rt?dark.text.primary:light.text.primary}const gt=({color:yt,name:$t,mainShade:mt=500,lightShade:wt=300,darkShade:St=700})=>{if(yt=_extends({},yt),!yt.main&&yt[mt]&&(yt.main=yt[mt]),!yt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,$t?` (${$t})`:"",mt));if(typeof yt.main!="string")throw new Error(formatMuiErrorMessage(12,$t?` (${$t})`:"",JSON.stringify(yt.main)));return addLightOrDark(yt,"light",wt,nt),addLightOrDark(yt,"dark",St,nt),yt.contrastText||(yt.contrastText=bt(yt.main)),yt},kt={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:tt,primary:gt({color:st,name:"primary"}),secondary:gt({color:at,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:gt({color:ot,name:"error"}),warning:gt({color:dt,name:"warning"}),info:gt({color:lt,name:"info"}),success:gt({color:ut,name:"success"}),grey:grey$1,contrastThreshold:rt,getContrastText:bt,augmentColor:gt,tonalOffset:nt},kt[tt]),it)}const _excluded$8=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(et){return Math.round(et*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(et,tt){const rt=typeof tt=="function"?tt(et):tt,{fontFamily:nt=defaultFontFamily,fontSize:it=14,fontWeightLight:st=300,fontWeightRegular:at=400,fontWeightMedium:ot=500,fontWeightBold:lt=700,htmlFontSize:ut=16,allVariants:dt,pxToRem:bt}=rt,gt=_objectWithoutPropertiesLoose(rt,_excluded$8),kt=it/14,pt=bt||(mt=>`${mt/ut*kt}rem`),yt=(mt,wt,St,Bt,Ft)=>_extends({fontFamily:nt,fontWeight:mt,fontSize:pt(wt),lineHeight:St},nt===defaultFontFamily?{letterSpacing:`${round(Bt/wt)}em`}:{},Ft,dt),$t={h1:yt(st,96,1.167,-1.5),h2:yt(st,60,1.2,-.5),h3:yt(at,48,1.167,0),h4:yt(at,34,1.235,.25),h5:yt(at,24,1.334,0),h6:yt(ot,20,1.6,.15),subtitle1:yt(at,16,1.75,.15),subtitle2:yt(ot,14,1.57,.1),body1:yt(at,16,1.5,.15),body2:yt(at,14,1.43,.15),button:yt(ot,14,1.75,.4,caseAllCaps),caption:yt(at,12,1.66,.4),overline:yt(at,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends({htmlFontSize:ut,pxToRem:pt,fontFamily:nt,fontSize:it,fontWeightLight:st,fontWeightRegular:at,fontWeightMedium:ot,fontWeightBold:lt},$t),gt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...et){return[`${et[0]}px ${et[1]}px ${et[2]}px ${et[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${et[4]}px ${et[5]}px ${et[6]}px ${et[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${et[8]}px ${et[9]}px ${et[10]}px ${et[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$7=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(et){return`${Math.round(et)}ms`}function getAutoHeightDuration(et){if(!et)return 0;const tt=et/36;return Math.round((4+15*tt**.25+tt/5)*10)}function createTransitions(et){const tt=_extends({},easing,et.easing),rt=_extends({},duration,et.duration);return _extends({getAutoHeightDuration,create:(it=["all"],st={})=>{const{duration:at=rt.standard,easing:ot=tt.easeInOut,delay:lt=0}=st;return _objectWithoutPropertiesLoose(st,_excluded$7),(Array.isArray(it)?it:[it]).map(ut=>`${ut} ${typeof at=="string"?at:formatMs(at)} ${ot} ${typeof lt=="string"?lt:formatMs(lt)}`).join(",")}},et,{easing:tt,duration:rt})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(et={},...tt){const{mixins:rt={},palette:nt={},transitions:it={},typography:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$6);if(et.vars)throw new Error(formatMuiErrorMessage(18));const ot=createPalette(nt),lt=createTheme$1(et);let ut=deepmerge(lt,{mixins:createMixins(lt.breakpoints,rt),palette:ot,shadows:shadows$1.slice(),typography:createTypography(ot,st),transitions:createTransitions(it),zIndex:_extends({},zIndex$1)});return ut=deepmerge(ut,at),ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useTheme(){const et=useTheme$2(defaultTheme$1);return et[THEME_ID]||et}function useThemeProps({props:et,name:tt}){return useThemeProps$1({props:et,name:tt,defaultTheme:defaultTheme$1,themeId:THEME_ID})}const rootShouldForwardProp=et=>shouldForwardProp(et)&&et!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled,_excluded$5=["theme"];function ThemeProvider(et){let{theme:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$5);const nt=tt[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends({},rt,{themeId:nt?THEME_ID:void 0,theme:nt||tt}))}function r$3(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{if(!ot&<!=null){const yt=setTimeout(lt,ut);return()=>{clearTimeout(yt)}}},[lt,ot,ut]),jsxRuntimeExports.jsx("span",{className:gt,style:kt,children:jsxRuntimeExports.jsx("span",{className:pt})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),touchRippleClasses$1=touchRippleClasses,_excluded$4=["center","classes","className"];let _$2=et=>et,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$2` + */function styled$2(et,tt){return newStyled(et,tt)}const internal_processStyles=(et,tt)=>{Array.isArray(et.__emotion_styles)&&(et.__emotion_styles=tt(et.__emotion_styles))},_excluded$d=["values","unit","step"],sortBreakpointsValues=et=>{const tt=Object.keys(et).map(rt=>({key:rt,val:et[rt]}))||[];return tt.sort((rt,nt)=>rt.val-nt.val),tt.reduce((rt,nt)=>_extends({},rt,{[nt.key]:nt.val}),{})};function createBreakpoints(et){const{values:tt={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:rt="px",step:nt=5}=et,it=_objectWithoutPropertiesLoose(et,_excluded$d),st=sortBreakpointsValues(tt),at=Object.keys(st);function ot(gt){return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt})`}function lt(gt){return`@media (max-width:${(typeof tt[gt]=="number"?tt[gt]:gt)-nt/100}${rt})`}function ut(gt,kt){const pt=at.indexOf(kt);return`@media (min-width:${typeof tt[gt]=="number"?tt[gt]:gt}${rt}) and (max-width:${(pt!==-1&&typeof tt[at[pt]]=="number"?tt[at[pt]]:kt)-nt/100}${rt})`}function dt(gt){return at.indexOf(gt)+1`@media (min-width:${values$1[et]}px)`};function handleBreakpoints(et,tt,rt){const nt=et.theme||{};if(Array.isArray(tt)){const st=nt.breakpoints||defaultBreakpoints;return tt.reduce((at,ot,lt)=>(at[st.up(st.keys[lt])]=rt(tt[lt]),at),{})}if(typeof tt=="object"){const st=nt.breakpoints||defaultBreakpoints;return Object.keys(tt).reduce((at,ot)=>{if(Object.keys(st.values||values$1).indexOf(ot)!==-1){const lt=st.up(ot);at[lt]=rt(tt[ot],ot)}else{const lt=ot;at[lt]=tt[lt]}return at},{})}return rt(tt)}function createEmptyBreakpointObject(et={}){var tt;return((tt=et.keys)==null?void 0:tt.reduce((nt,it)=>{const st=et.up(it);return nt[st]={},nt},{}))||{}}function removeUnusedBreakpoints(et,tt){return et.reduce((rt,nt)=>{const it=rt[nt];return(!it||Object.keys(it).length===0)&&delete rt[nt],rt},tt)}function mergeBreakpointsInOrder(et,...tt){const rt=createEmptyBreakpointObject(et),nt=[rt,...tt].reduce((it,st)=>deepmerge(it,st),{});return removeUnusedBreakpoints(Object.keys(rt),nt)}function computeBreakpointsBase(et,tt){if(typeof et!="object")return{};const rt={},nt=Object.keys(tt);return Array.isArray(et)?nt.forEach((it,st)=>{st{et[it]!=null&&(rt[it]=!0)}),rt}function resolveBreakpointValues({values:et,breakpoints:tt,base:rt}){const nt=rt||computeBreakpointsBase(et,tt),it=Object.keys(nt);if(it.length===0)return et;let st;return it.reduce((at,ot,lt)=>(Array.isArray(et)?(at[ot]=et[lt]!=null?et[lt]:et[st],st=lt):typeof et=="object"?(at[ot]=et[ot]!=null?et[ot]:et[st],st=ot):at[ot]=et,at),{})}function getPath(et,tt,rt=!0){if(!tt||typeof tt!="string")return null;if(et&&et.vars&&rt){const nt=`vars.${tt}`.split(".").reduce((it,st)=>it&&it[st]?it[st]:null,et);if(nt!=null)return nt}return tt.split(".").reduce((nt,it)=>nt&&nt[it]!=null?nt[it]:null,et)}function getStyleValue(et,tt,rt,nt=rt){let it;return typeof et=="function"?it=et(rt):Array.isArray(et)?it=et[rt]||nt:it=getPath(et,rt)||nt,tt&&(it=tt(it,nt,et)),it}function style$2(et){const{prop:tt,cssProperty:rt=et.prop,themeKey:nt,transform:it}=et,st=at=>{if(at[tt]==null)return null;const ot=at[tt],lt=at.theme,ut=getPath(lt,nt)||{};return handleBreakpoints(at,ot,bt=>{let gt=getStyleValue(ut,it,bt);return bt===gt&&typeof bt=="string"&&(gt=getStyleValue(ut,it,`${tt}${bt==="default"?"":capitalize(bt)}`,bt)),rt===!1?gt:{[rt]:gt}})};return st.propTypes={},st.filterProps=[tt],st}function memoize(et){const tt={};return rt=>(tt[rt]===void 0&&(tt[rt]=et(rt)),tt[rt])}const properties={m:"margin",p:"padding"},directions={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},aliases={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},getCssProperties=memoize(et=>{if(et.length>2)if(aliases[et])et=aliases[et];else return[et];const[tt,rt]=et.split(""),nt=properties[tt],it=directions[rt]||"";return Array.isArray(it)?it.map(st=>nt+st):[nt+it]}),marginKeys=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],paddingKeys=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...marginKeys,...paddingKeys];function createUnaryUnit(et,tt,rt,nt){var it;const st=(it=getPath(et,tt,!1))!=null?it:rt;return typeof st=="number"?at=>typeof at=="string"?at:st*at:Array.isArray(st)?at=>typeof at=="string"?at:st[at]:typeof st=="function"?st:()=>{}}function createUnarySpacing(et){return createUnaryUnit(et,"spacing",8)}function getValue(et,tt){if(typeof tt=="string"||tt==null)return tt;const rt=Math.abs(tt),nt=et(rt);return tt>=0?nt:typeof nt=="number"?-nt:`-${nt}`}function getStyleFromPropValue(et,tt){return rt=>et.reduce((nt,it)=>(nt[it]=getValue(tt,rt),nt),{})}function resolveCssProperty(et,tt,rt,nt){if(tt.indexOf(rt)===-1)return null;const it=getCssProperties(rt),st=getStyleFromPropValue(it,nt),at=et[rt];return handleBreakpoints(et,at,st)}function style$1(et,tt){const rt=createUnarySpacing(et.theme);return Object.keys(et).map(nt=>resolveCssProperty(et,tt,nt,rt)).reduce(merge,{})}function margin$1(et){return style$1(et,marginKeys)}margin$1.propTypes={};margin$1.filterProps=marginKeys;function padding$1(et){return style$1(et,paddingKeys)}padding$1.propTypes={};padding$1.filterProps=paddingKeys;function createSpacing(et=8){if(et.mui)return et;const tt=createUnarySpacing({spacing:et}),rt=(...nt)=>(nt.length===0?[1]:nt).map(st=>{const at=tt(st);return typeof at=="number"?`${at}px`:at}).join(" ");return rt.mui=!0,rt}function compose(...et){const tt=et.reduce((nt,it)=>(it.filterProps.forEach(st=>{nt[st]=it}),nt),{}),rt=nt=>Object.keys(nt).reduce((it,st)=>tt[st]?merge(it,tt[st](nt)):it,{});return rt.propTypes={},rt.filterProps=et.reduce((nt,it)=>nt.concat(it.filterProps),[]),rt}function borderTransform(et){return typeof et!="number"?et:`${et}px solid`}function createBorderStyle(et,tt){return style$2({prop:et,themeKey:"borders",transform:tt})}const border$1=createBorderStyle("border",borderTransform),borderTop=createBorderStyle("borderTop",borderTransform),borderRight=createBorderStyle("borderRight",borderTransform),borderBottom=createBorderStyle("borderBottom",borderTransform),borderLeft=createBorderStyle("borderLeft",borderTransform),borderColor=createBorderStyle("borderColor"),borderTopColor=createBorderStyle("borderTopColor"),borderRightColor=createBorderStyle("borderRightColor"),borderBottomColor=createBorderStyle("borderBottomColor"),borderLeftColor=createBorderStyle("borderLeftColor"),outline=createBorderStyle("outline",borderTransform),outlineColor=createBorderStyle("outlineColor"),borderRadius=et=>{if(et.borderRadius!==void 0&&et.borderRadius!==null){const tt=createUnaryUnit(et.theme,"shape.borderRadius",4),rt=nt=>({borderRadius:getValue(tt,nt)});return handleBreakpoints(et,et.borderRadius,rt)}return null};borderRadius.propTypes={};borderRadius.filterProps=["borderRadius"];compose(border$1,borderTop,borderRight,borderBottom,borderLeft,borderColor,borderTopColor,borderRightColor,borderBottomColor,borderLeftColor,borderRadius,outline,outlineColor);const gap=et=>{if(et.gap!==void 0&&et.gap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({gap:getValue(tt,nt)});return handleBreakpoints(et,et.gap,rt)}return null};gap.propTypes={};gap.filterProps=["gap"];const columnGap=et=>{if(et.columnGap!==void 0&&et.columnGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({columnGap:getValue(tt,nt)});return handleBreakpoints(et,et.columnGap,rt)}return null};columnGap.propTypes={};columnGap.filterProps=["columnGap"];const rowGap=et=>{if(et.rowGap!==void 0&&et.rowGap!==null){const tt=createUnaryUnit(et.theme,"spacing",8),rt=nt=>({rowGap:getValue(tt,nt)});return handleBreakpoints(et,et.rowGap,rt)}return null};rowGap.propTypes={};rowGap.filterProps=["rowGap"];const gridColumn=style$2({prop:"gridColumn"}),gridRow=style$2({prop:"gridRow"}),gridAutoFlow=style$2({prop:"gridAutoFlow"}),gridAutoColumns=style$2({prop:"gridAutoColumns"}),gridAutoRows=style$2({prop:"gridAutoRows"}),gridTemplateColumns=style$2({prop:"gridTemplateColumns"}),gridTemplateRows=style$2({prop:"gridTemplateRows"}),gridTemplateAreas=style$2({prop:"gridTemplateAreas"}),gridArea=style$2({prop:"gridArea"});compose(gap,columnGap,rowGap,gridColumn,gridRow,gridAutoFlow,gridAutoColumns,gridAutoRows,gridTemplateColumns,gridTemplateRows,gridTemplateAreas,gridArea);function paletteTransform(et,tt){return tt==="grey"?tt:et}const color=style$2({prop:"color",themeKey:"palette",transform:paletteTransform}),bgcolor=style$2({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:paletteTransform}),backgroundColor=style$2({prop:"backgroundColor",themeKey:"palette",transform:paletteTransform});compose(color,bgcolor,backgroundColor);function sizingTransform(et){return et<=1&&et!==0?`${et*100}%`:et}const width=style$2({prop:"width",transform:sizingTransform}),maxWidth=et=>{if(et.maxWidth!==void 0&&et.maxWidth!==null){const tt=rt=>{var nt,it;const st=((nt=et.theme)==null||(nt=nt.breakpoints)==null||(nt=nt.values)==null?void 0:nt[rt])||values$1[rt];return st?((it=et.theme)==null||(it=it.breakpoints)==null?void 0:it.unit)!=="px"?{maxWidth:`${st}${et.theme.breakpoints.unit}`}:{maxWidth:st}:{maxWidth:sizingTransform(rt)}};return handleBreakpoints(et,et.maxWidth,tt)}return null};maxWidth.filterProps=["maxWidth"];const minWidth=style$2({prop:"minWidth",transform:sizingTransform}),height=style$2({prop:"height",transform:sizingTransform}),maxHeight=style$2({prop:"maxHeight",transform:sizingTransform}),minHeight=style$2({prop:"minHeight",transform:sizingTransform});style$2({prop:"size",cssProperty:"width",transform:sizingTransform});style$2({prop:"size",cssProperty:"height",transform:sizingTransform});const boxSizing=style$2({prop:"boxSizing"});compose(width,maxWidth,minWidth,height,maxHeight,minHeight,boxSizing);const defaultSxConfig={border:{themeKey:"borders",transform:borderTransform},borderTop:{themeKey:"borders",transform:borderTransform},borderRight:{themeKey:"borders",transform:borderTransform},borderBottom:{themeKey:"borders",transform:borderTransform},borderLeft:{themeKey:"borders",transform:borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:borderRadius},color:{themeKey:"palette",transform:paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:paletteTransform},backgroundColor:{themeKey:"palette",transform:paletteTransform},p:{style:padding$1},pt:{style:padding$1},pr:{style:padding$1},pb:{style:padding$1},pl:{style:padding$1},px:{style:padding$1},py:{style:padding$1},padding:{style:padding$1},paddingTop:{style:padding$1},paddingRight:{style:padding$1},paddingBottom:{style:padding$1},paddingLeft:{style:padding$1},paddingX:{style:padding$1},paddingY:{style:padding$1},paddingInline:{style:padding$1},paddingInlineStart:{style:padding$1},paddingInlineEnd:{style:padding$1},paddingBlock:{style:padding$1},paddingBlockStart:{style:padding$1},paddingBlockEnd:{style:padding$1},m:{style:margin$1},mt:{style:margin$1},mr:{style:margin$1},mb:{style:margin$1},ml:{style:margin$1},mx:{style:margin$1},my:{style:margin$1},margin:{style:margin$1},marginTop:{style:margin$1},marginRight:{style:margin$1},marginBottom:{style:margin$1},marginLeft:{style:margin$1},marginX:{style:margin$1},marginY:{style:margin$1},marginInline:{style:margin$1},marginInlineStart:{style:margin$1},marginInlineEnd:{style:margin$1},marginBlock:{style:margin$1},marginBlockStart:{style:margin$1},marginBlockEnd:{style:margin$1},displayPrint:{cssProperty:!1,transform:et=>({"@media print":{display:et}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:gap},rowGap:{style:rowGap},columnGap:{style:columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:sizingTransform},maxWidth:{style:maxWidth},minWidth:{transform:sizingTransform},height:{transform:sizingTransform},maxHeight:{transform:sizingTransform},minHeight:{transform:sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},defaultSxConfig$1=defaultSxConfig;function objectsHaveSameKeys(...et){const tt=et.reduce((nt,it)=>nt.concat(Object.keys(it)),[]),rt=new Set(tt);return et.every(nt=>rt.size===Object.keys(nt).length)}function callIfFn(et,tt){return typeof et=="function"?et(tt):et}function unstable_createStyleFunctionSx(){function et(rt,nt,it,st){const at={[rt]:nt,theme:it},ot=st[rt];if(!ot)return{[rt]:nt};const{cssProperty:lt=rt,themeKey:ut,transform:dt,style:bt}=ot;if(nt==null)return null;if(ut==="typography"&&nt==="inherit")return{[rt]:nt};const gt=getPath(it,ut)||{};return bt?bt(at):handleBreakpoints(at,nt,pt=>{let yt=getStyleValue(gt,dt,pt);return pt===yt&&typeof pt=="string"&&(yt=getStyleValue(gt,dt,`${rt}${pt==="default"?"":capitalize(pt)}`,pt)),lt===!1?yt:{[lt]:yt}})}function tt(rt){var nt;const{sx:it,theme:st={}}=rt||{};if(!it)return null;const at=(nt=st.unstable_sxConfig)!=null?nt:defaultSxConfig$1;function ot(lt){let ut=lt;if(typeof lt=="function")ut=lt(st);else if(typeof lt!="object")return lt;if(!ut)return null;const dt=createEmptyBreakpointObject(st.breakpoints),bt=Object.keys(dt);let gt=dt;return Object.keys(ut).forEach(kt=>{const pt=callIfFn(ut[kt],st);if(pt!=null)if(typeof pt=="object")if(at[kt])gt=merge(gt,et(kt,pt,st,at));else{const yt=handleBreakpoints({theme:st},pt,$t=>({[kt]:$t}));objectsHaveSameKeys(yt,pt)?gt[kt]=tt({sx:pt,theme:st}):gt=merge(gt,yt)}else gt=merge(gt,et(kt,pt,st,at))}),removeUnusedBreakpoints(bt,gt)}return Array.isArray(it)?it.map(ot):ot(it)}return tt}const styleFunctionSx=unstable_createStyleFunctionSx();styleFunctionSx.filterProps=["sx"];const styleFunctionSx$1=styleFunctionSx,_excluded$c=["breakpoints","palette","spacing","shape"];function createTheme$1(et={},...tt){const{breakpoints:rt={},palette:nt={},spacing:it,shape:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$c),ot=createBreakpoints(rt),lt=createSpacing(it);let ut=deepmerge({breakpoints:ot,direction:"ltr",components:{},palette:_extends({mode:"light"},nt),spacing:lt,shape:_extends({},shape$1,st)},at);return ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}function isObjectEmpty(et){return Object.keys(et).length===0}function useTheme$3(et=null){const tt=reactExports.useContext(ThemeContext$2);return!tt||isObjectEmpty(tt)?et:tt}const systemDefaultTheme$1=createTheme$1();function useTheme$2(et=systemDefaultTheme$1){return useTheme$3(et)}const _excluded$b=["variant"];function isEmpty$1(et){return et.length===0}function propsToClassKey(et){const{variant:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$b);let nt=tt||"";return Object.keys(rt).sort().forEach(it=>{it==="color"?nt+=isEmpty$1(nt)?et[it]:capitalize(et[it]):nt+=`${isEmpty$1(nt)?it:capitalize(it)}${capitalize(et[it].toString())}`}),nt}const _excluded$a=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function isEmpty(et){return Object.keys(et).length===0}function isStringTag(et){return typeof et=="string"&&et.charCodeAt(0)>96}const getStyleOverrides=(et,tt)=>tt.components&&tt.components[et]&&tt.components[et].styleOverrides?tt.components[et].styleOverrides:null,transformVariants=et=>{const tt={};return et&&et.forEach(rt=>{const nt=propsToClassKey(rt.props);tt[nt]=rt.style}),tt},getVariantStyles=(et,tt)=>{let rt=[];return tt&&tt.components&&tt.components[et]&&tt.components[et].variants&&(rt=tt.components[et].variants),transformVariants(rt)},variantsResolver=(et,tt,rt)=>{const{ownerState:nt={}}=et,it=[];return rt&&rt.forEach(st=>{let at=!0;Object.keys(st.props).forEach(ot=>{nt[ot]!==st.props[ot]&&et[ot]!==st.props[ot]&&(at=!1)}),at&&it.push(tt[propsToClassKey(st.props)])}),it},themeVariantsResolver=(et,tt,rt,nt)=>{var it;const st=rt==null||(it=rt.components)==null||(it=it[nt])==null?void 0:it.variants;return variantsResolver(et,tt,st)};function shouldForwardProp(et){return et!=="ownerState"&&et!=="theme"&&et!=="sx"&&et!=="as"}const systemDefaultTheme=createTheme$1(),lowercaseFirstLetter=et=>et&&et.charAt(0).toLowerCase()+et.slice(1);function resolveTheme({defaultTheme:et,theme:tt,themeId:rt}){return isEmpty(tt)?et:tt[rt]||tt}function defaultOverridesResolver(et){return et?(tt,rt)=>rt[et]:null}const muiStyledFunctionResolver=({styledArg:et,props:tt,defaultTheme:rt,themeId:nt})=>{const it=et(_extends({},tt,{theme:resolveTheme(_extends({},tt,{defaultTheme:rt,themeId:nt}))}));let st;if(it&&it.variants&&(st=it.variants,delete it.variants),st){const at=variantsResolver(tt,transformVariants(st),st);return[it,...at]}return it};function createStyled(et={}){const{themeId:tt,defaultTheme:rt=systemDefaultTheme,rootShouldForwardProp:nt=shouldForwardProp,slotShouldForwardProp:it=shouldForwardProp}=et,st=at=>styleFunctionSx$1(_extends({},at,{theme:resolveTheme(_extends({},at,{defaultTheme:rt,themeId:tt}))}));return st.__mui_systemSx=!0,(at,ot={})=>{internal_processStyles(at,Bt=>Bt.filter(Ot=>!(Ot!=null&&Ot.__mui_systemSx)));const{name:lt,slot:ut,skipVariantsResolver:dt,skipSx:bt,overridesResolver:gt=defaultOverridesResolver(lowercaseFirstLetter(ut))}=ot,kt=_objectWithoutPropertiesLoose(ot,_excluded$a),pt=dt!==void 0?dt:ut&&ut!=="Root"&&ut!=="root"||!1,yt=bt||!1;let $t,mt=shouldForwardProp;ut==="Root"||ut==="root"?mt=nt:ut?mt=it:isStringTag(at)&&(mt=void 0);const wt=styled$2(at,_extends({shouldForwardProp:mt,label:$t},kt)),St=(Bt,...Ot)=>{const Lt=Ot?Ot.map(lr=>{if(typeof lr=="function"&&lr.__emotion_real!==lr)return qt=>muiStyledFunctionResolver({styledArg:lr,props:qt,defaultTheme:rt,themeId:tt});if(isPlainObject$1(lr)){let qt=lr,Ft;return lr&&lr.variants&&(Ft=lr.variants,delete qt.variants,qt=Mt=>{let ht=lr;return variantsResolver(Mt,transformVariants(Ft),Ft).forEach(Tt=>{ht=deepmerge(ht,Tt)}),ht}),qt}return lr}):[];let zt=Bt;if(isPlainObject$1(Bt)){let lr;Bt&&Bt.variants&&(lr=Bt.variants,delete zt.variants,zt=qt=>{let Ft=Bt;return variantsResolver(qt,transformVariants(lr),lr).forEach(ht=>{Ft=deepmerge(Ft,ht)}),Ft})}else typeof Bt=="function"&&Bt.__emotion_real!==Bt&&(zt=lr=>muiStyledFunctionResolver({styledArg:Bt,props:lr,defaultTheme:rt,themeId:tt}));lt&>&&Lt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt})),Ft=getStyleOverrides(lt,qt);if(Ft){const Mt={};return Object.entries(Ft).forEach(([ht,Et])=>{Mt[ht]=typeof Et=="function"?Et(_extends({},lr,{theme:qt})):Et}),gt(lr,Mt)}return null}),lt&&!pt&&Lt.push(lr=>{const qt=resolveTheme(_extends({},lr,{defaultTheme:rt,themeId:tt}));return themeVariantsResolver(lr,getVariantStyles(lt,qt),qt,lt)}),yt||Lt.push(st);const Vt=Lt.length-Ot.length;if(Array.isArray(Bt)&&Vt>0){const lr=new Array(Vt).fill("");zt=[...Bt,...lr],zt.raw=[...Bt.raw,...lr]}const Wt=wt(zt,...Lt);return at.muiName&&(Wt.muiName=at.muiName),Wt};return wt.withConfig&&(St.withConfig=wt.withConfig),St}}function getThemeProps(et){const{theme:tt,name:rt,props:nt}=et;return!tt||!tt.components||!tt.components[rt]||!tt.components[rt].defaultProps?nt:resolveProps(tt.components[rt].defaultProps,nt)}function useThemeProps$1({props:et,name:tt,defaultTheme:rt,themeId:nt}){let it=useTheme$2(rt);return nt&&(it=it[nt]||it),getThemeProps({theme:it,name:tt,props:et})}function clamp(et,tt=0,rt=1){return Math.min(Math.max(tt,et),rt)}function hexToRgb(et){et=et.slice(1);const tt=new RegExp(`.{1,${et.length>=6?2:1}}`,"g");let rt=et.match(tt);return rt&&rt[0].length===1&&(rt=rt.map(nt=>nt+nt)),rt?`rgb${rt.length===4?"a":""}(${rt.map((nt,it)=>it<3?parseInt(nt,16):Math.round(parseInt(nt,16)/255*1e3)/1e3).join(", ")})`:""}function decomposeColor(et){if(et.type)return et;if(et.charAt(0)==="#")return decomposeColor(hexToRgb(et));const tt=et.indexOf("("),rt=et.substring(0,tt);if(["rgb","rgba","hsl","hsla","color"].indexOf(rt)===-1)throw new Error(formatMuiErrorMessage(9,et));let nt=et.substring(tt+1,et.length-1),it;if(rt==="color"){if(nt=nt.split(" "),it=nt.shift(),nt.length===4&&nt[3].charAt(0)==="/"&&(nt[3]=nt[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(it)===-1)throw new Error(formatMuiErrorMessage(10,it))}else nt=nt.split(",");return nt=nt.map(st=>parseFloat(st)),{type:rt,values:nt,colorSpace:it}}function recomposeColor(et){const{type:tt,colorSpace:rt}=et;let{values:nt}=et;return tt.indexOf("rgb")!==-1?nt=nt.map((it,st)=>st<3?parseInt(it,10):it):tt.indexOf("hsl")!==-1&&(nt[1]=`${nt[1]}%`,nt[2]=`${nt[2]}%`),tt.indexOf("color")!==-1?nt=`${rt} ${nt.join(" ")}`:nt=`${nt.join(", ")}`,`${tt}(${nt})`}function hslToRgb(et){et=decomposeColor(et);const{values:tt}=et,rt=tt[0],nt=tt[1]/100,it=tt[2]/100,st=nt*Math.min(it,1-it),at=(ut,dt=(ut+rt/30)%12)=>it-st*Math.max(Math.min(dt-3,9-dt,1),-1);let ot="rgb";const lt=[Math.round(at(0)*255),Math.round(at(8)*255),Math.round(at(4)*255)];return et.type==="hsla"&&(ot+="a",lt.push(tt[3])),recomposeColor({type:ot,values:lt})}function getLuminance(et){et=decomposeColor(et);let tt=et.type==="hsl"||et.type==="hsla"?decomposeColor(hslToRgb(et)).values:et.values;return tt=tt.map(rt=>(et.type!=="color"&&(rt/=255),rt<=.03928?rt/12.92:((rt+.055)/1.055)**2.4)),Number((.2126*tt[0]+.7152*tt[1]+.0722*tt[2]).toFixed(3))}function getContrastRatio(et,tt){const rt=getLuminance(et),nt=getLuminance(tt);return(Math.max(rt,nt)+.05)/(Math.min(rt,nt)+.05)}function alpha(et,tt){return et=decomposeColor(et),tt=clamp(tt),(et.type==="rgb"||et.type==="hsl")&&(et.type+="a"),et.type==="color"?et.values[3]=`/${tt}`:et.values[3]=tt,recomposeColor(et)}function darken(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]*=1-tt;else if(et.type.indexOf("rgb")!==-1||et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]*=1-tt;return recomposeColor(et)}function lighten(et,tt){if(et=decomposeColor(et),tt=clamp(tt),et.type.indexOf("hsl")!==-1)et.values[2]+=(100-et.values[2])*tt;else if(et.type.indexOf("rgb")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(255-et.values[rt])*tt;else if(et.type.indexOf("color")!==-1)for(let rt=0;rt<3;rt+=1)et.values[rt]+=(1-et.values[rt])*tt;return recomposeColor(et)}const ThemeContext=reactExports.createContext(null),ThemeContext$1=ThemeContext;function useTheme$1(){return reactExports.useContext(ThemeContext$1)}const hasSymbol=typeof Symbol=="function"&&Symbol.for,nested=hasSymbol?Symbol.for("mui.nested"):"__THEME_NESTED__";function mergeOuterLocalTheme(et,tt){return typeof tt=="function"?tt(et):_extends({},et,tt)}function ThemeProvider$2(et){const{children:tt,theme:rt}=et,nt=useTheme$1(),it=reactExports.useMemo(()=>{const st=nt===null?rt:mergeOuterLocalTheme(nt,rt);return st!=null&&(st[nested]=nt!==null),st},[rt,nt]);return jsxRuntimeExports.jsx(ThemeContext$1.Provider,{value:it,children:tt})}const EMPTY_THEME={};function useThemeScoping(et,tt,rt,nt=!1){return reactExports.useMemo(()=>{const it=et&&tt[et]||tt;if(typeof rt=="function"){const st=rt(it),at=et?_extends({},tt,{[et]:st}):st;return nt?()=>at:at}return et?_extends({},tt,{[et]:rt}):_extends({},tt,rt)},[et,tt,rt,nt])}function ThemeProvider$1(et){const{children:tt,theme:rt,themeId:nt}=et,it=useTheme$3(EMPTY_THEME),st=useTheme$1()||EMPTY_THEME,at=useThemeScoping(nt,it,rt),ot=useThemeScoping(nt,st,rt,!0);return jsxRuntimeExports.jsx(ThemeProvider$2,{theme:ot,children:jsxRuntimeExports.jsx(ThemeContext$2.Provider,{value:at,children:tt})})}function createMixins(et,tt){return _extends({toolbar:{minHeight:56,[et.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[et.up("sm")]:{minHeight:64}}},tt)}const _excluded$9=["mode","contrastThreshold","tonalOffset"],light={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:common$1.white,default:common$1.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},dark={text:{primary:common$1.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:common$1.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(et,tt,rt,nt){const it=nt.light||nt,st=nt.dark||nt*1.5;et[tt]||(et.hasOwnProperty(rt)?et[tt]=et[rt]:tt==="light"?et.light=lighten(et.main,it):tt==="dark"&&(et.dark=darken(et.main,st)))}function getDefaultPrimary(et="light"){return et==="dark"?{main:blue$1[200],light:blue$1[50],dark:blue$1[400]}:{main:blue$1[700],light:blue$1[400],dark:blue$1[800]}}function getDefaultSecondary(et="light"){return et==="dark"?{main:purple$1[200],light:purple$1[50],dark:purple$1[400]}:{main:purple$1[500],light:purple$1[300],dark:purple$1[700]}}function getDefaultError(et="light"){return et==="dark"?{main:red$1[500],light:red$1[300],dark:red$1[700]}:{main:red$1[700],light:red$1[400],dark:red$1[800]}}function getDefaultInfo(et="light"){return et==="dark"?{main:lightBlue$1[400],light:lightBlue$1[300],dark:lightBlue$1[700]}:{main:lightBlue$1[700],light:lightBlue$1[500],dark:lightBlue$1[900]}}function getDefaultSuccess(et="light"){return et==="dark"?{main:green$1[400],light:green$1[300],dark:green$1[700]}:{main:green$1[800],light:green$1[500],dark:green$1[900]}}function getDefaultWarning(et="light"){return et==="dark"?{main:orange$1[400],light:orange$1[300],dark:orange$1[700]}:{main:"#ed6c02",light:orange$1[500],dark:orange$1[900]}}function createPalette(et){const{mode:tt="light",contrastThreshold:rt=3,tonalOffset:nt=.2}=et,it=_objectWithoutPropertiesLoose(et,_excluded$9),st=et.primary||getDefaultPrimary(tt),at=et.secondary||getDefaultSecondary(tt),ot=et.error||getDefaultError(tt),lt=et.info||getDefaultInfo(tt),ut=et.success||getDefaultSuccess(tt),dt=et.warning||getDefaultWarning(tt);function bt(yt){return getContrastRatio(yt,dark.text.primary)>=rt?dark.text.primary:light.text.primary}const gt=({color:yt,name:$t,mainShade:mt=500,lightShade:wt=300,darkShade:St=700})=>{if(yt=_extends({},yt),!yt.main&&yt[mt]&&(yt.main=yt[mt]),!yt.hasOwnProperty("main"))throw new Error(formatMuiErrorMessage(11,$t?` (${$t})`:"",mt));if(typeof yt.main!="string")throw new Error(formatMuiErrorMessage(12,$t?` (${$t})`:"",JSON.stringify(yt.main)));return addLightOrDark(yt,"light",wt,nt),addLightOrDark(yt,"dark",St,nt),yt.contrastText||(yt.contrastText=bt(yt.main)),yt},kt={dark,light};return deepmerge(_extends({common:_extends({},common$1),mode:tt,primary:gt({color:st,name:"primary"}),secondary:gt({color:at,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:gt({color:ot,name:"error"}),warning:gt({color:dt,name:"warning"}),info:gt({color:lt,name:"info"}),success:gt({color:ut,name:"success"}),grey:grey$1,contrastThreshold:rt,getContrastText:bt,augmentColor:gt,tonalOffset:nt},kt[tt]),it)}const _excluded$8=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function round(et){return Math.round(et*1e5)/1e5}const caseAllCaps={textTransform:"uppercase"},defaultFontFamily='"Roboto", "Helvetica", "Arial", sans-serif';function createTypography(et,tt){const rt=typeof tt=="function"?tt(et):tt,{fontFamily:nt=defaultFontFamily,fontSize:it=14,fontWeightLight:st=300,fontWeightRegular:at=400,fontWeightMedium:ot=500,fontWeightBold:lt=700,htmlFontSize:ut=16,allVariants:dt,pxToRem:bt}=rt,gt=_objectWithoutPropertiesLoose(rt,_excluded$8),kt=it/14,pt=bt||(mt=>`${mt/ut*kt}rem`),yt=(mt,wt,St,Bt,Ot)=>_extends({fontFamily:nt,fontWeight:mt,fontSize:pt(wt),lineHeight:St},nt===defaultFontFamily?{letterSpacing:`${round(Bt/wt)}em`}:{},Ot,dt),$t={h1:yt(st,96,1.167,-1.5),h2:yt(st,60,1.2,-.5),h3:yt(at,48,1.167,0),h4:yt(at,34,1.235,.25),h5:yt(at,24,1.334,0),h6:yt(ot,20,1.6,.15),subtitle1:yt(at,16,1.75,.15),subtitle2:yt(ot,14,1.57,.1),body1:yt(at,16,1.5,.15),body2:yt(at,14,1.43,.15),button:yt(ot,14,1.75,.4,caseAllCaps),caption:yt(at,12,1.66,.4),overline:yt(at,12,2.66,1,caseAllCaps),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return deepmerge(_extends({htmlFontSize:ut,pxToRem:pt,fontFamily:nt,fontSize:it,fontWeightLight:st,fontWeightRegular:at,fontWeightMedium:ot,fontWeightBold:lt},$t),gt,{clone:!1})}const shadowKeyUmbraOpacity=.2,shadowKeyPenumbraOpacity=.14,shadowAmbientShadowOpacity=.12;function createShadow(...et){return[`${et[0]}px ${et[1]}px ${et[2]}px ${et[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`,`${et[4]}px ${et[5]}px ${et[6]}px ${et[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`,`${et[8]}px ${et[9]}px ${et[10]}px ${et[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(",")}const shadows=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],shadows$1=shadows,_excluded$7=["duration","easing","delay"],easing={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},duration={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(et){return`${Math.round(et)}ms`}function getAutoHeightDuration(et){if(!et)return 0;const tt=et/36;return Math.round((4+15*tt**.25+tt/5)*10)}function createTransitions(et){const tt=_extends({},easing,et.easing),rt=_extends({},duration,et.duration);return _extends({getAutoHeightDuration,create:(it=["all"],st={})=>{const{duration:at=rt.standard,easing:ot=tt.easeInOut,delay:lt=0}=st;return _objectWithoutPropertiesLoose(st,_excluded$7),(Array.isArray(it)?it:[it]).map(ut=>`${ut} ${typeof at=="string"?at:formatMs(at)} ${ot} ${typeof lt=="string"?lt:formatMs(lt)}`).join(",")}},et,{easing:tt,duration:rt})}const zIndex={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},zIndex$1=zIndex,_excluded$6=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function createTheme(et={},...tt){const{mixins:rt={},palette:nt={},transitions:it={},typography:st={}}=et,at=_objectWithoutPropertiesLoose(et,_excluded$6);if(et.vars)throw new Error(formatMuiErrorMessage(18));const ot=createPalette(nt),lt=createTheme$1(et);let ut=deepmerge(lt,{mixins:createMixins(lt.breakpoints,rt),palette:ot,shadows:shadows$1.slice(),typography:createTypography(ot,st),transitions:createTransitions(it),zIndex:_extends({},zIndex$1)});return ut=deepmerge(ut,at),ut=tt.reduce((dt,bt)=>deepmerge(dt,bt),ut),ut.unstable_sxConfig=_extends({},defaultSxConfig$1,at==null?void 0:at.unstable_sxConfig),ut.unstable_sx=function(bt){return styleFunctionSx$1({sx:bt,theme:this})},ut}const defaultTheme=createTheme(),defaultTheme$1=defaultTheme;function useTheme(){const et=useTheme$2(defaultTheme$1);return et[THEME_ID]||et}function useThemeProps({props:et,name:tt}){return useThemeProps$1({props:et,name:tt,defaultTheme:defaultTheme$1,themeId:THEME_ID})}const rootShouldForwardProp=et=>shouldForwardProp(et)&&et!=="classes",slotShouldForwardProp=shouldForwardProp,styled=createStyled({themeId:THEME_ID,defaultTheme:defaultTheme$1,rootShouldForwardProp}),styled$1=styled,_excluded$5=["theme"];function ThemeProvider(et){let{theme:tt}=et,rt=_objectWithoutPropertiesLoose(et,_excluded$5);const nt=tt[THEME_ID];return jsxRuntimeExports.jsx(ThemeProvider$1,_extends({},rt,{themeId:nt?THEME_ID:void 0,theme:nt||tt}))}function r$3(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{if(!ot&<!=null){const yt=setTimeout(lt,ut);return()=>{clearTimeout(yt)}}},[lt,ot,ut]),jsxRuntimeExports.jsx("span",{className:gt,style:kt,children:jsxRuntimeExports.jsx("span",{className:pt})})}const touchRippleClasses=generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),touchRippleClasses$1=touchRippleClasses,_excluded$4=["center","classes","className"];let _$2=et=>et,_t$1,_t2$1,_t3$1,_t4$1;const DURATION=550,DELAY_RIPPLE=80,enterKeyframe=keyframes(_t$1||(_t$1=_$2` 0% { transform: scale(0); opacity: 0.1; @@ -343,7 +343,7 @@ PROCEED WITH CAUTION! animation-iteration-count: infinite; animation-delay: 200ms; } -`),touchRippleClasses$1.rippleVisible,enterKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.ripplePulsate,({theme:et})=>et.transitions.duration.shorter,touchRippleClasses$1.child,touchRippleClasses$1.childLeaving,exitKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.childPulsate,pulsateKeyframe,({theme:et})=>et.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiTouchRipple"}),{center:it=!1,classes:st={},className:at}=nt,ot=_objectWithoutPropertiesLoose(nt,_excluded$4),[lt,ut]=reactExports.useState([]),dt=reactExports.useRef(0),bt=reactExports.useRef(null);reactExports.useEffect(()=>{bt.current&&(bt.current(),bt.current=null)},[lt]);const gt=reactExports.useRef(!1),kt=reactExports.useRef(0),pt=reactExports.useRef(null),yt=reactExports.useRef(null);reactExports.useEffect(()=>()=>{kt.current&&clearTimeout(kt.current)},[]);const $t=reactExports.useCallback(Bt=>{const{pulsate:Ft,rippleX:Lt,rippleY:zt,rippleSize:Ht,cb:Wt}=Bt;ut(lr=>[...lr,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx$2(st.ripple,touchRippleClasses$1.ripple),rippleVisible:clsx$2(st.rippleVisible,touchRippleClasses$1.rippleVisible),ripplePulsate:clsx$2(st.ripplePulsate,touchRippleClasses$1.ripplePulsate),child:clsx$2(st.child,touchRippleClasses$1.child),childLeaving:clsx$2(st.childLeaving,touchRippleClasses$1.childLeaving),childPulsate:clsx$2(st.childPulsate,touchRippleClasses$1.childPulsate)},timeout:DURATION,pulsate:Ft,rippleX:Lt,rippleY:zt,rippleSize:Ht},dt.current)]),dt.current+=1,bt.current=Wt},[st]),mt=reactExports.useCallback((Bt={},Ft={},Lt=()=>{})=>{const{pulsate:zt=!1,center:Ht=it||Ft.pulsate,fakeElement:Wt=!1}=Ft;if((Bt==null?void 0:Bt.type)==="mousedown"&>.current){gt.current=!1;return}(Bt==null?void 0:Bt.type)==="touchstart"&&(gt.current=!0);const lr=Wt?null:yt.current,qt=lr?lr.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Ot,Mt,ht;if(Ht||Bt===void 0||Bt.clientX===0&&Bt.clientY===0||!Bt.clientX&&!Bt.touches)Ot=Math.round(qt.width/2),Mt=Math.round(qt.height/2);else{const{clientX:Et,clientY:Tt}=Bt.touches&&Bt.touches.length>0?Bt.touches[0]:Bt;Ot=Math.round(Et-qt.left),Mt=Math.round(Tt-qt.top)}if(Ht)ht=Math.sqrt((2*qt.width**2+qt.height**2)/3),ht%2===0&&(ht+=1);else{const Et=Math.max(Math.abs((lr?lr.clientWidth:0)-Ot),Ot)*2+2,Tt=Math.max(Math.abs((lr?lr.clientHeight:0)-Mt),Mt)*2+2;ht=Math.sqrt(Et**2+Tt**2)}Bt!=null&&Bt.touches?pt.current===null&&(pt.current=()=>{$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Lt})},kt.current=setTimeout(()=>{pt.current&&(pt.current(),pt.current=null)},DELAY_RIPPLE)):$t({pulsate:zt,rippleX:Ot,rippleY:Mt,rippleSize:ht,cb:Lt})},[it,$t]),wt=reactExports.useCallback(()=>{mt({},{pulsate:!0})},[mt]),St=reactExports.useCallback((Bt,Ft)=>{if(clearTimeout(kt.current),(Bt==null?void 0:Bt.type)==="touchend"&&pt.current){pt.current(),pt.current=null,kt.current=setTimeout(()=>{St(Bt,Ft)});return}pt.current=null,ut(Lt=>Lt.length>0?Lt.slice(1):Lt),bt.current=Ft},[]);return reactExports.useImperativeHandle(rt,()=>({pulsate:wt,start:mt,stop:St}),[wt,mt,St]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends({className:clsx$2(touchRippleClasses$1.root,st.root,at),ref:yt},ot,{children:jsxRuntimeExports.jsx(TransitionGroup$1,{component:null,exit:!0,children:lt})}))}),TouchRipple$1=TouchRipple;function getButtonBaseUtilityClass(et){return generateUtilityClass("MuiButtonBase",et)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),buttonBaseClasses$1=buttonBaseClasses,_excluded$3=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$2=et=>{const{disabled:tt,focusVisible:rt,focusVisibleClassName:nt,classes:it}=et,at=composeClasses({root:["root",tt&&"disabled",rt&&"focusVisible"]},getButtonBaseUtilityClass,it);return rt&&nt&&(at.root+=` ${nt}`),at},ButtonBaseRoot=styled$1("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses$1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiButtonBase"}),{action:it,centerRipple:st=!1,children:at,className:ot,component:lt="button",disabled:ut=!1,disableRipple:dt=!1,disableTouchRipple:bt=!1,focusRipple:gt=!1,LinkComponent:kt="a",onBlur:pt,onClick:yt,onContextMenu:$t,onDragLeave:mt,onFocus:wt,onFocusVisible:St,onKeyDown:Bt,onKeyUp:Ft,onMouseDown:Lt,onMouseLeave:zt,onMouseUp:Ht,onTouchEnd:Wt,onTouchMove:lr,onTouchStart:qt,tabIndex:Ot=0,TouchRippleProps:Mt,touchRippleRef:ht,type:Et}=nt,Tt=_objectWithoutPropertiesLoose(nt,_excluded$3),Rt=reactExports.useRef(null),At=reactExports.useRef(null),Pt=useForkRef(At,ht),{isFocusVisibleRef:It,onFocus:Ct,onBlur:xt,ref:Dt}=useIsFocusVisible(),[tr,pr]=reactExports.useState(!1);ut&&tr&&pr(!1),reactExports.useImperativeHandle(it,()=>({focusVisible:()=>{pr(!0),Rt.current.focus()}}),[]);const[Kt,Qt]=reactExports.useState(!1);reactExports.useEffect(()=>{Qt(!0)},[]);const Zt=Kt&&!dt&&!ut;reactExports.useEffect(()=>{tr&>&&!dt&&Kt&&At.current.pulsate()},[dt,gt,tr,Kt]);function ur(Vt,ir,kr=bt){return useEventCallback($r=>(ir&&ir($r),!kr&&At.current&&At.current[Vt]($r),!0))}const _r=ur("start",Lt),er=ur("stop",$t),Jt=ur("stop",mt),Ar=ur("stop",Ht),Er=ur("stop",Vt=>{tr&&Vt.preventDefault(),zt&&zt(Vt)}),Dr=ur("start",qt),Xr=ur("stop",Wt),Vr=ur("stop",lr),wr=ur("stop",Vt=>{xt(Vt),It.current===!1&&pr(!1),pt&&pt(Vt)},!1),br=useEventCallback(Vt=>{Rt.current||(Rt.current=Vt.currentTarget),Ct(Vt),It.current===!0&&(pr(!0),St&&St(Vt)),wt&&wt(Vt)}),or=()=>{const Vt=Rt.current;return lt&<!=="button"&&!(Vt.tagName==="A"&&Vt.href)},xr=reactExports.useRef(!1),Pr=useEventCallback(Vt=>{gt&&!xr.current&&tr&&At.current&&Vt.key===" "&&(xr.current=!0,At.current.stop(Vt,()=>{At.current.start(Vt)})),Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&Vt.preventDefault(),Bt&&Bt(Vt),Vt.target===Vt.currentTarget&&or()&&Vt.key==="Enter"&&!ut&&(Vt.preventDefault(),yt&&yt(Vt))}),Or=useEventCallback(Vt=>{gt&&Vt.key===" "&&At.current&&tr&&!Vt.defaultPrevented&&(xr.current=!1,At.current.stop(Vt,()=>{At.current.pulsate(Vt)})),Ft&&Ft(Vt),yt&&Vt.target===Vt.currentTarget&&or()&&Vt.key===" "&&!Vt.defaultPrevented&&yt(Vt)});let rr=lt;rr==="button"&&(Tt.href||Tt.to)&&(rr=kt);const gr={};rr==="button"?(gr.type=Et===void 0?"button":Et,gr.disabled=ut):(!Tt.href&&!Tt.to&&(gr.role="button"),ut&&(gr["aria-disabled"]=ut));const Ir=useForkRef(rt,Dt,Rt),Yt=_extends({},nt,{centerRipple:st,component:lt,disabled:ut,disableRipple:dt,disableTouchRipple:bt,focusRipple:gt,tabIndex:Ot,focusVisible:tr}),Ut=useUtilityClasses$2(Yt);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends({as:rr,className:clsx$2(Ut.root,ot),ownerState:Yt,onBlur:wr,onClick:yt,onContextMenu:er,onFocus:br,onKeyDown:Pr,onKeyUp:Or,onMouseDown:_r,onMouseLeave:Er,onMouseUp:Ar,onDragLeave:Jt,onTouchEnd:Xr,onTouchMove:Vr,onTouchStart:Dr,ref:Ir,tabIndex:ut?-1:Ot,type:Et},gr,Tt,{children:[at,Zt?jsxRuntimeExports.jsx(TouchRipple$1,_extends({ref:Pt,center:st},Mt)):null]}))}),ButtonBase$1=ButtonBase;function getButtonUtilityClass(et){return generateUtilityClass("MuiButton",et)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),buttonClasses$1=buttonClasses,ButtonGroupContext=reactExports.createContext({}),ButtonGroupContext$1=ButtonGroupContext,ButtonGroupButtonContext=reactExports.createContext(void 0),ButtonGroupButtonContext$1=ButtonGroupButtonContext,_excluded$2=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$1=et=>{const{color:tt,disableElevation:rt,fullWidth:nt,size:it,variant:st,classes:at}=et,ot={root:["root",st,`${st}${capitalize(tt)}`,`size${capitalize(it)}`,`${st}Size${capitalize(it)}`,tt==="inherit"&&"colorInherit",rt&&"disableElevation",nt&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${capitalize(it)}`],endIcon:["endIcon",`iconSize${capitalize(it)}`]},lt=composeClasses(ot,getButtonUtilityClass,at);return _extends({},at,lt)},commonIconStyles=et=>_extends({},et.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},et.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},et.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled$1(ButtonBase$1,{shouldForwardProp:et=>rootShouldForwardProp(et)||et==="classes",name:"MuiButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`${rt.variant}${capitalize(rt.color)}`],tt[`size${capitalize(rt.size)}`],tt[`${rt.variant}Size${capitalize(rt.size)}`],rt.color==="inherit"&&tt.colorInherit,rt.disableElevation&&tt.disableElevation,rt.fullWidth&&tt.fullWidth]}})(({theme:et,ownerState:tt})=>{var rt,nt;const it=et.palette.mode==="light"?et.palette.grey[300]:et.palette.grey[800],st=et.palette.mode==="light"?et.palette.grey.A100:et.palette.grey[700];return _extends({},et.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create(["background-color","box-shadow","border-color","color"],{duration:et.transitions.duration.short}),"&:hover":_extends({textDecoration:"none",backgroundColor:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette.text.primary,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="text"&&tt.color!=="inherit"&&{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="outlined"&&tt.color!=="inherit"&&{border:`1px solid ${(et.vars||et).palette[tt.color].main}`,backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="contained"&&{backgroundColor:et.vars?et.vars.palette.Button.inheritContainedHoverBg:st,boxShadow:(et.vars||et).shadows[4],"@media (hover: none)":{boxShadow:(et.vars||et).shadows[2],backgroundColor:(et.vars||et).palette.grey[300]}},tt.variant==="contained"&&tt.color!=="inherit"&&{backgroundColor:(et.vars||et).palette[tt.color].dark,"@media (hover: none)":{backgroundColor:(et.vars||et).palette[tt.color].main}}),"&:active":_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[8]}),[`&.${buttonClasses$1.focusVisible}`]:_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[6]}),[`&.${buttonClasses$1.disabled}`]:_extends({color:(et.vars||et).palette.action.disabled},tt.variant==="outlined"&&{border:`1px solid ${(et.vars||et).palette.action.disabledBackground}`},tt.variant==="contained"&&{color:(et.vars||et).palette.action.disabled,boxShadow:(et.vars||et).shadows[0],backgroundColor:(et.vars||et).palette.action.disabledBackground})},tt.variant==="text"&&{padding:"6px 8px"},tt.variant==="text"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main},tt.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},tt.variant==="outlined"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main,border:et.vars?`1px solid rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:`1px solid ${alpha(et.palette[tt.color].main,.5)}`},tt.variant==="contained"&&{color:et.vars?et.vars.palette.text.primary:(rt=(nt=et.palette).getContrastText)==null?void 0:rt.call(nt,et.palette.grey[300]),backgroundColor:et.vars?et.vars.palette.Button.inheritContainedBg:it,boxShadow:(et.vars||et).shadows[2]},tt.variant==="contained"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].contrastText,backgroundColor:(et.vars||et).palette[tt.color].main},tt.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},tt.size==="small"&&tt.variant==="text"&&{padding:"4px 5px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="text"&&{padding:"8px 11px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="outlined"&&{padding:"3px 9px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="outlined"&&{padding:"7px 21px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="contained"&&{padding:"4px 10px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="contained"&&{padding:"8px 22px",fontSize:et.typography.pxToRem(15)},tt.fullWidth&&{width:"100%"})},({ownerState:et})=>et.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses$1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses$1.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled$1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.startIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:8,marginLeft:-4},et.size==="small"&&{marginLeft:-2},commonIconStyles(et))),ButtonEndIcon=styled$1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.endIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:-4,marginLeft:8},et.size==="small"&&{marginRight:-2},commonIconStyles(et))),Button=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ButtonGroupContext$1),it=reactExports.useContext(ButtonGroupButtonContext$1),st=resolveProps(nt,tt),at=useThemeProps({props:st,name:"MuiButton"}),{children:ot,color:lt="primary",component:ut="button",className:dt,disabled:bt=!1,disableElevation:gt=!1,disableFocusRipple:kt=!1,endIcon:pt,focusVisibleClassName:yt,fullWidth:$t=!1,size:mt="medium",startIcon:wt,type:St,variant:Bt="text"}=at,Ft=_objectWithoutPropertiesLoose(at,_excluded$2),Lt=_extends({},at,{color:lt,component:ut,disabled:bt,disableElevation:gt,disableFocusRipple:kt,fullWidth:$t,size:mt,type:St,variant:Bt}),zt=useUtilityClasses$1(Lt),Ht=wt&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:zt.startIcon,ownerState:Lt,children:wt}),Wt=pt&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:zt.endIcon,ownerState:Lt,children:pt}),lr=it||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends({ownerState:Lt,className:clsx$2(nt.className,zt.root,dt,lr),component:ut,disabled:bt,focusRipple:!kt,focusVisibleClassName:clsx$2(zt.focusVisible,yt),ref:rt,type:St},Ft,{classes:zt,children:[Ht,ot,Wt]}))}),Button$1=Button;function getLinearProgressUtilityClass(et){return generateUtilityClass("MuiLinearProgress",et)}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$1=["className","color","value","valueBuffer","variant"];let _$1=et=>et,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_$1` +`),touchRippleClasses$1.rippleVisible,enterKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.ripplePulsate,({theme:et})=>et.transitions.duration.shorter,touchRippleClasses$1.child,touchRippleClasses$1.childLeaving,exitKeyframe,DURATION,({theme:et})=>et.transitions.easing.easeInOut,touchRippleClasses$1.childPulsate,pulsateKeyframe,({theme:et})=>et.transitions.easing.easeInOut),TouchRipple=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiTouchRipple"}),{center:it=!1,classes:st={},className:at}=nt,ot=_objectWithoutPropertiesLoose(nt,_excluded$4),[lt,ut]=reactExports.useState([]),dt=reactExports.useRef(0),bt=reactExports.useRef(null);reactExports.useEffect(()=>{bt.current&&(bt.current(),bt.current=null)},[lt]);const gt=reactExports.useRef(!1),kt=reactExports.useRef(0),pt=reactExports.useRef(null),yt=reactExports.useRef(null);reactExports.useEffect(()=>()=>{kt.current&&clearTimeout(kt.current)},[]);const $t=reactExports.useCallback(Bt=>{const{pulsate:Ot,rippleX:Lt,rippleY:zt,rippleSize:Vt,cb:Wt}=Bt;ut(lr=>[...lr,jsxRuntimeExports.jsx(TouchRippleRipple,{classes:{ripple:clsx$2(st.ripple,touchRippleClasses$1.ripple),rippleVisible:clsx$2(st.rippleVisible,touchRippleClasses$1.rippleVisible),ripplePulsate:clsx$2(st.ripplePulsate,touchRippleClasses$1.ripplePulsate),child:clsx$2(st.child,touchRippleClasses$1.child),childLeaving:clsx$2(st.childLeaving,touchRippleClasses$1.childLeaving),childPulsate:clsx$2(st.childPulsate,touchRippleClasses$1.childPulsate)},timeout:DURATION,pulsate:Ot,rippleX:Lt,rippleY:zt,rippleSize:Vt},dt.current)]),dt.current+=1,bt.current=Wt},[st]),mt=reactExports.useCallback((Bt={},Ot={},Lt=()=>{})=>{const{pulsate:zt=!1,center:Vt=it||Ot.pulsate,fakeElement:Wt=!1}=Ot;if((Bt==null?void 0:Bt.type)==="mousedown"&>.current){gt.current=!1;return}(Bt==null?void 0:Bt.type)==="touchstart"&&(gt.current=!0);const lr=Wt?null:yt.current,qt=lr?lr.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Ft,Mt,ht;if(Vt||Bt===void 0||Bt.clientX===0&&Bt.clientY===0||!Bt.clientX&&!Bt.touches)Ft=Math.round(qt.width/2),Mt=Math.round(qt.height/2);else{const{clientX:Et,clientY:Tt}=Bt.touches&&Bt.touches.length>0?Bt.touches[0]:Bt;Ft=Math.round(Et-qt.left),Mt=Math.round(Tt-qt.top)}if(Vt)ht=Math.sqrt((2*qt.width**2+qt.height**2)/3),ht%2===0&&(ht+=1);else{const Et=Math.max(Math.abs((lr?lr.clientWidth:0)-Ft),Ft)*2+2,Tt=Math.max(Math.abs((lr?lr.clientHeight:0)-Mt),Mt)*2+2;ht=Math.sqrt(Et**2+Tt**2)}Bt!=null&&Bt.touches?pt.current===null&&(pt.current=()=>{$t({pulsate:zt,rippleX:Ft,rippleY:Mt,rippleSize:ht,cb:Lt})},kt.current=setTimeout(()=>{pt.current&&(pt.current(),pt.current=null)},DELAY_RIPPLE)):$t({pulsate:zt,rippleX:Ft,rippleY:Mt,rippleSize:ht,cb:Lt})},[it,$t]),wt=reactExports.useCallback(()=>{mt({},{pulsate:!0})},[mt]),St=reactExports.useCallback((Bt,Ot)=>{if(clearTimeout(kt.current),(Bt==null?void 0:Bt.type)==="touchend"&&pt.current){pt.current(),pt.current=null,kt.current=setTimeout(()=>{St(Bt,Ot)});return}pt.current=null,ut(Lt=>Lt.length>0?Lt.slice(1):Lt),bt.current=Ot},[]);return reactExports.useImperativeHandle(rt,()=>({pulsate:wt,start:mt,stop:St}),[wt,mt,St]),jsxRuntimeExports.jsx(TouchRippleRoot,_extends({className:clsx$2(touchRippleClasses$1.root,st.root,at),ref:yt},ot,{children:jsxRuntimeExports.jsx(TransitionGroup$1,{component:null,exit:!0,children:lt})}))}),TouchRipple$1=TouchRipple;function getButtonBaseUtilityClass(et){return generateUtilityClass("MuiButtonBase",et)}const buttonBaseClasses=generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),buttonBaseClasses$1=buttonBaseClasses,_excluded$3=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],useUtilityClasses$2=et=>{const{disabled:tt,focusVisible:rt,focusVisibleClassName:nt,classes:it}=et,at=composeClasses({root:["root",tt&&"disabled",rt&&"focusVisible"]},getButtonBaseUtilityClass,it);return rt&&nt&&(at.root+=` ${nt}`),at},ButtonBaseRoot=styled$1("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(et,tt)=>tt.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${buttonBaseClasses$1.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ButtonBase=reactExports.forwardRef(function(tt,rt){const nt=useThemeProps({props:tt,name:"MuiButtonBase"}),{action:it,centerRipple:st=!1,children:at,className:ot,component:lt="button",disabled:ut=!1,disableRipple:dt=!1,disableTouchRipple:bt=!1,focusRipple:gt=!1,LinkComponent:kt="a",onBlur:pt,onClick:yt,onContextMenu:$t,onDragLeave:mt,onFocus:wt,onFocusVisible:St,onKeyDown:Bt,onKeyUp:Ot,onMouseDown:Lt,onMouseLeave:zt,onMouseUp:Vt,onTouchEnd:Wt,onTouchMove:lr,onTouchStart:qt,tabIndex:Ft=0,TouchRippleProps:Mt,touchRippleRef:ht,type:Et}=nt,Tt=_objectWithoutPropertiesLoose(nt,_excluded$3),Rt=reactExports.useRef(null),At=reactExports.useRef(null),Pt=useForkRef(At,ht),{isFocusVisibleRef:It,onFocus:Ct,onBlur:xt,ref:Dt}=useIsFocusVisible(),[tr,pr]=reactExports.useState(!1);ut&&tr&&pr(!1),reactExports.useImperativeHandle(it,()=>({focusVisible:()=>{pr(!0),Rt.current.focus()}}),[]);const[Kt,Qt]=reactExports.useState(!1);reactExports.useEffect(()=>{Qt(!0)},[]);const Zt=Kt&&!dt&&!ut;reactExports.useEffect(()=>{tr&>&&!dt&&Kt&&At.current.pulsate()},[dt,gt,tr,Kt]);function ur(Ht,ir,kr=bt){return useEventCallback($r=>(ir&&ir($r),!kr&&At.current&&At.current[Ht]($r),!0))}const _r=ur("start",Lt),er=ur("stop",$t),Jt=ur("stop",mt),Ar=ur("stop",Vt),Er=ur("stop",Ht=>{tr&&Ht.preventDefault(),zt&&zt(Ht)}),Dr=ur("start",qt),Xr=ur("stop",Wt),Vr=ur("stop",lr),wr=ur("stop",Ht=>{xt(Ht),It.current===!1&&pr(!1),pt&&pt(Ht)},!1),br=useEventCallback(Ht=>{Rt.current||(Rt.current=Ht.currentTarget),Ct(Ht),It.current===!0&&(pr(!0),St&&St(Ht)),wt&&wt(Ht)}),or=()=>{const Ht=Rt.current;return lt&<!=="button"&&!(Ht.tagName==="A"&&Ht.href)},xr=reactExports.useRef(!1),Pr=useEventCallback(Ht=>{gt&&!xr.current&&tr&&At.current&&Ht.key===" "&&(xr.current=!0,At.current.stop(Ht,()=>{At.current.start(Ht)})),Ht.target===Ht.currentTarget&&or()&&Ht.key===" "&&Ht.preventDefault(),Bt&&Bt(Ht),Ht.target===Ht.currentTarget&&or()&&Ht.key==="Enter"&&!ut&&(Ht.preventDefault(),yt&&yt(Ht))}),Or=useEventCallback(Ht=>{gt&&Ht.key===" "&&At.current&&tr&&!Ht.defaultPrevented&&(xr.current=!1,At.current.stop(Ht,()=>{At.current.pulsate(Ht)})),Ot&&Ot(Ht),yt&&Ht.target===Ht.currentTarget&&or()&&Ht.key===" "&&!Ht.defaultPrevented&&yt(Ht)});let rr=lt;rr==="button"&&(Tt.href||Tt.to)&&(rr=kt);const gr={};rr==="button"?(gr.type=Et===void 0?"button":Et,gr.disabled=ut):(!Tt.href&&!Tt.to&&(gr.role="button"),ut&&(gr["aria-disabled"]=ut));const Ir=useForkRef(rt,Dt,Rt),Yt=_extends({},nt,{centerRipple:st,component:lt,disabled:ut,disableRipple:dt,disableTouchRipple:bt,focusRipple:gt,tabIndex:Ft,focusVisible:tr}),Ut=useUtilityClasses$2(Yt);return jsxRuntimeExports.jsxs(ButtonBaseRoot,_extends({as:rr,className:clsx$2(Ut.root,ot),ownerState:Yt,onBlur:wr,onClick:yt,onContextMenu:er,onFocus:br,onKeyDown:Pr,onKeyUp:Or,onMouseDown:_r,onMouseLeave:Er,onMouseUp:Ar,onDragLeave:Jt,onTouchEnd:Xr,onTouchMove:Vr,onTouchStart:Dr,ref:Ir,tabIndex:ut?-1:Ft,type:Et},gr,Tt,{children:[at,Zt?jsxRuntimeExports.jsx(TouchRipple$1,_extends({ref:Pt,center:st},Mt)):null]}))}),ButtonBase$1=ButtonBase;function getButtonUtilityClass(et){return generateUtilityClass("MuiButton",et)}const buttonClasses=generateUtilityClasses("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),buttonClasses$1=buttonClasses,ButtonGroupContext=reactExports.createContext({}),ButtonGroupContext$1=ButtonGroupContext,ButtonGroupButtonContext=reactExports.createContext(void 0),ButtonGroupButtonContext$1=ButtonGroupButtonContext,_excluded$2=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],useUtilityClasses$1=et=>{const{color:tt,disableElevation:rt,fullWidth:nt,size:it,variant:st,classes:at}=et,ot={root:["root",st,`${st}${capitalize(tt)}`,`size${capitalize(it)}`,`${st}Size${capitalize(it)}`,tt==="inherit"&&"colorInherit",rt&&"disableElevation",nt&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${capitalize(it)}`],endIcon:["endIcon",`iconSize${capitalize(it)}`]},lt=composeClasses(ot,getButtonUtilityClass,at);return _extends({},at,lt)},commonIconStyles=et=>_extends({},et.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},et.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},et.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),ButtonRoot=styled$1(ButtonBase$1,{shouldForwardProp:et=>rootShouldForwardProp(et)||et==="classes",name:"MuiButton",slot:"Root",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.root,tt[rt.variant],tt[`${rt.variant}${capitalize(rt.color)}`],tt[`size${capitalize(rt.size)}`],tt[`${rt.variant}Size${capitalize(rt.size)}`],rt.color==="inherit"&&tt.colorInherit,rt.disableElevation&&tt.disableElevation,rt.fullWidth&&tt.fullWidth]}})(({theme:et,ownerState:tt})=>{var rt,nt;const it=et.palette.mode==="light"?et.palette.grey[300]:et.palette.grey[800],st=et.palette.mode==="light"?et.palette.grey.A100:et.palette.grey[700];return _extends({},et.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(et.vars||et).shape.borderRadius,transition:et.transitions.create(["background-color","box-shadow","border-color","color"],{duration:et.transitions.duration.short}),"&:hover":_extends({textDecoration:"none",backgroundColor:et.vars?`rgba(${et.vars.palette.text.primaryChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette.text.primary,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="text"&&tt.color!=="inherit"&&{backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="outlined"&&tt.color!=="inherit"&&{border:`1px solid ${(et.vars||et).palette[tt.color].main}`,backgroundColor:et.vars?`rgba(${et.vars.palette[tt.color].mainChannel} / ${et.vars.palette.action.hoverOpacity})`:alpha(et.palette[tt.color].main,et.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},tt.variant==="contained"&&{backgroundColor:et.vars?et.vars.palette.Button.inheritContainedHoverBg:st,boxShadow:(et.vars||et).shadows[4],"@media (hover: none)":{boxShadow:(et.vars||et).shadows[2],backgroundColor:(et.vars||et).palette.grey[300]}},tt.variant==="contained"&&tt.color!=="inherit"&&{backgroundColor:(et.vars||et).palette[tt.color].dark,"@media (hover: none)":{backgroundColor:(et.vars||et).palette[tt.color].main}}),"&:active":_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[8]}),[`&.${buttonClasses$1.focusVisible}`]:_extends({},tt.variant==="contained"&&{boxShadow:(et.vars||et).shadows[6]}),[`&.${buttonClasses$1.disabled}`]:_extends({color:(et.vars||et).palette.action.disabled},tt.variant==="outlined"&&{border:`1px solid ${(et.vars||et).palette.action.disabledBackground}`},tt.variant==="contained"&&{color:(et.vars||et).palette.action.disabled,boxShadow:(et.vars||et).shadows[0],backgroundColor:(et.vars||et).palette.action.disabledBackground})},tt.variant==="text"&&{padding:"6px 8px"},tt.variant==="text"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main},tt.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},tt.variant==="outlined"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].main,border:et.vars?`1px solid rgba(${et.vars.palette[tt.color].mainChannel} / 0.5)`:`1px solid ${alpha(et.palette[tt.color].main,.5)}`},tt.variant==="contained"&&{color:et.vars?et.vars.palette.text.primary:(rt=(nt=et.palette).getContrastText)==null?void 0:rt.call(nt,et.palette.grey[300]),backgroundColor:et.vars?et.vars.palette.Button.inheritContainedBg:it,boxShadow:(et.vars||et).shadows[2]},tt.variant==="contained"&&tt.color!=="inherit"&&{color:(et.vars||et).palette[tt.color].contrastText,backgroundColor:(et.vars||et).palette[tt.color].main},tt.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},tt.size==="small"&&tt.variant==="text"&&{padding:"4px 5px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="text"&&{padding:"8px 11px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="outlined"&&{padding:"3px 9px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="outlined"&&{padding:"7px 21px",fontSize:et.typography.pxToRem(15)},tt.size==="small"&&tt.variant==="contained"&&{padding:"4px 10px",fontSize:et.typography.pxToRem(13)},tt.size==="large"&&tt.variant==="contained"&&{padding:"8px 22px",fontSize:et.typography.pxToRem(15)},tt.fullWidth&&{width:"100%"})},({ownerState:et})=>et.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${buttonClasses$1.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${buttonClasses$1.disabled}`]:{boxShadow:"none"}}),ButtonStartIcon=styled$1("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.startIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:8,marginLeft:-4},et.size==="small"&&{marginLeft:-2},commonIconStyles(et))),ButtonEndIcon=styled$1("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(et,tt)=>{const{ownerState:rt}=et;return[tt.endIcon,tt[`iconSize${capitalize(rt.size)}`]]}})(({ownerState:et})=>_extends({display:"inherit",marginRight:-4,marginLeft:8},et.size==="small"&&{marginRight:-2},commonIconStyles(et))),Button=reactExports.forwardRef(function(tt,rt){const nt=reactExports.useContext(ButtonGroupContext$1),it=reactExports.useContext(ButtonGroupButtonContext$1),st=resolveProps(nt,tt),at=useThemeProps({props:st,name:"MuiButton"}),{children:ot,color:lt="primary",component:ut="button",className:dt,disabled:bt=!1,disableElevation:gt=!1,disableFocusRipple:kt=!1,endIcon:pt,focusVisibleClassName:yt,fullWidth:$t=!1,size:mt="medium",startIcon:wt,type:St,variant:Bt="text"}=at,Ot=_objectWithoutPropertiesLoose(at,_excluded$2),Lt=_extends({},at,{color:lt,component:ut,disabled:bt,disableElevation:gt,disableFocusRipple:kt,fullWidth:$t,size:mt,type:St,variant:Bt}),zt=useUtilityClasses$1(Lt),Vt=wt&&jsxRuntimeExports.jsx(ButtonStartIcon,{className:zt.startIcon,ownerState:Lt,children:wt}),Wt=pt&&jsxRuntimeExports.jsx(ButtonEndIcon,{className:zt.endIcon,ownerState:Lt,children:pt}),lr=it||"";return jsxRuntimeExports.jsxs(ButtonRoot,_extends({ownerState:Lt,className:clsx$2(nt.className,zt.root,dt,lr),component:ut,disabled:bt,focusRipple:!kt,focusVisibleClassName:clsx$2(zt.focusVisible,yt),ref:rt,type:St},Ot,{classes:zt,children:[Vt,ot,Wt]}))}),Button$1=Button;function getLinearProgressUtilityClass(et){return generateUtilityClass("MuiLinearProgress",et)}generateUtilityClasses("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const _excluded$1=["className","color","value","valueBuffer","variant"];let _$1=et=>et,_t,_t2,_t3,_t4,_t5,_t6;const TRANSITION_DURATION=4,indeterminate1Keyframe=keyframes(_t||(_t=_$1` 0% { left: -35%; right: 100%; @@ -478,7 +478,7 @@ PROCEED WITH CAUTION! ${style} ${({color:et="primaryText1"})=>`color: ${colors[et]};`} -`;var isCheckBoxInput=et=>et.type==="checkbox",isDateObject=et=>et instanceof Date,isNullOrUndefined=et=>et==null;const isObjectType=et=>typeof et=="object";var isObject=et=>!isNullOrUndefined(et)&&!Array.isArray(et)&&isObjectType(et)&&!isDateObject(et),getEventValue=et=>isObject(et)&&et.target?isCheckBoxInput(et.target)?et.target.checked:et.target.value:et,getNodeParentName=et=>et.substring(0,et.search(/\.\d+(\.|$)/))||et,isNameInFieldArray=(et,tt)=>et.has(getNodeParentName(tt)),isPlainObject=et=>{const tt=et.constructor&&et.constructor.prototype;return isObject(tt)&&tt.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(et){let tt;const rt=Array.isArray(et);if(et instanceof Date)tt=new Date(et);else if(et instanceof Set)tt=new Set(et);else if(!(isWeb&&(et instanceof Blob||et instanceof FileList))&&(rt||isObject(et)))if(tt=rt?[]:{},!rt&&!isPlainObject(et))tt=et;else for(const nt in et)et.hasOwnProperty(nt)&&(tt[nt]=cloneObject(et[nt]));else return et;return tt}var compact=et=>Array.isArray(et)?et.filter(Boolean):[],isUndefined=et=>et===void 0,get=(et,tt,rt)=>{if(!tt||!isObject(et))return rt;const nt=compact(tt.split(/[,[\].]+?/)).reduce((it,st)=>isNullOrUndefined(it)?it:it[st],et);return isUndefined(nt)||nt===et?isUndefined(et[tt])?rt:et[tt]:nt},isBoolean=et=>typeof et=="boolean";const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React.createContext(null),useFormContext=()=>React.useContext(HookFormContext),FormProvider=et=>{const{children:tt,...rt}=et;return React.createElement(HookFormContext.Provider,{value:rt},tt)};var getProxyFormState=(et,tt,rt,nt=!0)=>{const it={defaultValues:tt._defaultValues};for(const st in et)Object.defineProperty(it,st,{get:()=>{const at=st;return tt._proxyFormState[at]!==VALIDATION_MODE.all&&(tt._proxyFormState[at]=!nt||VALIDATION_MODE.all),rt&&(rt[at]=!0),et[at]}});return it},isEmptyObject=et=>isObject(et)&&!Object.keys(et).length,shouldRenderFormState=(et,tt,rt,nt)=>{rt(et);const{name:it,...st}=et;return isEmptyObject(st)||Object.keys(st).length>=Object.keys(tt).length||Object.keys(st).find(at=>tt[at]===(!nt||VALIDATION_MODE.all))},convertToArrayPayload=et=>Array.isArray(et)?et:[et],shouldSubscribeByName=(et,tt,rt)=>!et||!tt||et===tt||convertToArrayPayload(et).some(nt=>nt&&(rt?nt===tt:nt.startsWith(tt)||tt.startsWith(nt)));function useSubscribe(et){const tt=React.useRef(et);tt.current=et,React.useEffect(()=>{const rt=!et.disabled&&tt.current.subject&&tt.current.subject.subscribe({next:tt.current.next});return()=>{rt&&rt.unsubscribe()}},[et.disabled])}function useFormState(et){const tt=useFormContext(),{control:rt=tt.control,disabled:nt,name:it,exact:st}=et||{},[at,ot]=React.useState(rt._formState),lt=React.useRef(!0),ut=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),dt=React.useRef(it);return dt.current=it,useSubscribe({disabled:nt,next:bt=>lt.current&&shouldSubscribeByName(dt.current,bt.name,st)&&shouldRenderFormState(bt,ut.current,rt._updateFormState)&&ot({...rt._formState,...bt}),subject:rt._subjects.state}),React.useEffect(()=>(lt.current=!0,ut.current.isValid&&rt._updateValid(!0),()=>{lt.current=!1}),[rt]),getProxyFormState(at,rt,ut.current,!1)}var isString=et=>typeof et=="string",generateWatchOutput=(et,tt,rt,nt,it)=>isString(et)?(nt&&tt.watch.add(et),get(rt,et,it)):Array.isArray(et)?et.map(st=>(nt&&tt.watch.add(st),get(rt,st))):(nt&&(tt.watchAll=!0),rt);function useWatch(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,defaultValue:it,disabled:st,exact:at}=et||{},ot=React.useRef(nt);ot.current=nt,useSubscribe({disabled:st,subject:rt._subjects.values,next:dt=>{shouldSubscribeByName(ot.current,dt.name,at)&&ut(cloneObject(generateWatchOutput(ot.current,rt._names,dt.values||rt._formValues,!1,it)))}});const[lt,ut]=React.useState(rt._getWatch(nt,it));return React.useEffect(()=>rt._removeUnmounted()),lt}var isKey=et=>/^\w*$/.test(et),stringToPath=et=>compact(et.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(et,tt,rt)=>{let nt=-1;const it=isKey(tt)?[tt]:stringToPath(tt),st=it.length,at=st-1;for(;++nt{const dt=it._options.shouldUnregister||st,bt=(gt,kt)=>{const pt=get(it._fields,gt);pt&&(pt._f.mount=kt)};if(bt(rt,!0),dt){const gt=cloneObject(get(it._options.defaultValues,rt));set(it._defaultValues,rt,gt),isUndefined(get(it._formValues,rt))&&set(it._formValues,rt,gt)}return()=>{(at?dt&&!it._state.action:dt)?it.unregister(rt):bt(rt,!1)}},[rt,it,at,st]),React.useEffect(()=>{get(it._fields,rt)&&it._updateDisabledField({disabled:nt,fields:it._fields,name:rt,value:get(it._fields,rt)._f.value})},[nt,rt,it]),{field:{name:rt,value:ot,...isBoolean(nt)||isBoolean(lt.disabled)?{disabled:lt.disabled||nt}:{},onChange:React.useCallback(dt=>ut.current.onChange({target:{value:getEventValue(dt),name:rt},type:EVENTS.CHANGE}),[rt]),onBlur:React.useCallback(()=>ut.current.onBlur({target:{value:get(it._formValues,rt),name:rt},type:EVENTS.BLUR}),[rt,it]),ref:dt=>{const bt=get(it._fields,rt);bt&&dt&&(bt._f.ref={focus:()=>dt.focus(),select:()=>dt.select(),setCustomValidity:gt=>dt.setCustomValidity(gt),reportValidity:()=>dt.reportValidity()})}},formState:lt,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(lt.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get(lt.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get(lt.touchedFields,rt)},error:{enumerable:!0,get:()=>get(lt.errors,rt)}})}}const Controller=et=>et.render(useController(et));var appendErrors=(et,tt,rt,nt,it)=>tt?{...rt[et],types:{...rt[et]&&rt[et].types?rt[et].types:{},[nt]:it||!0}}:{},generateId=()=>{const et=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,tt=>{const rt=(Math.random()*16+et)%16|0;return(tt=="x"?rt:rt&3|8).toString(16)})},getFocusFieldName=(et,tt,rt={})=>rt.shouldFocus||isUndefined(rt.shouldFocus)?rt.focusName||`${et}.${isUndefined(rt.focusIndex)?tt:rt.focusIndex}.`:"",getValidationModes=et=>({isOnSubmit:!et||et===VALIDATION_MODE.onSubmit,isOnBlur:et===VALIDATION_MODE.onBlur,isOnChange:et===VALIDATION_MODE.onChange,isOnAll:et===VALIDATION_MODE.all,isOnTouch:et===VALIDATION_MODE.onTouched}),isWatched=(et,tt,rt)=>!rt&&(tt.watchAll||tt.watch.has(et)||[...tt.watch].some(nt=>et.startsWith(nt)&&/^\.\w+/.test(et.slice(nt.length))));const iterateFieldsByAction=(et,tt,rt,nt)=>{for(const it of rt||Object.keys(et)){const st=get(et,it);if(st){const{_f:at,...ot}=st;if(at){if(at.refs&&at.refs[0]&&tt(at.refs[0],it)&&!nt)break;if(at.ref&&tt(at.ref,at.name)&&!nt)break;iterateFieldsByAction(ot,tt)}else isObject(ot)&&iterateFieldsByAction(ot,tt)}}};var updateFieldArrayRootError=(et,tt,rt)=>{const nt=compact(get(et,rt));return set(nt,"root",tt[rt]),set(et,rt,nt),et},isFileInput=et=>et.type==="file",isFunction=et=>typeof et=="function",isHTMLElement=et=>{if(!isWeb)return!1;const tt=et?et.ownerDocument:0;return et instanceof(tt&&tt.defaultView?tt.defaultView.HTMLElement:HTMLElement)},isMessage=et=>isString(et),isRadioInput=et=>et.type==="radio",isRegex=et=>et instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=et=>{if(Array.isArray(et)){if(et.length>1){const tt=et.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:tt,isValid:!!tt.length}}return et[0].checked&&!et[0].disabled?et[0].attributes&&!isUndefined(et[0].attributes.value)?isUndefined(et[0].value)||et[0].value===""?validResult:{value:et[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=et=>Array.isArray(et)?et.reduce((tt,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:tt,defaultReturn):defaultReturn;function getValidateError(et,tt,rt="validate"){if(isMessage(et)||Array.isArray(et)&&et.every(isMessage)||isBoolean(et)&&!et)return{type:rt,message:isMessage(et)?et:"",ref:tt}}var getValueAndMessage=et=>isObject(et)&&!isRegex(et)?et:{value:et,message:""},validateField=async(et,tt,rt,nt,it)=>{const{ref:st,refs:at,required:ot,maxLength:lt,minLength:ut,min:dt,max:bt,pattern:gt,validate:kt,name:pt,valueAsNumber:yt,mount:$t,disabled:mt}=et._f,wt=get(tt,pt);if(!$t||mt)return{};const St=at?at[0]:st,Bt=Ot=>{nt&&St.reportValidity&&(St.setCustomValidity(isBoolean(Ot)?"":Ot||""),St.reportValidity())},Ft={},Lt=isRadioInput(st),zt=isCheckBoxInput(st),Ht=Lt||zt,Wt=(yt||isFileInput(st))&&isUndefined(st.value)&&isUndefined(wt)||isHTMLElement(st)&&st.value===""||wt===""||Array.isArray(wt)&&!wt.length,lr=appendErrors.bind(null,pt,rt,Ft),qt=(Ot,Mt,ht,Et=INPUT_VALIDATION_RULES.maxLength,Tt=INPUT_VALIDATION_RULES.minLength)=>{const Rt=Ot?Mt:ht;Ft[pt]={type:Ot?Et:Tt,message:Rt,ref:st,...lr(Ot?Et:Tt,Rt)}};if(it?!Array.isArray(wt)||!wt.length:ot&&(!Ht&&(Wt||isNullOrUndefined(wt))||isBoolean(wt)&&!wt||zt&&!getCheckboxValue(at).isValid||Lt&&!getRadioValue(at).isValid)){const{value:Ot,message:Mt}=isMessage(ot)?{value:!!ot,message:ot}:getValueAndMessage(ot);if(Ot&&(Ft[pt]={type:INPUT_VALIDATION_RULES.required,message:Mt,ref:St,...lr(INPUT_VALIDATION_RULES.required,Mt)},!rt))return Bt(Mt),Ft}if(!Wt&&(!isNullOrUndefined(dt)||!isNullOrUndefined(bt))){let Ot,Mt;const ht=getValueAndMessage(bt),Et=getValueAndMessage(dt);if(!isNullOrUndefined(wt)&&!isNaN(wt)){const Tt=st.valueAsNumber||wt&&+wt;isNullOrUndefined(ht.value)||(Ot=Tt>ht.value),isNullOrUndefined(Et.value)||(Mt=Ttnew Date(new Date().toDateString()+" "+It),At=st.type=="time",Pt=st.type=="week";isString(ht.value)&&wt&&(Ot=At?Rt(wt)>Rt(ht.value):Pt?wt>ht.value:Tt>new Date(ht.value)),isString(Et.value)&&wt&&(Mt=At?Rt(wt)+Ot.value,Et=!isNullOrUndefined(Mt.value)&&wt.length<+Mt.value;if((ht||Et)&&(qt(ht,Ot.message,Mt.message),!rt))return Bt(Ft[pt].message),Ft}if(gt&&!Wt&&isString(wt)){const{value:Ot,message:Mt}=getValueAndMessage(gt);if(isRegex(Ot)&&!wt.match(Ot)&&(Ft[pt]={type:INPUT_VALIDATION_RULES.pattern,message:Mt,ref:st,...lr(INPUT_VALIDATION_RULES.pattern,Mt)},!rt))return Bt(Mt),Ft}if(kt){if(isFunction(kt)){const Ot=await kt(wt,tt),Mt=getValidateError(Ot,St);if(Mt&&(Ft[pt]={...Mt,...lr(INPUT_VALIDATION_RULES.validate,Mt.message)},!rt))return Bt(Mt.message),Ft}else if(isObject(kt)){let Ot={};for(const Mt in kt){if(!isEmptyObject(Ot)&&!rt)break;const ht=getValidateError(await kt[Mt](wt,tt),St,Mt);ht&&(Ot={...ht,...lr(Mt,ht.message)},Bt(ht.message),rt&&(Ft[pt]=Ot))}if(!isEmptyObject(Ot)&&(Ft[pt]={ref:St,...Ot},!rt))return Ft}}return Bt(!0),Ft},appendAt=(et,tt)=>[...et,...convertToArrayPayload(tt)],fillEmptyArray=et=>Array.isArray(et)?et.map(()=>{}):void 0;function insert(et,tt,rt){return[...et.slice(0,tt),...convertToArrayPayload(rt),...et.slice(tt)]}var moveArrayAt=(et,tt,rt)=>Array.isArray(et)?(isUndefined(et[rt])&&(et[rt]=void 0),et.splice(rt,0,et.splice(tt,1)[0]),et):[],prependAt=(et,tt)=>[...convertToArrayPayload(tt),...convertToArrayPayload(et)];function removeAtIndexes(et,tt){let rt=0;const nt=[...et];for(const it of tt)nt.splice(it-rt,1),rt++;return compact(nt).length?nt:[]}var removeArrayAt=(et,tt)=>isUndefined(tt)?[]:removeAtIndexes(et,convertToArrayPayload(tt).sort((rt,nt)=>rt-nt)),swapArrayAt=(et,tt,rt)=>{[et[tt],et[rt]]=[et[rt],et[tt]]};function baseGet(et,tt){const rt=tt.slice(0,-1).length;let nt=0;for(;nt(et[tt]=rt,et);function useFieldArray(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,keyName:it="id",shouldUnregister:st}=et,[at,ot]=React.useState(rt._getFieldArray(nt)),lt=React.useRef(rt._getFieldArray(nt).map(generateId)),ut=React.useRef(at),dt=React.useRef(nt),bt=React.useRef(!1);dt.current=nt,ut.current=at,rt._names.array.add(nt),et.rules&&rt.register(nt,et.rules),useSubscribe({next:({values:Ft,name:Lt})=>{if(Lt===dt.current||!Lt){const zt=get(Ft,dt.current);Array.isArray(zt)&&(ot(zt),lt.current=zt.map(generateId))}},subject:rt._subjects.array});const gt=React.useCallback(Ft=>{bt.current=!0,rt._updateFieldArray(nt,Ft)},[rt,nt]),kt=(Ft,Lt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=appendAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,Ht.length-1,Lt),lt.current=appendAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,appendAt,{argA:fillEmptyArray(Ft)})},pt=(Ft,Lt)=>{const zt=convertToArrayPayload(cloneObject(Ft)),Ht=prependAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,0,Lt),lt.current=prependAt(lt.current,zt.map(generateId)),gt(Ht),ot(Ht),rt._updateFieldArray(nt,Ht,prependAt,{argA:fillEmptyArray(Ft)})},yt=Ft=>{const Lt=removeArrayAt(rt._getFieldArray(nt),Ft);lt.current=removeArrayAt(lt.current,Ft),gt(Lt),ot(Lt),rt._updateFieldArray(nt,Lt,removeArrayAt,{argA:Ft})},$t=(Ft,Lt,zt)=>{const Ht=convertToArrayPayload(cloneObject(Lt)),Wt=insert(rt._getFieldArray(nt),Ft,Ht);rt._names.focus=getFocusFieldName(nt,Ft,zt),lt.current=insert(lt.current,Ft,Ht.map(generateId)),gt(Wt),ot(Wt),rt._updateFieldArray(nt,Wt,insert,{argA:Ft,argB:fillEmptyArray(Lt)})},mt=(Ft,Lt)=>{const zt=rt._getFieldArray(nt);swapArrayAt(zt,Ft,Lt),swapArrayAt(lt.current,Ft,Lt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,swapArrayAt,{argA:Ft,argB:Lt},!1)},wt=(Ft,Lt)=>{const zt=rt._getFieldArray(nt);moveArrayAt(zt,Ft,Lt),moveArrayAt(lt.current,Ft,Lt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,moveArrayAt,{argA:Ft,argB:Lt},!1)},St=(Ft,Lt)=>{const zt=cloneObject(Lt),Ht=updateAt(rt._getFieldArray(nt),Ft,zt);lt.current=[...Ht].map((Wt,lr)=>!Wt||lr===Ft?generateId():lt.current[lr]),gt(Ht),ot([...Ht]),rt._updateFieldArray(nt,Ht,updateAt,{argA:Ft,argB:zt},!0,!1)},Bt=Ft=>{const Lt=convertToArrayPayload(cloneObject(Ft));lt.current=Lt.map(generateId),gt([...Lt]),ot([...Lt]),rt._updateFieldArray(nt,[...Lt],zt=>zt,{},!0,!1)};return React.useEffect(()=>{if(rt._state.action=!1,isWatched(nt,rt._names)&&rt._subjects.state.next({...rt._formState}),bt.current&&(!getValidationModes(rt._options.mode).isOnSubmit||rt._formState.isSubmitted))if(rt._options.resolver)rt._executeSchema([nt]).then(Ft=>{const Lt=get(Ft.errors,nt),zt=get(rt._formState.errors,nt);(zt?!Lt&&zt.type||Lt&&(zt.type!==Lt.type||zt.message!==Lt.message):Lt&&Lt.type)&&(Lt?set(rt._formState.errors,nt,Lt):unset(rt._formState.errors,nt),rt._subjects.state.next({errors:rt._formState.errors}))});else{const Ft=get(rt._fields,nt);Ft&&Ft._f&&validateField(Ft,rt._formValues,rt._options.criteriaMode===VALIDATION_MODE.all,rt._options.shouldUseNativeValidation,!0).then(Lt=>!isEmptyObject(Lt)&&rt._subjects.state.next({errors:updateFieldArrayRootError(rt._formState.errors,Lt,nt)}))}rt._subjects.values.next({name:nt,values:{...rt._formValues}}),rt._names.focus&&iterateFieldsByAction(rt._fields,(Ft,Lt)=>{if(rt._names.focus&&Lt.startsWith(rt._names.focus)&&Ft.focus)return Ft.focus(),1}),rt._names.focus="",rt._updateValid(),bt.current=!1},[at,nt,rt]),React.useEffect(()=>(!get(rt._formValues,nt)&&rt._updateFieldArray(nt),()=>{(rt._options.shouldUnregister||st)&&rt.unregister(nt)}),[nt,rt,it,st]),{swap:React.useCallback(mt,[gt,nt,rt]),move:React.useCallback(wt,[gt,nt,rt]),prepend:React.useCallback(pt,[gt,nt,rt]),append:React.useCallback(kt,[gt,nt,rt]),remove:React.useCallback(yt,[gt,nt,rt]),insert:React.useCallback($t,[gt,nt,rt]),update:React.useCallback(St,[gt,nt,rt]),replace:React.useCallback(Bt,[gt,nt,rt]),fields:React.useMemo(()=>at.map((Ft,Lt)=>({...Ft,[it]:lt.current[Lt]||generateId()})),[at,it])}}var createSubject=()=>{let et=[];return{get observers(){return et},next:it=>{for(const st of et)st.next&&st.next(it)},subscribe:it=>(et.push(it),{unsubscribe:()=>{et=et.filter(st=>st!==it)}}),unsubscribe:()=>{et=[]}}},isPrimitive=et=>isNullOrUndefined(et)||!isObjectType(et);function deepEqual(et,tt){if(isPrimitive(et)||isPrimitive(tt))return et===tt;if(isDateObject(et)&&isDateObject(tt))return et.getTime()===tt.getTime();const rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(const it of rt){const st=et[it];if(!nt.includes(it))return!1;if(it!=="ref"){const at=tt[it];if(isDateObject(st)&&isDateObject(at)||isObject(st)&&isObject(at)||Array.isArray(st)&&Array.isArray(at)?!deepEqual(st,at):st!==at)return!1}}return!0}var isMultipleSelect=et=>et.type==="select-multiple",isRadioOrCheckbox=et=>isRadioInput(et)||isCheckBoxInput(et),live=et=>isHTMLElement(et)&&et.isConnected,objectHasFunction=et=>{for(const tt in et)if(isFunction(et[tt]))return!0;return!1};function markFieldsDirty(et,tt={}){const rt=Array.isArray(et);if(isObject(et)||rt)for(const nt in et)Array.isArray(et[nt])||isObject(et[nt])&&!objectHasFunction(et[nt])?(tt[nt]=Array.isArray(et[nt])?[]:{},markFieldsDirty(et[nt],tt[nt])):isNullOrUndefined(et[nt])||(tt[nt]=!0);return tt}function getDirtyFieldsFromDefaultValues(et,tt,rt){const nt=Array.isArray(et);if(isObject(et)||nt)for(const it in et)Array.isArray(et[it])||isObject(et[it])&&!objectHasFunction(et[it])?isUndefined(tt)||isPrimitive(rt[it])?rt[it]=Array.isArray(et[it])?markFieldsDirty(et[it],[]):{...markFieldsDirty(et[it])}:getDirtyFieldsFromDefaultValues(et[it],isNullOrUndefined(tt)?{}:tt[it],rt[it]):rt[it]=!deepEqual(et[it],tt[it]);return rt}var getDirtyFields=(et,tt)=>getDirtyFieldsFromDefaultValues(et,tt,markFieldsDirty(tt)),getFieldValueAs=(et,{valueAsNumber:tt,valueAsDate:rt,setValueAs:nt})=>isUndefined(et)?et:tt?et===""?NaN:et&&+et:rt&&isString(et)?new Date(et):nt?nt(et):et;function getFieldValue(et){const tt=et.ref;if(!(et.refs?et.refs.every(rt=>rt.disabled):tt.disabled))return isFileInput(tt)?tt.files:isRadioInput(tt)?getRadioValue(et.refs).value:isMultipleSelect(tt)?[...tt.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(tt)?getCheckboxValue(et.refs).value:getFieldValueAs(isUndefined(tt.value)?et.ref.value:tt.value,et)}var getResolverOptions=(et,tt,rt,nt)=>{const it={};for(const st of et){const at=get(tt,st);at&&set(it,st,at._f)}return{criteriaMode:rt,names:[...et],fields:it,shouldUseNativeValidation:nt}},getRuleValue=et=>isUndefined(et)?et:isRegex(et)?et.source:isObject(et)?isRegex(et.value)?et.value.source:et.value:et,hasValidation=et=>et.mount&&(et.required||et.min||et.max||et.maxLength||et.minLength||et.pattern||et.validate);function schemaErrorLookup(et,tt,rt){const nt=get(et,rt);if(nt||isKey(rt))return{error:nt,name:rt};const it=rt.split(".");for(;it.length;){const st=it.join("."),at=get(tt,st),ot=get(et,st);if(at&&!Array.isArray(at)&&rt!==st)return{name:rt};if(ot&&ot.type)return{name:st,error:ot};it.pop()}return{name:rt}}var skipValidation=(et,tt,rt,nt,it)=>it.isOnAll?!1:!rt&&it.isOnTouch?!(tt||et):(rt?nt.isOnBlur:it.isOnBlur)?!et:(rt?nt.isOnChange:it.isOnChange)?et:!0,unsetEmptyArray=(et,tt)=>!compact(get(et,tt)).length&&unset(et,tt);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(et={},tt){let rt={...defaultOptions,...et},nt={submitCount:0,isDirty:!1,isLoading:isFunction(rt.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:rt.errors||{},disabled:!1},it={},st=isObject(rt.defaultValues)||isObject(rt.values)?cloneObject(rt.defaultValues||rt.values)||{}:{},at=rt.shouldUnregister?{}:cloneObject(st),ot={action:!1,mount:!1,watch:!1},lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set},ut,dt=0;const bt={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},gt={values:createSubject(),array:createSubject(),state:createSubject()},kt=et.resetOptions&&et.resetOptions.keepDirtyValues,pt=getValidationModes(rt.mode),yt=getValidationModes(rt.reValidateMode),$t=rt.criteriaMode===VALIDATION_MODE.all,mt=or=>xr=>{clearTimeout(dt),dt=setTimeout(or,xr)},wt=async or=>{if(bt.isValid||or){const xr=rt.resolver?isEmptyObject((await lr()).errors):await Ot(it,!0);xr!==nt.isValid&>.state.next({isValid:xr})}},St=or=>bt.isValidating&>.state.next({isValidating:or}),Bt=(or,xr=[],Pr,Or,rr=!0,gr=!0)=>{if(Or&&Pr){if(ot.action=!0,gr&&Array.isArray(get(it,or))){const Ir=Pr(get(it,or),Or.argA,Or.argB);rr&&set(it,or,Ir)}if(gr&&Array.isArray(get(nt.errors,or))){const Ir=Pr(get(nt.errors,or),Or.argA,Or.argB);rr&&set(nt.errors,or,Ir),unsetEmptyArray(nt.errors,or)}if(bt.touchedFields&&gr&&Array.isArray(get(nt.touchedFields,or))){const Ir=Pr(get(nt.touchedFields,or),Or.argA,Or.argB);rr&&set(nt.touchedFields,or,Ir)}bt.dirtyFields&&(nt.dirtyFields=getDirtyFields(st,at)),gt.state.next({name:or,isDirty:ht(or,xr),dirtyFields:nt.dirtyFields,errors:nt.errors,isValid:nt.isValid})}else set(at,or,xr)},Ft=(or,xr)=>{set(nt.errors,or,xr),gt.state.next({errors:nt.errors})},Lt=or=>{nt.errors=or,gt.state.next({errors:nt.errors,isValid:!1})},zt=(or,xr,Pr,Or)=>{const rr=get(it,or);if(rr){const gr=get(at,or,isUndefined(Pr)?get(st,or):Pr);isUndefined(gr)||Or&&Or.defaultChecked||xr?set(at,or,xr?gr:getFieldValue(rr._f)):Rt(or,gr),ot.mount&&wt()}},Ht=(or,xr,Pr,Or,rr)=>{let gr=!1,Ir=!1;const Yt={name:or},Ut=!!(get(it,or)&&get(it,or)._f.disabled);if(!Pr||Or){bt.isDirty&&(Ir=nt.isDirty,nt.isDirty=Yt.isDirty=ht(),gr=Ir!==Yt.isDirty);const Vt=Ut||deepEqual(get(st,or),xr);Ir=!!(!Ut&&get(nt.dirtyFields,or)),Vt||Ut?unset(nt.dirtyFields,or):set(nt.dirtyFields,or,!0),Yt.dirtyFields=nt.dirtyFields,gr=gr||bt.dirtyFields&&Ir!==!Vt}if(Pr){const Vt=get(nt.touchedFields,or);Vt||(set(nt.touchedFields,or,Pr),Yt.touchedFields=nt.touchedFields,gr=gr||bt.touchedFields&&Vt!==Pr)}return gr&&rr&>.state.next(Yt),gr?Yt:{}},Wt=(or,xr,Pr,Or)=>{const rr=get(nt.errors,or),gr=bt.isValid&&isBoolean(xr)&&nt.isValid!==xr;if(et.delayError&&Pr?(ut=mt(()=>Ft(or,Pr)),ut(et.delayError)):(clearTimeout(dt),ut=null,Pr?set(nt.errors,or,Pr):unset(nt.errors,or)),(Pr?!deepEqual(rr,Pr):rr)||!isEmptyObject(Or)||gr){const Ir={...Or,...gr&&isBoolean(xr)?{isValid:xr}:{},errors:nt.errors,name:or};nt={...nt,...Ir},gt.state.next(Ir)}St(!1)},lr=async or=>rt.resolver(at,rt.context,getResolverOptions(or||lt.mount,it,rt.criteriaMode,rt.shouldUseNativeValidation)),qt=async or=>{const{errors:xr}=await lr(or);if(or)for(const Pr of or){const Or=get(xr,Pr);Or?set(nt.errors,Pr,Or):unset(nt.errors,Pr)}else nt.errors=xr;return xr},Ot=async(or,xr,Pr={valid:!0})=>{for(const Or in or){const rr=or[Or];if(rr){const{_f:gr,...Ir}=rr;if(gr){const Yt=lt.array.has(gr.name),Ut=await validateField(rr,at,$t,rt.shouldUseNativeValidation&&!xr,Yt);if(Ut[gr.name]&&(Pr.valid=!1,xr))break;!xr&&(get(Ut,gr.name)?Yt?updateFieldArrayRootError(nt.errors,Ut,gr.name):set(nt.errors,gr.name,Ut[gr.name]):unset(nt.errors,gr.name))}Ir&&await Ot(Ir,xr,Pr)}}return Pr.valid},Mt=()=>{for(const or of lt.unMount){const xr=get(it,or);xr&&(xr._f.refs?xr._f.refs.every(Pr=>!live(Pr)):!live(xr._f.ref))&&Zt(or)}lt.unMount=new Set},ht=(or,xr)=>(or&&xr&&set(at,or,xr),!deepEqual(Dt(),st)),Et=(or,xr,Pr)=>generateWatchOutput(or,lt,{...ot.mount?at:isUndefined(xr)?st:isString(or)?{[or]:xr}:xr},Pr,xr),Tt=or=>compact(get(ot.mount?at:st,or,et.shouldUnregister?get(st,or,[]):[])),Rt=(or,xr,Pr={})=>{const Or=get(it,or);let rr=xr;if(Or){const gr=Or._f;gr&&(!gr.disabled&&set(at,or,getFieldValueAs(xr,gr)),rr=isHTMLElement(gr.ref)&&isNullOrUndefined(xr)?"":xr,isMultipleSelect(gr.ref)?[...gr.ref.options].forEach(Ir=>Ir.selected=rr.includes(Ir.value)):gr.refs?isCheckBoxInput(gr.ref)?gr.refs.length>1?gr.refs.forEach(Ir=>(!Ir.defaultChecked||!Ir.disabled)&&(Ir.checked=Array.isArray(rr)?!!rr.find(Yt=>Yt===Ir.value):rr===Ir.value)):gr.refs[0]&&(gr.refs[0].checked=!!rr):gr.refs.forEach(Ir=>Ir.checked=Ir.value===rr):isFileInput(gr.ref)?gr.ref.value="":(gr.ref.value=rr,gr.ref.type||gt.values.next({name:or,values:{...at}})))}(Pr.shouldDirty||Pr.shouldTouch)&&Ht(or,rr,Pr.shouldTouch,Pr.shouldDirty,!0),Pr.shouldValidate&&xt(or)},At=(or,xr,Pr)=>{for(const Or in xr){const rr=xr[Or],gr=`${or}.${Or}`,Ir=get(it,gr);(lt.array.has(or)||!isPrimitive(rr)||Ir&&!Ir._f)&&!isDateObject(rr)?At(gr,rr,Pr):Rt(gr,rr,Pr)}},Pt=(or,xr,Pr={})=>{const Or=get(it,or),rr=lt.array.has(or),gr=cloneObject(xr);set(at,or,gr),rr?(gt.array.next({name:or,values:{...at}}),(bt.isDirty||bt.dirtyFields)&&Pr.shouldDirty&>.state.next({name:or,dirtyFields:getDirtyFields(st,at),isDirty:ht(or,gr)})):Or&&!Or._f&&!isNullOrUndefined(gr)?At(or,gr,Pr):Rt(or,gr,Pr),isWatched(or,lt)&>.state.next({...nt}),gt.values.next({name:or,values:{...at}}),!ot.mount&&tt()},It=async or=>{const xr=or.target;let Pr=xr.name,Or=!0;const rr=get(it,Pr),gr=()=>xr.type?getFieldValue(rr._f):getEventValue(or),Ir=Yt=>{Or=Number.isNaN(Yt)||Yt===get(at,Pr,Yt)};if(rr){let Yt,Ut;const Vt=gr(),ir=or.type===EVENTS.BLUR||or.type===EVENTS.FOCUS_OUT,kr=!hasValidation(rr._f)&&!rt.resolver&&!get(nt.errors,Pr)&&!rr._f.deps||skipValidation(ir,get(nt.touchedFields,Pr),nt.isSubmitted,yt,pt),$r=isWatched(Pr,lt,ir);set(at,Pr,Vt),ir?(rr._f.onBlur&&rr._f.onBlur(or),ut&&ut(0)):rr._f.onChange&&rr._f.onChange(or);const Br=Ht(Pr,Vt,ir,!1),an=!isEmptyObject(Br)||$r;if(!ir&>.values.next({name:Pr,type:or.type,values:{...at}}),kr)return bt.isValid&&wt(),an&>.state.next({name:Pr,...$r?{}:Br});if(!ir&&$r&>.state.next({...nt}),St(!0),rt.resolver){const{errors:ln}=await lr([Pr]);if(Ir(Vt),Or){const rn=schemaErrorLookup(nt.errors,it,Pr),kn=schemaErrorLookup(ln,it,rn.name||Pr);Yt=kn.error,Pr=kn.name,Ut=isEmptyObject(ln)}}else Yt=(await validateField(rr,at,$t,rt.shouldUseNativeValidation))[Pr],Ir(Vt),Or&&(Yt?Ut=!1:bt.isValid&&(Ut=await Ot(it,!0)));Or&&(rr._f.deps&&xt(rr._f.deps),Wt(Pr,Ut,Yt,Br))}},Ct=(or,xr)=>{if(get(nt.errors,xr)&&or.focus)return or.focus(),1},xt=async(or,xr={})=>{let Pr,Or;const rr=convertToArrayPayload(or);if(St(!0),rt.resolver){const gr=await qt(isUndefined(or)?or:rr);Pr=isEmptyObject(gr),Or=or?!rr.some(Ir=>get(gr,Ir)):Pr}else or?(Or=(await Promise.all(rr.map(async gr=>{const Ir=get(it,gr);return await Ot(Ir&&Ir._f?{[gr]:Ir}:Ir)}))).every(Boolean),!(!Or&&!nt.isValid)&&wt()):Or=Pr=await Ot(it);return gt.state.next({...!isString(or)||bt.isValid&&Pr!==nt.isValid?{}:{name:or},...rt.resolver||!or?{isValid:Pr}:{},errors:nt.errors,isValidating:!1}),xr.shouldFocus&&!Or&&iterateFieldsByAction(it,Ct,or?rr:lt.mount),Or},Dt=or=>{const xr={...st,...ot.mount?at:{}};return isUndefined(or)?xr:isString(or)?get(xr,or):or.map(Pr=>get(xr,Pr))},tr=(or,xr)=>({invalid:!!get((xr||nt).errors,or),isDirty:!!get((xr||nt).dirtyFields,or),isTouched:!!get((xr||nt).touchedFields,or),error:get((xr||nt).errors,or)}),pr=or=>{or&&convertToArrayPayload(or).forEach(xr=>unset(nt.errors,xr)),gt.state.next({errors:or?nt.errors:{}})},Kt=(or,xr,Pr)=>{const Or=(get(it,or,{_f:{}})._f||{}).ref;set(nt.errors,or,{...xr,ref:Or}),gt.state.next({name:or,errors:nt.errors,isValid:!1}),Pr&&Pr.shouldFocus&&Or&&Or.focus&&Or.focus()},Qt=(or,xr)=>isFunction(or)?gt.values.subscribe({next:Pr=>or(Et(void 0,xr),Pr)}):Et(or,xr,!0),Zt=(or,xr={})=>{for(const Pr of or?convertToArrayPayload(or):lt.mount)lt.mount.delete(Pr),lt.array.delete(Pr),xr.keepValue||(unset(it,Pr),unset(at,Pr)),!xr.keepError&&unset(nt.errors,Pr),!xr.keepDirty&&unset(nt.dirtyFields,Pr),!xr.keepTouched&&unset(nt.touchedFields,Pr),!rt.shouldUnregister&&!xr.keepDefaultValue&&unset(st,Pr);gt.values.next({values:{...at}}),gt.state.next({...nt,...xr.keepDirty?{isDirty:ht()}:{}}),!xr.keepIsValid&&wt()},ur=({disabled:or,name:xr,field:Pr,fields:Or,value:rr})=>{if(isBoolean(or)){const gr=or?void 0:isUndefined(rr)?getFieldValue(Pr?Pr._f:get(Or,xr)._f):rr;set(at,xr,gr),Ht(xr,gr,!1,!1,!0)}},_r=(or,xr={})=>{let Pr=get(it,or);const Or=isBoolean(xr.disabled);return set(it,or,{...Pr||{},_f:{...Pr&&Pr._f?Pr._f:{ref:{name:or}},name:or,mount:!0,...xr}}),lt.mount.add(or),Pr?ur({field:Pr,disabled:xr.disabled,name:or,value:xr.value}):zt(or,!0,xr.value),{...Or?{disabled:xr.disabled}:{},...rt.progressive?{required:!!xr.required,min:getRuleValue(xr.min),max:getRuleValue(xr.max),minLength:getRuleValue(xr.minLength),maxLength:getRuleValue(xr.maxLength),pattern:getRuleValue(xr.pattern)}:{},name:or,onChange:It,onBlur:It,ref:rr=>{if(rr){_r(or,xr),Pr=get(it,or);const gr=isUndefined(rr.value)&&rr.querySelectorAll&&rr.querySelectorAll("input,select,textarea")[0]||rr,Ir=isRadioOrCheckbox(gr),Yt=Pr._f.refs||[];if(Ir?Yt.find(Ut=>Ut===gr):gr===Pr._f.ref)return;set(it,or,{_f:{...Pr._f,...Ir?{refs:[...Yt.filter(live),gr,...Array.isArray(get(st,or))?[{}]:[]],ref:{type:gr.type,name:or}}:{ref:gr}}}),zt(or,!1,void 0,gr)}else Pr=get(it,or,{}),Pr._f&&(Pr._f.mount=!1),(rt.shouldUnregister||xr.shouldUnregister)&&!(isNameInFieldArray(lt.array,or)&&ot.action)&<.unMount.add(or)}}},er=()=>rt.shouldFocusError&&iterateFieldsByAction(it,Ct,lt.mount),Jt=or=>{isBoolean(or)&&(gt.state.next({disabled:or}),iterateFieldsByAction(it,(xr,Pr)=>{let Or=or;const rr=get(it,Pr);rr&&isBoolean(rr._f.disabled)&&(Or||(Or=rr._f.disabled)),xr.disabled=Or},0,!1))},Ar=(or,xr)=>async Pr=>{Pr&&(Pr.preventDefault&&Pr.preventDefault(),Pr.persist&&Pr.persist());let Or=cloneObject(at);if(gt.state.next({isSubmitting:!0}),rt.resolver){const{errors:rr,values:gr}=await lr();nt.errors=rr,Or=gr}else await Ot(it);unset(nt.errors,"root"),isEmptyObject(nt.errors)?(gt.state.next({errors:{}}),await or(Or,Pr)):(xr&&await xr({...nt.errors},Pr),er(),setTimeout(er)),gt.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(nt.errors),submitCount:nt.submitCount+1,errors:nt.errors})},Er=(or,xr={})=>{get(it,or)&&(isUndefined(xr.defaultValue)?Pt(or,get(st,or)):(Pt(or,xr.defaultValue),set(st,or,xr.defaultValue)),xr.keepTouched||unset(nt.touchedFields,or),xr.keepDirty||(unset(nt.dirtyFields,or),nt.isDirty=xr.defaultValue?ht(or,get(st,or)):ht()),xr.keepError||(unset(nt.errors,or),bt.isValid&&wt()),gt.state.next({...nt}))},Dr=(or,xr={})=>{const Pr=or?cloneObject(or):st,Or=cloneObject(Pr),rr=or&&!isEmptyObject(or)?Or:st;if(xr.keepDefaultValues||(st=Pr),!xr.keepValues){if(xr.keepDirtyValues||kt)for(const gr of lt.mount)get(nt.dirtyFields,gr)?set(rr,gr,get(at,gr)):Pt(gr,get(rr,gr));else{if(isWeb&&isUndefined(or))for(const gr of lt.mount){const Ir=get(it,gr);if(Ir&&Ir._f){const Yt=Array.isArray(Ir._f.refs)?Ir._f.refs[0]:Ir._f.ref;if(isHTMLElement(Yt)){const Ut=Yt.closest("form");if(Ut){Ut.reset();break}}}}it={}}at=et.shouldUnregister?xr.keepDefaultValues?cloneObject(st):{}:cloneObject(rr),gt.array.next({values:{...rr}}),gt.values.next({values:{...rr}})}lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!ot.mount&&tt(),ot.mount=!bt.isValid||!!xr.keepIsValid,ot.watch=!!et.shouldUnregister,gt.state.next({submitCount:xr.keepSubmitCount?nt.submitCount:0,isDirty:xr.keepDirty?nt.isDirty:!!(xr.keepDefaultValues&&!deepEqual(or,st)),isSubmitted:xr.keepIsSubmitted?nt.isSubmitted:!1,dirtyFields:xr.keepDirtyValues?nt.dirtyFields:xr.keepDefaultValues&&or?getDirtyFields(st,or):{},touchedFields:xr.keepTouched?nt.touchedFields:{},errors:xr.keepErrors?nt.errors:{},isSubmitSuccessful:xr.keepIsSubmitSuccessful?nt.isSubmitSuccessful:!1,isSubmitting:!1})},Xr=(or,xr)=>Dr(isFunction(or)?or(at):or,xr);return{control:{register:_r,unregister:Zt,getFieldState:tr,handleSubmit:Ar,setError:Kt,_executeSchema:lr,_getWatch:Et,_getDirty:ht,_updateValid:wt,_removeUnmounted:Mt,_updateFieldArray:Bt,_updateDisabledField:ur,_getFieldArray:Tt,_reset:Dr,_resetDefaultValues:()=>isFunction(rt.defaultValues)&&rt.defaultValues().then(or=>{Xr(or,rt.resetOptions),gt.state.next({isLoading:!1})}),_updateFormState:or=>{nt={...nt,...or}},_disableForm:Jt,_subjects:gt,_proxyFormState:bt,_setErrors:Lt,get _fields(){return it},get _formValues(){return at},get _state(){return ot},set _state(or){ot=or},get _defaultValues(){return st},get _names(){return lt},set _names(or){lt=or},get _formState(){return nt},set _formState(or){nt=or},get _options(){return rt},set _options(or){rt={...rt,...or}}},trigger:xt,register:_r,handleSubmit:Ar,watch:Qt,setValue:Pt,getValues:Dt,reset:Xr,resetField:Er,clearErrors:pr,unregister:Zt,setError:Kt,setFocus:(or,xr={})=>{const Pr=get(it,or),Or=Pr&&Pr._f;if(Or){const rr=Or.refs?Or.refs[0]:Or.ref;rr.focus&&(rr.focus(),xr.shouldSelect&&rr.select())}},getFieldState:tr}}function useForm(et={}){const tt=React.useRef(),rt=React.useRef(),[nt,it]=React.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(et.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:et.errors||{},disabled:!1,defaultValues:isFunction(et.defaultValues)?void 0:et.defaultValues});tt.current||(tt.current={...createFormControl(et,()=>it(at=>({...at}))),formState:nt});const st=tt.current.control;return st._options=et,useSubscribe({subject:st._subjects.state,next:at=>{shouldRenderFormState(at,st._proxyFormState,st._updateFormState,!0)&&it({...st._formState})}}),React.useEffect(()=>st._disableForm(et.disabled),[st,et.disabled]),React.useEffect(()=>{if(st._proxyFormState.isDirty){const at=st._getDirty();at!==nt.isDirty&&st._subjects.state.next({isDirty:at})}},[st,nt.isDirty]),React.useEffect(()=>{et.values&&!deepEqual(et.values,rt.current)?(st._reset(et.values,st._options.resetOptions),rt.current=et.values,it(at=>({...at}))):st._resetDefaultValues()},[et.values,st]),React.useEffect(()=>{et.errors&&st._setErrors(et.errors)},[et.errors,st]),React.useEffect(()=>{st._state.mount||(st._updateValid(),st._state.mount=!0),st._state.watch&&(st._state.watch=!1,st._subjects.state.next({...st._formState})),st._removeUnmounted()}),tt.current.formState=getProxyFormState(nt,st),tt.current}var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),__assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(et){for(var tt,rt=1,nt=arguments.length;rttypeof et=="number"&&!isNaN(et),d$1=et=>typeof et=="string",u$1=et=>typeof et=="function",p$1=et=>d$1(et)||u$1(et)?et:null,m$1=et=>reactExports.isValidElement(et)||d$1(et)||u$1(et)||c$1(et);function f$1(et,tt,rt){rt===void 0&&(rt=300);const{scrollHeight:nt,style:it}=et;requestAnimationFrame(()=>{it.minHeight="initial",it.height=nt+"px",it.transition=`all ${rt}ms`,requestAnimationFrame(()=>{it.height="0",it.padding="0",it.margin="0",setTimeout(tt,rt)})})}function g$1(et){let{enter:tt,exit:rt,appendPosition:nt=!1,collapse:it=!0,collapseDuration:st=300}=et;return function(at){let{children:ot,position:lt,preventExitTransition:ut,done:dt,nodeRef:bt,isIn:gt,playToast:kt}=at;const pt=nt?`${tt}--${lt}`:tt,yt=nt?`${rt}--${lt}`:rt,$t=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const mt=bt.current,wt=pt.split(" "),St=Bt=>{Bt.target===bt.current&&(kt(),mt.removeEventListener("animationend",St),mt.removeEventListener("animationcancel",St),$t.current===0&&Bt.type!=="animationcancel"&&mt.classList.remove(...wt))};mt.classList.add(...wt),mt.addEventListener("animationend",St),mt.addEventListener("animationcancel",St)},[]),reactExports.useEffect(()=>{const mt=bt.current,wt=()=>{mt.removeEventListener("animationend",wt),it?f$1(mt,dt,st):dt()};gt||(ut?wt():($t.current=1,mt.className+=` ${yt}`,mt.addEventListener("animationend",wt)))},[gt]),React.createElement(React.Fragment,null,ot)}}function y(et,tt){return et!=null?{content:et.content,containerId:et.props.containerId,id:et.props.toastId,theme:et.props.theme,type:et.props.type,data:et.props.data||{},isLoading:et.props.isLoading,icon:et.props.icon,status:tt}:{}}const v$2=new Map;let h$2=[];const T=new Set,E=et=>T.forEach(tt=>tt(et)),b$1=()=>v$2.size>0;function I(et,tt){var rt;if(tt)return!((rt=v$2.get(tt))==null||!rt.isToastActive(et));let nt=!1;return v$2.forEach(it=>{it.isToastActive(et)&&(nt=!0)}),nt}function _(et,tt){m$1(et)&&(b$1()||h$2.push({content:et,options:tt}),v$2.forEach(rt=>{rt.buildToast(et,tt)}))}function C(et,tt){v$2.forEach(rt=>{tt!=null&&tt!=null&&tt.containerId?(tt==null?void 0:tt.containerId)===rt.id&&rt.toggle(et,tt==null?void 0:tt.id):rt.toggle(et,tt==null?void 0:tt.id)})}function L(et){const{subscribe:tt,getSnapshot:rt,setProps:nt}=reactExports.useRef(function(st){const at=st.containerId||1;return{subscribe(ot){const lt=function(dt,bt,gt){let kt=1,pt=0,yt=[],$t=[],mt=[],wt=bt;const St=new Map,Bt=new Set,Ft=()=>{mt=Array.from(St.values()),Bt.forEach(Ht=>Ht())},Lt=Ht=>{$t=Ht==null?[]:$t.filter(Wt=>Wt!==Ht),Ft()},zt=Ht=>{const{toastId:Wt,onOpen:lr,updateId:qt,children:Ot}=Ht.props,Mt=qt==null;Ht.staleId&&St.delete(Ht.staleId),St.set(Wt,Ht),$t=[...$t,Ht.props.toastId].filter(ht=>ht!==Ht.staleId),Ft(),gt(y(Ht,Mt?"added":"updated")),Mt&&u$1(lr)&&lr(reactExports.isValidElement(Ot)&&Ot.props)};return{id:dt,props:wt,observe:Ht=>(Bt.add(Ht),()=>Bt.delete(Ht)),toggle:(Ht,Wt)=>{St.forEach(lr=>{Wt!=null&&Wt!==lr.props.toastId||u$1(lr.toggle)&&lr.toggle(Ht)})},removeToast:Lt,toasts:St,clearQueue:()=>{pt-=yt.length,yt=[]},buildToast:(Ht,Wt)=>{if((xt=>{let{containerId:Dt,toastId:tr,updateId:pr}=xt;const Kt=Dt?Dt!==dt:dt!==1,Qt=St.has(tr)&&pr==null;return Kt||Qt})(Wt))return;const{toastId:lr,updateId:qt,data:Ot,staleId:Mt,delay:ht}=Wt,Et=()=>{Lt(lr)},Tt=qt==null;Tt&&pt++;const Rt={...wt,style:wt.toastStyle,key:kt++,...Object.fromEntries(Object.entries(Wt).filter(xt=>{let[Dt,tr]=xt;return tr!=null})),toastId:lr,updateId:qt,data:Ot,closeToast:Et,isIn:!1,className:p$1(Wt.className||wt.toastClassName),bodyClassName:p$1(Wt.bodyClassName||wt.bodyClassName),progressClassName:p$1(Wt.progressClassName||wt.progressClassName),autoClose:!Wt.isLoading&&(At=Wt.autoClose,Pt=wt.autoClose,At===!1||c$1(At)&&At>0?At:Pt),deleteToast(){const xt=St.get(lr),{onClose:Dt,children:tr}=xt.props;u$1(Dt)&&Dt(reactExports.isValidElement(tr)&&tr.props),gt(y(xt,"removed")),St.delete(lr),pt--,pt<0&&(pt=0),yt.length>0?zt(yt.shift()):Ft()}};var At,Pt;Rt.closeButton=wt.closeButton,Wt.closeButton===!1||m$1(Wt.closeButton)?Rt.closeButton=Wt.closeButton:Wt.closeButton===!0&&(Rt.closeButton=!m$1(wt.closeButton)||wt.closeButton);let It=Ht;reactExports.isValidElement(Ht)&&!d$1(Ht.type)?It=reactExports.cloneElement(Ht,{closeToast:Et,toastProps:Rt,data:Ot}):u$1(Ht)&&(It=Ht({closeToast:Et,toastProps:Rt,data:Ot}));const Ct={content:It,props:Rt,staleId:Mt};wt.limit&&wt.limit>0&&pt>wt.limit&&Tt?yt.push(Ct):c$1(ht)?setTimeout(()=>{zt(Ct)},ht):zt(Ct)},setProps(Ht){wt=Ht},setToggle:(Ht,Wt)=>{St.get(Ht).toggle=Wt},isToastActive:Ht=>$t.some(Wt=>Wt===Ht),getSnapshot:()=>wt.newestOnTop?mt.reverse():mt}}(at,st,E);v$2.set(at,lt);const ut=lt.observe(ot);return h$2.forEach(dt=>_(dt.content,dt.options)),h$2=[],()=>{ut(),v$2.delete(at)}},setProps(ot){var lt;(lt=v$2.get(at))==null||lt.setProps(ot)},getSnapshot(){var ot;return(ot=v$2.get(at))==null?void 0:ot.getSnapshot()}}}(et)).current;nt(et);const it=reactExports.useSyncExternalStore(tt,rt,rt);return{getToastToRender:function(st){if(!it)return[];const at=new Map;return it.forEach(ot=>{const{position:lt}=ot.props;at.has(lt)||at.set(lt,[]),at.get(lt).push(ot)}),Array.from(at,ot=>st(ot[0],ot[1]))},isToastActive:I,count:it==null?void 0:it.length}}function N(et){const[tt,rt]=reactExports.useState(!1),[nt,it]=reactExports.useState(!1),st=reactExports.useRef(null),at=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:ot,pauseOnHover:lt,closeToast:ut,onClick:dt,closeOnClick:bt}=et;var gt,kt;function pt(){rt(!0)}function yt(){rt(!1)}function $t(St){const Bt=st.current;at.canDrag&&Bt&&(at.didMove=!0,tt&&yt(),at.delta=et.draggableDirection==="x"?St.clientX-at.start:St.clientY-at.start,at.start!==St.clientX&&(at.canCloseOnClick=!1),Bt.style.transform=`translate3d(${et.draggableDirection==="x"?`${at.delta}px, var(--y)`:`0, calc(${at.delta}px + var(--y))`},0)`,Bt.style.opacity=""+(1-Math.abs(at.delta/at.removalDistance)))}function mt(){document.removeEventListener("pointermove",$t),document.removeEventListener("pointerup",mt);const St=st.current;if(at.canDrag&&at.didMove&&St){if(at.canDrag=!1,Math.abs(at.delta)>at.removalDistance)return it(!0),et.closeToast(),void et.collapseAll();St.style.transition="transform 0.2s, opacity 0.2s",St.style.removeProperty("transform"),St.style.removeProperty("opacity")}}(kt=v$2.get((gt={id:et.toastId,containerId:et.containerId,fn:rt}).containerId||1))==null||kt.setToggle(gt.id,gt.fn),reactExports.useEffect(()=>{if(et.pauseOnFocusLoss)return document.hasFocus()||yt(),window.addEventListener("focus",pt),window.addEventListener("blur",yt),()=>{window.removeEventListener("focus",pt),window.removeEventListener("blur",yt)}},[et.pauseOnFocusLoss]);const wt={onPointerDown:function(St){if(et.draggable===!0||et.draggable===St.pointerType){at.didMove=!1,document.addEventListener("pointermove",$t),document.addEventListener("pointerup",mt);const Bt=st.current;at.canCloseOnClick=!0,at.canDrag=!0,Bt.style.transition="none",et.draggableDirection==="x"?(at.start=St.clientX,at.removalDistance=Bt.offsetWidth*(et.draggablePercent/100)):(at.start=St.clientY,at.removalDistance=Bt.offsetHeight*(et.draggablePercent===80?1.5*et.draggablePercent:et.draggablePercent)/100)}},onPointerUp:function(St){const{top:Bt,bottom:Ft,left:Lt,right:zt}=st.current.getBoundingClientRect();St.nativeEvent.type!=="touchend"&&et.pauseOnHover&&St.clientX>=Lt&&St.clientX<=zt&&St.clientY>=Bt&&St.clientY<=Ft?yt():pt()}};return ot&<&&(wt.onMouseEnter=yt,et.stacked||(wt.onMouseLeave=pt)),bt&&(wt.onClick=St=>{dt&&dt(St),at.canCloseOnClick&&ut()}),{playToast:pt,pauseToast:yt,isRunning:tt,preventExitTransition:nt,toastRef:st,eventHandlers:wt}}function $(et){let{delay:tt,isRunning:rt,closeToast:nt,type:it="default",hide:st,className:at,style:ot,controlledProgress:lt,progress:ut,rtl:dt,isIn:bt,theme:gt}=et;const kt=st||lt&&ut===0,pt={...ot,animationDuration:`${tt}ms`,animationPlayState:rt?"running":"paused"};lt&&(pt.transform=`scaleX(${ut})`);const yt=clsx$1("Toastify__progress-bar",lt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${gt}`,`Toastify__progress-bar--${it}`,{"Toastify__progress-bar--rtl":dt}),$t=u$1(at)?at({rtl:dt,type:it,defaultClassName:yt}):clsx$1(yt,at),mt={[lt&&ut>=1?"onTransitionEnd":"onAnimationEnd"]:lt&&ut<1?null:()=>{bt&&nt()}};return React.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":kt},React.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${gt} Toastify__progress-bar--${it}`}),React.createElement("div",{role:"progressbar","aria-hidden":kt?"true":"false","aria-label":"notification timer",className:$t,style:pt,...mt}))}let w$1=1;const k$1=()=>""+w$1++;function P$1(et){return et&&(d$1(et.toastId)||c$1(et.toastId))?et.toastId:k$1()}function M(et,tt){return _(et,tt),tt.toastId}function x(et,tt){return{...tt,type:tt&&tt.type||et,toastId:P$1(tt)}}function A(et){return(tt,rt)=>M(tt,x(et,rt))}function B(et,tt){return M(et,x("default",tt))}B.loading=(et,tt)=>M(et,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...tt})),B.promise=function(et,tt,rt){let nt,{pending:it,error:st,success:at}=tt;it&&(nt=d$1(it)?B.loading(it,rt):B.loading(it.render,{...rt,...it}));const ot={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},lt=(dt,bt,gt)=>{if(bt==null)return void B.dismiss(nt);const kt={type:dt,...ot,...rt,data:gt},pt=d$1(bt)?{render:bt}:bt;return nt?B.update(nt,{...kt,...pt}):B(pt.render,{...kt,...pt}),gt},ut=u$1(et)?et():et;return ut.then(dt=>lt("success",at,dt)).catch(dt=>lt("error",st,dt)),ut},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(et,tt)=>M(et,x("default",{theme:"dark",...tt})),B.dismiss=function(et){(function(tt){var rt;if(b$1()){if(tt==null||d$1(rt=tt)||c$1(rt))v$2.forEach(it=>{it.removeToast(tt)});else if(tt&&("containerId"in tt||"id"in tt)){var nt;(nt=v$2.get(tt.containerId))!=null&&nt.removeToast(tt.id)||v$2.forEach(it=>{it.removeToast(tt.id)})}}else h$2=h$2.filter(it=>tt!=null&&it.options.toastId!==tt)})(et)},B.clearWaitingQueue=function(et){et===void 0&&(et={}),v$2.forEach(tt=>{!tt.props.limit||et.containerId&&tt.id!==et.containerId||tt.clearQueue()})},B.isActive=I,B.update=function(et,tt){tt===void 0&&(tt={});const rt=((nt,it)=>{var st;let{containerId:at}=it;return(st=v$2.get(at||1))==null?void 0:st.toasts.get(nt)})(et,tt);if(rt){const{props:nt,content:it}=rt,st={delay:100,...nt,...tt,toastId:tt.toastId||et,updateId:k$1()};st.toastId!==et&&(st.staleId=et);const at=st.render||it;delete st.render,M(at,st)}},B.done=et=>{B.update(et,{progress:1})},B.onChange=function(et){return T.add(et),()=>{T.delete(et)}},B.play=et=>C(!0,et),B.pause=et=>C(!1,et);const O=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D=et=>{let{theme:tt,type:rt,isLoading:nt,...it}=et;return React.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:tt==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...it})},z={info:function(et){return React.createElement(D,{...et},React.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(et){return React.createElement(D,{...et},React.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(et){return React.createElement(D,{...et},React.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(et){return React.createElement(D,{...et},React.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 React.createElement("div",{className:"Toastify__spinner"})}},R=et=>{const{isRunning:tt,preventExitTransition:rt,toastRef:nt,eventHandlers:it,playToast:st}=N(et),{closeButton:at,children:ot,autoClose:lt,onClick:ut,type:dt,hideProgressBar:bt,closeToast:gt,transition:kt,position:pt,className:yt,style:$t,bodyClassName:mt,bodyStyle:wt,progressClassName:St,progressStyle:Bt,updateId:Ft,role:Lt,progress:zt,rtl:Ht,toastId:Wt,deleteToast:lr,isIn:qt,isLoading:Ot,closeOnClick:Mt,theme:ht}=et,Et=clsx$1("Toastify__toast",`Toastify__toast-theme--${ht}`,`Toastify__toast--${dt}`,{"Toastify__toast--rtl":Ht},{"Toastify__toast--close-on-click":Mt}),Tt=u$1(yt)?yt({rtl:Ht,position:pt,type:dt,defaultClassName:Et}):clsx$1(Et,yt),Rt=function(Ct){let{theme:xt,type:Dt,isLoading:tr,icon:pr}=Ct,Kt=null;const Qt={theme:xt,type:Dt};return pr===!1||(u$1(pr)?Kt=pr({...Qt,isLoading:tr}):reactExports.isValidElement(pr)?Kt=reactExports.cloneElement(pr,Qt):tr?Kt=z.spinner():(Zt=>Zt in z)(Dt)&&(Kt=z[Dt](Qt))),Kt}(et),At=!!zt||!lt,Pt={closeToast:gt,type:dt,theme:ht};let It=null;return at===!1||(It=u$1(at)?at(Pt):reactExports.isValidElement(at)?reactExports.cloneElement(at,Pt):function(Ct){let{closeToast:xt,theme:Dt,ariaLabel:tr="close"}=Ct;return React.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Dt}`,type:"button",onClick:pr=>{pr.stopPropagation(),xt(pr)},"aria-label":tr},React.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React.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"})))}(Pt)),React.createElement(kt,{isIn:qt,done:lr,position:pt,preventExitTransition:rt,nodeRef:nt,playToast:st},React.createElement("div",{id:Wt,onClick:ut,"data-in":qt,className:Tt,...it,style:$t,ref:nt},React.createElement("div",{...qt&&{role:Lt},className:u$1(mt)?mt({type:dt}):clsx$1("Toastify__toast-body",mt),style:wt},Rt!=null&&React.createElement("div",{className:clsx$1("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ot})},Rt),React.createElement("div",null,ot)),It,React.createElement($,{...Ft&&!At?{key:`pb-${Ft}`}:{},rtl:Ht,theme:ht,delay:lt,isRunning:tt,isIn:qt,closeToast:gt,hide:bt,type:dt,style:Bt,className:St,controlledProgress:At,progress:zt||0})))},S=function(et,tt){return tt===void 0&&(tt=!1),{enter:`Toastify--animate Toastify__${et}-enter`,exit:`Toastify--animate Toastify__${et}-exit`,appendPosition:tt}},H=g$1(S("bounce",!0));g$1(S("slide",!0));g$1(S("zoom"));g$1(S("flip"));const q={position:"top-right",transition:H,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q(et){let tt={...q,...et};const rt=et.stacked,[nt,it]=reactExports.useState(!0),st=reactExports.useRef(null),{getToastToRender:at,isToastActive:ot,count:lt}=L(tt),{className:ut,style:dt,rtl:bt,containerId:gt}=tt;function kt(yt){const $t=clsx$1("Toastify__toast-container",`Toastify__toast-container--${yt}`,{"Toastify__toast-container--rtl":bt});return u$1(ut)?ut({position:yt,rtl:bt,defaultClassName:$t}):clsx$1($t,p$1(ut))}function pt(){rt&&(it(!0),B.play())}return O(()=>{if(rt){var yt;const $t=st.current.querySelectorAll('[data-in="true"]'),mt=12,wt=(yt=tt.position)==null?void 0:yt.includes("top");let St=0,Bt=0;Array.from($t).reverse().forEach((Ft,Lt)=>{const zt=Ft;zt.classList.add("Toastify__toast--stacked"),Lt>0&&(zt.dataset.collapsed=`${nt}`),zt.dataset.pos||(zt.dataset.pos=wt?"top":"bot");const Ht=St*(nt?.2:1)+(nt?0:mt*Lt);zt.style.setProperty("--y",`${wt?Ht:-1*Ht}px`),zt.style.setProperty("--g",`${mt}`),zt.style.setProperty("--s",""+(1-(nt?Bt:0))),St+=zt.offsetHeight,Bt+=.025})}},[nt,lt,rt]),React.createElement("div",{ref:st,className:"Toastify",id:gt,onMouseEnter:()=>{rt&&(it(!1),B.pause())},onMouseLeave:pt},at((yt,$t)=>{const mt=$t.length?{...dt}:{...dt,pointerEvents:"none"};return React.createElement("div",{className:kt(yt),style:mt,key:`container-${yt}`},$t.map(wt=>{let{content:St,props:Bt}=wt;return React.createElement(R,{...Bt,stacked:rt,collapseAll:pt,isIn:ot(Bt.toastId,Bt.containerId),style:Bt.style,key:`toast-${Bt.key}`},St)}))}))}const ReactToastify="",StyledDiv=styled$3.div` +`;var isCheckBoxInput=et=>et.type==="checkbox",isDateObject=et=>et instanceof Date,isNullOrUndefined=et=>et==null;const isObjectType=et=>typeof et=="object";var isObject=et=>!isNullOrUndefined(et)&&!Array.isArray(et)&&isObjectType(et)&&!isDateObject(et),getEventValue=et=>isObject(et)&&et.target?isCheckBoxInput(et.target)?et.target.checked:et.target.value:et,getNodeParentName=et=>et.substring(0,et.search(/\.\d+(\.|$)/))||et,isNameInFieldArray=(et,tt)=>et.has(getNodeParentName(tt)),isPlainObject=et=>{const tt=et.constructor&&et.constructor.prototype;return isObject(tt)&&tt.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(et){let tt;const rt=Array.isArray(et);if(et instanceof Date)tt=new Date(et);else if(et instanceof Set)tt=new Set(et);else if(!(isWeb&&(et instanceof Blob||et instanceof FileList))&&(rt||isObject(et)))if(tt=rt?[]:{},!rt&&!isPlainObject(et))tt=et;else for(const nt in et)et.hasOwnProperty(nt)&&(tt[nt]=cloneObject(et[nt]));else return et;return tt}var compact=et=>Array.isArray(et)?et.filter(Boolean):[],isUndefined=et=>et===void 0,get=(et,tt,rt)=>{if(!tt||!isObject(et))return rt;const nt=compact(tt.split(/[,[\].]+?/)).reduce((it,st)=>isNullOrUndefined(it)?it:it[st],et);return isUndefined(nt)||nt===et?isUndefined(et[tt])?rt:et[tt]:nt},isBoolean=et=>typeof et=="boolean";const EVENTS={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},VALIDATION_MODE={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},INPUT_VALIDATION_RULES={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},HookFormContext=React.createContext(null),useFormContext=()=>React.useContext(HookFormContext),FormProvider=et=>{const{children:tt,...rt}=et;return React.createElement(HookFormContext.Provider,{value:rt},tt)};var getProxyFormState=(et,tt,rt,nt=!0)=>{const it={defaultValues:tt._defaultValues};for(const st in et)Object.defineProperty(it,st,{get:()=>{const at=st;return tt._proxyFormState[at]!==VALIDATION_MODE.all&&(tt._proxyFormState[at]=!nt||VALIDATION_MODE.all),rt&&(rt[at]=!0),et[at]}});return it},isEmptyObject=et=>isObject(et)&&!Object.keys(et).length,shouldRenderFormState=(et,tt,rt,nt)=>{rt(et);const{name:it,...st}=et;return isEmptyObject(st)||Object.keys(st).length>=Object.keys(tt).length||Object.keys(st).find(at=>tt[at]===(!nt||VALIDATION_MODE.all))},convertToArrayPayload=et=>Array.isArray(et)?et:[et],shouldSubscribeByName=(et,tt,rt)=>!et||!tt||et===tt||convertToArrayPayload(et).some(nt=>nt&&(rt?nt===tt:nt.startsWith(tt)||tt.startsWith(nt)));function useSubscribe(et){const tt=React.useRef(et);tt.current=et,React.useEffect(()=>{const rt=!et.disabled&&tt.current.subject&&tt.current.subject.subscribe({next:tt.current.next});return()=>{rt&&rt.unsubscribe()}},[et.disabled])}function useFormState(et){const tt=useFormContext(),{control:rt=tt.control,disabled:nt,name:it,exact:st}=et||{},[at,ot]=React.useState(rt._formState),lt=React.useRef(!0),ut=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),dt=React.useRef(it);return dt.current=it,useSubscribe({disabled:nt,next:bt=>lt.current&&shouldSubscribeByName(dt.current,bt.name,st)&&shouldRenderFormState(bt,ut.current,rt._updateFormState)&&ot({...rt._formState,...bt}),subject:rt._subjects.state}),React.useEffect(()=>(lt.current=!0,ut.current.isValid&&rt._updateValid(!0),()=>{lt.current=!1}),[rt]),getProxyFormState(at,rt,ut.current,!1)}var isString=et=>typeof et=="string",generateWatchOutput=(et,tt,rt,nt,it)=>isString(et)?(nt&&tt.watch.add(et),get(rt,et,it)):Array.isArray(et)?et.map(st=>(nt&&tt.watch.add(st),get(rt,st))):(nt&&(tt.watchAll=!0),rt);function useWatch(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,defaultValue:it,disabled:st,exact:at}=et||{},ot=React.useRef(nt);ot.current=nt,useSubscribe({disabled:st,subject:rt._subjects.values,next:dt=>{shouldSubscribeByName(ot.current,dt.name,at)&&ut(cloneObject(generateWatchOutput(ot.current,rt._names,dt.values||rt._formValues,!1,it)))}});const[lt,ut]=React.useState(rt._getWatch(nt,it));return React.useEffect(()=>rt._removeUnmounted()),lt}var isKey=et=>/^\w*$/.test(et),stringToPath=et=>compact(et.replace(/["|']|\]/g,"").split(/\.|\[/)),set=(et,tt,rt)=>{let nt=-1;const it=isKey(tt)?[tt]:stringToPath(tt),st=it.length,at=st-1;for(;++nt{const dt=it._options.shouldUnregister||st,bt=(gt,kt)=>{const pt=get(it._fields,gt);pt&&(pt._f.mount=kt)};if(bt(rt,!0),dt){const gt=cloneObject(get(it._options.defaultValues,rt));set(it._defaultValues,rt,gt),isUndefined(get(it._formValues,rt))&&set(it._formValues,rt,gt)}return()=>{(at?dt&&!it._state.action:dt)?it.unregister(rt):bt(rt,!1)}},[rt,it,at,st]),React.useEffect(()=>{get(it._fields,rt)&&it._updateDisabledField({disabled:nt,fields:it._fields,name:rt,value:get(it._fields,rt)._f.value})},[nt,rt,it]),{field:{name:rt,value:ot,...isBoolean(nt)||isBoolean(lt.disabled)?{disabled:lt.disabled||nt}:{},onChange:React.useCallback(dt=>ut.current.onChange({target:{value:getEventValue(dt),name:rt},type:EVENTS.CHANGE}),[rt]),onBlur:React.useCallback(()=>ut.current.onBlur({target:{value:get(it._formValues,rt),name:rt},type:EVENTS.BLUR}),[rt,it]),ref:dt=>{const bt=get(it._fields,rt);bt&&dt&&(bt._f.ref={focus:()=>dt.focus(),select:()=>dt.select(),setCustomValidity:gt=>dt.setCustomValidity(gt),reportValidity:()=>dt.reportValidity()})}},formState:lt,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(lt.errors,rt)},isDirty:{enumerable:!0,get:()=>!!get(lt.dirtyFields,rt)},isTouched:{enumerable:!0,get:()=>!!get(lt.touchedFields,rt)},error:{enumerable:!0,get:()=>get(lt.errors,rt)}})}}const Controller=et=>et.render(useController(et));var appendErrors=(et,tt,rt,nt,it)=>tt?{...rt[et],types:{...rt[et]&&rt[et].types?rt[et].types:{},[nt]:it||!0}}:{},generateId=()=>{const et=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,tt=>{const rt=(Math.random()*16+et)%16|0;return(tt=="x"?rt:rt&3|8).toString(16)})},getFocusFieldName=(et,tt,rt={})=>rt.shouldFocus||isUndefined(rt.shouldFocus)?rt.focusName||`${et}.${isUndefined(rt.focusIndex)?tt:rt.focusIndex}.`:"",getValidationModes=et=>({isOnSubmit:!et||et===VALIDATION_MODE.onSubmit,isOnBlur:et===VALIDATION_MODE.onBlur,isOnChange:et===VALIDATION_MODE.onChange,isOnAll:et===VALIDATION_MODE.all,isOnTouch:et===VALIDATION_MODE.onTouched}),isWatched=(et,tt,rt)=>!rt&&(tt.watchAll||tt.watch.has(et)||[...tt.watch].some(nt=>et.startsWith(nt)&&/^\.\w+/.test(et.slice(nt.length))));const iterateFieldsByAction=(et,tt,rt,nt)=>{for(const it of rt||Object.keys(et)){const st=get(et,it);if(st){const{_f:at,...ot}=st;if(at){if(at.refs&&at.refs[0]&&tt(at.refs[0],it)&&!nt)break;if(at.ref&&tt(at.ref,at.name)&&!nt)break;iterateFieldsByAction(ot,tt)}else isObject(ot)&&iterateFieldsByAction(ot,tt)}}};var updateFieldArrayRootError=(et,tt,rt)=>{const nt=compact(get(et,rt));return set(nt,"root",tt[rt]),set(et,rt,nt),et},isFileInput=et=>et.type==="file",isFunction=et=>typeof et=="function",isHTMLElement=et=>{if(!isWeb)return!1;const tt=et?et.ownerDocument:0;return et instanceof(tt&&tt.defaultView?tt.defaultView.HTMLElement:HTMLElement)},isMessage=et=>isString(et),isRadioInput=et=>et.type==="radio",isRegex=et=>et instanceof RegExp;const defaultResult={value:!1,isValid:!1},validResult={value:!0,isValid:!0};var getCheckboxValue=et=>{if(Array.isArray(et)){if(et.length>1){const tt=et.filter(rt=>rt&&rt.checked&&!rt.disabled).map(rt=>rt.value);return{value:tt,isValid:!!tt.length}}return et[0].checked&&!et[0].disabled?et[0].attributes&&!isUndefined(et[0].attributes.value)?isUndefined(et[0].value)||et[0].value===""?validResult:{value:et[0].value,isValid:!0}:validResult:defaultResult}return defaultResult};const defaultReturn={isValid:!1,value:null};var getRadioValue=et=>Array.isArray(et)?et.reduce((tt,rt)=>rt&&rt.checked&&!rt.disabled?{isValid:!0,value:rt.value}:tt,defaultReturn):defaultReturn;function getValidateError(et,tt,rt="validate"){if(isMessage(et)||Array.isArray(et)&&et.every(isMessage)||isBoolean(et)&&!et)return{type:rt,message:isMessage(et)?et:"",ref:tt}}var getValueAndMessage=et=>isObject(et)&&!isRegex(et)?et:{value:et,message:""},validateField=async(et,tt,rt,nt,it)=>{const{ref:st,refs:at,required:ot,maxLength:lt,minLength:ut,min:dt,max:bt,pattern:gt,validate:kt,name:pt,valueAsNumber:yt,mount:$t,disabled:mt}=et._f,wt=get(tt,pt);if(!$t||mt)return{};const St=at?at[0]:st,Bt=Ft=>{nt&&St.reportValidity&&(St.setCustomValidity(isBoolean(Ft)?"":Ft||""),St.reportValidity())},Ot={},Lt=isRadioInput(st),zt=isCheckBoxInput(st),Vt=Lt||zt,Wt=(yt||isFileInput(st))&&isUndefined(st.value)&&isUndefined(wt)||isHTMLElement(st)&&st.value===""||wt===""||Array.isArray(wt)&&!wt.length,lr=appendErrors.bind(null,pt,rt,Ot),qt=(Ft,Mt,ht,Et=INPUT_VALIDATION_RULES.maxLength,Tt=INPUT_VALIDATION_RULES.minLength)=>{const Rt=Ft?Mt:ht;Ot[pt]={type:Ft?Et:Tt,message:Rt,ref:st,...lr(Ft?Et:Tt,Rt)}};if(it?!Array.isArray(wt)||!wt.length:ot&&(!Vt&&(Wt||isNullOrUndefined(wt))||isBoolean(wt)&&!wt||zt&&!getCheckboxValue(at).isValid||Lt&&!getRadioValue(at).isValid)){const{value:Ft,message:Mt}=isMessage(ot)?{value:!!ot,message:ot}:getValueAndMessage(ot);if(Ft&&(Ot[pt]={type:INPUT_VALIDATION_RULES.required,message:Mt,ref:St,...lr(INPUT_VALIDATION_RULES.required,Mt)},!rt))return Bt(Mt),Ot}if(!Wt&&(!isNullOrUndefined(dt)||!isNullOrUndefined(bt))){let Ft,Mt;const ht=getValueAndMessage(bt),Et=getValueAndMessage(dt);if(!isNullOrUndefined(wt)&&!isNaN(wt)){const Tt=st.valueAsNumber||wt&&+wt;isNullOrUndefined(ht.value)||(Ft=Tt>ht.value),isNullOrUndefined(Et.value)||(Mt=Ttnew Date(new Date().toDateString()+" "+It),At=st.type=="time",Pt=st.type=="week";isString(ht.value)&&wt&&(Ft=At?Rt(wt)>Rt(ht.value):Pt?wt>ht.value:Tt>new Date(ht.value)),isString(Et.value)&&wt&&(Mt=At?Rt(wt)+Ft.value,Et=!isNullOrUndefined(Mt.value)&&wt.length<+Mt.value;if((ht||Et)&&(qt(ht,Ft.message,Mt.message),!rt))return Bt(Ot[pt].message),Ot}if(gt&&!Wt&&isString(wt)){const{value:Ft,message:Mt}=getValueAndMessage(gt);if(isRegex(Ft)&&!wt.match(Ft)&&(Ot[pt]={type:INPUT_VALIDATION_RULES.pattern,message:Mt,ref:st,...lr(INPUT_VALIDATION_RULES.pattern,Mt)},!rt))return Bt(Mt),Ot}if(kt){if(isFunction(kt)){const Ft=await kt(wt,tt),Mt=getValidateError(Ft,St);if(Mt&&(Ot[pt]={...Mt,...lr(INPUT_VALIDATION_RULES.validate,Mt.message)},!rt))return Bt(Mt.message),Ot}else if(isObject(kt)){let Ft={};for(const Mt in kt){if(!isEmptyObject(Ft)&&!rt)break;const ht=getValidateError(await kt[Mt](wt,tt),St,Mt);ht&&(Ft={...ht,...lr(Mt,ht.message)},Bt(ht.message),rt&&(Ot[pt]=Ft))}if(!isEmptyObject(Ft)&&(Ot[pt]={ref:St,...Ft},!rt))return Ot}}return Bt(!0),Ot},appendAt=(et,tt)=>[...et,...convertToArrayPayload(tt)],fillEmptyArray=et=>Array.isArray(et)?et.map(()=>{}):void 0;function insert(et,tt,rt){return[...et.slice(0,tt),...convertToArrayPayload(rt),...et.slice(tt)]}var moveArrayAt=(et,tt,rt)=>Array.isArray(et)?(isUndefined(et[rt])&&(et[rt]=void 0),et.splice(rt,0,et.splice(tt,1)[0]),et):[],prependAt=(et,tt)=>[...convertToArrayPayload(tt),...convertToArrayPayload(et)];function removeAtIndexes(et,tt){let rt=0;const nt=[...et];for(const it of tt)nt.splice(it-rt,1),rt++;return compact(nt).length?nt:[]}var removeArrayAt=(et,tt)=>isUndefined(tt)?[]:removeAtIndexes(et,convertToArrayPayload(tt).sort((rt,nt)=>rt-nt)),swapArrayAt=(et,tt,rt)=>{[et[tt],et[rt]]=[et[rt],et[tt]]};function baseGet(et,tt){const rt=tt.slice(0,-1).length;let nt=0;for(;nt(et[tt]=rt,et);function useFieldArray(et){const tt=useFormContext(),{control:rt=tt.control,name:nt,keyName:it="id",shouldUnregister:st}=et,[at,ot]=React.useState(rt._getFieldArray(nt)),lt=React.useRef(rt._getFieldArray(nt).map(generateId)),ut=React.useRef(at),dt=React.useRef(nt),bt=React.useRef(!1);dt.current=nt,ut.current=at,rt._names.array.add(nt),et.rules&&rt.register(nt,et.rules),useSubscribe({next:({values:Ot,name:Lt})=>{if(Lt===dt.current||!Lt){const zt=get(Ot,dt.current);Array.isArray(zt)&&(ot(zt),lt.current=zt.map(generateId))}},subject:rt._subjects.array});const gt=React.useCallback(Ot=>{bt.current=!0,rt._updateFieldArray(nt,Ot)},[rt,nt]),kt=(Ot,Lt)=>{const zt=convertToArrayPayload(cloneObject(Ot)),Vt=appendAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,Vt.length-1,Lt),lt.current=appendAt(lt.current,zt.map(generateId)),gt(Vt),ot(Vt),rt._updateFieldArray(nt,Vt,appendAt,{argA:fillEmptyArray(Ot)})},pt=(Ot,Lt)=>{const zt=convertToArrayPayload(cloneObject(Ot)),Vt=prependAt(rt._getFieldArray(nt),zt);rt._names.focus=getFocusFieldName(nt,0,Lt),lt.current=prependAt(lt.current,zt.map(generateId)),gt(Vt),ot(Vt),rt._updateFieldArray(nt,Vt,prependAt,{argA:fillEmptyArray(Ot)})},yt=Ot=>{const Lt=removeArrayAt(rt._getFieldArray(nt),Ot);lt.current=removeArrayAt(lt.current,Ot),gt(Lt),ot(Lt),rt._updateFieldArray(nt,Lt,removeArrayAt,{argA:Ot})},$t=(Ot,Lt,zt)=>{const Vt=convertToArrayPayload(cloneObject(Lt)),Wt=insert(rt._getFieldArray(nt),Ot,Vt);rt._names.focus=getFocusFieldName(nt,Ot,zt),lt.current=insert(lt.current,Ot,Vt.map(generateId)),gt(Wt),ot(Wt),rt._updateFieldArray(nt,Wt,insert,{argA:Ot,argB:fillEmptyArray(Lt)})},mt=(Ot,Lt)=>{const zt=rt._getFieldArray(nt);swapArrayAt(zt,Ot,Lt),swapArrayAt(lt.current,Ot,Lt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,swapArrayAt,{argA:Ot,argB:Lt},!1)},wt=(Ot,Lt)=>{const zt=rt._getFieldArray(nt);moveArrayAt(zt,Ot,Lt),moveArrayAt(lt.current,Ot,Lt),gt(zt),ot(zt),rt._updateFieldArray(nt,zt,moveArrayAt,{argA:Ot,argB:Lt},!1)},St=(Ot,Lt)=>{const zt=cloneObject(Lt),Vt=updateAt(rt._getFieldArray(nt),Ot,zt);lt.current=[...Vt].map((Wt,lr)=>!Wt||lr===Ot?generateId():lt.current[lr]),gt(Vt),ot([...Vt]),rt._updateFieldArray(nt,Vt,updateAt,{argA:Ot,argB:zt},!0,!1)},Bt=Ot=>{const Lt=convertToArrayPayload(cloneObject(Ot));lt.current=Lt.map(generateId),gt([...Lt]),ot([...Lt]),rt._updateFieldArray(nt,[...Lt],zt=>zt,{},!0,!1)};return React.useEffect(()=>{if(rt._state.action=!1,isWatched(nt,rt._names)&&rt._subjects.state.next({...rt._formState}),bt.current&&(!getValidationModes(rt._options.mode).isOnSubmit||rt._formState.isSubmitted))if(rt._options.resolver)rt._executeSchema([nt]).then(Ot=>{const Lt=get(Ot.errors,nt),zt=get(rt._formState.errors,nt);(zt?!Lt&&zt.type||Lt&&(zt.type!==Lt.type||zt.message!==Lt.message):Lt&&Lt.type)&&(Lt?set(rt._formState.errors,nt,Lt):unset(rt._formState.errors,nt),rt._subjects.state.next({errors:rt._formState.errors}))});else{const Ot=get(rt._fields,nt);Ot&&Ot._f&&validateField(Ot,rt._formValues,rt._options.criteriaMode===VALIDATION_MODE.all,rt._options.shouldUseNativeValidation,!0).then(Lt=>!isEmptyObject(Lt)&&rt._subjects.state.next({errors:updateFieldArrayRootError(rt._formState.errors,Lt,nt)}))}rt._subjects.values.next({name:nt,values:{...rt._formValues}}),rt._names.focus&&iterateFieldsByAction(rt._fields,(Ot,Lt)=>{if(rt._names.focus&&Lt.startsWith(rt._names.focus)&&Ot.focus)return Ot.focus(),1}),rt._names.focus="",rt._updateValid(),bt.current=!1},[at,nt,rt]),React.useEffect(()=>(!get(rt._formValues,nt)&&rt._updateFieldArray(nt),()=>{(rt._options.shouldUnregister||st)&&rt.unregister(nt)}),[nt,rt,it,st]),{swap:React.useCallback(mt,[gt,nt,rt]),move:React.useCallback(wt,[gt,nt,rt]),prepend:React.useCallback(pt,[gt,nt,rt]),append:React.useCallback(kt,[gt,nt,rt]),remove:React.useCallback(yt,[gt,nt,rt]),insert:React.useCallback($t,[gt,nt,rt]),update:React.useCallback(St,[gt,nt,rt]),replace:React.useCallback(Bt,[gt,nt,rt]),fields:React.useMemo(()=>at.map((Ot,Lt)=>({...Ot,[it]:lt.current[Lt]||generateId()})),[at,it])}}var createSubject=()=>{let et=[];return{get observers(){return et},next:it=>{for(const st of et)st.next&&st.next(it)},subscribe:it=>(et.push(it),{unsubscribe:()=>{et=et.filter(st=>st!==it)}}),unsubscribe:()=>{et=[]}}},isPrimitive=et=>isNullOrUndefined(et)||!isObjectType(et);function deepEqual(et,tt){if(isPrimitive(et)||isPrimitive(tt))return et===tt;if(isDateObject(et)&&isDateObject(tt))return et.getTime()===tt.getTime();const rt=Object.keys(et),nt=Object.keys(tt);if(rt.length!==nt.length)return!1;for(const it of rt){const st=et[it];if(!nt.includes(it))return!1;if(it!=="ref"){const at=tt[it];if(isDateObject(st)&&isDateObject(at)||isObject(st)&&isObject(at)||Array.isArray(st)&&Array.isArray(at)?!deepEqual(st,at):st!==at)return!1}}return!0}var isMultipleSelect=et=>et.type==="select-multiple",isRadioOrCheckbox=et=>isRadioInput(et)||isCheckBoxInput(et),live=et=>isHTMLElement(et)&&et.isConnected,objectHasFunction=et=>{for(const tt in et)if(isFunction(et[tt]))return!0;return!1};function markFieldsDirty(et,tt={}){const rt=Array.isArray(et);if(isObject(et)||rt)for(const nt in et)Array.isArray(et[nt])||isObject(et[nt])&&!objectHasFunction(et[nt])?(tt[nt]=Array.isArray(et[nt])?[]:{},markFieldsDirty(et[nt],tt[nt])):isNullOrUndefined(et[nt])||(tt[nt]=!0);return tt}function getDirtyFieldsFromDefaultValues(et,tt,rt){const nt=Array.isArray(et);if(isObject(et)||nt)for(const it in et)Array.isArray(et[it])||isObject(et[it])&&!objectHasFunction(et[it])?isUndefined(tt)||isPrimitive(rt[it])?rt[it]=Array.isArray(et[it])?markFieldsDirty(et[it],[]):{...markFieldsDirty(et[it])}:getDirtyFieldsFromDefaultValues(et[it],isNullOrUndefined(tt)?{}:tt[it],rt[it]):rt[it]=!deepEqual(et[it],tt[it]);return rt}var getDirtyFields=(et,tt)=>getDirtyFieldsFromDefaultValues(et,tt,markFieldsDirty(tt)),getFieldValueAs=(et,{valueAsNumber:tt,valueAsDate:rt,setValueAs:nt})=>isUndefined(et)?et:tt?et===""?NaN:et&&+et:rt&&isString(et)?new Date(et):nt?nt(et):et;function getFieldValue(et){const tt=et.ref;if(!(et.refs?et.refs.every(rt=>rt.disabled):tt.disabled))return isFileInput(tt)?tt.files:isRadioInput(tt)?getRadioValue(et.refs).value:isMultipleSelect(tt)?[...tt.selectedOptions].map(({value:rt})=>rt):isCheckBoxInput(tt)?getCheckboxValue(et.refs).value:getFieldValueAs(isUndefined(tt.value)?et.ref.value:tt.value,et)}var getResolverOptions=(et,tt,rt,nt)=>{const it={};for(const st of et){const at=get(tt,st);at&&set(it,st,at._f)}return{criteriaMode:rt,names:[...et],fields:it,shouldUseNativeValidation:nt}},getRuleValue=et=>isUndefined(et)?et:isRegex(et)?et.source:isObject(et)?isRegex(et.value)?et.value.source:et.value:et,hasValidation=et=>et.mount&&(et.required||et.min||et.max||et.maxLength||et.minLength||et.pattern||et.validate);function schemaErrorLookup(et,tt,rt){const nt=get(et,rt);if(nt||isKey(rt))return{error:nt,name:rt};const it=rt.split(".");for(;it.length;){const st=it.join("."),at=get(tt,st),ot=get(et,st);if(at&&!Array.isArray(at)&&rt!==st)return{name:rt};if(ot&&ot.type)return{name:st,error:ot};it.pop()}return{name:rt}}var skipValidation=(et,tt,rt,nt,it)=>it.isOnAll?!1:!rt&&it.isOnTouch?!(tt||et):(rt?nt.isOnBlur:it.isOnBlur)?!et:(rt?nt.isOnChange:it.isOnChange)?et:!0,unsetEmptyArray=(et,tt)=>!compact(get(et,tt)).length&&unset(et,tt);const defaultOptions={mode:VALIDATION_MODE.onSubmit,reValidateMode:VALIDATION_MODE.onChange,shouldFocusError:!0};function createFormControl(et={},tt){let rt={...defaultOptions,...et},nt={submitCount:0,isDirty:!1,isLoading:isFunction(rt.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:rt.errors||{},disabled:!1},it={},st=isObject(rt.defaultValues)||isObject(rt.values)?cloneObject(rt.defaultValues||rt.values)||{}:{},at=rt.shouldUnregister?{}:cloneObject(st),ot={action:!1,mount:!1,watch:!1},lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set},ut,dt=0;const bt={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},gt={values:createSubject(),array:createSubject(),state:createSubject()},kt=et.resetOptions&&et.resetOptions.keepDirtyValues,pt=getValidationModes(rt.mode),yt=getValidationModes(rt.reValidateMode),$t=rt.criteriaMode===VALIDATION_MODE.all,mt=or=>xr=>{clearTimeout(dt),dt=setTimeout(or,xr)},wt=async or=>{if(bt.isValid||or){const xr=rt.resolver?isEmptyObject((await lr()).errors):await Ft(it,!0);xr!==nt.isValid&>.state.next({isValid:xr})}},St=or=>bt.isValidating&>.state.next({isValidating:or}),Bt=(or,xr=[],Pr,Or,rr=!0,gr=!0)=>{if(Or&&Pr){if(ot.action=!0,gr&&Array.isArray(get(it,or))){const Ir=Pr(get(it,or),Or.argA,Or.argB);rr&&set(it,or,Ir)}if(gr&&Array.isArray(get(nt.errors,or))){const Ir=Pr(get(nt.errors,or),Or.argA,Or.argB);rr&&set(nt.errors,or,Ir),unsetEmptyArray(nt.errors,or)}if(bt.touchedFields&&gr&&Array.isArray(get(nt.touchedFields,or))){const Ir=Pr(get(nt.touchedFields,or),Or.argA,Or.argB);rr&&set(nt.touchedFields,or,Ir)}bt.dirtyFields&&(nt.dirtyFields=getDirtyFields(st,at)),gt.state.next({name:or,isDirty:ht(or,xr),dirtyFields:nt.dirtyFields,errors:nt.errors,isValid:nt.isValid})}else set(at,or,xr)},Ot=(or,xr)=>{set(nt.errors,or,xr),gt.state.next({errors:nt.errors})},Lt=or=>{nt.errors=or,gt.state.next({errors:nt.errors,isValid:!1})},zt=(or,xr,Pr,Or)=>{const rr=get(it,or);if(rr){const gr=get(at,or,isUndefined(Pr)?get(st,or):Pr);isUndefined(gr)||Or&&Or.defaultChecked||xr?set(at,or,xr?gr:getFieldValue(rr._f)):Rt(or,gr),ot.mount&&wt()}},Vt=(or,xr,Pr,Or,rr)=>{let gr=!1,Ir=!1;const Yt={name:or},Ut=!!(get(it,or)&&get(it,or)._f.disabled);if(!Pr||Or){bt.isDirty&&(Ir=nt.isDirty,nt.isDirty=Yt.isDirty=ht(),gr=Ir!==Yt.isDirty);const Ht=Ut||deepEqual(get(st,or),xr);Ir=!!(!Ut&&get(nt.dirtyFields,or)),Ht||Ut?unset(nt.dirtyFields,or):set(nt.dirtyFields,or,!0),Yt.dirtyFields=nt.dirtyFields,gr=gr||bt.dirtyFields&&Ir!==!Ht}if(Pr){const Ht=get(nt.touchedFields,or);Ht||(set(nt.touchedFields,or,Pr),Yt.touchedFields=nt.touchedFields,gr=gr||bt.touchedFields&&Ht!==Pr)}return gr&&rr&>.state.next(Yt),gr?Yt:{}},Wt=(or,xr,Pr,Or)=>{const rr=get(nt.errors,or),gr=bt.isValid&&isBoolean(xr)&&nt.isValid!==xr;if(et.delayError&&Pr?(ut=mt(()=>Ot(or,Pr)),ut(et.delayError)):(clearTimeout(dt),ut=null,Pr?set(nt.errors,or,Pr):unset(nt.errors,or)),(Pr?!deepEqual(rr,Pr):rr)||!isEmptyObject(Or)||gr){const Ir={...Or,...gr&&isBoolean(xr)?{isValid:xr}:{},errors:nt.errors,name:or};nt={...nt,...Ir},gt.state.next(Ir)}St(!1)},lr=async or=>rt.resolver(at,rt.context,getResolverOptions(or||lt.mount,it,rt.criteriaMode,rt.shouldUseNativeValidation)),qt=async or=>{const{errors:xr}=await lr(or);if(or)for(const Pr of or){const Or=get(xr,Pr);Or?set(nt.errors,Pr,Or):unset(nt.errors,Pr)}else nt.errors=xr;return xr},Ft=async(or,xr,Pr={valid:!0})=>{for(const Or in or){const rr=or[Or];if(rr){const{_f:gr,...Ir}=rr;if(gr){const Yt=lt.array.has(gr.name),Ut=await validateField(rr,at,$t,rt.shouldUseNativeValidation&&!xr,Yt);if(Ut[gr.name]&&(Pr.valid=!1,xr))break;!xr&&(get(Ut,gr.name)?Yt?updateFieldArrayRootError(nt.errors,Ut,gr.name):set(nt.errors,gr.name,Ut[gr.name]):unset(nt.errors,gr.name))}Ir&&await Ft(Ir,xr,Pr)}}return Pr.valid},Mt=()=>{for(const or of lt.unMount){const xr=get(it,or);xr&&(xr._f.refs?xr._f.refs.every(Pr=>!live(Pr)):!live(xr._f.ref))&&Zt(or)}lt.unMount=new Set},ht=(or,xr)=>(or&&xr&&set(at,or,xr),!deepEqual(Dt(),st)),Et=(or,xr,Pr)=>generateWatchOutput(or,lt,{...ot.mount?at:isUndefined(xr)?st:isString(or)?{[or]:xr}:xr},Pr,xr),Tt=or=>compact(get(ot.mount?at:st,or,et.shouldUnregister?get(st,or,[]):[])),Rt=(or,xr,Pr={})=>{const Or=get(it,or);let rr=xr;if(Or){const gr=Or._f;gr&&(!gr.disabled&&set(at,or,getFieldValueAs(xr,gr)),rr=isHTMLElement(gr.ref)&&isNullOrUndefined(xr)?"":xr,isMultipleSelect(gr.ref)?[...gr.ref.options].forEach(Ir=>Ir.selected=rr.includes(Ir.value)):gr.refs?isCheckBoxInput(gr.ref)?gr.refs.length>1?gr.refs.forEach(Ir=>(!Ir.defaultChecked||!Ir.disabled)&&(Ir.checked=Array.isArray(rr)?!!rr.find(Yt=>Yt===Ir.value):rr===Ir.value)):gr.refs[0]&&(gr.refs[0].checked=!!rr):gr.refs.forEach(Ir=>Ir.checked=Ir.value===rr):isFileInput(gr.ref)?gr.ref.value="":(gr.ref.value=rr,gr.ref.type||gt.values.next({name:or,values:{...at}})))}(Pr.shouldDirty||Pr.shouldTouch)&&Vt(or,rr,Pr.shouldTouch,Pr.shouldDirty,!0),Pr.shouldValidate&&xt(or)},At=(or,xr,Pr)=>{for(const Or in xr){const rr=xr[Or],gr=`${or}.${Or}`,Ir=get(it,gr);(lt.array.has(or)||!isPrimitive(rr)||Ir&&!Ir._f)&&!isDateObject(rr)?At(gr,rr,Pr):Rt(gr,rr,Pr)}},Pt=(or,xr,Pr={})=>{const Or=get(it,or),rr=lt.array.has(or),gr=cloneObject(xr);set(at,or,gr),rr?(gt.array.next({name:or,values:{...at}}),(bt.isDirty||bt.dirtyFields)&&Pr.shouldDirty&>.state.next({name:or,dirtyFields:getDirtyFields(st,at),isDirty:ht(or,gr)})):Or&&!Or._f&&!isNullOrUndefined(gr)?At(or,gr,Pr):Rt(or,gr,Pr),isWatched(or,lt)&>.state.next({...nt}),gt.values.next({name:or,values:{...at}}),!ot.mount&&tt()},It=async or=>{const xr=or.target;let Pr=xr.name,Or=!0;const rr=get(it,Pr),gr=()=>xr.type?getFieldValue(rr._f):getEventValue(or),Ir=Yt=>{Or=Number.isNaN(Yt)||Yt===get(at,Pr,Yt)};if(rr){let Yt,Ut;const Ht=gr(),ir=or.type===EVENTS.BLUR||or.type===EVENTS.FOCUS_OUT,kr=!hasValidation(rr._f)&&!rt.resolver&&!get(nt.errors,Pr)&&!rr._f.deps||skipValidation(ir,get(nt.touchedFields,Pr),nt.isSubmitted,yt,pt),$r=isWatched(Pr,lt,ir);set(at,Pr,Ht),ir?(rr._f.onBlur&&rr._f.onBlur(or),ut&&ut(0)):rr._f.onChange&&rr._f.onChange(or);const Br=Vt(Pr,Ht,ir,!1),an=!isEmptyObject(Br)||$r;if(!ir&>.values.next({name:Pr,type:or.type,values:{...at}}),kr)return bt.isValid&&wt(),an&>.state.next({name:Pr,...$r?{}:Br});if(!ir&&$r&>.state.next({...nt}),St(!0),rt.resolver){const{errors:ln}=await lr([Pr]);if(Ir(Ht),Or){const rn=schemaErrorLookup(nt.errors,it,Pr),kn=schemaErrorLookup(ln,it,rn.name||Pr);Yt=kn.error,Pr=kn.name,Ut=isEmptyObject(ln)}}else Yt=(await validateField(rr,at,$t,rt.shouldUseNativeValidation))[Pr],Ir(Ht),Or&&(Yt?Ut=!1:bt.isValid&&(Ut=await Ft(it,!0)));Or&&(rr._f.deps&&xt(rr._f.deps),Wt(Pr,Ut,Yt,Br))}},Ct=(or,xr)=>{if(get(nt.errors,xr)&&or.focus)return or.focus(),1},xt=async(or,xr={})=>{let Pr,Or;const rr=convertToArrayPayload(or);if(St(!0),rt.resolver){const gr=await qt(isUndefined(or)?or:rr);Pr=isEmptyObject(gr),Or=or?!rr.some(Ir=>get(gr,Ir)):Pr}else or?(Or=(await Promise.all(rr.map(async gr=>{const Ir=get(it,gr);return await Ft(Ir&&Ir._f?{[gr]:Ir}:Ir)}))).every(Boolean),!(!Or&&!nt.isValid)&&wt()):Or=Pr=await Ft(it);return gt.state.next({...!isString(or)||bt.isValid&&Pr!==nt.isValid?{}:{name:or},...rt.resolver||!or?{isValid:Pr}:{},errors:nt.errors,isValidating:!1}),xr.shouldFocus&&!Or&&iterateFieldsByAction(it,Ct,or?rr:lt.mount),Or},Dt=or=>{const xr={...st,...ot.mount?at:{}};return isUndefined(or)?xr:isString(or)?get(xr,or):or.map(Pr=>get(xr,Pr))},tr=(or,xr)=>({invalid:!!get((xr||nt).errors,or),isDirty:!!get((xr||nt).dirtyFields,or),isTouched:!!get((xr||nt).touchedFields,or),error:get((xr||nt).errors,or)}),pr=or=>{or&&convertToArrayPayload(or).forEach(xr=>unset(nt.errors,xr)),gt.state.next({errors:or?nt.errors:{}})},Kt=(or,xr,Pr)=>{const Or=(get(it,or,{_f:{}})._f||{}).ref;set(nt.errors,or,{...xr,ref:Or}),gt.state.next({name:or,errors:nt.errors,isValid:!1}),Pr&&Pr.shouldFocus&&Or&&Or.focus&&Or.focus()},Qt=(or,xr)=>isFunction(or)?gt.values.subscribe({next:Pr=>or(Et(void 0,xr),Pr)}):Et(or,xr,!0),Zt=(or,xr={})=>{for(const Pr of or?convertToArrayPayload(or):lt.mount)lt.mount.delete(Pr),lt.array.delete(Pr),xr.keepValue||(unset(it,Pr),unset(at,Pr)),!xr.keepError&&unset(nt.errors,Pr),!xr.keepDirty&&unset(nt.dirtyFields,Pr),!xr.keepTouched&&unset(nt.touchedFields,Pr),!rt.shouldUnregister&&!xr.keepDefaultValue&&unset(st,Pr);gt.values.next({values:{...at}}),gt.state.next({...nt,...xr.keepDirty?{isDirty:ht()}:{}}),!xr.keepIsValid&&wt()},ur=({disabled:or,name:xr,field:Pr,fields:Or,value:rr})=>{if(isBoolean(or)){const gr=or?void 0:isUndefined(rr)?getFieldValue(Pr?Pr._f:get(Or,xr)._f):rr;set(at,xr,gr),Vt(xr,gr,!1,!1,!0)}},_r=(or,xr={})=>{let Pr=get(it,or);const Or=isBoolean(xr.disabled);return set(it,or,{...Pr||{},_f:{...Pr&&Pr._f?Pr._f:{ref:{name:or}},name:or,mount:!0,...xr}}),lt.mount.add(or),Pr?ur({field:Pr,disabled:xr.disabled,name:or,value:xr.value}):zt(or,!0,xr.value),{...Or?{disabled:xr.disabled}:{},...rt.progressive?{required:!!xr.required,min:getRuleValue(xr.min),max:getRuleValue(xr.max),minLength:getRuleValue(xr.minLength),maxLength:getRuleValue(xr.maxLength),pattern:getRuleValue(xr.pattern)}:{},name:or,onChange:It,onBlur:It,ref:rr=>{if(rr){_r(or,xr),Pr=get(it,or);const gr=isUndefined(rr.value)&&rr.querySelectorAll&&rr.querySelectorAll("input,select,textarea")[0]||rr,Ir=isRadioOrCheckbox(gr),Yt=Pr._f.refs||[];if(Ir?Yt.find(Ut=>Ut===gr):gr===Pr._f.ref)return;set(it,or,{_f:{...Pr._f,...Ir?{refs:[...Yt.filter(live),gr,...Array.isArray(get(st,or))?[{}]:[]],ref:{type:gr.type,name:or}}:{ref:gr}}}),zt(or,!1,void 0,gr)}else Pr=get(it,or,{}),Pr._f&&(Pr._f.mount=!1),(rt.shouldUnregister||xr.shouldUnregister)&&!(isNameInFieldArray(lt.array,or)&&ot.action)&<.unMount.add(or)}}},er=()=>rt.shouldFocusError&&iterateFieldsByAction(it,Ct,lt.mount),Jt=or=>{isBoolean(or)&&(gt.state.next({disabled:or}),iterateFieldsByAction(it,(xr,Pr)=>{let Or=or;const rr=get(it,Pr);rr&&isBoolean(rr._f.disabled)&&(Or||(Or=rr._f.disabled)),xr.disabled=Or},0,!1))},Ar=(or,xr)=>async Pr=>{Pr&&(Pr.preventDefault&&Pr.preventDefault(),Pr.persist&&Pr.persist());let Or=cloneObject(at);if(gt.state.next({isSubmitting:!0}),rt.resolver){const{errors:rr,values:gr}=await lr();nt.errors=rr,Or=gr}else await Ft(it);unset(nt.errors,"root"),isEmptyObject(nt.errors)?(gt.state.next({errors:{}}),await or(Or,Pr)):(xr&&await xr({...nt.errors},Pr),er(),setTimeout(er)),gt.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:isEmptyObject(nt.errors),submitCount:nt.submitCount+1,errors:nt.errors})},Er=(or,xr={})=>{get(it,or)&&(isUndefined(xr.defaultValue)?Pt(or,get(st,or)):(Pt(or,xr.defaultValue),set(st,or,xr.defaultValue)),xr.keepTouched||unset(nt.touchedFields,or),xr.keepDirty||(unset(nt.dirtyFields,or),nt.isDirty=xr.defaultValue?ht(or,get(st,or)):ht()),xr.keepError||(unset(nt.errors,or),bt.isValid&&wt()),gt.state.next({...nt}))},Dr=(or,xr={})=>{const Pr=or?cloneObject(or):st,Or=cloneObject(Pr),rr=or&&!isEmptyObject(or)?Or:st;if(xr.keepDefaultValues||(st=Pr),!xr.keepValues){if(xr.keepDirtyValues||kt)for(const gr of lt.mount)get(nt.dirtyFields,gr)?set(rr,gr,get(at,gr)):Pt(gr,get(rr,gr));else{if(isWeb&&isUndefined(or))for(const gr of lt.mount){const Ir=get(it,gr);if(Ir&&Ir._f){const Yt=Array.isArray(Ir._f.refs)?Ir._f.refs[0]:Ir._f.ref;if(isHTMLElement(Yt)){const Ut=Yt.closest("form");if(Ut){Ut.reset();break}}}}it={}}at=et.shouldUnregister?xr.keepDefaultValues?cloneObject(st):{}:cloneObject(rr),gt.array.next({values:{...rr}}),gt.values.next({values:{...rr}})}lt={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!ot.mount&&tt(),ot.mount=!bt.isValid||!!xr.keepIsValid,ot.watch=!!et.shouldUnregister,gt.state.next({submitCount:xr.keepSubmitCount?nt.submitCount:0,isDirty:xr.keepDirty?nt.isDirty:!!(xr.keepDefaultValues&&!deepEqual(or,st)),isSubmitted:xr.keepIsSubmitted?nt.isSubmitted:!1,dirtyFields:xr.keepDirtyValues?nt.dirtyFields:xr.keepDefaultValues&&or?getDirtyFields(st,or):{},touchedFields:xr.keepTouched?nt.touchedFields:{},errors:xr.keepErrors?nt.errors:{},isSubmitSuccessful:xr.keepIsSubmitSuccessful?nt.isSubmitSuccessful:!1,isSubmitting:!1})},Xr=(or,xr)=>Dr(isFunction(or)?or(at):or,xr);return{control:{register:_r,unregister:Zt,getFieldState:tr,handleSubmit:Ar,setError:Kt,_executeSchema:lr,_getWatch:Et,_getDirty:ht,_updateValid:wt,_removeUnmounted:Mt,_updateFieldArray:Bt,_updateDisabledField:ur,_getFieldArray:Tt,_reset:Dr,_resetDefaultValues:()=>isFunction(rt.defaultValues)&&rt.defaultValues().then(or=>{Xr(or,rt.resetOptions),gt.state.next({isLoading:!1})}),_updateFormState:or=>{nt={...nt,...or}},_disableForm:Jt,_subjects:gt,_proxyFormState:bt,_setErrors:Lt,get _fields(){return it},get _formValues(){return at},get _state(){return ot},set _state(or){ot=or},get _defaultValues(){return st},get _names(){return lt},set _names(or){lt=or},get _formState(){return nt},set _formState(or){nt=or},get _options(){return rt},set _options(or){rt={...rt,...or}}},trigger:xt,register:_r,handleSubmit:Ar,watch:Qt,setValue:Pt,getValues:Dt,reset:Xr,resetField:Er,clearErrors:pr,unregister:Zt,setError:Kt,setFocus:(or,xr={})=>{const Pr=get(it,or),Or=Pr&&Pr._f;if(Or){const rr=Or.refs?Or.refs[0]:Or.ref;rr.focus&&(rr.focus(),xr.shouldSelect&&rr.select())}},getFieldState:tr}}function useForm(et={}){const tt=React.useRef(),rt=React.useRef(),[nt,it]=React.useState({isDirty:!1,isValidating:!1,isLoading:isFunction(et.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:et.errors||{},disabled:!1,defaultValues:isFunction(et.defaultValues)?void 0:et.defaultValues});tt.current||(tt.current={...createFormControl(et,()=>it(at=>({...at}))),formState:nt});const st=tt.current.control;return st._options=et,useSubscribe({subject:st._subjects.state,next:at=>{shouldRenderFormState(at,st._proxyFormState,st._updateFormState,!0)&&it({...st._formState})}}),React.useEffect(()=>st._disableForm(et.disabled),[st,et.disabled]),React.useEffect(()=>{if(st._proxyFormState.isDirty){const at=st._getDirty();at!==nt.isDirty&&st._subjects.state.next({isDirty:at})}},[st,nt.isDirty]),React.useEffect(()=>{et.values&&!deepEqual(et.values,rt.current)?(st._reset(et.values,st._options.resetOptions),rt.current=et.values,it(at=>({...at}))):st._resetDefaultValues()},[et.values,st]),React.useEffect(()=>{et.errors&&st._setErrors(et.errors)},[et.errors,st]),React.useEffect(()=>{st._state.mount||(st._updateValid(),st._state.mount=!0),st._state.watch&&(st._state.watch=!1,st._subjects.state.next({...st._formState})),st._removeUnmounted()}),tt.current.formState=getProxyFormState(nt,st),tt.current}var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React.createContext&&React.createContext(DefaultContext),__assign=globalThis&&globalThis.__assign||function(){return __assign=Object.assign||function(et){for(var tt,rt=1,nt=arguments.length;rttypeof et=="number"&&!isNaN(et),d$1=et=>typeof et=="string",u$1=et=>typeof et=="function",p$1=et=>d$1(et)||u$1(et)?et:null,m$1=et=>reactExports.isValidElement(et)||d$1(et)||u$1(et)||c$1(et);function f$1(et,tt,rt){rt===void 0&&(rt=300);const{scrollHeight:nt,style:it}=et;requestAnimationFrame(()=>{it.minHeight="initial",it.height=nt+"px",it.transition=`all ${rt}ms`,requestAnimationFrame(()=>{it.height="0",it.padding="0",it.margin="0",setTimeout(tt,rt)})})}function g$1(et){let{enter:tt,exit:rt,appendPosition:nt=!1,collapse:it=!0,collapseDuration:st=300}=et;return function(at){let{children:ot,position:lt,preventExitTransition:ut,done:dt,nodeRef:bt,isIn:gt,playToast:kt}=at;const pt=nt?`${tt}--${lt}`:tt,yt=nt?`${rt}--${lt}`:rt,$t=reactExports.useRef(0);return reactExports.useLayoutEffect(()=>{const mt=bt.current,wt=pt.split(" "),St=Bt=>{Bt.target===bt.current&&(kt(),mt.removeEventListener("animationend",St),mt.removeEventListener("animationcancel",St),$t.current===0&&Bt.type!=="animationcancel"&&mt.classList.remove(...wt))};mt.classList.add(...wt),mt.addEventListener("animationend",St),mt.addEventListener("animationcancel",St)},[]),reactExports.useEffect(()=>{const mt=bt.current,wt=()=>{mt.removeEventListener("animationend",wt),it?f$1(mt,dt,st):dt()};gt||(ut?wt():($t.current=1,mt.className+=` ${yt}`,mt.addEventListener("animationend",wt)))},[gt]),React.createElement(React.Fragment,null,ot)}}function y(et,tt){return et!=null?{content:et.content,containerId:et.props.containerId,id:et.props.toastId,theme:et.props.theme,type:et.props.type,data:et.props.data||{},isLoading:et.props.isLoading,icon:et.props.icon,status:tt}:{}}const v$2=new Map;let h$2=[];const T=new Set,E=et=>T.forEach(tt=>tt(et)),b$1=()=>v$2.size>0;function I(et,tt){var rt;if(tt)return!((rt=v$2.get(tt))==null||!rt.isToastActive(et));let nt=!1;return v$2.forEach(it=>{it.isToastActive(et)&&(nt=!0)}),nt}function _(et,tt){m$1(et)&&(b$1()||h$2.push({content:et,options:tt}),v$2.forEach(rt=>{rt.buildToast(et,tt)}))}function C(et,tt){v$2.forEach(rt=>{tt!=null&&tt!=null&&tt.containerId?(tt==null?void 0:tt.containerId)===rt.id&&rt.toggle(et,tt==null?void 0:tt.id):rt.toggle(et,tt==null?void 0:tt.id)})}function L(et){const{subscribe:tt,getSnapshot:rt,setProps:nt}=reactExports.useRef(function(st){const at=st.containerId||1;return{subscribe(ot){const lt=function(dt,bt,gt){let kt=1,pt=0,yt=[],$t=[],mt=[],wt=bt;const St=new Map,Bt=new Set,Ot=()=>{mt=Array.from(St.values()),Bt.forEach(Vt=>Vt())},Lt=Vt=>{$t=Vt==null?[]:$t.filter(Wt=>Wt!==Vt),Ot()},zt=Vt=>{const{toastId:Wt,onOpen:lr,updateId:qt,children:Ft}=Vt.props,Mt=qt==null;Vt.staleId&&St.delete(Vt.staleId),St.set(Wt,Vt),$t=[...$t,Vt.props.toastId].filter(ht=>ht!==Vt.staleId),Ot(),gt(y(Vt,Mt?"added":"updated")),Mt&&u$1(lr)&&lr(reactExports.isValidElement(Ft)&&Ft.props)};return{id:dt,props:wt,observe:Vt=>(Bt.add(Vt),()=>Bt.delete(Vt)),toggle:(Vt,Wt)=>{St.forEach(lr=>{Wt!=null&&Wt!==lr.props.toastId||u$1(lr.toggle)&&lr.toggle(Vt)})},removeToast:Lt,toasts:St,clearQueue:()=>{pt-=yt.length,yt=[]},buildToast:(Vt,Wt)=>{if((xt=>{let{containerId:Dt,toastId:tr,updateId:pr}=xt;const Kt=Dt?Dt!==dt:dt!==1,Qt=St.has(tr)&&pr==null;return Kt||Qt})(Wt))return;const{toastId:lr,updateId:qt,data:Ft,staleId:Mt,delay:ht}=Wt,Et=()=>{Lt(lr)},Tt=qt==null;Tt&&pt++;const Rt={...wt,style:wt.toastStyle,key:kt++,...Object.fromEntries(Object.entries(Wt).filter(xt=>{let[Dt,tr]=xt;return tr!=null})),toastId:lr,updateId:qt,data:Ft,closeToast:Et,isIn:!1,className:p$1(Wt.className||wt.toastClassName),bodyClassName:p$1(Wt.bodyClassName||wt.bodyClassName),progressClassName:p$1(Wt.progressClassName||wt.progressClassName),autoClose:!Wt.isLoading&&(At=Wt.autoClose,Pt=wt.autoClose,At===!1||c$1(At)&&At>0?At:Pt),deleteToast(){const xt=St.get(lr),{onClose:Dt,children:tr}=xt.props;u$1(Dt)&&Dt(reactExports.isValidElement(tr)&&tr.props),gt(y(xt,"removed")),St.delete(lr),pt--,pt<0&&(pt=0),yt.length>0?zt(yt.shift()):Ot()}};var At,Pt;Rt.closeButton=wt.closeButton,Wt.closeButton===!1||m$1(Wt.closeButton)?Rt.closeButton=Wt.closeButton:Wt.closeButton===!0&&(Rt.closeButton=!m$1(wt.closeButton)||wt.closeButton);let It=Vt;reactExports.isValidElement(Vt)&&!d$1(Vt.type)?It=reactExports.cloneElement(Vt,{closeToast:Et,toastProps:Rt,data:Ft}):u$1(Vt)&&(It=Vt({closeToast:Et,toastProps:Rt,data:Ft}));const Ct={content:It,props:Rt,staleId:Mt};wt.limit&&wt.limit>0&&pt>wt.limit&&Tt?yt.push(Ct):c$1(ht)?setTimeout(()=>{zt(Ct)},ht):zt(Ct)},setProps(Vt){wt=Vt},setToggle:(Vt,Wt)=>{St.get(Vt).toggle=Wt},isToastActive:Vt=>$t.some(Wt=>Wt===Vt),getSnapshot:()=>wt.newestOnTop?mt.reverse():mt}}(at,st,E);v$2.set(at,lt);const ut=lt.observe(ot);return h$2.forEach(dt=>_(dt.content,dt.options)),h$2=[],()=>{ut(),v$2.delete(at)}},setProps(ot){var lt;(lt=v$2.get(at))==null||lt.setProps(ot)},getSnapshot(){var ot;return(ot=v$2.get(at))==null?void 0:ot.getSnapshot()}}}(et)).current;nt(et);const it=reactExports.useSyncExternalStore(tt,rt,rt);return{getToastToRender:function(st){if(!it)return[];const at=new Map;return it.forEach(ot=>{const{position:lt}=ot.props;at.has(lt)||at.set(lt,[]),at.get(lt).push(ot)}),Array.from(at,ot=>st(ot[0],ot[1]))},isToastActive:I,count:it==null?void 0:it.length}}function N(et){const[tt,rt]=reactExports.useState(!1),[nt,it]=reactExports.useState(!1),st=reactExports.useRef(null),at=reactExports.useRef({start:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,didMove:!1}).current,{autoClose:ot,pauseOnHover:lt,closeToast:ut,onClick:dt,closeOnClick:bt}=et;var gt,kt;function pt(){rt(!0)}function yt(){rt(!1)}function $t(St){const Bt=st.current;at.canDrag&&Bt&&(at.didMove=!0,tt&&yt(),at.delta=et.draggableDirection==="x"?St.clientX-at.start:St.clientY-at.start,at.start!==St.clientX&&(at.canCloseOnClick=!1),Bt.style.transform=`translate3d(${et.draggableDirection==="x"?`${at.delta}px, var(--y)`:`0, calc(${at.delta}px + var(--y))`},0)`,Bt.style.opacity=""+(1-Math.abs(at.delta/at.removalDistance)))}function mt(){document.removeEventListener("pointermove",$t),document.removeEventListener("pointerup",mt);const St=st.current;if(at.canDrag&&at.didMove&&St){if(at.canDrag=!1,Math.abs(at.delta)>at.removalDistance)return it(!0),et.closeToast(),void et.collapseAll();St.style.transition="transform 0.2s, opacity 0.2s",St.style.removeProperty("transform"),St.style.removeProperty("opacity")}}(kt=v$2.get((gt={id:et.toastId,containerId:et.containerId,fn:rt}).containerId||1))==null||kt.setToggle(gt.id,gt.fn),reactExports.useEffect(()=>{if(et.pauseOnFocusLoss)return document.hasFocus()||yt(),window.addEventListener("focus",pt),window.addEventListener("blur",yt),()=>{window.removeEventListener("focus",pt),window.removeEventListener("blur",yt)}},[et.pauseOnFocusLoss]);const wt={onPointerDown:function(St){if(et.draggable===!0||et.draggable===St.pointerType){at.didMove=!1,document.addEventListener("pointermove",$t),document.addEventListener("pointerup",mt);const Bt=st.current;at.canCloseOnClick=!0,at.canDrag=!0,Bt.style.transition="none",et.draggableDirection==="x"?(at.start=St.clientX,at.removalDistance=Bt.offsetWidth*(et.draggablePercent/100)):(at.start=St.clientY,at.removalDistance=Bt.offsetHeight*(et.draggablePercent===80?1.5*et.draggablePercent:et.draggablePercent)/100)}},onPointerUp:function(St){const{top:Bt,bottom:Ot,left:Lt,right:zt}=st.current.getBoundingClientRect();St.nativeEvent.type!=="touchend"&&et.pauseOnHover&&St.clientX>=Lt&&St.clientX<=zt&&St.clientY>=Bt&&St.clientY<=Ot?yt():pt()}};return ot&<&&(wt.onMouseEnter=yt,et.stacked||(wt.onMouseLeave=pt)),bt&&(wt.onClick=St=>{dt&&dt(St),at.canCloseOnClick&&ut()}),{playToast:pt,pauseToast:yt,isRunning:tt,preventExitTransition:nt,toastRef:st,eventHandlers:wt}}function $(et){let{delay:tt,isRunning:rt,closeToast:nt,type:it="default",hide:st,className:at,style:ot,controlledProgress:lt,progress:ut,rtl:dt,isIn:bt,theme:gt}=et;const kt=st||lt&&ut===0,pt={...ot,animationDuration:`${tt}ms`,animationPlayState:rt?"running":"paused"};lt&&(pt.transform=`scaleX(${ut})`);const yt=clsx$1("Toastify__progress-bar",lt?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${gt}`,`Toastify__progress-bar--${it}`,{"Toastify__progress-bar--rtl":dt}),$t=u$1(at)?at({rtl:dt,type:it,defaultClassName:yt}):clsx$1(yt,at),mt={[lt&&ut>=1?"onTransitionEnd":"onAnimationEnd"]:lt&&ut<1?null:()=>{bt&&nt()}};return React.createElement("div",{className:"Toastify__progress-bar--wrp","data-hidden":kt},React.createElement("div",{className:`Toastify__progress-bar--bg Toastify__progress-bar-theme--${gt} Toastify__progress-bar--${it}`}),React.createElement("div",{role:"progressbar","aria-hidden":kt?"true":"false","aria-label":"notification timer",className:$t,style:pt,...mt}))}let w$1=1;const k$1=()=>""+w$1++;function P$1(et){return et&&(d$1(et.toastId)||c$1(et.toastId))?et.toastId:k$1()}function M(et,tt){return _(et,tt),tt.toastId}function x(et,tt){return{...tt,type:tt&&tt.type||et,toastId:P$1(tt)}}function A(et){return(tt,rt)=>M(tt,x(et,rt))}function B(et,tt){return M(et,x("default",tt))}B.loading=(et,tt)=>M(et,x("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...tt})),B.promise=function(et,tt,rt){let nt,{pending:it,error:st,success:at}=tt;it&&(nt=d$1(it)?B.loading(it,rt):B.loading(it.render,{...rt,...it}));const ot={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},lt=(dt,bt,gt)=>{if(bt==null)return void B.dismiss(nt);const kt={type:dt,...ot,...rt,data:gt},pt=d$1(bt)?{render:bt}:bt;return nt?B.update(nt,{...kt,...pt}):B(pt.render,{...kt,...pt}),gt},ut=u$1(et)?et():et;return ut.then(dt=>lt("success",at,dt)).catch(dt=>lt("error",st,dt)),ut},B.success=A("success"),B.info=A("info"),B.error=A("error"),B.warning=A("warning"),B.warn=B.warning,B.dark=(et,tt)=>M(et,x("default",{theme:"dark",...tt})),B.dismiss=function(et){(function(tt){var rt;if(b$1()){if(tt==null||d$1(rt=tt)||c$1(rt))v$2.forEach(it=>{it.removeToast(tt)});else if(tt&&("containerId"in tt||"id"in tt)){var nt;(nt=v$2.get(tt.containerId))!=null&&nt.removeToast(tt.id)||v$2.forEach(it=>{it.removeToast(tt.id)})}}else h$2=h$2.filter(it=>tt!=null&&it.options.toastId!==tt)})(et)},B.clearWaitingQueue=function(et){et===void 0&&(et={}),v$2.forEach(tt=>{!tt.props.limit||et.containerId&&tt.id!==et.containerId||tt.clearQueue()})},B.isActive=I,B.update=function(et,tt){tt===void 0&&(tt={});const rt=((nt,it)=>{var st;let{containerId:at}=it;return(st=v$2.get(at||1))==null?void 0:st.toasts.get(nt)})(et,tt);if(rt){const{props:nt,content:it}=rt,st={delay:100,...nt,...tt,toastId:tt.toastId||et,updateId:k$1()};st.toastId!==et&&(st.staleId=et);const at=st.render||it;delete st.render,M(at,st)}},B.done=et=>{B.update(et,{progress:1})},B.onChange=function(et){return T.add(et),()=>{T.delete(et)}},B.play=et=>C(!0,et),B.pause=et=>C(!1,et);const O=typeof window<"u"?reactExports.useLayoutEffect:reactExports.useEffect,D=et=>{let{theme:tt,type:rt,isLoading:nt,...it}=et;return React.createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:tt==="colored"?"currentColor":`var(--toastify-icon-color-${rt})`,...it})},z={info:function(et){return React.createElement(D,{...et},React.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(et){return React.createElement(D,{...et},React.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(et){return React.createElement(D,{...et},React.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(et){return React.createElement(D,{...et},React.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 React.createElement("div",{className:"Toastify__spinner"})}},R=et=>{const{isRunning:tt,preventExitTransition:rt,toastRef:nt,eventHandlers:it,playToast:st}=N(et),{closeButton:at,children:ot,autoClose:lt,onClick:ut,type:dt,hideProgressBar:bt,closeToast:gt,transition:kt,position:pt,className:yt,style:$t,bodyClassName:mt,bodyStyle:wt,progressClassName:St,progressStyle:Bt,updateId:Ot,role:Lt,progress:zt,rtl:Vt,toastId:Wt,deleteToast:lr,isIn:qt,isLoading:Ft,closeOnClick:Mt,theme:ht}=et,Et=clsx$1("Toastify__toast",`Toastify__toast-theme--${ht}`,`Toastify__toast--${dt}`,{"Toastify__toast--rtl":Vt},{"Toastify__toast--close-on-click":Mt}),Tt=u$1(yt)?yt({rtl:Vt,position:pt,type:dt,defaultClassName:Et}):clsx$1(Et,yt),Rt=function(Ct){let{theme:xt,type:Dt,isLoading:tr,icon:pr}=Ct,Kt=null;const Qt={theme:xt,type:Dt};return pr===!1||(u$1(pr)?Kt=pr({...Qt,isLoading:tr}):reactExports.isValidElement(pr)?Kt=reactExports.cloneElement(pr,Qt):tr?Kt=z.spinner():(Zt=>Zt in z)(Dt)&&(Kt=z[Dt](Qt))),Kt}(et),At=!!zt||!lt,Pt={closeToast:gt,type:dt,theme:ht};let It=null;return at===!1||(It=u$1(at)?at(Pt):reactExports.isValidElement(at)?reactExports.cloneElement(at,Pt):function(Ct){let{closeToast:xt,theme:Dt,ariaLabel:tr="close"}=Ct;return React.createElement("button",{className:`Toastify__close-button Toastify__close-button--${Dt}`,type:"button",onClick:pr=>{pr.stopPropagation(),xt(pr)},"aria-label":tr},React.createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},React.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"})))}(Pt)),React.createElement(kt,{isIn:qt,done:lr,position:pt,preventExitTransition:rt,nodeRef:nt,playToast:st},React.createElement("div",{id:Wt,onClick:ut,"data-in":qt,className:Tt,...it,style:$t,ref:nt},React.createElement("div",{...qt&&{role:Lt},className:u$1(mt)?mt({type:dt}):clsx$1("Toastify__toast-body",mt),style:wt},Rt!=null&&React.createElement("div",{className:clsx$1("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!Ft})},Rt),React.createElement("div",null,ot)),It,React.createElement($,{...Ot&&!At?{key:`pb-${Ot}`}:{},rtl:Vt,theme:ht,delay:lt,isRunning:tt,isIn:qt,closeToast:gt,hide:bt,type:dt,style:Bt,className:St,controlledProgress:At,progress:zt||0})))},S=function(et,tt){return tt===void 0&&(tt=!1),{enter:`Toastify--animate Toastify__${et}-enter`,exit:`Toastify--animate Toastify__${et}-exit`,appendPosition:tt}},H=g$1(S("bounce",!0));g$1(S("slide",!0));g$1(S("zoom"));g$1(S("flip"));const q={position:"top-right",transition:H,autoClose:5e3,closeButton:!0,pauseOnHover:!0,pauseOnFocusLoss:!0,draggable:"touch",draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};function Q(et){let tt={...q,...et};const rt=et.stacked,[nt,it]=reactExports.useState(!0),st=reactExports.useRef(null),{getToastToRender:at,isToastActive:ot,count:lt}=L(tt),{className:ut,style:dt,rtl:bt,containerId:gt}=tt;function kt(yt){const $t=clsx$1("Toastify__toast-container",`Toastify__toast-container--${yt}`,{"Toastify__toast-container--rtl":bt});return u$1(ut)?ut({position:yt,rtl:bt,defaultClassName:$t}):clsx$1($t,p$1(ut))}function pt(){rt&&(it(!0),B.play())}return O(()=>{if(rt){var yt;const $t=st.current.querySelectorAll('[data-in="true"]'),mt=12,wt=(yt=tt.position)==null?void 0:yt.includes("top");let St=0,Bt=0;Array.from($t).reverse().forEach((Ot,Lt)=>{const zt=Ot;zt.classList.add("Toastify__toast--stacked"),Lt>0&&(zt.dataset.collapsed=`${nt}`),zt.dataset.pos||(zt.dataset.pos=wt?"top":"bot");const Vt=St*(nt?.2:1)+(nt?0:mt*Lt);zt.style.setProperty("--y",`${wt?Vt:-1*Vt}px`),zt.style.setProperty("--g",`${mt}`),zt.style.setProperty("--s",""+(1-(nt?Bt:0))),St+=zt.offsetHeight,Bt+=.025})}},[nt,lt,rt]),React.createElement("div",{ref:st,className:"Toastify",id:gt,onMouseEnter:()=>{rt&&(it(!1),B.pause())},onMouseLeave:pt},at((yt,$t)=>{const mt=$t.length?{...dt}:{...dt,pointerEvents:"none"};return React.createElement("div",{className:kt(yt),style:mt,key:`container-${yt}`},$t.map(wt=>{let{content:St,props:Bt}=wt;return React.createElement(R,{...Bt,stacked:rt,collapseAll:pt,isIn:ot(Bt.toastId,Bt.containerId),style:Bt.style,key:`toast-${Bt.key}`},St)}))}))}const ReactToastify="",StyledDiv=styled$3.div` display: Flex; justify-content: center; align-items: center; @@ -556,7 +556,7 @@ PROCEED WITH CAUTION! color: ${colors.GRAY6}; cursor: pointer; z-index: 1; -`,BaseModal=({background:et="modalBg",children:tt,id:rt,hideBg:nt,kind:it,preventOutsideClose:st,noWrap:at=!1,onClose:ot})=>{const{visible:lt,close:ut}=useModal(rt);return reactExports.useEffect(()=>{const dt=bt=>{bt.keyCode===27&&ut()};return lt&&document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[lt,ut]),lt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Bg,{align:"center","data-testid":"modal-overlay",hideBg:nt,justify:"center",onClick:dt=>{st||(dt.stopPropagation(),ut())},children:jsxRuntimeExports.jsxs(ModalContainer,{background:et,borderRadius:9,id:rt,kind:it,onClick:dt=>{dt.stopPropagation()},px:at?0:20,py:at?0:20,children:[ot&&jsxRuntimeExports.jsx(CloseButton,{"data-testid":"close-modal",onClick:ot,children:jsxRuntimeExports.jsx(ClearIcon,{})}),tt]})})}):null},defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(et,tt)=>await api$1.put(`/schema/${et}`,JSON.stringify(tt)),changeNodeType=async(et,tt)=>api$1.put("/node",JSON.stringify({...tt,ref_id:et})),getFullTranscript=async et=>{const tt=`/node/text/${et}`;return await api$1.get(tt)},getSchemaAll=async()=>{const et="/schema/all";return await api$1.get(et)},getNodeContent=async et=>{const rt=`/node/content?${new URLSearchParams({...et}).toString()}`;return await api$1.get(rt)},getTotalProcessing=async()=>{const et="/node/content";return await api$1.get(et)},getRadarData=async(et=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...et}).toString()}`),getTopicsData=async(et=defaultParams,tt)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...et}).toString()}`,void 0,tt),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(et,tt)=>await api$1.get(`/curation/search/${et}?${new URLSearchParams({exact_match:"false",...tt}).toString()}`),postEdgeType=async et=>await api$1.post("/curation/edge",JSON.stringify(et)),postAboutData=async et=>await api$1.post("/about",JSON.stringify(et)),postMergeTopics=async et=>await api$1.post("/curation/merge",JSON.stringify(et)),putRadarData=async(et,tt)=>await api$1.put(`/radar/${et}`,JSON.stringify(tt)),putNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),editNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),approveRadarData=async(et,tt)=>await api$1.put(`/radar/${et}/approve`,JSON.stringify({approve:"True",pubkey:tt})),deleteRadarData=async et=>await api$1.delete(`/radar/${et}`),deleteNode=async et=>await api$1.delete(`/node/?ref_id=${et}`),getNode=async et=>await api$1.get(`/node/${et}`),getPriceData=async et=>await api$1.get(`/getprice?endpoint=${et}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async et=>await api$1.get(`/schema/${et}`),postBluePrintType=async et=>await api$1.post("/schema/edge",JSON.stringify(et)),updateEdgeType=async et=>await api$1.put(`/schema/edge/${et.ref_id}`,JSON.stringify({edge_type:et.edge_type})),deleteEdgeType=async et=>await api$1.delete(`/schema/edge/${et}`),initialValue={label:"Not Selected",value:"Not Selected"},NoParent={label:"No Parent",value:"No Parent"},OptionTypes=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],OPTIONS=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],noSpacePattern=/^[^\s].*$/;var reactInputMask={exports:{}},reactInputMask_production_min={exports:{}},invariant=function(et,tt,rt,nt,it,st,at,ot){if(!et){var lt;if(tt===void 0)lt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ut=[rt,nt,it,st,at,ot],dt=0;lt=new Error(tt.replace(/%s/g,function(){return ut[dt++]})),lt.name="Invariant Violation"}throw lt.framesToPop=1,lt}},browser=invariant;function t(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var e=reactExports,n=t(e),i=reactDomExports,r$1=t(browser);function a(){return(a=Object.assign||function(et){for(var tt=1;tt=0||(it[rt]=et[rt]);return it}function u(et){return requestAnimationFrame(et)}function s(et){cancelAnimationFrame(et)}function c(et){var tt=et.ownerDocument;return tt.hasFocus()&&tt.activeElement===et}function f(et){return et==null?void 0:et.ownerDocument}function h$1(et){var tt=function(rt){var nt;return(nt=f(rt))==null?void 0:nt.defaultView}(et);return!!tt&&et instanceof tt.HTMLElement}function g(et){return e.useCallback(function(){var tt=et.current,rt=typeof window<"u"&&h$1(tt);if(!tt||!rt)return null;if(tt.nodeName!=="INPUT"&&(tt=tt.querySelector("input")),!tt)throw new Error("react-input-mask: inputComponent doesn't contain input node");return tt},[et])}function v$1(et,tt){var rt,nt,it,st,at=e.useRef({start:null,end:null}),ot=g(et),lt=e.useCallback(function(){return function(yt){var $t=yt.selectionStart,mt=yt.selectionEnd;return{start:$t,end:mt,length:mt-$t}}(ot())},[ot]),ut=e.useCallback(function(){return at.current},[]),dt=e.useCallback(function(yt){var $t=ot();$t&&c($t)&&(function(mt,wt,St){St===void 0&&(St=wt),mt.setSelectionRange(wt,St)}($t,yt.start,yt.end),at.current=lt())},[ot,lt]),bt=e.useCallback(function(){at.current=lt()},[lt]),gt=(rt=bt,nt=e.useRef(null),it=e.useCallback(function(){nt.current===null&&function yt(){rt(),nt.current=u(yt)}()},[rt]),st=e.useCallback(function(){s(nt.current),nt.current=null},[]),e.useEffect(function(){nt.current&&(st(),it())},[it,st]),e.useEffect(s,[]),[it,st]),kt=gt[0],pt=gt[1];return e.useLayoutEffect(function(){if(tt){var yt=ot();return yt.addEventListener("focus",kt),yt.addEventListener("blur",pt),c(yt)&&kt(),function(){yt.removeEventListener("focus",kt),yt.removeEventListener("blur",pt),pt()}}}),{getSelection:lt,getLastSelection:ut,setSelection:dt}}function d(et,tt){var rt=e.useRef(),nt=v$1(rt,tt),it=nt.getSelection,st=nt.getLastSelection,at=nt.setSelection,ot=function(bt,gt){var kt=g(bt),pt=e.useRef(gt);return{getValue:e.useCallback(function(){return kt().value},[kt]),getLastValue:e.useCallback(function(){return pt.current},[]),setValue:e.useCallback(function(yt){pt.current=yt;var $t=kt();$t&&($t.value=yt)},[kt])}}(rt,et),lt=ot.getValue,ut=ot.getLastValue,dt=ot.setValue;return{inputRef:rt,getInputState:function(){return{value:lt(),selection:it()}},getLastInputState:function(){return{value:ut(),selection:st()}},setInputState:function(bt){var gt=bt.value,kt=bt.selection;dt(gt),at(kt)}}}var p=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},P=function(et){var tt=this;this.isCharacterAllowedAtPosition=function(rt,nt){var it=tt.maskOptions.maskPlaceholder;return!!tt.isCharacterFillingPosition(rt,nt)||!!it&&it[nt]===rt},this.isCharacterFillingPosition=function(rt,nt){var it=tt.maskOptions.mask;if(!rt||nt>=it.length)return!1;if(!tt.isPositionEditable(nt))return it[nt]===rt;var st=it[nt];return new RegExp(st).test(rt)},this.isPositionEditable=function(rt){var nt=tt.maskOptions,it=nt.mask,st=nt.permanents;return rt=0;st--)if(it(nt[st],st))return st;return-1}(rt.split(""),function(nt,it){return tt.isPositionEditable(it)&&tt.isCharacterFillingPosition(nt,it)})+1},this.getStringFillingLengthAtPosition=function(rt,nt){return rt.split("").reduce(function(it,st){return tt.insertCharacterAtPosition(it,st,it.length)},function(it,st){st===void 0&&(st=1);for(var at="",ot=0;ot=0;nt--)if(tt.isPositionEditable(nt))return nt;return null},this.getRightEditablePosition=function(rt){for(var nt=tt.maskOptions.mask,it=rt;it=st&&!gt?"":bt=st?dt:gt?ot?ot[bt]:"":lt[bt]}).join("");return tt.formatValue(ut)},this.insertCharacterAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(it>=at.length)return rt;var lt=tt.isCharacterAllowedAtPosition(nt,it),ut=tt.isPositionEditable(it),dt=tt.getRightEditablePosition(it),bt=ot&&dt?nt===ot[dt]:null,gt=rt.slice(0,it);return!lt&&ut||(rt=gt+(lt?nt:at[it])),lt||ut||bt||(rt=tt.insertCharacterAtPosition(rt,nt,it+1)),rt},this.insertStringAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(!nt||it>=at.length)return rt;var lt=nt.split(""),ut=tt.isValueFilled(rt)||!!ot,dt=rt.slice(it);return rt=lt.reduce(function(bt,gt){return tt.insertCharacterAtPosition(bt,gt,bt.length)},rt.slice(0,it)),ut?rt+=dt.slice(rt.length-it):tt.isValueFilled(rt)?rt+=at.slice(rt.length).join(""):rt=dt.split("").filter(function(bt,gt){return tt.isPositionEditable(it+gt)}).reduce(function(bt,gt){var kt=tt.getRightEditablePosition(bt.length);return kt===null?bt:(tt.isPositionEditable(bt.length)||(bt+=at.slice(bt.length,kt).join("")),tt.insertCharacterAtPosition(bt,gt,bt.length))},rt),rt},this.processChange=function(rt,nt){var it=tt.maskOptions,st=it.mask,at=it.prefix,ot=it.lastEditablePosition,lt=rt.value,ut=rt.selection,dt=nt.value,bt=nt.selection,gt=lt,kt="",pt=0,yt=0,$t=Math.min(bt.start,ut.start);return ut.end>bt.start?(kt=gt.slice(bt.start,ut.end),yt=(pt=tt.getStringFillingLengthAtPosition(kt,$t))?bt.length:0):gt.length=st.length?$t=st.length:$t=at.length&&$t{const{visible:lt,close:ut}=useModal(rt);return reactExports.useEffect(()=>{const dt=bt=>{bt.keyCode===27&&ut()};return lt&&document.addEventListener("keydown",dt),()=>{document.removeEventListener("keydown",dt)}},[lt,ut]),lt?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:jsxRuntimeExports.jsx(Bg,{align:"center","data-testid":"modal-overlay",hideBg:nt,justify:"center",onClick:dt=>{st||(dt.stopPropagation(),ut())},children:jsxRuntimeExports.jsxs(ModalContainer,{background:et,borderRadius:9,id:rt,kind:it,onClick:dt=>{dt.stopPropagation()},px:at?0:20,py:at?0:20,children:[ot&&jsxRuntimeExports.jsx(CloseButton,{"data-testid":"close-modal",onClick:ot,children:jsxRuntimeExports.jsx(ClearIcon,{})}),tt]})})}):null},defaultParams={skip:"0",limit:"500"},editNodeSchemaUpdate=async(et,tt)=>await api$1.put(`/schema/${et}`,JSON.stringify(tt)),changeNodeType=async(et,tt)=>api$1.put("/node",JSON.stringify({...tt,ref_id:et})),getFullTranscript=async et=>{const tt=`/node/text/${et}`;return await api$1.get(tt)},getSchemaAll=async()=>{const et="/schema/all";return await api$1.get(et)},getNodeContent=async et=>{const rt=`/node/content?${new URLSearchParams({...et}).toString()}`;return await api$1.get(rt)},getTotalProcessing=async()=>{const et="/node/content";return await api$1.get(et)},getRadarData=async(et=defaultParams)=>await api$1.get(`/radar?${new URLSearchParams({...defaultParams,...et}).toString()}`),getTopicsData=async(et=defaultParams,tt)=>await api$1.get(`/nodes/info?${new URLSearchParams({...defaultParams,...et}).toString()}`,void 0,tt),getAboutData=async()=>await api$1.get("/about"),getStats=async()=>await api$1.get("/stats"),getEdgeTypes=async()=>await api$1.get("/curation/edge/type"),getEdges=async(et,tt)=>await api$1.get(`/curation/search/${et}?${new URLSearchParams({exact_match:"false",...tt}).toString()}`),postEdgeType=async et=>await api$1.post("/curation/edge",JSON.stringify(et)),postAboutData=async et=>await api$1.post("/about",JSON.stringify(et)),postMergeTopics=async et=>await api$1.post("/curation/merge",JSON.stringify(et)),putRadarData=async(et,tt)=>await api$1.put(`/radar/${et}`,JSON.stringify(tt)),putNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),editNodeData=async(et,tt)=>await api$1.put(`/node?ref_id=${et}`,JSON.stringify(tt)),approveRadarData=async(et,tt)=>await api$1.put(`/radar/${et}/approve`,JSON.stringify({approve:"True",pubkey:tt})),deleteRadarData=async et=>await api$1.delete(`/radar/${et}`),deleteNode=async et=>await api$1.delete(`/node/?ref_id=${et}`),getNode=async et=>await api$1.get(`/node/${et}`),getPriceData=async et=>await api$1.get(`/getprice?endpoint=${et}&method=post`),getNodeSchemaTypes=async()=>await api$1.get("/schema/all"),getNodeType=async et=>await api$1.get(`/schema/${et}`),postBluePrintType=async et=>await api$1.post("/schema/edge",JSON.stringify(et)),updateEdgeType=async et=>await api$1.put(`/schema/edge/${et.ref_id}`,JSON.stringify({edge_type:et.edge_type})),deleteEdgeType=async et=>await api$1.delete(`/schema/edge/${et}`),initialValue={label:"Not Selected",value:"Not Selected"},NoParent={label:"No Parent",value:"No Parent"},OptionTypes=[{label:"number",value:"int"},{label:"string",value:"string"},{label:"boolean",value:"boolean"}],OPTIONS=[{label:"Corporation",value:"Corporation"},{label:"Event",value:"Event"},{label:"Image",value:"Image"},{label:"Organization",value:"Organization"},{label:"Person",value:"Person"},{label:"Place",value:"Place"},{label:"Project",value:"Project"},{label:"Software",value:"Software"},{label:"Topic",value:"Topic"}],noSpacePattern=/^[^\s].*$/;var reactInputMask={exports:{}},reactInputMask_production_min={exports:{}},invariant=function(et,tt,rt,nt,it,st,at,ot){if(!et){var lt;if(tt===void 0)lt=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var ut=[rt,nt,it,st,at,ot],dt=0;lt=new Error(tt.replace(/%s/g,function(){return ut[dt++]})),lt.name="Invariant Violation"}throw lt.framesToPop=1,lt}},browser=invariant;function t(et){return et&&typeof et=="object"&&"default"in et?et.default:et}var e=reactExports,n=t(e),i=reactDomExports,r$1=t(browser);function a(){return(a=Object.assign||function(et){for(var tt=1;tt=0||(it[rt]=et[rt]);return it}function u(et){return requestAnimationFrame(et)}function s(et){cancelAnimationFrame(et)}function c(et){var tt=et.ownerDocument;return tt.hasFocus()&&tt.activeElement===et}function f(et){return et==null?void 0:et.ownerDocument}function h$1(et){var tt=function(rt){var nt;return(nt=f(rt))==null?void 0:nt.defaultView}(et);return!!tt&&et instanceof tt.HTMLElement}function g(et){return e.useCallback(function(){var tt=et.current,rt=typeof window<"u"&&h$1(tt);if(!tt||!rt)return null;if(tt.nodeName!=="INPUT"&&(tt=tt.querySelector("input")),!tt)throw new Error("react-input-mask: inputComponent doesn't contain input node");return tt},[et])}function v$1(et,tt){var rt,nt,it,st,at=e.useRef({start:null,end:null}),ot=g(et),lt=e.useCallback(function(){return function(yt){var $t=yt.selectionStart,mt=yt.selectionEnd;return{start:$t,end:mt,length:mt-$t}}(ot())},[ot]),ut=e.useCallback(function(){return at.current},[]),dt=e.useCallback(function(yt){var $t=ot();$t&&c($t)&&(function(mt,wt,St){St===void 0&&(St=wt),mt.setSelectionRange(wt,St)}($t,yt.start,yt.end),at.current=lt())},[ot,lt]),bt=e.useCallback(function(){at.current=lt()},[lt]),gt=(rt=bt,nt=e.useRef(null),it=e.useCallback(function(){nt.current===null&&function yt(){rt(),nt.current=u(yt)}()},[rt]),st=e.useCallback(function(){s(nt.current),nt.current=null},[]),e.useEffect(function(){nt.current&&(st(),it())},[it,st]),e.useEffect(s,[]),[it,st]),kt=gt[0],pt=gt[1];return e.useLayoutEffect(function(){if(tt){var yt=ot();return yt.addEventListener("focus",kt),yt.addEventListener("blur",pt),c(yt)&&kt(),function(){yt.removeEventListener("focus",kt),yt.removeEventListener("blur",pt),pt()}}}),{getSelection:lt,getLastSelection:ut,setSelection:dt}}function d(et,tt){var rt=e.useRef(),nt=v$1(rt,tt),it=nt.getSelection,st=nt.getLastSelection,at=nt.setSelection,ot=function(bt,gt){var kt=g(bt),pt=e.useRef(gt);return{getValue:e.useCallback(function(){return kt().value},[kt]),getLastValue:e.useCallback(function(){return pt.current},[]),setValue:e.useCallback(function(yt){pt.current=yt;var $t=kt();$t&&($t.value=yt)},[kt])}}(rt,et),lt=ot.getValue,ut=ot.getLastValue,dt=ot.setValue;return{inputRef:rt,getInputState:function(){return{value:lt(),selection:it()}},getLastInputState:function(){return{value:ut(),selection:st()}},setInputState:function(bt){var gt=bt.value,kt=bt.selection;dt(gt),at(kt)}}}var p=["disabled","onBlur","onChange","onFocus","onMouseDown","readOnly","value"],m={9:/[0-9]/,a:/[A-Za-z]/,"*":/[A-Za-z0-9]/},P=function(et){var tt=this;this.isCharacterAllowedAtPosition=function(rt,nt){var it=tt.maskOptions.maskPlaceholder;return!!tt.isCharacterFillingPosition(rt,nt)||!!it&&it[nt]===rt},this.isCharacterFillingPosition=function(rt,nt){var it=tt.maskOptions.mask;if(!rt||nt>=it.length)return!1;if(!tt.isPositionEditable(nt))return it[nt]===rt;var st=it[nt];return new RegExp(st).test(rt)},this.isPositionEditable=function(rt){var nt=tt.maskOptions,it=nt.mask,st=nt.permanents;return rt=0;st--)if(it(nt[st],st))return st;return-1}(rt.split(""),function(nt,it){return tt.isPositionEditable(it)&&tt.isCharacterFillingPosition(nt,it)})+1},this.getStringFillingLengthAtPosition=function(rt,nt){return rt.split("").reduce(function(it,st){return tt.insertCharacterAtPosition(it,st,it.length)},function(it,st){st===void 0&&(st=1);for(var at="",ot=0;ot=0;nt--)if(tt.isPositionEditable(nt))return nt;return null},this.getRightEditablePosition=function(rt){for(var nt=tt.maskOptions.mask,it=rt;it=st&&!gt?"":bt=st?dt:gt?ot?ot[bt]:"":lt[bt]}).join("");return tt.formatValue(ut)},this.insertCharacterAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(it>=at.length)return rt;var lt=tt.isCharacterAllowedAtPosition(nt,it),ut=tt.isPositionEditable(it),dt=tt.getRightEditablePosition(it),bt=ot&&dt?nt===ot[dt]:null,gt=rt.slice(0,it);return!lt&&ut||(rt=gt+(lt?nt:at[it])),lt||ut||bt||(rt=tt.insertCharacterAtPosition(rt,nt,it+1)),rt},this.insertStringAtPosition=function(rt,nt,it){var st=tt.maskOptions,at=st.mask,ot=st.maskPlaceholder;if(!nt||it>=at.length)return rt;var lt=nt.split(""),ut=tt.isValueFilled(rt)||!!ot,dt=rt.slice(it);return rt=lt.reduce(function(bt,gt){return tt.insertCharacterAtPosition(bt,gt,bt.length)},rt.slice(0,it)),ut?rt+=dt.slice(rt.length-it):tt.isValueFilled(rt)?rt+=at.slice(rt.length).join(""):rt=dt.split("").filter(function(bt,gt){return tt.isPositionEditable(it+gt)}).reduce(function(bt,gt){var kt=tt.getRightEditablePosition(bt.length);return kt===null?bt:(tt.isPositionEditable(bt.length)||(bt+=at.slice(bt.length,kt).join("")),tt.insertCharacterAtPosition(bt,gt,bt.length))},rt),rt},this.processChange=function(rt,nt){var it=tt.maskOptions,st=it.mask,at=it.prefix,ot=it.lastEditablePosition,lt=rt.value,ut=rt.selection,dt=nt.value,bt=nt.selection,gt=lt,kt="",pt=0,yt=0,$t=Math.min(bt.start,ut.start);return ut.end>bt.start?(kt=gt.slice(bt.start,ut.end),yt=(pt=tt.getStringFillingLengthAtPosition(kt,$t))?bt.length:0):gt.length=st.length?$t=st.length:$t=at.length&&$tcolors[et]}; background: transparent; @@ -590,7 +590,7 @@ PROCEED WITH CAUTION! -webkit-text-fill-color: ${({placeholderTextColor:et})=>colors[et]}; color: ${({placeholderTextColor:et})=>colors[et]}; } -`;WebTextInput.displayName="WebTextInput";const BaseTextInput=reactExports.forwardRef(({autoComplete:et=defaultProps.autoComplete,autoFocus:tt,className:rt,colorName:nt=defaultProps.colorName,dataTestId:it,defaultValue:st,disabled:at=defaultProps.disabled,id:ot,maxLength:lt=defaultProps.maxLength,name:ut,onBlur:dt,onChange:bt,onFocus:gt,onKeyDown:kt,placeholder:pt=defaultProps.placeholder,placeholderTextColor:yt=defaultProps.placeholderTextColor,textAlign:$t=defaultProps.textAlign,type:mt=defaultProps.type,value:wt},St)=>{const Bt=reactExports.useCallback(Ft=>{bt&&bt(Ft.target.value)},[bt]);return jsxRuntimeExports.jsx(WebTextInput,{ref:St,autoComplete:et,autoFocus:tt,className:rt,colorName:nt,"data-testid":it,defaultValue:st,disabled:at,id:ot,maxLength:lt,name:ut,onBlur:dt,onChange:Bt,onFocus:gt,onKeyDown:kt,placeholder:pt,placeholderTextColor:yt,spellCheck:!1,textAlign:$t,type:mt,value:wt})});BaseTextInput.displayName="BaseTextInput";const InfoIcon=et=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"info",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_2682_970)",children:jsxRuntimeExports.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})}),getBorderColor=et=>et.hasError?colors.primaryRed:et.isFocused||et.isHovered?colors.primaryBlue:"transparent",Wrapper$1=styled$3(Flex)` +`;WebTextInput.displayName="WebTextInput";const BaseTextInput=reactExports.forwardRef(({autoComplete:et=defaultProps.autoComplete,autoFocus:tt,className:rt,colorName:nt=defaultProps.colorName,dataTestId:it,defaultValue:st,disabled:at=defaultProps.disabled,id:ot,maxLength:lt=defaultProps.maxLength,name:ut,onBlur:dt,onChange:bt,onFocus:gt,onKeyDown:kt,placeholder:pt=defaultProps.placeholder,placeholderTextColor:yt=defaultProps.placeholderTextColor,textAlign:$t=defaultProps.textAlign,type:mt=defaultProps.type,value:wt},St)=>{const Bt=reactExports.useCallback(Ot=>{bt&&bt(Ot.target.value)},[bt]);return jsxRuntimeExports.jsx(WebTextInput,{ref:St,autoComplete:et,autoFocus:tt,className:rt,colorName:nt,"data-testid":it,defaultValue:st,disabled:at,id:ot,maxLength:lt,name:ut,onBlur:dt,onChange:Bt,onFocus:gt,onKeyDown:kt,placeholder:pt,placeholderTextColor:yt,spellCheck:!1,textAlign:$t,type:mt,value:wt})});BaseTextInput.displayName="BaseTextInput";const InfoIcon=et=>jsxRuntimeExports.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsxs("g",{id:"info",children:[jsxRuntimeExports.jsx("mask",{id:"mask0_2682_970",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:jsxRuntimeExports.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),jsxRuntimeExports.jsx("g",{mask:"url(#mask0_2682_970)",children:jsxRuntimeExports.jsx("path",{id:"info_2",d:"M7.99992 11.3334C8.18881 11.3334 8.34714 11.2695 8.47492 11.1417C8.6027 11.0139 8.66658 10.8556 8.66658 10.6667V8.00004C8.66658 7.81115 8.6027 7.65282 8.47492 7.52504C8.34714 7.39726 8.18881 7.33337 7.99992 7.33337C7.81103 7.33337 7.6527 7.39726 7.52492 7.52504C7.39714 7.65282 7.33325 7.81115 7.33325 8.00004V10.6667C7.33325 10.8556 7.39714 11.0139 7.52492 11.1417C7.6527 11.2695 7.81103 11.3334 7.99992 11.3334ZM7.99992 6.00004C8.18881 6.00004 8.34714 5.93615 8.47492 5.80837C8.6027 5.6806 8.66658 5.52226 8.66658 5.33337C8.66658 5.14448 8.6027 4.98615 8.47492 4.85837C8.34714 4.7306 8.18881 4.66671 7.99992 4.66671C7.81103 4.66671 7.6527 4.7306 7.52492 4.85837C7.39714 4.98615 7.33325 5.14448 7.33325 5.33337C7.33325 5.52226 7.39714 5.6806 7.52492 5.80837C7.6527 5.93615 7.81103 6.00004 7.99992 6.00004ZM7.99992 14.6667C7.0777 14.6667 6.21103 14.4917 5.39992 14.1417C4.58881 13.7917 3.88325 13.3167 3.28325 12.7167C2.68325 12.1167 2.20825 11.4112 1.85825 10.6C1.50825 9.78893 1.33325 8.92226 1.33325 8.00004C1.33325 7.07782 1.50825 6.21115 1.85825 5.40004C2.20825 4.58893 2.68325 3.88337 3.28325 3.28337C3.88325 2.68337 4.58881 2.20837 5.39992 1.85837C6.21103 1.50837 7.0777 1.33337 7.99992 1.33337C8.92214 1.33337 9.78881 1.50837 10.5999 1.85837C11.411 2.20837 12.1166 2.68337 12.7166 3.28337C13.3166 3.88337 13.7916 4.58893 14.1416 5.40004C14.4916 6.21115 14.6666 7.07782 14.6666 8.00004C14.6666 8.92226 14.4916 9.78893 14.1416 10.6C13.7916 11.4112 13.3166 12.1167 12.7166 12.7167C12.1166 13.3167 11.411 13.7917 10.5999 14.1417C9.78881 14.4917 8.92214 14.6667 7.99992 14.6667ZM7.99992 13.3334C9.48881 13.3334 10.7499 12.8167 11.7833 11.7834C12.8166 10.75 13.3333 9.48893 13.3333 8.00004C13.3333 6.51115 12.8166 5.25004 11.7833 4.21671C10.7499 3.18337 9.48881 2.66671 7.99992 2.66671C6.51103 2.66671 5.24992 3.18337 4.21659 4.21671C3.18325 5.25004 2.66659 6.51115 2.66659 8.00004C2.66659 9.48893 3.18325 10.75 4.21659 11.7834C5.24992 12.8167 6.51103 13.3334 7.99992 13.3334Z",fill:"currentColor"})})]})}),getBorderColor=et=>et.hasError?colors.primaryRed:et.isFocused||et.isHovered?colors.primaryBlue:"transparent",Wrapper$1=styled$3(Flex)` background: ${colors.inputBg2}; border-radius: 8px; border: 1px solid ${getBorderColor}; @@ -651,7 +651,7 @@ PROCEED WITH CAUTION! line-height: 20px; letter-spacing: 0.01em; text-align: left; -`,TextInput=({id:et,dataTestId:tt,label:rt,mask:nt="",message:it,name:st,rules:at,showMask:ot=!1,maskPlaceholder:lt=null,isTextArea:ut=!1,placeholder:dt="",maxLength:bt,...gt})=>{const{register:kt,control:pt,formState:{errors:yt},getValues:$t}=useFormContext()||{},mt=get(yt,st),wt=$t(st),[St,Bt]=reactExports.useState(!1),[Ft,Lt]=reactExports.useState(!1);return reactExports.useEffect(()=>{const zt=document.getElementById(et);zt&&zt.focus()},[et]),jsxRuntimeExports.jsxs(Flex,{shrink:1,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",children:[rt&&jsxRuntimeExports.jsx(Label,{htmlFor:et,children:rt}),it&&jsxRuntimeExports.jsxs(QuestionIcon,{name:st,role:"tooltip",children:[jsxRuntimeExports.jsx(InfoIcon,{}),jsxRuntimeExports.jsx("div",{className:"tooltip",children:it})]})]}),jsxRuntimeExports.jsx(Wrapper$1,{hasContent:!!wt,hasError:!!mt,isFocused:St,isHovered:Ft,onMouseEnter:()=>Lt(!0),onMouseLeave:()=>Lt(!1),children:jsxRuntimeExports.jsx(Controller,{control:pt,...kt(st),render:({field:{onBlur:zt,onChange:Ht,value:Wt,ref:lr}})=>{const{disabled:qt=defaultProps.disabled,textAlign:Ot=defaultProps.textAlign}=gt;return ut?jsxRuntimeExports.jsx(StyledTextArea,{ref:lr,"data-testid":tt,disabled:qt,id:et,maxLength:bt,onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,value:Wt||""}):nt?jsxRuntimeExports.jsx(InputMask,{alwaysShowMask:ot,disabled:!1,inputRef:lr,mask:nt,...kt(st),maskPlaceholder:lt,onBlur:zt,onChange:Ht,value:Wt,children:jsxRuntimeExports.jsx(WebTextInput,{colorName:"white","data-testid":tt,disabled:qt,...kt(st),id:et,onBlur:()=>Bt(!1),onFocus:()=>Bt(!0),placeholderTextColor:"inputPlaceholder",textAlign:Ot})}):jsxRuntimeExports.jsx(BaseTextInput,{...gt,colorName:"white",dataTestId:tt,id:et,...kt(st),onBlur:()=>{Bt(!1),zt()},onChange:Ht,onFocus:()=>Bt(!0),placeholder:dt,placeholderTextColor:"inputPlaceholder",value:Wt||""})},rules:at})}),mt&&jsxRuntimeExports.jsx(Flex,{pl:4,pt:8,shrink:1,tabIndex:0,children:jsxRuntimeExports.jsx(Text,{color:"primaryRed",kind:"regularBold",children:jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",shrink:1,children:[jsxRuntimeExports.jsx(MdError,{fontSize:18}),jsxRuntimeExports.jsx(Flex,{pl:4,shrink:1,children:mt.message!==""?mt.message:"Please enter a valid URL"})]})})})]})},GraphDetailsStep=({onSubmit:et,error:tt})=>{const{formState:{isSubmitting:rt},watch:nt}=useFormContext(),it=nt("title"),st=nt("description"),at=!!(it!=null&&it.trim())&&!!(st!=null&&st.trim());return reactExports.useEffect(()=>{const ot=document.getElementById("graph-title");ot&&ot.focus()},[]),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",justify:"space-between",children:[jsxRuntimeExports.jsx(StyledText$1,{children:"Welcome to SecondBrain"}),jsxRuntimeExports.jsx(StyledSubText,{children:"Set a name and short description for your graph."})]}),jsxRuntimeExports.jsx(StyledWrapper,{children:jsxRuntimeExports.jsxs(Flex,{className:"input__wrapper",children:[jsxRuntimeExports.jsx(TextInput,{id:"graph-title",label:"Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}}),jsxRuntimeExports.jsx(TextInput,{id:"graph-description",label:"Description",maxLength:100,name:"description",placeholder:"Type graph description here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}})]})}),jsxRuntimeExports.jsx(Flex,{mt:10,children:jsxRuntimeExports.jsx(Button$1,{color:"secondary",disabled:rt||!!tt||!at,onClick:et,size:"large",variant:"contained",children:"Confirm"})}),tt?jsxRuntimeExports.jsx(StyledError,{children:jsxRuntimeExports.jsxs(StyledErrorText,{children:[jsxRuntimeExports.jsx(MdError,{className:"errorIcon"}),jsxRuntimeExports.jsx("span",{children:tt})]})}):null]})},StyledText$1=styled$3(Text)` +`,TextInput=({id:et,dataTestId:tt,label:rt,mask:nt="",message:it,name:st,rules:at,showMask:ot=!1,maskPlaceholder:lt=null,isTextArea:ut=!1,placeholder:dt="",maxLength:bt,...gt})=>{const{register:kt,control:pt,formState:{errors:yt},getValues:$t}=useFormContext()||{},mt=get(yt,st),wt=$t(st),[St,Bt]=reactExports.useState(!1),[Ot,Lt]=reactExports.useState(!1);return reactExports.useEffect(()=>{const zt=document.getElementById(et);zt&&zt.focus()},[et]),jsxRuntimeExports.jsxs(Flex,{shrink:1,children:[jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",children:[rt&&jsxRuntimeExports.jsx(Label,{htmlFor:et,children:rt}),it&&jsxRuntimeExports.jsxs(QuestionIcon,{name:st,role:"tooltip",children:[jsxRuntimeExports.jsx(InfoIcon,{}),jsxRuntimeExports.jsx("div",{className:"tooltip",children:it})]})]}),jsxRuntimeExports.jsx(Wrapper$1,{hasContent:!!wt,hasError:!!mt,isFocused:St,isHovered:Ot,onMouseEnter:()=>Lt(!0),onMouseLeave:()=>Lt(!1),children:jsxRuntimeExports.jsx(Controller,{control:pt,...kt(st),render:({field:{onBlur:zt,onChange:Vt,value:Wt,ref:lr}})=>{const{disabled:qt=defaultProps.disabled,textAlign:Ft=defaultProps.textAlign}=gt;return ut?jsxRuntimeExports.jsx(StyledTextArea,{ref:lr,"data-testid":tt,disabled:qt,id:et,maxLength:bt,onBlur:()=>{Bt(!1),zt()},onChange:Vt,onFocus:()=>Bt(!0),placeholder:dt,value:Wt||""}):nt?jsxRuntimeExports.jsx(InputMask,{alwaysShowMask:ot,disabled:!1,inputRef:lr,mask:nt,...kt(st),maskPlaceholder:lt,onBlur:zt,onChange:Vt,value:Wt,children:jsxRuntimeExports.jsx(WebTextInput,{colorName:"white","data-testid":tt,disabled:qt,...kt(st),id:et,onBlur:()=>Bt(!1),onFocus:()=>Bt(!0),placeholderTextColor:"inputPlaceholder",textAlign:Ft})}):jsxRuntimeExports.jsx(BaseTextInput,{...gt,colorName:"white",dataTestId:tt,id:et,...kt(st),onBlur:()=>{Bt(!1),zt()},onChange:Vt,onFocus:()=>Bt(!0),placeholder:dt,placeholderTextColor:"inputPlaceholder",value:Wt||""})},rules:at})}),mt&&jsxRuntimeExports.jsx(Flex,{pl:4,pt:8,shrink:1,tabIndex:0,children:jsxRuntimeExports.jsx(Text,{color:"primaryRed",kind:"regularBold",children:jsxRuntimeExports.jsxs(Flex,{align:"center",direction:"row",shrink:1,children:[jsxRuntimeExports.jsx(MdError,{fontSize:18}),jsxRuntimeExports.jsx(Flex,{pl:4,shrink:1,children:mt.message!==""?mt.message:"Please enter a valid URL"})]})})})]})},GraphDetailsStep=({onSubmit:et,error:tt})=>{const{formState:{isSubmitting:rt},watch:nt}=useFormContext(),it=nt("title"),st=nt("description"),at=!!(it!=null&&it.trim())&&!!(st!=null&&st.trim());return reactExports.useEffect(()=>{const ot=document.getElementById("graph-title");ot&&ot.focus()},[]),jsxRuntimeExports.jsxs(Flex,{children:[jsxRuntimeExports.jsxs(Flex,{direction:"column",justify:"space-between",children:[jsxRuntimeExports.jsx(StyledText$1,{children:"Welcome to SecondBrain"}),jsxRuntimeExports.jsx(StyledSubText,{children:"Set a name and short description for your graph."})]}),jsxRuntimeExports.jsx(StyledWrapper,{children:jsxRuntimeExports.jsxs(Flex,{className:"input__wrapper",children:[jsxRuntimeExports.jsx(TextInput,{id:"graph-title",label:"Title",maxLength:50,name:"title",placeholder:"Type graph title here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}}),jsxRuntimeExports.jsx(TextInput,{id:"graph-description",label:"Description",maxLength:100,name:"description",placeholder:"Type graph description here...",rules:{...requiredRule,pattern:{message:"No leading whitespace allowed",value:noSpacePattern}}})]})}),jsxRuntimeExports.jsx(Flex,{mt:10,children:jsxRuntimeExports.jsx(Button$1,{color:"secondary",disabled:rt||!!tt||!at,onClick:et,size:"large",variant:"contained",children:"Confirm"})}),tt?jsxRuntimeExports.jsx(StyledError,{children:jsxRuntimeExports.jsxs(StyledErrorText,{children:[jsxRuntimeExports.jsx(MdError,{className:"errorIcon"}),jsxRuntimeExports.jsx("span",{children:tt})]})}):null]})},StyledText$1=styled$3(Text)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; @@ -711,7 +711,7 @@ PROCEED WITH CAUTION! [zustand devtools middleware] Unsupported __setState action format. When using 'store' option in devtools(), the 'state' should have only one key, which is a value of 'store' that was passed in devtools(), and value of this only key should be a state object. Example: { "type": "__setState", "state": { "abc123Store": { "foo": "bar" } } } - `);const wt=mt.state[ot];if(wt==null)return;JSON.stringify(it.getState())!==JSON.stringify(wt)&&kt(wt);return}it.dispatchFromDevtools&&typeof it.dispatch=="function"&&it.dispatch(mt)});case"DISPATCH":switch(yt.payload.type){case"RESET":return kt(pt),ot===void 0?dt==null?void 0:dt.init(it.getState()):dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"COMMIT":if(ot===void 0){dt==null||dt.init(it.getState());return}return dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"ROLLBACK":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt),dt==null||dt.init(it.getState());return}kt(mt[ot]),dt==null||dt.init(getTrackedConnectionState(lt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt);return}JSON.stringify(it.getState())!==JSON.stringify(mt[ot])&&kt(mt[ot])});case"IMPORT_STATE":{const{nextLiftedState:mt}=yt.payload,wt=($t=mt.computedStates.slice(-1)[0])==null?void 0:$t.state;if(!wt)return;kt(ot===void 0?wt:wt[ot]),dt==null||dt.send(null,mt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),pt},devtools=devtoolsImpl,parseJsonThen=(et,tt)=>{let rt;try{rt=JSON.parse(et)}catch(nt){console.error("[zustand devtools middleware] Could not parse the received json",nt)}rt!==void 0&&tt(rt)},fetchGraphData=async(et,tt,rt=!1,nt,it)=>fetchNodes(et,tt,rt,nt),fetchNodes=async(et,tt,rt=!1,nt,it)=>{const st=new URLSearchParams(tt).toString(),at=rt?"/prediction/graph/search/latest?":`/prediction/graph/search?${st}`,ot=async()=>{const lt=await getLSat();try{const ut=await api$1.get(at,{Authorization:lt},nt);return updateBudget(et),ut}catch(ut){if(ut.status===402)return await payLsat(et),fetchNodes(et,tt,rt,nt);throw ut}};return!tt.word||isDevelopment&&!isE2E?api$1.get(`${at}&free=true`,void 0,nt):ot()},fetchNodeEdges=async(et,tt,rt=5,nt={})=>{try{const{sortBy:it="edge_count",includeProperties:st=!0,includeContent:at=!0,depth:ot=1,useSubGraph:lt=!0,nodeType:ut=[]}=nt,dt=new URLSearchParams({skip:tt.toString(),limit:rt.toString(),sort_by:it,include_properties:st.toString(),includeContent:at.toString(),depth:ot.toString(),top_node_count:"5",use_sub_graph:lt.toString(),...ut.length>0&&{node_type:JSON.stringify(ut)}}).toString();return await api$1.get(`/prediction/graph/edges/${et}?${dt}`)}catch(it){return console.error(it),null}},defaultData$4={aiSummaryAnswers:{},aiRefId:"",newLoading:null},useAiSummaryStore=create()(devtools((et,tt)=>({...defaultData$4,setAiSummaryAnswer:(rt,nt)=>{const it=tt().aiSummaryAnswers;it[rt]={...it[rt]||{},...nt};const st=structuredClone(it);et({aiSummaryAnswers:st})},setNewLoading:rt=>{et({newLoading:rt})},resetAiSummaryAnswer:()=>{et({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:rt=>tt().aiSummaryAnswers[rt].answer||"",setAiRefId:rt=>et({aiRefId:rt}),getKeyExist:rt=>rt in tt().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(et=>Object.values(et.aiSummaryAnswers).filter(tt=>tt.shouldRender).length||!!et.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(et=>{var rt;const tt=et.aiSummaryAnswers;return!!et.newLoading||((rt=Object.values(tt).at(-1))==null?void 0:rt.answerLoading)}),defaultData$3={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((et,tt)=>({...defaultData$3,clearSearch:()=>et({currentSearch:""}),setCurrentSearch:rt=>et({currentSearch:rt}),setSearchFormValue:rt=>et({searchFormValue:rt}),setFlagErrorOpen:rt=>et({flagErrorIsOpen:rt}),setRelevanceSelected:rt=>et({relevanceIsSelected:rt}),setCurrentPlayingAudio:rt=>et({currentPlayingAudio:rt}),setSecondarySidebarActiveTab:rt=>et({secondarySidebarActiveTab:rt}),setSidebarOpen:rt=>et({sidebarIsOpen:rt,transcriptIsOpen:rt?tt().transcriptIsOpen:!1}),setTranscriptOpen:rt=>et({transcriptIsOpen:rt}),setUniverseQuestionIsOpen:()=>et({universeQuestionIsOpen:!tt().universeQuestionIsOpen}),setAppMetaData:rt=>et({appMetaData:rt}),setShowCollapseButton:rt=>et({showCollapseButton:rt}),setSelectedColor:rt=>et({selectedColor:rt}),setSelectedIcon:rt=>et({selectedIcon:rt})})),defaultData$2={categoryFilter:null,dataInitial:null,runningProjectMessages:[],filters:{skip:0,limit:300,depth:"2",sort_by:"score",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:"",hideNodeDetails:!1,nodeTypes:[],linkTypes:[],nodesNormalized:new Map,linksNormalized:new Map};let abortController=null;const useDataStore=create()(devtools((et,tt)=>({...defaultData$2,fetchData:async(rt,nt,it="")=>{var Ft;const{filters:st,addNewNode:at}=tt(),ot=st.skip,lt=st.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=useAiSummaryStore.getState(),kt={ai_summary:String(!!it)};it||et(ot===0?{isFetching:!0}:{isLoadingNew:!0}),it&&bt({question:it,answerLoading:!0}),abortController&&abortController.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController=pt;const{node_type:$t,...mt}=st,wt=it||ut,St=lodashExports.isEqual(st,defaultData$2.filters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{},...!wt&&!it?{sort_by:"date_added_to_graph"}:{}};try{const Lt=await fetchGraphData(rt,Bt,St,yt,nt);if((Ft=Lt==null?void 0:Lt.query_data)!=null&&Ft.ref_id){useAiSummaryStore.setState({aiRefId:Lt.query_data.ref_id});const{aiSummaryAnswers:zt}=useAiSummaryStore.getState(),{answer:Ht}=zt[Lt.query_data.ref_id]||{};dt(Lt.query_data.ref_id,{question:it,answer:Ht||"",answerLoading:!Ht,sourcesLoading:!Ht,shouldRender:!0}),bt(null)}Lt!=null&&Lt.nodes&&at(Lt),et({isFetching:!1,isLoadingNew:!1,splashDataLoading:!1})}catch(Lt){console.error(Lt),Lt!=="abort"&&et({isFetching:!1,isLoadingNew:!1})}},addNewNode:rt=>{const{dataInitial:nt,filters:it,nodesNormalized:st,linksNormalized:at}=tt();if(!(rt!=null&&rt.nodes))return;const ot=st||new Map,lt=at||new Map,ut=it.node_type.length?rt.nodes.filter(Ft=>it.node_type.includes(Ft.node_type)):rt.nodes,dt=[];ut.forEach(Ft=>{ot.has(Ft.ref_id)||(ot.set(Ft.ref_id,{...Ft,sources:[],targets:[]}),dt.push(Ft))});const gt=[...(nt==null?void 0:nt.nodes)||[],...dt],kt=[];(rt.edges||[]).forEach(Ft=>{if(!lt.has(Ft.ref_id)&&ot.has(Ft.source)&&ot.has(Ft.target)){lt.set(Ft.ref_id,Ft),kt.push(Ft);const Lt=ot.get(Ft.source),zt=ot.get(Ft.target);Lt&&zt&&(Lt.targets?Lt.targets.push(Ft.target):Lt.targets=[Ft.target],zt.sources?zt.sources.push(Ft.source):zt.sources=[Ft.source],Lt.edgeTypes=[...new Set([...Lt.edgeTypes||[],Ft.edge_type])],zt.edgeTypes=[...new Set([...zt.edgeTypes||[],Ft.edge_type])])}});const $t=[...(nt==null?void 0:nt.links)||[],...kt],mt=[...new Set(gt.map(Ft=>Ft.node_type))],wt=[...new Set($t.map(Ft=>Ft.edge_type))],St=["all",...mt.map(Ft=>Ft.toLowerCase())],Bt=St.map(Ft=>({name:Ft,count:gt.filter(Lt=>{var zt;return Ft==="all"||((zt=Lt.node_type)==null?void 0:zt.toLowerCase())===Ft}).length}));et({dataInitial:{nodes:gt,links:$t},dataNew:{nodes:dt,links:kt},nodeTypes:mt,linkTypes:wt,sidebarFilters:St,sidebarFilterCounts:Bt,nodesNormalized:ot,linksNormalized:lt})},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{const{setAbortRequests:rt}=tt(),{setBudget:nt}=useUserStore.getState();et({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),tt().fetchData(nt,rt)},resetData:()=>{et({dataInitial:null,sidebarFilter:"all",sidebarFilters:[],sidebarFilterCounts:[],dataNew:null,runningProjectId:"",nodeTypes:[],nodesNormalized:new Map,linksNormalized:new Map})},nextPage:()=>{const{filters:rt,fetchData:nt,setAbortRequests:it}=tt(),{setBudget:st}=useUserStore.getState();et({filters:{...rt,skip:rt.skip+1}}),nt(st,it)},resetDataNew:()=>et({dataNew:null}),setFilters:rt=>{const{setBudget:nt}=useUserStore.getState();et(it=>({filters:{...it.filters,...rt,skip:0}})),tt().fetchData(nt,tt().setAbortRequests)},setSidebarFilterCounts:rt=>et({sidebarFilterCounts:rt}),setTrendingTopics:rt=>et({trendingTopics:rt}),setStats:rt=>et({stats:rt}),setIsFetching:rt=>et({isFetching:rt}),setCategoryFilter:rt=>et({categoryFilter:rt}),setQueuedSources:rt=>et({queuedSources:rt}),setSidebarFilter:rt=>et({sidebarFilter:rt}),setSelectedTimestamp:rt=>et({selectedTimestamp:rt}),setSources:rt=>et({sources:rt}),setHideNodeDetails:rt=>et({hideNodeDetails:rt}),setSeedQuestions:rt=>et({seedQuestions:rt}),updateNode:rt=>{const{nodesNormalized:nt}=tt(),it=new Map(nt);it.set(rt.ref_id,rt),et({nodesNormalized:it})},removeNode:rt=>{console.log(rt)},setRunningProjectId:rt=>et({runningProjectId:rt,runningProjectMessages:[]}),setRunningProjectMessages:rt=>{const{runningProjectMessages:nt}=tt();et({runningProjectMessages:[...nt,rt]})},resetRunningProjectMessages:()=>et({runningProjectMessages:[]}),setAbortRequests:rt=>et({abortRequest:rt})}))),useFilteredNodes=()=>useDataStore(et=>{var tt,rt;return et.sidebarFilter==="all"?((tt=et.dataInitial)==null?void 0:tt.nodes)||[]:(((rt=et.dataInitial)==null?void 0:rt.nodes)||[]).filter(nt=>{var it;return((it=nt.node_type)==null?void 0:it.toLowerCase())===et.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(et=>et.nodeTypes),useNormalizedNode=et=>{const tt=useDataStore(rt=>rt.nodesNormalized);return et?tt.get(et):null},defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(et=>({...defaultData$1,setTrendingTopicsFeatureFlag:tt=>et({trendingTopicsFeatureFlag:tt}),setV2FeatureFlag:tt=>et({v2FeatureFlag:tt}),setQueuedSourcesFeatureFlag:tt=>et({queuedSourcesFeatureFlag:tt}),setCustomSchemaFeatureFlag:tt=>et({customSchemaFeatureFlag:tt}),setGraphBluePrintFeatureFlag:tt=>et({graphBluePrintFeatureFlag:tt}),setChangeNodeTypeFeatureFlag:tt=>et({changeNodeTypeFeatureFlag:tt}),setRealtimeGraphFeatureFlag:tt=>et({realtimeGraphFeatureFlag:tt}),setUserFeedbackFeatureFlag:tt=>et({userFeedbackFeatureFlag:tt}),setChatInterfaceFeatureFlag:tt=>et({chatInterfaceFeatureFlag:tt}),setFastFiltersFeatureFlag:tt=>et({fastFiltersFeatureFlag:tt})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((et,tt)=>({...defaultData,setSchemas:rt=>{const nt=rt.reduce((it,st)=>(it[st.type]=st,it),{});et({schemas:rt.map(it=>({...it})),normalizedSchemasByType:nt})},setSchemaLinks:rt=>{et({links:rt})},getPrimaryColorByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.primary_color:void 0},getIndexByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index:"name"},getNodeKeysByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index||nt.node_key:void 0},getSchemaByType:rt=>tt().normalizedSchemasByType[rt]})));function r(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{const[tt,rt]=reactExports.useState(0),nt=et.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>rt(st=>(st+1)%et.length),1e3);return()=>clearInterval(it)},[tt]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:nt.map(({key:it,value:st},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:tt===at}),children:st},it))}),jsxRuntimeExports.jsx(Flex,{children:nt.map(({key:it,label:st},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:tt===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:st})},it))})]})},TextWrapper=styled$3.div` + `);const wt=mt.state[ot];if(wt==null)return;JSON.stringify(it.getState())!==JSON.stringify(wt)&&kt(wt);return}it.dispatchFromDevtools&&typeof it.dispatch=="function"&&it.dispatch(mt)});case"DISPATCH":switch(yt.payload.type){case"RESET":return kt(pt),ot===void 0?dt==null?void 0:dt.init(it.getState()):dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"COMMIT":if(ot===void 0){dt==null||dt.init(it.getState());return}return dt==null?void 0:dt.init(getTrackedConnectionState(lt.name));case"ROLLBACK":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt),dt==null||dt.init(it.getState());return}kt(mt[ot]),dt==null||dt.init(getTrackedConnectionState(lt.name))});case"JUMP_TO_STATE":case"JUMP_TO_ACTION":return parseJsonThen(yt.state,mt=>{if(ot===void 0){kt(mt);return}JSON.stringify(it.getState())!==JSON.stringify(mt[ot])&&kt(mt[ot])});case"IMPORT_STATE":{const{nextLiftedState:mt}=yt.payload,wt=($t=mt.computedStates.slice(-1)[0])==null?void 0:$t.state;if(!wt)return;kt(ot===void 0?wt:wt[ot]),dt==null||dt.send(null,mt);return}case"PAUSE_RECORDING":return gt=!gt}return}}),pt},devtools=devtoolsImpl,parseJsonThen=(et,tt)=>{let rt;try{rt=JSON.parse(et)}catch(nt){console.error("[zustand devtools middleware] Could not parse the received json",nt)}rt!==void 0&&tt(rt)},fetchGraphData=async(et,tt,rt=!1,nt,it)=>fetchNodes(et,tt,rt,nt),fetchNodes=async(et,tt,rt=!1,nt,it)=>{const st=new URLSearchParams(tt).toString(),at=rt?"/prediction/graph/search/latest?":`/prediction/graph/search?${st}`,ot=async()=>{const lt=await getLSat();try{const ut=await api$1.get(at,{Authorization:lt},nt);return updateBudget(et),ut}catch(ut){if(ut.status===402)return await payLsat(et),fetchNodes(et,tt,rt,nt);throw ut}};return!tt.word||isDevelopment&&!isE2E?api$1.get(`${at}&free=true`,void 0,nt):ot()},fetchNodeEdges=async(et,tt,rt=5,nt={})=>{try{const{sortBy:it="edge_count",includeProperties:st=!0,includeContent:at=!0,depth:ot=1,useSubGraph:lt=!0,nodeType:ut=[]}=nt,dt=new URLSearchParams({skip:tt.toString(),limit:rt.toString(),sort_by:it,include_properties:st.toString(),includeContent:at.toString(),depth:ot.toString(),top_node_count:"5",use_sub_graph:lt.toString(),...ut.length>0&&{node_type:JSON.stringify(ut)}}).toString();return await api$1.get(`/prediction/graph/edges/${et}?${dt}`)}catch(it){return console.error(it),null}},defaultData$4={currentSearch:"",searchFormValue:"",flagErrorIsOpen:!1,universeQuestionIsOpen:!1,hasBudgetExplanationModalBeSeen:!1,relevanceIsSelected:!1,secondarySidebarActiveTab:"",sidebarIsOpen:!0,theme:"light",transcriptIsOpen:!1,appMetaData:null,currentPlayingAudio:null,showCollapseButton:!0,selectedColor:"#962777",selectedIcon:"ConstructionIcon"},useAppStore=create((et,tt)=>({...defaultData$4,clearSearch:()=>et({currentSearch:""}),setCurrentSearch:rt=>et({currentSearch:rt}),setSearchFormValue:rt=>et({searchFormValue:rt}),setFlagErrorOpen:rt=>et({flagErrorIsOpen:rt}),setRelevanceSelected:rt=>et({relevanceIsSelected:rt}),setCurrentPlayingAudio:rt=>et({currentPlayingAudio:rt}),setSecondarySidebarActiveTab:rt=>et({secondarySidebarActiveTab:rt}),setSidebarOpen:rt=>et({sidebarIsOpen:rt,transcriptIsOpen:rt?tt().transcriptIsOpen:!1}),setTranscriptOpen:rt=>et({transcriptIsOpen:rt}),setUniverseQuestionIsOpen:()=>et({universeQuestionIsOpen:!tt().universeQuestionIsOpen}),setAppMetaData:rt=>et({appMetaData:rt}),setShowCollapseButton:rt=>et({showCollapseButton:rt}),setSelectedColor:rt=>et({selectedColor:rt}),setSelectedIcon:rt=>et({selectedIcon:rt})})),QuestionNode={edge_count:1,name:"",node_type:"Question",score:0,x:0,y:0,z:0,label:"",scale:2},defaultData$3={aiSummaryAnswers:{},aiRefId:"",newLoading:null,dataInitial:null};let abortController$1=null;const useAiSummaryStore=create()(devtools((et,tt)=>({...defaultData$3,setAiSummaryAnswer:(rt,nt)=>{const it=tt().aiSummaryAnswers;it[rt]={...it[rt]||{},...nt};const st=structuredClone(it);et({aiSummaryAnswers:st})},setNewLoading:rt=>{et({newLoading:rt})},resetAiSummaryAnswer:()=>{et({aiSummaryAnswers:{},aiRefId:""})},getAiSummaryAnswer:rt=>tt().aiSummaryAnswers[rt].answer||"",setAiRefId:rt=>et({aiRefId:rt}),fetchAIData:async(rt,nt,it="")=>{var Ot;const{filters:st,addNewNode:at}=useDataStore.getState(),ot=st.skip,lt=st.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=tt(),kt={ai_summary:String(!!it)};at({nodes:[{...QuestionNode,name:it,ref_id:it}],edges:[]}),it&&bt({question:it,answerLoading:!0}),abortController$1&&abortController$1.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController$1=pt;const{node_type:$t,...mt}=st,wt=it||ut,St=lodashExports.isEqual(st,defaultFilters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{},...!wt&&!it?{sort_by:"date_added_to_graph"}:{}};try{const Lt=await fetchGraphData(rt,Bt,St,yt,nt);if((Ot=Lt==null?void 0:Lt.query_data)!=null&&Ot.ref_id){useAiSummaryStore.setState({aiRefId:Lt.query_data.ref_id});const{aiSummaryAnswers:zt}=useAiSummaryStore.getState(),{answer:Vt}=zt[Lt.query_data.ref_id]||{};dt(Lt.query_data.ref_id,{question:it,answer:Vt||"",answerLoading:!Vt,sourcesLoading:!Vt,shouldRender:!0}),bt(null)}Lt!=null&&Lt.nodes&&et({dataInitial:Lt})}catch(Lt){console.error(Lt)}},getKeyExist:rt=>rt in tt().aiSummaryAnswers}))),useHasAiChats=()=>useAiSummaryStore(et=>Object.values(et.aiSummaryAnswers).filter(tt=>tt.shouldRender).length||!!et.newLoading),useHasAiChatsResponseLoading=()=>useAiSummaryStore(et=>{var rt;const tt=et.aiSummaryAnswers;return!!et.newLoading||((rt=Object.values(tt).at(-1))==null?void 0:rt.answerLoading)}),defaultFilters={skip:0,limit:300,depth:"2",sort_by:"score",include_properties:"true",top_node_count:"50",includeContent:"true",node_type:[],search_method:"vector"},defaultData$2={categoryFilter:null,dataInitial:null,runningProjectMessages:[],filters:defaultFilters,isFetching:!1,isLoadingNew:!1,queuedSources:null,selectedTimestamp:null,sources:null,sidebarFilter:"all",sidebarFilters:[],trendingTopics:[],sidebarFilterCounts:[],stats:null,splashDataLoading:!0,abortRequest:!1,dataNew:null,seedQuestions:null,runningProjectId:"",hideNodeDetails:!1,nodeTypes:[],linkTypes:[],nodesNormalized:new Map,linksNormalized:new Map};let abortController=null;const useDataStore=create()(devtools((et,tt)=>({...defaultData$2,fetchData:async(rt,nt,it="")=>{var Ot;const{filters:st,addNewNode:at}=tt(),ot=st.skip,lt=st.limit,{currentSearch:ut}=useAppStore.getState(),{setAiSummaryAnswer:dt,setNewLoading:bt,aiRefId:gt}=useAiSummaryStore.getState(),kt={ai_summary:String(!!it)};it||et(ot===0?{isFetching:!0}:{isLoadingNew:!0}),it&&bt({question:it,answerLoading:!0}),abortController&&abortController.abort("abort");const pt=new AbortController,{signal:yt}=pt;abortController=pt;const{node_type:$t,...mt}=st,wt=it||ut,St=lodashExports.isEqual(st,defaultData$2.filters)&&!wt,Bt={...mt,...kt,skip:String(ot===0?ot*lt:ot*lt+1),limit:wt?"25":String(lt),...$t.length>0?{node_type:JSON.stringify($t)}:{},...wt?{word:wt}:{},...gt&&it?{previous_search_ref_id:gt}:{},...!wt&&!it?{sort_by:"date_added_to_graph"}:{}};try{const Lt=await fetchGraphData(rt,Bt,St,yt,nt);if((Ot=Lt==null?void 0:Lt.query_data)!=null&&Ot.ref_id){useAiSummaryStore.setState({aiRefId:Lt.query_data.ref_id});const{aiSummaryAnswers:zt}=useAiSummaryStore.getState(),{answer:Vt}=zt[Lt.query_data.ref_id]||{};dt(Lt.query_data.ref_id,{question:it,answer:Vt||"",answerLoading:!Vt,sourcesLoading:!Vt,shouldRender:!0}),bt(null)}Lt!=null&&Lt.nodes&&at(Lt),et({isFetching:!1,isLoadingNew:!1,splashDataLoading:!1})}catch(Lt){console.error(Lt),Lt!=="abort"&&et({isFetching:!1,isLoadingNew:!1})}},addNewNode:rt=>{const{dataInitial:nt,filters:it,nodesNormalized:st,linksNormalized:at}=tt();if(!(rt!=null&&rt.nodes))return;const ot=st||new Map,lt=at||new Map,ut=it.node_type.length?rt.nodes.filter(Ot=>it.node_type.includes(Ot.node_type)):rt.nodes,dt=[];ut.forEach(Ot=>{ot.has(Ot.ref_id)||(ot.set(Ot.ref_id,{...Ot,sources:[],targets:[]}),dt.push(Ot))});const gt=[...(nt==null?void 0:nt.nodes)||[],...dt],kt=[];(rt.edges||[]).forEach(Ot=>{if(!lt.has(Ot.ref_id)&&ot.has(Ot.source)&&ot.has(Ot.target)){lt.set(Ot.ref_id,Ot),kt.push(Ot);const Lt=ot.get(Ot.source),zt=ot.get(Ot.target);Lt&&zt&&(Lt.targets?Lt.targets.push(Ot.target):Lt.targets=[Ot.target],zt.sources?zt.sources.push(Ot.source):zt.sources=[Ot.source],Lt.edgeTypes=[...new Set([...Lt.edgeTypes||[],Ot.edge_type])],zt.edgeTypes=[...new Set([...zt.edgeTypes||[],Ot.edge_type])])}});const $t=[...(nt==null?void 0:nt.links)||[],...kt],mt=[...new Set(gt.map(Ot=>Ot.node_type))],wt=[...new Set($t.map(Ot=>Ot.edge_type))],St=["all",...mt.map(Ot=>Ot.toLowerCase())],Bt=St.map(Ot=>({name:Ot,count:gt.filter(Lt=>{var zt;return Ot==="all"||((zt=Lt.node_type)==null?void 0:zt.toLowerCase())===Ot}).length}));et({dataInitial:{nodes:gt,links:$t},dataNew:{nodes:dt,links:kt},nodeTypes:mt,linkTypes:wt,sidebarFilters:St,sidebarFilterCounts:Bt,nodesNormalized:ot,linksNormalized:lt})},abortFetchData:()=>{abortController&&abortController.abort("abort")},resetGraph:()=>{const{setAbortRequests:rt}=tt(),{setBudget:nt}=useUserStore.getState();et({filters:defaultData$2.filters,dataInitial:null,dataNew:null}),tt().fetchData(nt,rt)},resetData:()=>{et({dataInitial:null,sidebarFilter:"all",sidebarFilters:[],sidebarFilterCounts:[],dataNew:null,runningProjectId:"",nodeTypes:[],nodesNormalized:new Map,linksNormalized:new Map})},nextPage:()=>{const{filters:rt,fetchData:nt,setAbortRequests:it}=tt(),{setBudget:st}=useUserStore.getState();et({filters:{...rt,skip:rt.skip+1}}),nt(st,it)},resetDataNew:()=>et({dataNew:null}),setFilters:rt=>{const{setBudget:nt}=useUserStore.getState();et(it=>({filters:{...it.filters,...rt,skip:0}})),tt().fetchData(nt,tt().setAbortRequests)},setSidebarFilterCounts:rt=>et({sidebarFilterCounts:rt}),setTrendingTopics:rt=>et({trendingTopics:rt}),setStats:rt=>et({stats:rt}),setIsFetching:rt=>et({isFetching:rt}),setCategoryFilter:rt=>et({categoryFilter:rt}),setQueuedSources:rt=>et({queuedSources:rt}),setSidebarFilter:rt=>et({sidebarFilter:rt}),setSelectedTimestamp:rt=>et({selectedTimestamp:rt}),setSources:rt=>et({sources:rt}),setHideNodeDetails:rt=>et({hideNodeDetails:rt}),setSeedQuestions:rt=>et({seedQuestions:rt}),updateNode:rt=>{const{nodesNormalized:nt}=tt(),it=new Map(nt);it.set(rt.ref_id,rt),et({nodesNormalized:it})},removeNode:rt=>{console.log(rt)},setRunningProjectId:rt=>et({runningProjectId:rt,runningProjectMessages:[]}),setRunningProjectMessages:rt=>{const{runningProjectMessages:nt}=tt();et({runningProjectMessages:[...nt,rt]})},resetRunningProjectMessages:()=>et({runningProjectMessages:[]}),setAbortRequests:rt=>et({abortRequest:rt})}))),useFilteredNodes=()=>useDataStore(et=>{var tt,rt;return et.sidebarFilter==="all"?((tt=et.dataInitial)==null?void 0:tt.nodes)||[]:(((rt=et.dataInitial)==null?void 0:rt.nodes)||[]).filter(nt=>{var it;return((it=nt.node_type)==null?void 0:it.toLowerCase())===et.sidebarFilter.toLowerCase()})}),useNodeTypes=()=>useDataStore(et=>et.nodeTypes),useNormalizedNode=et=>{const tt=useDataStore(rt=>rt.nodesNormalized);return et?tt.get(et):null},defaultData$1={trendingTopicsFeatureFlag:!0,queuedSourcesFeatureFlag:!1,v2FeatureFlag:!1,customSchemaFeatureFlag:!1,graphBluePrintFeatureFlag:!1,changeNodeTypeFeatureFlag:!1,realtimeGraphFeatureFlag:!1,userFeedbackFeatureFlag:!1,chatInterfaceFeatureFlag:!1,fastFiltersFeatureFlag:!1},useFeatureFlagStore=create(et=>({...defaultData$1,setTrendingTopicsFeatureFlag:tt=>et({trendingTopicsFeatureFlag:tt}),setV2FeatureFlag:tt=>et({v2FeatureFlag:tt}),setQueuedSourcesFeatureFlag:tt=>et({queuedSourcesFeatureFlag:tt}),setCustomSchemaFeatureFlag:tt=>et({customSchemaFeatureFlag:tt}),setGraphBluePrintFeatureFlag:tt=>et({graphBluePrintFeatureFlag:tt}),setChangeNodeTypeFeatureFlag:tt=>et({changeNodeTypeFeatureFlag:tt}),setRealtimeGraphFeatureFlag:tt=>et({realtimeGraphFeatureFlag:tt}),setUserFeedbackFeatureFlag:tt=>et({userFeedbackFeatureFlag:tt}),setChatInterfaceFeatureFlag:tt=>et({chatInterfaceFeatureFlag:tt}),setFastFiltersFeatureFlag:tt=>et({fastFiltersFeatureFlag:tt})})),isWebView=()=>(navigator.userAgent||navigator.vendor||window.opera)==="Sphinx",isAndroid=()=>navigator.userAgent.includes("Android"),defaultData={schemas:[],links:[],normalizedSchemasByType:{}},useSchemaStore=create()(devtools((et,tt)=>({...defaultData,setSchemas:rt=>{const nt=rt.reduce((it,st)=>(it[st.type]=st,it),{});et({schemas:rt.map(it=>({...it})),normalizedSchemasByType:nt})},setSchemaLinks:rt=>{et({links:rt})},getPrimaryColorByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.primary_color:void 0},getIndexByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index:"name"},getNodeKeysByType:rt=>{const nt=tt().normalizedSchemasByType[rt];return nt?nt.index||nt.node_key:void 0},getSchemaByType:rt=>tt().normalizedSchemasByType[rt]})));function r(et){var tt,rt,nt="";if(typeof et=="string"||typeof et=="number")nt+=et;else if(typeof et=="object")if(Array.isArray(et))for(tt=0;tt{const[tt,rt]=reactExports.useState(0),nt=et.filter(it=>it.value!=="0");return reactExports.useEffect(()=>{const it=setInterval(()=>rt(st=>(st+1)%et.length),1e3);return()=>clearInterval(it)},[tt]),jsxRuntimeExports.jsxs(TextWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"loading",children:"LOADING"}),jsxRuntimeExports.jsx(Flex,{className:"value-wrapper",children:nt.map(({key:it,value:st},at)=>jsxRuntimeExports.jsx("div",{className:clsx("value",{show:tt===at}),children:st},it))}),jsxRuntimeExports.jsx(Flex,{children:nt.map(({key:it,label:st},at)=>jsxRuntimeExports.jsx(Flex,{className:clsx("label-wrapper",{show:tt===at}),children:jsxRuntimeExports.jsx("div",{className:"label",children:st})},it))})]})},TextWrapper=styled$3.div` height: 16px; display: flex; justify-content: space-between; @@ -777,15 +777,15 @@ PROCEED WITH CAUTION! font-weight: 500; line-height: normal; } -`;var lottie$1={exports:{}};(function(module,exports){typeof navigator<"u"&&function(et,tt){module.exports=tt()}(commonjsGlobal,function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(tt){_useWebWorker=!!tt},getWebWorker=function(){return _useWebWorker},setLocationHref=function(tt){locationHref=tt},getLocationHref=function(){return locationHref};function createTag(et){return document.createElement(et)}function extendPrototype(et,tt){var rt,nt=et.length,it;for(rt=0;rt1?rt[1]=1:rt[1]<=0&&(rt[1]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addBrightnessToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[2]+=tt,rt[2]>1?rt[2]=1:rt[2]<0&&(rt[2]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addHueToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[0]+=tt/360,rt[0]>1?rt[0]-=1:rt[0]<0&&(rt[0]+=1),HSVtoRGB(rt[0],rt[1],rt[2])}var rgbToHex=function(){var et=[],tt,rt;for(tt=0;tt<256;tt+=1)rt=tt.toString(16),et[tt]=rt.length===1?"0"+rt:rt;return function(nt,it,st){return nt<0&&(nt=0),it<0&&(it=0),st<0&&(st=0),"#"+et[nt]+et[it]+et[st]}}(),setSubframeEnabled=function(tt){subframeEnabled=!!tt},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(tt){expressionsPlugin=tt},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(tt){expressionsInterfaces=tt},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(tt){defaultCurveSegments=tt},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(tt){idPrefix$1=tt};function createNS(et){return document.createElementNS(svgNS,et)}function _typeof$5(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(rt){return typeof rt}:_typeof$5=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$5(et)}var dataManager=function(){var et=1,tt=[],rt,nt,it={onmessage:function(){},postMessage:function(kt){rt({data:kt})}},st={postMessage:function(kt){it.onmessage({data:kt})}};function at(gt){if(window.Worker&&window.Blob&&getWebWorker()){var kt=new Blob(["var _workerSelf = self; self.onmessage = ",gt.toString()],{type:"text/javascript"}),pt=URL.createObjectURL(kt);return new Worker(pt)}return rt=gt,it}function ot(){nt||(nt=at(function(kt){function pt(){function $t(Et,Tt){var Rt,At,Pt=Et.length,It,Ct,xt,Dt;for(At=0;At=0;Tt-=1)if(Et[Tt].ty==="sh")if(Et[Tt].ks.k.i)Ft(Et[Tt].ks.k);else for(Pt=Et[Tt].ks.k.length,At=0;AtRt[0]?!0:Rt[0]>Et[0]?!1:Et[1]>Rt[1]?!0:Rt[1]>Et[1]?!1:Et[2]>Rt[2]?!0:Rt[2]>Et[2]?!1:null}var zt=function(){var Et=[4,4,14];function Tt(At){var Pt=At.t.d;At.t.d={k:[{s:Pt,t:0}]}}function Rt(At){var Pt,It=At.length;for(Pt=0;Pt=0;Pt-=1)if(At[Pt].ty==="sh")if(At[Pt].ks.k.i)At[Pt].ks.k.c=At[Pt].closed;else for(xt=At[Pt].ks.k.length,Ct=0;Ct500)&&(this._imageLoaded(),clearInterval(St)),wt+=1}).bind(this),50)}function st(mt){var wt=nt(mt,this.assetsPath,this.path),St=createNS("image");isSafari?this.testImageLoaded(St):St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.setAttributeNS("http://www.w3.org/1999/xlink","href",wt),this._elementHelper.append?this._elementHelper.append(St):this._elementHelper.appendChild(St);var Bt={img:St,assetData:mt};return Bt}function at(mt){var wt=nt(mt,this.assetsPath,this.path),St=createTag("img");St.crossOrigin="anonymous",St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.src=wt;var Bt={img:St,assetData:mt};return Bt}function ot(mt){var wt={assetData:mt},St=nt(mt,this.assetsPath,this.path);return dataManager.loadData(St,(function(Bt){wt.img=Bt,this._footageLoaded()}).bind(this),(function(){wt.img={},this._footageLoaded()}).bind(this)),wt}function lt(mt,wt){this.imagesLoadedCb=wt;var St,Bt=mt.length;for(St=0;Stthis.animationData.op&&(this.animationData.op=et.op,this.totalFrames=Math.floor(et.op-this.animationData.ip));var tt=this.animationData.layers,rt,nt=tt.length,it=et.layers,st,at=it.length;for(st=0;stthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(et){this.triggerRenderFrameError(et)}},AnimationItem.prototype.play=function(et){et&&this.name!==et||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(et){et&&this.name!==et||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(et){et&&this.name!==et||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(et){et&&this.name!==et||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(et){for(var tt,rt=0;rt=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(tt>this.totalFrames?tt%this.totalFrames:0)||(rt=!0,tt=this.totalFrames-1):tt>=this.totalFrames?(this.playCount+=1,this.checkSegments(tt%this.totalFrames)||(this.setCurrentRawFrameValue(tt%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(tt):tt<0?this.checkSegments(tt%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+tt%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(rt=!0,tt=0)):this.setCurrentRawFrameValue(tt),rt&&(this.setCurrentRawFrameValue(tt),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(et,tt){this.playCount=0,et[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=et[0]-et[1],this.timeCompleted=this.totalFrames,this.firstFrame=et[1],this.setCurrentRawFrameValue(this.totalFrames-.001-tt)):et[1]>et[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=et[1]-et[0],this.timeCompleted=this.totalFrames,this.firstFrame=et[0],this.setCurrentRawFrameValue(.001+tt)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(et,tt){var rt=-1;this.isPaused&&(this.currentRawFrame+this.firstFramett&&(rt=tt-et)),this.firstFrame=et,this.totalFrames=tt-et,this.timeCompleted=this.totalFrames,rt!==-1&&this.goToAndStop(rt,!0)},AnimationItem.prototype.playSegments=function(et,tt){if(tt&&(this.segments.length=0),_typeof$4(et[0])==="object"){var rt,nt=et.length;for(rt=0;rt=0;Rt-=1)tt[Rt].animation.destroy(Tt)}function Ht(Tt,Rt,At){var Pt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),It,Ct=Pt.length;for(It=0;It0?Bt=Ht:St=Ht;while(Math.abs(zt)>st&&++Wt=it?$t(St,qt,Bt,Ft):Ot===0?qt:yt(St,zt,zt+lt,Bt,Ft)}},et}(),pooling=function(){function et(tt){return tt.concat(createSizedArray(tt.length))}return{double:et}}(),poolFactory=function(){return function(et,tt,rt){var nt=0,it=et,st=createSizedArray(it),at={newElement:ot,release:lt};function ot(){var ut;return nt?(nt-=1,ut=st[nt]):ut=tt(),ut}function lt(ut){nt===it&&(st=pooling.double(st),it*=2),rt&&rt(ut),st[nt]=ut,nt+=1}return at}}(),bezierLengthPool=function(){function et(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,et)}(),segmentsLengthPool=function(){function et(){return{lengths:[],totalLength:0}}function tt(rt){var nt,it=rt.lengths.length;for(nt=0;nt-.001&&wt<.001}function rt(gt,kt,pt,yt,$t,mt,wt,St,Bt){if(pt===0&&mt===0&&Bt===0)return tt(gt,kt,yt,$t,wt,St);var Ft=et.sqrt(et.pow(yt-gt,2)+et.pow($t-kt,2)+et.pow(mt-pt,2)),Lt=et.sqrt(et.pow(wt-gt,2)+et.pow(St-kt,2)+et.pow(Bt-pt,2)),zt=et.sqrt(et.pow(wt-yt,2)+et.pow(St-$t,2)+et.pow(Bt-mt,2)),Ht;return Ft>Lt?Ft>zt?Ht=Ft-Lt-zt:Ht=zt-Lt-Ft:zt>Lt?Ht=zt-Lt-Ft:Ht=Lt-Ft-zt,Ht>-1e-4&&Ht<1e-4}var nt=function(){return function(gt,kt,pt,yt){var $t=getDefaultCurveSegments(),mt,wt,St,Bt,Ft,Lt=0,zt,Ht=[],Wt=[],lr=bezierLengthPool.newElement();for(St=pt.length,mt=0;mt<$t;mt+=1){for(Ft=mt/($t-1),zt=0,wt=0;wtwt?-1:1,Ft=!0;Ft;)if(yt[mt]<=wt&&yt[mt+1]>wt?(St=(wt-yt[mt])/(yt[mt+1]-yt[mt]),Ft=!1):mt+=Bt,mt<0||mt>=$t-1){if(mt===$t-1)return pt[mt];Ft=!1}return pt[mt]+(pt[mt+1]-pt[mt])*St}function ut(gt,kt,pt,yt,$t,mt){var wt=lt($t,mt),St=1-wt,Bt=et.round((St*St*St*gt[0]+(wt*St*St+St*wt*St+St*St*wt)*pt[0]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[0]+wt*wt*wt*kt[0])*1e3)/1e3,Ft=et.round((St*St*St*gt[1]+(wt*St*St+St*wt*St+St*St*wt)*pt[1]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[1]+wt*wt*wt*kt[1])*1e3)/1e3;return[Bt,Ft]}var dt=createTypedArray("float32",8);function bt(gt,kt,pt,yt,$t,mt,wt){$t<0?$t=0:$t>1&&($t=1);var St=lt($t,wt);mt=mt>1?1:mt;var Bt=lt(mt,wt),Ft,Lt=gt.length,zt=1-St,Ht=1-Bt,Wt=zt*zt*zt,lr=St*zt*zt*3,qt=St*St*zt*3,Ot=St*St*St,Mt=zt*zt*Ht,ht=St*zt*Ht+zt*St*Ht+zt*zt*Bt,Et=St*St*Ht+zt*St*Bt+St*zt*Bt,Tt=St*St*Bt,Rt=zt*Ht*Ht,At=St*Ht*Ht+zt*Bt*Ht+zt*Ht*Bt,Pt=St*Bt*Ht+zt*Bt*Bt+St*Ht*Bt,It=St*Bt*Bt,Ct=Ht*Ht*Ht,xt=Bt*Ht*Ht+Ht*Bt*Ht+Ht*Ht*Bt,Dt=Bt*Bt*Ht+Ht*Bt*Bt+Bt*Ht*Bt,tr=Bt*Bt*Bt;for(Ft=0;Ft=ut.t-rt){lt.h&&(lt=ut),it=0;break}if(ut.t-rt>et){it=st;break}st=mt||et=mt?Bt.points.length-1:0;for(gt=Bt.points[Ft].point.length,bt=0;bt=Ht&&Lt=mt)nt[0]=St[0],nt[1]=St[1],nt[2]=St[2];else if(et<=wt)nt[0]=lt.s[0],nt[1]=lt.s[1],nt[2]=lt.s[2];else{var ht=createQuaternion(lt.s),Et=createQuaternion(St),Tt=(et-wt)/(mt-wt);quaternionToEuler(nt,slerp(ht,Et,Tt))}else for(st=0;st=mt?kt=1:et1e-6?(gt=Math.acos(kt),pt=Math.sin(gt),yt=Math.sin((1-rt)*gt)/pt,$t=Math.sin(rt*gt)/pt):(yt=1-rt,$t=rt),nt[0]=yt*it+$t*lt,nt[1]=yt*st+$t*ut,nt[2]=yt*at+$t*dt,nt[3]=yt*ot+$t*bt,nt}function quaternionToEuler(et,tt){var rt=tt[0],nt=tt[1],it=tt[2],st=tt[3],at=Math.atan2(2*nt*st-2*rt*it,1-2*nt*nt-2*it*it),ot=Math.asin(2*rt*nt+2*it*st),lt=Math.atan2(2*rt*st-2*nt*it,1-2*rt*rt-2*it*it);et[0]=at/degToRads,et[1]=ot/degToRads,et[2]=lt/degToRads}function createQuaternion(et){var tt=et[0]*degToRads,rt=et[1]*degToRads,nt=et[2]*degToRads,it=Math.cos(tt/2),st=Math.cos(rt/2),at=Math.cos(nt/2),ot=Math.sin(tt/2),lt=Math.sin(rt/2),ut=Math.sin(nt/2),dt=it*st*at-ot*lt*ut,bt=ot*lt*at+it*st*ut,gt=ot*st*at+it*lt*ut,kt=it*lt*at-ot*st*ut;return[bt,gt,kt,dt]}function getValueAtCurrentTime(){var et=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,rt=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(et===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=rt&&et>=rt||this._caching.lastFrame=et&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var nt=this.interpolateValue(et,this._caching);this.pv=nt}return this._caching.lastFrame=et,this.pv}function setVValue(et){var tt;if(this.propType==="unidimensional")tt=et*this.mult,mathAbs(this.v-tt)>1e-5&&(this.v=tt,this._mdf=!0);else for(var rt=0,nt=this.v.length;rt1e-5&&(this.v[rt]=tt,this._mdf=!0),rt+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var et,tt=this.effectsSequence.length,rt=this.kf?this.pv:this.data.k;for(et=0;et=this._maxLength&&this.doubleArrayLength(),rt){case"v":st=this.v;break;case"i":st=this.i;break;case"o":st=this.o;break;default:st=[];break}(!st[nt]||st[nt]&&!it)&&(st[nt]=pointPool.newElement()),st[nt][0]=et,st[nt][1]=tt},ShapePath.prototype.setTripleAt=function(et,tt,rt,nt,it,st,at,ot){this.setXYAt(et,tt,"v",at,ot),this.setXYAt(rt,nt,"o",at,ot),this.setXYAt(it,st,"i",at,ot)},ShapePath.prototype.reverse=function(){var et=new ShapePath;et.setPathData(this.c,this._length);var tt=this.v,rt=this.o,nt=this.i,it=0;this.c&&(et.setTripleAt(tt[0][0],tt[0][1],nt[0][0],nt[0][1],rt[0][0],rt[0][1],0,!1),it=1);var st=this._length-1,at=this._length,ot;for(ot=it;ot=ht[ht.length-1].t-this.offsetTime)Ft=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],zt=!0;else{for(var Et=Bt,Tt=ht.length-1,Rt=!0,At,Pt,It;Rt&&(At=ht[Et],Pt=ht[Et+1],!(Pt.t-this.offsetTime>mt));)Et=Pt.t-this.offsetTime)Ot=1;else if(mtSt&&mt>St)||(this._caching.lastIndex=Bt1?rt[1]=1:rt[1]<=0&&(rt[1]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addBrightnessToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[2]+=tt,rt[2]>1?rt[2]=1:rt[2]<0&&(rt[2]=0),HSVtoRGB(rt[0],rt[1],rt[2])}function addHueToRGB(et,tt){var rt=RGBtoHSV(et[0]*255,et[1]*255,et[2]*255);return rt[0]+=tt/360,rt[0]>1?rt[0]-=1:rt[0]<0&&(rt[0]+=1),HSVtoRGB(rt[0],rt[1],rt[2])}var rgbToHex=function(){var et=[],tt,rt;for(tt=0;tt<256;tt+=1)rt=tt.toString(16),et[tt]=rt.length===1?"0"+rt:rt;return function(nt,it,st){return nt<0&&(nt=0),it<0&&(it=0),st<0&&(st=0),"#"+et[nt]+et[it]+et[st]}}(),setSubframeEnabled=function(tt){subframeEnabled=!!tt},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(tt){expressionsPlugin=tt},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(tt){expressionsInterfaces=tt},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(tt){defaultCurveSegments=tt},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(tt){idPrefix$1=tt};function createNS(et){return document.createElementNS(svgNS,et)}function _typeof$5(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(rt){return typeof rt}:_typeof$5=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$5(et)}var dataManager=function(){var et=1,tt=[],rt,nt,it={onmessage:function(){},postMessage:function(kt){rt({data:kt})}},st={postMessage:function(kt){it.onmessage({data:kt})}};function at(gt){if(window.Worker&&window.Blob&&getWebWorker()){var kt=new Blob(["var _workerSelf = self; self.onmessage = ",gt.toString()],{type:"text/javascript"}),pt=URL.createObjectURL(kt);return new Worker(pt)}return rt=gt,it}function ot(){nt||(nt=at(function(kt){function pt(){function $t(Et,Tt){var Rt,At,Pt=Et.length,It,Ct,xt,Dt;for(At=0;At=0;Tt-=1)if(Et[Tt].ty==="sh")if(Et[Tt].ks.k.i)Ot(Et[Tt].ks.k);else for(Pt=Et[Tt].ks.k.length,At=0;AtRt[0]?!0:Rt[0]>Et[0]?!1:Et[1]>Rt[1]?!0:Rt[1]>Et[1]?!1:Et[2]>Rt[2]?!0:Rt[2]>Et[2]?!1:null}var zt=function(){var Et=[4,4,14];function Tt(At){var Pt=At.t.d;At.t.d={k:[{s:Pt,t:0}]}}function Rt(At){var Pt,It=At.length;for(Pt=0;Pt=0;Pt-=1)if(At[Pt].ty==="sh")if(At[Pt].ks.k.i)At[Pt].ks.k.c=At[Pt].closed;else for(xt=At[Pt].ks.k.length,Ct=0;Ct500)&&(this._imageLoaded(),clearInterval(St)),wt+=1}).bind(this),50)}function st(mt){var wt=nt(mt,this.assetsPath,this.path),St=createNS("image");isSafari?this.testImageLoaded(St):St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.setAttributeNS("http://www.w3.org/1999/xlink","href",wt),this._elementHelper.append?this._elementHelper.append(St):this._elementHelper.appendChild(St);var Bt={img:St,assetData:mt};return Bt}function at(mt){var wt=nt(mt,this.assetsPath,this.path),St=createTag("img");St.crossOrigin="anonymous",St.addEventListener("load",this._imageLoaded,!1),St.addEventListener("error",(function(){Bt.img=et,this._imageLoaded()}).bind(this),!1),St.src=wt;var Bt={img:St,assetData:mt};return Bt}function ot(mt){var wt={assetData:mt},St=nt(mt,this.assetsPath,this.path);return dataManager.loadData(St,(function(Bt){wt.img=Bt,this._footageLoaded()}).bind(this),(function(){wt.img={},this._footageLoaded()}).bind(this)),wt}function lt(mt,wt){this.imagesLoadedCb=wt;var St,Bt=mt.length;for(St=0;Stthis.animationData.op&&(this.animationData.op=et.op,this.totalFrames=Math.floor(et.op-this.animationData.ip));var tt=this.animationData.layers,rt,nt=tt.length,it=et.layers,st,at=it.length;for(st=0;stthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!(this.isLoaded===!1||!this.renderer))try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(et){this.triggerRenderFrameError(et)}},AnimationItem.prototype.play=function(et){et&&this.name!==et||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(et){et&&this.name!==et||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(et){et&&this.name!==et||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(et){et&&this.name!==et||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(et){for(var tt,rt=0;rt=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(tt>this.totalFrames?tt%this.totalFrames:0)||(rt=!0,tt=this.totalFrames-1):tt>=this.totalFrames?(this.playCount+=1,this.checkSegments(tt%this.totalFrames)||(this.setCurrentRawFrameValue(tt%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(tt):tt<0?this.checkSegments(tt%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+tt%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(rt=!0,tt=0)):this.setCurrentRawFrameValue(tt),rt&&(this.setCurrentRawFrameValue(tt),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(et,tt){this.playCount=0,et[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=et[0]-et[1],this.timeCompleted=this.totalFrames,this.firstFrame=et[1],this.setCurrentRawFrameValue(this.totalFrames-.001-tt)):et[1]>et[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=et[1]-et[0],this.timeCompleted=this.totalFrames,this.firstFrame=et[0],this.setCurrentRawFrameValue(.001+tt)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(et,tt){var rt=-1;this.isPaused&&(this.currentRawFrame+this.firstFramett&&(rt=tt-et)),this.firstFrame=et,this.totalFrames=tt-et,this.timeCompleted=this.totalFrames,rt!==-1&&this.goToAndStop(rt,!0)},AnimationItem.prototype.playSegments=function(et,tt){if(tt&&(this.segments.length=0),_typeof$4(et[0])==="object"){var rt,nt=et.length;for(rt=0;rt=0;Rt-=1)tt[Rt].animation.destroy(Tt)}function Vt(Tt,Rt,At){var Pt=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),It,Ct=Pt.length;for(It=0;It0?Bt=Vt:St=Vt;while(Math.abs(zt)>st&&++Wt=it?$t(St,qt,Bt,Ot):Ft===0?qt:yt(St,zt,zt+lt,Bt,Ot)}},et}(),pooling=function(){function et(tt){return tt.concat(createSizedArray(tt.length))}return{double:et}}(),poolFactory=function(){return function(et,tt,rt){var nt=0,it=et,st=createSizedArray(it),at={newElement:ot,release:lt};function ot(){var ut;return nt?(nt-=1,ut=st[nt]):ut=tt(),ut}function lt(ut){nt===it&&(st=pooling.double(st),it*=2),rt&&rt(ut),st[nt]=ut,nt+=1}return at}}(),bezierLengthPool=function(){function et(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,et)}(),segmentsLengthPool=function(){function et(){return{lengths:[],totalLength:0}}function tt(rt){var nt,it=rt.lengths.length;for(nt=0;nt-.001&&wt<.001}function rt(gt,kt,pt,yt,$t,mt,wt,St,Bt){if(pt===0&&mt===0&&Bt===0)return tt(gt,kt,yt,$t,wt,St);var Ot=et.sqrt(et.pow(yt-gt,2)+et.pow($t-kt,2)+et.pow(mt-pt,2)),Lt=et.sqrt(et.pow(wt-gt,2)+et.pow(St-kt,2)+et.pow(Bt-pt,2)),zt=et.sqrt(et.pow(wt-yt,2)+et.pow(St-$t,2)+et.pow(Bt-mt,2)),Vt;return Ot>Lt?Ot>zt?Vt=Ot-Lt-zt:Vt=zt-Lt-Ot:zt>Lt?Vt=zt-Lt-Ot:Vt=Lt-Ot-zt,Vt>-1e-4&&Vt<1e-4}var nt=function(){return function(gt,kt,pt,yt){var $t=getDefaultCurveSegments(),mt,wt,St,Bt,Ot,Lt=0,zt,Vt=[],Wt=[],lr=bezierLengthPool.newElement();for(St=pt.length,mt=0;mt<$t;mt+=1){for(Ot=mt/($t-1),zt=0,wt=0;wtwt?-1:1,Ot=!0;Ot;)if(yt[mt]<=wt&&yt[mt+1]>wt?(St=(wt-yt[mt])/(yt[mt+1]-yt[mt]),Ot=!1):mt+=Bt,mt<0||mt>=$t-1){if(mt===$t-1)return pt[mt];Ot=!1}return pt[mt]+(pt[mt+1]-pt[mt])*St}function ut(gt,kt,pt,yt,$t,mt){var wt=lt($t,mt),St=1-wt,Bt=et.round((St*St*St*gt[0]+(wt*St*St+St*wt*St+St*St*wt)*pt[0]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[0]+wt*wt*wt*kt[0])*1e3)/1e3,Ot=et.round((St*St*St*gt[1]+(wt*St*St+St*wt*St+St*St*wt)*pt[1]+(wt*wt*St+St*wt*wt+wt*St*wt)*yt[1]+wt*wt*wt*kt[1])*1e3)/1e3;return[Bt,Ot]}var dt=createTypedArray("float32",8);function bt(gt,kt,pt,yt,$t,mt,wt){$t<0?$t=0:$t>1&&($t=1);var St=lt($t,wt);mt=mt>1?1:mt;var Bt=lt(mt,wt),Ot,Lt=gt.length,zt=1-St,Vt=1-Bt,Wt=zt*zt*zt,lr=St*zt*zt*3,qt=St*St*zt*3,Ft=St*St*St,Mt=zt*zt*Vt,ht=St*zt*Vt+zt*St*Vt+zt*zt*Bt,Et=St*St*Vt+zt*St*Bt+St*zt*Bt,Tt=St*St*Bt,Rt=zt*Vt*Vt,At=St*Vt*Vt+zt*Bt*Vt+zt*Vt*Bt,Pt=St*Bt*Vt+zt*Bt*Bt+St*Vt*Bt,It=St*Bt*Bt,Ct=Vt*Vt*Vt,xt=Bt*Vt*Vt+Vt*Bt*Vt+Vt*Vt*Bt,Dt=Bt*Bt*Vt+Vt*Bt*Bt+Bt*Vt*Bt,tr=Bt*Bt*Bt;for(Ot=0;Ot=ut.t-rt){lt.h&&(lt=ut),it=0;break}if(ut.t-rt>et){it=st;break}st=mt||et=mt?Bt.points.length-1:0;for(gt=Bt.points[Ot].point.length,bt=0;bt=Vt&&Lt=mt)nt[0]=St[0],nt[1]=St[1],nt[2]=St[2];else if(et<=wt)nt[0]=lt.s[0],nt[1]=lt.s[1],nt[2]=lt.s[2];else{var ht=createQuaternion(lt.s),Et=createQuaternion(St),Tt=(et-wt)/(mt-wt);quaternionToEuler(nt,slerp(ht,Et,Tt))}else for(st=0;st=mt?kt=1:et1e-6?(gt=Math.acos(kt),pt=Math.sin(gt),yt=Math.sin((1-rt)*gt)/pt,$t=Math.sin(rt*gt)/pt):(yt=1-rt,$t=rt),nt[0]=yt*it+$t*lt,nt[1]=yt*st+$t*ut,nt[2]=yt*at+$t*dt,nt[3]=yt*ot+$t*bt,nt}function quaternionToEuler(et,tt){var rt=tt[0],nt=tt[1],it=tt[2],st=tt[3],at=Math.atan2(2*nt*st-2*rt*it,1-2*nt*nt-2*it*it),ot=Math.asin(2*rt*nt+2*it*st),lt=Math.atan2(2*rt*st-2*nt*it,1-2*rt*rt-2*it*it);et[0]=at/degToRads,et[1]=ot/degToRads,et[2]=lt/degToRads}function createQuaternion(et){var tt=et[0]*degToRads,rt=et[1]*degToRads,nt=et[2]*degToRads,it=Math.cos(tt/2),st=Math.cos(rt/2),at=Math.cos(nt/2),ot=Math.sin(tt/2),lt=Math.sin(rt/2),ut=Math.sin(nt/2),dt=it*st*at-ot*lt*ut,bt=ot*lt*at+it*st*ut,gt=ot*st*at+it*lt*ut,kt=it*lt*at-ot*st*ut;return[bt,gt,kt,dt]}function getValueAtCurrentTime(){var et=this.comp.renderedFrame-this.offsetTime,tt=this.keyframes[0].t-this.offsetTime,rt=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(et===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=rt&&et>=rt||this._caching.lastFrame=et&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var nt=this.interpolateValue(et,this._caching);this.pv=nt}return this._caching.lastFrame=et,this.pv}function setVValue(et){var tt;if(this.propType==="unidimensional")tt=et*this.mult,mathAbs(this.v-tt)>1e-5&&(this.v=tt,this._mdf=!0);else for(var rt=0,nt=this.v.length;rt1e-5&&(this.v[rt]=tt,this._mdf=!0),rt+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var et,tt=this.effectsSequence.length,rt=this.kf?this.pv:this.data.k;for(et=0;et=this._maxLength&&this.doubleArrayLength(),rt){case"v":st=this.v;break;case"i":st=this.i;break;case"o":st=this.o;break;default:st=[];break}(!st[nt]||st[nt]&&!it)&&(st[nt]=pointPool.newElement()),st[nt][0]=et,st[nt][1]=tt},ShapePath.prototype.setTripleAt=function(et,tt,rt,nt,it,st,at,ot){this.setXYAt(et,tt,"v",at,ot),this.setXYAt(rt,nt,"o",at,ot),this.setXYAt(it,st,"i",at,ot)},ShapePath.prototype.reverse=function(){var et=new ShapePath;et.setPathData(this.c,this._length);var tt=this.v,rt=this.o,nt=this.i,it=0;this.c&&(et.setTripleAt(tt[0][0],tt[0][1],nt[0][0],nt[0][1],rt[0][0],rt[0][1],0,!1),it=1);var st=this._length-1,at=this._length,ot;for(ot=it;ot=ht[ht.length-1].t-this.offsetTime)Ot=ht[ht.length-1].s?ht[ht.length-1].s[0]:ht[ht.length-2].e[0],zt=!0;else{for(var Et=Bt,Tt=ht.length-1,Rt=!0,At,Pt,It;Rt&&(At=ht[Et],Pt=ht[Et+1],!(Pt.t-this.offsetTime>mt));)Et=Pt.t-this.offsetTime)Ft=1;else if(mtSt&&mt>St)||(this._caching.lastIndex=Bt0||At>-1e-6&&At<0?nt(At*Pt)/Pt:At}function Rt(){var At=this.props,Pt=Tt(At[0]),It=Tt(At[1]),Ct=Tt(At[4]),xt=Tt(At[5]),Dt=Tt(At[12]),tr=Tt(At[13]);return"matrix("+Pt+","+It+","+Ct+","+xt+","+Dt+","+tr+")"}return function(){this.reset=it,this.rotate=st,this.rotateX=at,this.rotateY=ot,this.rotateZ=lt,this.skew=dt,this.skewFromAxis=bt,this.shear=ut,this.scale=gt,this.setTransform=kt,this.translate=pt,this.transform=yt,this.multiply=$t,this.applyToPoint=Ft,this.applyToX=Lt,this.applyToY=zt,this.applyToZ=Ht,this.applyToPointArray=Mt,this.applyToTriplePoints=Ot,this.applyToPointStringified=ht,this.toCSS=Et,this.to2dCSS=Rt,this.clone=St,this.cloneFromProps=Bt,this.equals=wt,this.inversePoints=qt,this.inversePoint=lr,this.getInverseMatrix=Wt,this._t=this.transform,this.isIdentity=mt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(rt){return typeof rt}:_typeof$3=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$3(et)}var lottie={};function setLocation(et){setLocationHref(et)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(et){setSubframeEnabled(et)}function setPrefix(et){setIdPrefix(et)}function loadAnimation(et){return animationManager.loadAnimation(et)}function setQuality(et){if(typeof et=="string")switch(et){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(et)&&et>1&&setDefaultCurveSegments(et)}function inBrowser(){return typeof navigator<"u"}function installPlugin(et,tt){et==="expressions"&&setExpressionsPlugin(tt)}function getFactory(et){switch(et){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(et){for(var tt=queryString.split("&"),rt=0;rt=1?st.push({s:et-1,e:tt-1}):(st.push({s:et,e:1}),st.push({s:0,e:tt-1}));var at=[],ot,lt=st.length,ut;for(ot=0;otnt+rt)){var dt,bt;ut.s*it<=nt?dt=0:dt=(ut.s*it-nt)/rt,ut.e*it>=nt+rt?bt=1:bt=(ut.e*it-nt)/rt,at.push([dt,bt])}return at.length||at.push([0,0]),at},TrimModifier.prototype.releasePathsData=function(et){var tt,rt=et.length;for(tt=0;tt1?tt=1+nt:this.s.v<0?tt=0+nt:tt=this.s.v+nt,this.e.v>1?rt=1+nt:this.e.v<0?rt=0+nt:rt=this.e.v+nt,tt>rt){var it=tt;tt=rt,rt=it}tt=Math.round(tt*1e4)*1e-4,rt=Math.round(rt*1e4)*1e-4,this.sValue=tt,this.eValue=rt}else tt=this.sValue,rt=this.eValue;var st,at,ot=this.shapes.length,lt,ut,dt,bt,gt,kt=0;if(rt===tt)for(at=0;at=0;at-=1)if(yt=this.shapes[at],yt.shape._mdf){for($t=yt.localShapeCollection,$t.releaseShapes(),this.m===2&&ot>1?(Bt=this.calculateShapeEdges(tt,rt,yt.totalShapeLength,St,kt),St+=yt.totalShapeLength):Bt=[[mt,wt]],ut=Bt.length,lt=0;lt=1?pt.push({s:yt.totalShapeLength*(mt-1),e:yt.totalShapeLength*(wt-1)}):(pt.push({s:yt.totalShapeLength*mt,e:yt.totalShapeLength}),pt.push({s:0,e:yt.totalShapeLength*(wt-1)}));var Ft=this.addShapes(yt,pt[0]);if(pt[0].s!==pt[0].e){if(pt.length>1){var Lt=yt.shape.paths.shapes[yt.shape.paths._length-1];if(Lt.c){var zt=Ft.pop();this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1],zt)}else this.addPaths(Ft,$t),Ft=this.addShapes(yt,pt[1])}this.addPaths(Ft,$t)}}yt.shape.paths=$t}}},TrimModifier.prototype.addPaths=function(et,tt){var rt,nt=et.length;for(rt=0;rttt.e){rt.c=!1;break}else tt.s<=ut&&tt.e>=ut+dt.addedLength?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[ot],it[st].v[ot],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[ot],it[st].o[ot-1],it[st].i[ot],(tt.s-ut)/dt.addedLength,(tt.e-ut)/dt.addedLength,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1),ut+=dt.addedLength,bt+=1;if(it[st].c&>.length){if(dt=gt[ot-1],ut<=tt.e){var mt=gt[ot-1].addedLength;tt.s<=ut&&tt.e>=ut+mt?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[0],it[st].v[0],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[0],it[st].o[ot-1],it[st].i[0],(tt.s-ut)/mt,(tt.e-ut)/mt,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1)}else rt.c=!1;ut+=dt.addedLength,bt+=1}if(rt._length&&(rt.setXYAt(rt.v[yt][0],rt.v[yt][1],"i",yt),rt.setXYAt(rt.v[rt._length-1][0],rt.v[rt._length-1][1],"o",rt._length-1)),ut>tt.e)break;st=this.p.keyframes[this.p.keyframes.length-1].t?(dt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ut,0),bt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ut,0)):(dt=this.p.pv,bt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ut,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){dt=[],bt=[];var gt=this.px,kt=this.py;gt._caching.lastFrame+gt.offsetTime<=gt.keyframes[0].t?(dt[0]=gt.getValueAtTime((gt.keyframes[0].t+.01)/ut,0),dt[1]=kt.getValueAtTime((kt.keyframes[0].t+.01)/ut,0),bt[0]=gt.getValueAtTime(gt.keyframes[0].t/ut,0),bt[1]=kt.getValueAtTime(kt.keyframes[0].t/ut,0)):gt._caching.lastFrame+gt.offsetTime>=gt.keyframes[gt.keyframes.length-1].t?(dt[0]=gt.getValueAtTime(gt.keyframes[gt.keyframes.length-1].t/ut,0),dt[1]=kt.getValueAtTime(kt.keyframes[kt.keyframes.length-1].t/ut,0),bt[0]=gt.getValueAtTime((gt.keyframes[gt.keyframes.length-1].t-.01)/ut,0),bt[1]=kt.getValueAtTime((kt.keyframes[kt.keyframes.length-1].t-.01)/ut,0)):(dt=[gt.pv,kt.pv],bt[0]=gt.getValueAtTime((gt._caching.lastFrame+gt.offsetTime-.01)/ut,gt.offsetTime),bt[1]=kt.getValueAtTime((kt._caching.lastFrame+kt.offsetTime-.01)/ut,kt.offsetTime))}else bt=et,dt=bt;this.v.rotate(-Math.atan2(dt[1]-bt[1],dt[0]-bt[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function nt(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function it(){}function st(lt){this._addDynamicProperty(lt),this.elem.addDynamicProperty(lt),this._isDirty=!0}function at(lt,ut,dt){if(this.elem=lt,this.frameId=-1,this.propType="transform",this.data=ut,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(dt||lt),ut.p&&ut.p.s?(this.px=PropertyFactory.getProp(lt,ut.p.x,0,0,this),this.py=PropertyFactory.getProp(lt,ut.p.y,0,0,this),ut.p.z&&(this.pz=PropertyFactory.getProp(lt,ut.p.z,0,0,this))):this.p=PropertyFactory.getProp(lt,ut.p||{k:[0,0,0]},1,0,this),ut.rx){if(this.rx=PropertyFactory.getProp(lt,ut.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(lt,ut.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(lt,ut.rz,0,degToRads,this),ut.or.k[0].ti){var bt,gt=ut.or.k.length;for(bt=0;bt0;)rt-=1,this._elements.unshift(tt[rt]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(et){var tt,rt=et.length;for(tt=0;tt0?Math.floor(gt):Math.ceil(gt),yt=this.pMatrix.props,$t=this.rMatrix.props,mt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var wt=0;if(gt>0){for(;wtpt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),wt-=1;kt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-kt,!0),wt-=kt)}nt=this.data.m===1?0:this._currentCopies-1,it=this.data.m===1?1:-1,st=this._currentCopies;for(var St,Bt;st;){if(tt=this.elemsData[nt].it,rt=tt[tt.length-1].transform.mProps.v.props,Bt=rt.length,tt[tt.length-1].transform.mProps._mdf=!0,tt[tt.length-1].transform.op._mdf=!0,tt[tt.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(nt/(this._currentCopies-1)),wt!==0){for((nt!==0&&it===1||nt!==this._currentCopies-1&&it===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform($t[0],$t[1],$t[2],$t[3],$t[4],$t[5],$t[6],$t[7],$t[8],$t[9],$t[10],$t[11],$t[12],$t[13],$t[14],$t[15]),this.matrix.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15]),this.matrix.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15]),St=0;St0&&nt<1?[tt]:[]:[tt-nt,tt+nt].filter(function(it){return it>0&&it<1})},PolynomialBezier.prototype.split=function(et){if(et<=0)return[singlePoint(this.points[0]),this];if(et>=1)return[this,singlePoint(this.points[this.points.length-1])];var tt=lerpPoint(this.points[0],this.points[1],et),rt=lerpPoint(this.points[1],this.points[2],et),nt=lerpPoint(this.points[2],this.points[3],et),it=lerpPoint(tt,rt,et),st=lerpPoint(rt,nt,et),at=lerpPoint(it,st,et);return[new PolynomialBezier(this.points[0],tt,it,at,!0),new PolynomialBezier(at,st,nt,this.points[3],!0)]};function extrema(et,tt){var rt=et.points[0][tt],nt=et.points[et.points.length-1][tt];if(rt>nt){var it=nt;nt=rt,rt=it}for(var st=quadRoots(3*et.a[tt],2*et.b[tt],et.c[tt]),at=0;at0&&st[at]<1){var ot=et.point(st[at])[tt];otnt&&(nt=ot)}return{min:rt,max:nt}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var et=this.bounds();return{left:et.x.min,right:et.x.max,top:et.y.min,bottom:et.y.max,width:et.x.max-et.x.min,height:et.y.max-et.y.min,cx:(et.x.max+et.x.min)/2,cy:(et.y.max+et.y.min)/2}};function intersectData(et,tt,rt){var nt=et.boundingBox();return{cx:nt.cx,cy:nt.cy,width:nt.width,height:nt.height,bez:et,t:(tt+rt)/2,t1:tt,t2:rt}}function splitData(et){var tt=et.bez.split(.5);return[intersectData(tt[0],et.t1,et.t),intersectData(tt[1],et.t,et.t2)]}function boxIntersect(et,tt){return Math.abs(et.cx-tt.cx)*2=st||et.width<=nt&&et.height<=nt&&tt.width<=nt&&tt.height<=nt){it.push([et.t,tt.t]);return}var at=splitData(et),ot=splitData(tt);intersectsImpl(at[0],ot[0],rt+1,nt,it,st),intersectsImpl(at[0],ot[1],rt+1,nt,it,st),intersectsImpl(at[1],ot[0],rt+1,nt,it,st),intersectsImpl(at[1],ot[1],rt+1,nt,it,st)}}PolynomialBezier.prototype.intersections=function(et,tt,rt){tt===void 0&&(tt=2),rt===void 0&&(rt=7);var nt=[];return intersectsImpl(intersectData(this,0,1),intersectData(et,0,1),0,tt,nt,rt),nt},PolynomialBezier.shapeSegment=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[tt],et.o[tt],et.i[rt],et.v[rt],!0)},PolynomialBezier.shapeSegmentInverted=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[rt],et.i[rt],et.o[tt],et.v[tt],!0)};function crossProduct(et,tt){return[et[1]*tt[2]-et[2]*tt[1],et[2]*tt[0]-et[0]*tt[2],et[0]*tt[1]-et[1]*tt[0]]}function lineIntersection(et,tt,rt,nt){var it=[et[0],et[1],1],st=[tt[0],tt[1],1],at=[rt[0],rt[1],1],ot=[nt[0],nt[1],1],lt=crossProduct(crossProduct(it,st),crossProduct(at,ot));return floatZero(lt[2])?null:[lt[0]/lt[2],lt[1]/lt[2]]}function polarOffset(et,tt,rt){return[et[0]+Math.cos(tt)*rt,et[1]-Math.sin(tt)*rt]}function pointDistance(et,tt){return Math.hypot(et[0]-tt[0],et[1]-tt[1])}function pointEqual(et,tt){return floatEqual(et[0],tt[0])&&floatEqual(et[1],tt[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(et,tt.s,0,null,this),this.frequency=PropertyFactory.getProp(et,tt.r,0,null,this),this.pointsType=PropertyFactory.getProp(et,tt.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(et,tt,rt,nt,it,st,at){var ot=rt-Math.PI/2,lt=rt+Math.PI/2,ut=tt[0]+Math.cos(rt)*nt*it,dt=tt[1]-Math.sin(rt)*nt*it;et.setTripleAt(ut,dt,ut+Math.cos(ot)*st,dt-Math.sin(ot)*st,ut+Math.cos(lt)*at,dt-Math.sin(lt)*at,et.length())}function getPerpendicularVector(et,tt){var rt=[tt[0]-et[0],tt[1]-et[1]],nt=-Math.PI*.5,it=[Math.cos(nt)*rt[0]-Math.sin(nt)*rt[1],Math.sin(nt)*rt[0]+Math.cos(nt)*rt[1]];return it}function getProjectingAngle(et,tt){var rt=tt===0?et.length()-1:tt-1,nt=(tt+1)%et.length(),it=et.v[rt],st=et.v[nt],at=getPerpendicularVector(it,st);return Math.atan2(0,1)-Math.atan2(at[1],at[0])}function zigZagCorner(et,tt,rt,nt,it,st,at){var ot=getProjectingAngle(tt,rt),lt=tt.v[rt%tt._length],ut=tt.v[rt===0?tt._length-1:rt-1],dt=tt.v[(rt+1)%tt._length],bt=st===2?Math.sqrt(Math.pow(lt[0]-ut[0],2)+Math.pow(lt[1]-ut[1],2)):0,gt=st===2?Math.sqrt(Math.pow(lt[0]-dt[0],2)+Math.pow(lt[1]-dt[1],2)):0;setPoint(et,tt.v[rt%tt._length],ot,at,nt,gt/((it+1)*2),bt/((it+1)*2))}function zigZagSegment(et,tt,rt,nt,it,st){for(var at=0;at1&&tt.length>1&&(it=getIntersection(et[0],tt[tt.length-1]),it)?[[et[0].split(it[0])[0]],[tt[tt.length-1].split(it[1])[1]]]:[rt,nt]}function pruneIntersections(et){for(var tt,rt=1;rt1&&(tt=pruneSegmentIntersection(et[et.length-1],et[0]),et[et.length-1]=tt[0],et[0]=tt[1]),et}function offsetSegmentSplit(et,tt){var rt=et.inflectionPoints(),nt,it,st,at;if(rt.length===0)return[offsetSegment(et,tt)];if(rt.length===1||floatEqual(rt[1],1))return st=et.split(rt[0]),nt=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(it,tt)];st=et.split(rt[0]),nt=st[0];var ot=(rt[1]-rt[0])/(1-rt[0]);return st=st[1].split(ot),at=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(at,tt),offsetSegment(it,tt)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(et,tt.a,0,null,this),this.miterLimit=PropertyFactory.getProp(et,tt.ml,0,null,this),this.lineJoin=tt.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(et,tt,rt,nt){var it=shapePool.newElement();it.c=et.c;var st=et.length();et.c||(st-=1);var at,ot,lt,ut=[];for(at=0;at=0;at-=1)lt=PolynomialBezier.shapeSegmentInverted(et,at),ut.push(offsetSegmentSplit(lt,tt));ut=pruneIntersections(ut);var dt=null,bt=null;for(at=0;at0&&(xt=!1),xt){var pr=createTag("style");pr.setAttribute("f-forigin",At[Pt].fOrigin),pr.setAttribute("f-origin",At[Pt].origin),pr.setAttribute("f-family",At[Pt].fFamily),pr.type="text/css",pr.innerText="@font-face {font-family: "+At[Pt].fFamily+"; font-style: normal; src: url('"+At[Pt].fPath+"');}",Rt.appendChild(pr)}}else if(At[Pt].fOrigin==="g"||At[Pt].origin===1){for(Dt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),tr=0;tr=55296&&At<=56319){var Pt=Tt.charCodeAt(1);Pt>=56320&&Pt<=57343&&(Rt=(At-55296)*1024+Pt-56320+65536)}return Rt}function Lt(Tt,Rt){var At=Tt.toString(16)+Rt.toString(16);return bt.indexOf(At)!==-1}function zt(Tt){return Tt===lt}function Ht(Tt){return Tt===ot}function Wt(Tt){var Rt=Ft(Tt);return Rt>=ut&&Rt<=dt}function lr(Tt){return Wt(Tt.substr(0,2))&&Wt(Tt.substr(2,2))}function qt(Tt){return rt.indexOf(Tt)!==-1}function Ot(Tt,Rt){var At=Ft(Tt.substr(Rt,2));if(At!==nt)return!1;var Pt=0;for(Rt+=2;Pt<5;){if(At=Ft(Tt.substr(Rt,2)),Atat)return!1;Pt+=1,Rt+=2}return Ft(Tt.substr(Rt,2))===it}function Mt(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=Lt,ht.isZeroWidthJoiner=zt,ht.isFlagEmoji=lr,ht.isRegionalCode=Wt,ht.isCombinedCharacter=qt,ht.isRegionalFlag=Ot,ht.isVariationSelector=Ht,ht.BLACK_FLAG_CODE_POINT=nt;var Et={addChars:mt,addFonts:$t,getCharData:wt,getFontByName:Bt,measureText:St,checkLoadedFonts:pt,setIsLoaded:Mt};return ht.prototype=Et,ht}();function SlotManager(et){this.animationData=et}SlotManager.prototype.getProp=function(et){return this.animationData.slots&&this.animationData.slots[et.sid]?Object.assign(et,this.animationData.slots[et.sid].p):et};function slotFactory(et){return new SlotManager(et)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)===-1&&this.renderableComponents.push(tt)},removeRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(tt),1)},prepareRenderableFrame:function(tt){this.checkLayerLimits(tt)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(tt){this.data.ip-this.data.st<=tt&&this.data.op-this.data.st>tt?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var tt,rt=this.renderableComponents.length;for(tt=0;tt.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(et){this.audio.rate(et)},AudioElement.prototype.volume=function(et){this._volumeMultiplier=et,this._previousVolume=et*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(et){var tt,rt=this.layers.length,nt;for(this.completeLayers=!0,tt=rt-1;tt>=0;tt-=1)this.elements[tt]||(nt=this.layers[tt],nt.ip-nt.st<=et-this.layers[tt].st&&nt.op-nt.st>et-this.layers[tt].st&&this.buildItem(tt)),this.completeLayers=this.elements[tt]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(et){switch(et.ty){case 2:return this.createImage(et);case 0:return this.createComp(et);case 1:return this.createSolid(et);case 3:return this.createNull(et);case 4:return this.createShape(et);case 5:return this.createText(et);case 6:return this.createAudio(et);case 13:return this.createCamera(et);case 15:return this.createFootage(et);default:return this.createNull(et)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(et){return new AudioElement(et,this.globalData,this)},BaseRenderer.prototype.createFootage=function(et){return new FootageElement(et,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var et,tt=this.layers.length;for(et=0;et0&&(this.maskElement.setAttribute("id",gt),this.element.maskedElement.setAttribute(wt,"url("+getLocationHref()+"#"+gt+")"),nt.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(et){return this.viewData[et].prop},MaskElement.prototype.renderFrame=function(et){var tt=this.element.finalTransform.mat,rt,nt=this.masksProperties.length;for(rt=0;rt1&&(nt+=" C"+tt.o[it-1][0]+","+tt.o[it-1][1]+" "+tt.i[0][0]+","+tt.i[0][1]+" "+tt.v[0][0]+","+tt.v[0][1]),rt.lastPath!==nt){var at="";rt.elem&&(tt.c&&(at=et.inv?this.solidPath+nt:nt),rt.elem.setAttribute("d",at)),rt.lastPath=nt}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var et={};et.createFilter=tt,et.createAlphaToLuminanceFilter=rt;function tt(nt,it){var st=createNS("filter");return st.setAttribute("id",nt),it!==!0&&(st.setAttribute("filterUnits","objectBoundingBox"),st.setAttribute("x","0%"),st.setAttribute("y","0%"),st.setAttribute("width","100%"),st.setAttribute("height","100%")),st}function rt(){var nt=createNS("feColorMatrix");return nt.setAttribute("type","matrix"),nt.setAttribute("color-interpolation-filters","sRGB"),nt.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),nt}return et}(),featureSupport=function(){var et={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(et.maskType=!1),/firefox/i.test(navigator.userAgent)&&(et.svgLumaHidden=!1),et}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(et){var tt,rt="SourceGraphic",nt=et.data.ef?et.data.ef.length:0,it=createElementID(),st=filtersFactory.createFilter(it,!0),at=0;this.filters=[];var ot;for(tt=0;tt=0&&(nt=this.shapeModifiers[tt].processShapes(this._isFirstFrame),!nt);tt-=1);}},searchProcessedElement:function(tt){for(var rt=this.processedElements,nt=0,it=rt.length;nt.01)return!1;rt+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var et=0,tt=this.data.k.k.length;et0;)mt=gt.transformers[Wt].mProps._mdf||mt,Ht-=1,Wt-=1;if(mt)for(Ht=Ft-gt.styles[St].lvl,Wt=gt.transformers.length-1;Ht>0;)zt.multiply(gt.transformers[Wt].mProps.v),Ht-=1,Wt-=1}else zt=et;if(Lt=gt.sh.paths,yt=Lt._length,mt){for($t="",pt=0;pt=1?Mt=.99:Mt<=-1&&(Mt=-.99);var ht=qt*Mt,Et=Math.cos(Ot+gt.a.v)*ht+$t[0],Tt=Math.sin(Ot+gt.a.v)*ht+$t[1];pt.setAttribute("fx",Et),pt.setAttribute("fy",Tt),yt&&!gt.g._collapsable&&(gt.of.setAttribute("fx",Et),gt.of.setAttribute("fy",Tt))}}}function dt(bt,gt,kt){var pt=gt.style,yt=gt.d;yt&&(yt._mdf||kt)&&yt.dashStr&&(pt.pElem.setAttribute("stroke-dasharray",yt.dashStr),pt.pElem.setAttribute("stroke-dashoffset",yt.dashoffset[0])),gt.c&&(gt.c._mdf||kt)&&pt.pElem.setAttribute("stroke","rgb("+bmFloor(gt.c.v[0])+","+bmFloor(gt.c.v[1])+","+bmFloor(gt.c.v[2])+")"),(gt.o._mdf||kt)&&pt.pElem.setAttribute("stroke-opacity",gt.o.v),(gt.w._mdf||kt)&&(pt.pElem.setAttribute("stroke-width",gt.w.v),pt.msElem&&pt.msElem.setAttribute("stroke-width",gt.w.v))}return rt}();function SVGShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(et,tt,rt),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var et,tt=this.shapes.length,rt,nt,it=this.stylesList.length,st,at=[],ot=!1;for(nt=0;nt1&&ot&&this.setShapesAsAnimated(at)}},SVGShapeElement.prototype.setShapesAsAnimated=function(et){var tt,rt=et.length;for(tt=0;tt=0;lt-=1){if($t=this.searchProcessedElement(et[lt]),$t?tt[lt]=rt[$t-1]:et[lt]._render=at,et[lt].ty==="fl"||et[lt].ty==="st"||et[lt].ty==="gf"||et[lt].ty==="gs"||et[lt].ty==="no")$t?tt[lt].style.closed=!1:tt[lt]=this.createStyleElement(et[lt],it),et[lt]._render&&tt[lt].style.pElem.parentNode!==nt&&nt.appendChild(tt[lt].style.pElem),gt.push(tt[lt].style);else if(et[lt].ty==="gr"){if(!$t)tt[lt]=this.createGroupElement(et[lt]);else for(bt=tt[lt].it.length,dt=0;dt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(et){this.effectsSequence.push(et),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(et){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!et)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var tt=this.currentData,rt=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var nt,it=this.effectsSequence.length,st=et||this.data.d.k[this.keysIndex].s;for(nt=0;nttt);)rt+=1;return this.keysIndex!==rt&&(this.keysIndex=rt),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(et){for(var tt=[],rt=0,nt=et.length,it,st,at=!1,ot=!1,lt="";rt=55296&&it<=56319?FontManager.isRegionalFlag(et,rt)?lt=et.substr(rt,14):(st=et.charCodeAt(rt+1),st>=56320&&st<=57343&&(FontManager.isModifier(it,st)?(lt=et.substr(rt,2),at=!0):FontManager.isFlagEmoji(et.substr(rt,4))?lt=et.substr(rt,4):lt=et.substr(rt,2))):it>56319?(st=et.charCodeAt(rt+1),FontManager.isVariationSelector(it)&&(at=!0)):FontManager.isZeroWidthJoiner(it)&&(at=!0,ot=!0),at?(tt[tt.length-1]+=lt,at=!1):tt.push(lt),rt+=lt.length;return tt},TextProperty.prototype.completeTextData=function(et){et.__complete=!0;var tt=this.elem.globalData.fontManager,rt=this.data,nt=[],it,st,at,ot=0,lt,ut=rt.m.g,dt=0,bt=0,gt=0,kt=[],pt=0,yt=0,$t,mt,wt=tt.getFontByName(et.f),St,Bt=0,Ft=getFontProperties(wt);et.fWeight=Ft.weight,et.fStyle=Ft.style,et.finalSize=et.s,et.finalText=this.buildFinalText(et.t),st=et.finalText.length,et.finalLineHeight=et.lh;var Lt=et.tr/1e3*et.finalSize,zt;if(et.sz)for(var Ht=!0,Wt=et.sz[0],lr=et.sz[1],qt,Ot;Ht;){Ot=this.buildFinalText(et.t),qt=0,pt=0,st=Ot.length,Lt=et.tr/1e3*et.finalSize;var Mt=-1;for(it=0;itWt&&Ot[it]!==" "?(Mt===-1?st+=1:it=Mt,qt+=et.finalLineHeight||et.finalSize*1.2,Ot.splice(it,Mt===it?1:0,"\r"),Mt=-1,pt=0):(pt+=Bt,pt+=Lt);qt+=wt.ascent*et.finalSize/100,this.canResize&&et.finalSize>this.minimumFontSize&&lryt?pt:yt,pt=-2*Lt,lt="",at=!0,gt+=1):lt=Et,tt.chars?(St=tt.getCharData(Et,wt.fStyle,tt.getFontByName(et.f).fFamily),Bt=at?0:St.w*et.finalSize/100):Bt=tt.measureText(lt,et.f,et.finalSize),Et===" "?ht+=Bt+Lt:(pt+=Bt+Lt+ht,ht=0),nt.push({l:Bt,an:Bt,add:dt,n:at,anIndexes:[],val:lt,line:gt,animatorJustifyOffset:0}),ut==2){if(dt+=Bt,lt===""||lt===" "||it===st-1){for((lt===""||lt===" ")&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;ot+=1,dt=0}}else if(ut==3){if(dt+=Bt,lt===""||it===st-1){for(lt===""&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;dt=0,ot+=1}}else nt[ot].ind=ot,nt[ot].extra=0,ot+=1;if(et.l=nt,yt=pt>yt?pt:yt,kt.push(pt),et.sz)et.boxWidth=et.sz[0],et.justifyOffset=0;else switch(et.boxWidth=yt,et.j){case 1:et.justifyOffset=-et.boxWidth;break;case 2:et.justifyOffset=-et.boxWidth/2;break;default:et.justifyOffset=0}et.lineWidths=kt;var Tt=rt.a,Rt,At;mt=Tt.length;var Pt,It,Ct=[];for($t=0;$t0?ot=this.ne.v/100:lt=-this.ne.v/100,this.xe.v>0?ut=1-this.xe.v/100:dt=1+this.xe.v/100;var bt=BezierFactory.getBezierEasing(ot,lt,ut,dt).get,gt=0,kt=this.finalS,pt=this.finalE,yt=this.data.sh;if(yt===2)pt===kt?gt=at>=pt?1:0:gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===3)pt===kt?gt=at>=pt?0:1:gt=1-et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===4)pt===kt?gt=0:(gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt<.5?gt*=2:gt=1-2*(gt-.5)),gt=bt(gt);else if(yt===5){if(pt===kt)gt=0;else{var $t=pt-kt;at=tt(et(0,at+.5-kt),pt-kt);var mt=-$t/2+at,wt=$t/2;gt=Math.sqrt(1-mt*mt/(wt*wt))}gt=bt(gt)}else yt===6?(pt===kt?gt=0:(at=tt(et(0,at+.5-kt),pt-kt),gt=(1+Math.cos(Math.PI+Math.PI*2*at/(pt-kt)))/2),gt=bt(gt)):(at>=rt(kt)&&(at-kt<0?gt=et(0,tt(tt(pt,1)-(kt-at),1)):gt=et(0,tt(pt-at,1))),gt=bt(gt));if(this.sm.v!==100){var St=this.sm.v*.01;St===0&&(St=1e-8);var Bt=.5-St*.5;gt1&&(gt=1))}return gt*this.a.v},getValue:function(at){this.iterateDynamicProperties(),this._mdf=at||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,at&&this.data.r===2&&(this.e.v=this._currentTextLength);var ot=this.data.r===2?1:100/this.data.totalChars,lt=this.o.v/ot,ut=this.s.v/ot+lt,dt=this.e.v/ot+lt;if(ut>dt){var bt=ut;ut=dt,dt=bt}this.finalS=ut,this.finalE=dt}},extendPrototype([DynamicPropertyContainer],nt);function it(st,at,ot){return new nt(st,at)}return{getTextSelectorProp:it}}();function TextAnimatorDataProperty(et,tt,rt){var nt={propType:!1},it=PropertyFactory.getProp,st=tt.a;this.a={r:st.r?it(et,st.r,0,degToRads,rt):nt,rx:st.rx?it(et,st.rx,0,degToRads,rt):nt,ry:st.ry?it(et,st.ry,0,degToRads,rt):nt,sk:st.sk?it(et,st.sk,0,degToRads,rt):nt,sa:st.sa?it(et,st.sa,0,degToRads,rt):nt,s:st.s?it(et,st.s,1,.01,rt):nt,a:st.a?it(et,st.a,1,0,rt):nt,o:st.o?it(et,st.o,0,.01,rt):nt,p:st.p?it(et,st.p,1,0,rt):nt,sw:st.sw?it(et,st.sw,0,0,rt):nt,sc:st.sc?it(et,st.sc,1,0,rt):nt,fc:st.fc?it(et,st.fc,1,0,rt):nt,fh:st.fh?it(et,st.fh,0,0,rt):nt,fs:st.fs?it(et,st.fs,0,.01,rt):nt,fb:st.fb?it(et,st.fb,0,.01,rt):nt,t:st.t?it(et,st.t,0,0,rt):nt},this.s=TextSelectorProp.getTextSelectorProp(et,tt.s,rt),this.s.t=tt.s.t}function TextAnimatorProperty(et,tt,rt){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=et,this._renderType=tt,this._elem=rt,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(rt)}TextAnimatorProperty.prototype.searchProperties=function(){var et,tt=this._textData.a.length,rt,nt=PropertyFactory.getProp;for(et=0;et=pt+Ir||!Ft?(Wt=(pt+Ir-$t)/yt.partialLength,tr=Bt.point[0]+(yt.point[0]-Bt.point[0])*Wt,pr=Bt.point[1]+(yt.point[1]-Bt.point[1])*Wt,st.translate(-rt[0]*gt[dt].an*.005,-(rt[1]*ht)*.01),mt=!1):Ft&&($t+=yt.partialLength,wt+=1,wt>=Ft.length&&(wt=0,St+=1,Lt[St]?Ft=Lt[St].points:qt.v.c?(wt=0,St=0,Ft=Lt[St].points):($t-=yt.partialLength,Ft=null)),Ft&&(Bt=yt,yt=Ft[wt],zt=yt.partialLength));Dt=gt[dt].an/2-gt[dt].add,st.translate(-Dt,0,0)}else Dt=gt[dt].an/2-gt[dt].add,st.translate(-Dt,0,0),st.translate(-rt[0]*gt[dt].an*.005,-rt[1]*ht*.01,0);for(At=0;Atet?this.textSpans[et].span:createNS(ot?"g":"text"),St<=et){if(lt.setAttribute("stroke-linecap","butt"),lt.setAttribute("stroke-linejoin","round"),lt.setAttribute("stroke-miterlimit","4"),this.textSpans[et].span=lt,ot){var Ft=createNS("g");lt.appendChild(Ft),this.textSpans[et].childSpan=Ft}this.textSpans[et].span=lt,this.layerElement.appendChild(lt)}lt.style.display="inherit"}if(ut.reset(),bt&&(at[et].n&&(gt=-yt,kt+=rt.yOffset,kt+=pt?1:0,pt=!1),this.applyTextPropertiesToMatrix(rt,ut,at[et].line,gt,kt),gt+=at[et].l||0,gt+=yt),ot){Bt=this.globalData.fontManager.getCharData(rt.finalText[et],nt.fStyle,this.globalData.fontManager.getFontByName(rt.f).fFamily);var Lt;if(Bt.t===1)Lt=new SVGCompElement(Bt.data,this.globalData,this);else{var zt=emptyShapeData;Bt.data&&Bt.data.shapes&&(zt=this.buildShapeData(Bt.data,rt.finalSize)),Lt=new SVGShapeElement(zt,this.globalData,this)}if(this.textSpans[et].glyph){var Ht=this.textSpans[et].glyph;this.textSpans[et].childSpan.removeChild(Ht.layerElement),Ht.destroy()}this.textSpans[et].glyph=Lt,Lt._debug=!0,Lt.prepareFrame(0),Lt.renderFrame(),this.textSpans[et].childSpan.appendChild(Lt.layerElement),Bt.t===1&&this.textSpans[et].childSpan.setAttribute("transform","scale("+rt.finalSize/100+","+rt.finalSize/100+")")}else bt&<.setAttribute("transform","translate("+ut.props[12]+","+ut.props[13]+")"),lt.textContent=at[et].val,lt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}bt&<&<.setAttribute("d",dt)}for(;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].prepareFrame(et-this.layers[tt].st);if(this.globalData._mdf)for(tt=0;tt=0;rt-=1)(this.completeLayers||this.elements[rt])&&(this.elements[rt].prepareFrame(this.renderedFrame-this.layers[rt].st),this.elements[rt]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var et,tt=this.layers.length;for(et=0;et=0;nt-=1)tt.finalTransform.multiply(tt.transforms[nt].transform.mProps.v);tt._mdf=st},processSequences:function(tt){var rt,nt=this.sequenceList.length;for(rt=0;rt=1){this.buffers=[];var tt=this.globalData.canvasContext,rt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(rt);var nt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(nt),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var tt=this.globalData;if(tt.blendMode!==this.data.bm){tt.blendMode=this.data.bm;var rt=getBlendMode(this.data.bm);tt.canvasContext.globalCompositeOperation=rt}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(tt){tt.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var tt=this.buffers[0],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var tt=this.buffers[1],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var nt=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(nt.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var it=assetLoader.getLumaCanvas(this.canvasContext.canvas),st=it.getContext("2d");st.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(it,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(tt,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(tt){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!tt)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var rt=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(rt),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(rt),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(et,tt,rt,nt){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var it=4;tt.ty==="rc"?it=5:tt.ty==="el"?it=6:tt.ty==="sr"&&(it=7),this.sh=ShapePropertyFactory.getShapeProp(et,tt,it,et);var st,at=rt.length,ot;for(st=0;st=0;st-=1){if(bt=this.searchProcessedElement(et[st]),bt?tt[st]=rt[bt-1]:et[st]._shouldRender=nt,et[st].ty==="fl"||et[st].ty==="st"||et[st].ty==="gf"||et[st].ty==="gs")bt?tt[st].style.closed=!1:tt[st]=this.createStyleElement(et[st],pt),ut.push(tt[st].style);else if(et[st].ty==="gr"){if(!bt)tt[st]=this.createGroupElement(et[st]);else for(lt=tt[st].it.length,ot=0;ot=0;it-=1)tt[it].ty==="tr"?(at=rt[it].transform,this.renderShapeTransform(et,at)):tt[it].ty==="sh"||tt[it].ty==="el"||tt[it].ty==="rc"||tt[it].ty==="sr"?this.renderPath(tt[it],rt[it]):tt[it].ty==="fl"?this.renderFill(tt[it],rt[it],at):tt[it].ty==="st"?this.renderStroke(tt[it],rt[it],at):tt[it].ty==="gf"||tt[it].ty==="gs"?this.renderGradientFill(tt[it],rt[it],at):tt[it].ty==="gr"?this.renderShape(at,tt[it].it,rt[it].it):tt[it].ty;nt&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(et,tt){if(this._isFirstFrame||tt._mdf||et.transforms._mdf){var rt=et.trNodes,nt=tt.paths,it,st,at,ot=nt._length;rt.length=0;var lt=et.transforms.finalTransform;for(at=0;at=1?dt=.99:dt<=-1&&(dt=-.99);var bt=lt*dt,gt=Math.cos(ut+tt.a.v)*bt+at[0],kt=Math.sin(ut+tt.a.v)*bt+at[1];it=st.createRadialGradient(gt,kt,0,at[0],at[1],lt)}var pt,yt=et.g.p,$t=tt.g.c,mt=1;for(pt=0;ptst&<==="xMidYMid slice"||itit&&ot==="meet"||stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))/2*this.renderConfig.dpr:ut==="xMax"&&(stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,dt==="YMid"&&(st>it&&ot==="meet"||stit&&ot==="meet"||st=0;et-=1)this.elements[et]&&this.elements[et].destroy&&this.elements[et].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(et,tt){if(!(this.renderedFrame===et&&this.renderConfig.clearCanvas===!0&&!tt||this.destroyed||et===-1)){this.renderedFrame=et,this.globalData.frameNum=et-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||tt,this.globalData.projectInterface.currentFrame=et;var rt,nt=this.layers.length;for(this.completeLayers||this.checkLayers(et),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].prepareFrame(et-this.layers[rt].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(et){var tt=this.elements;if(!(tt[et]||this.layers[et].ty===99)){var rt=this.createItem(this.layers[et],this,this.globalData);tt[et]=rt,rt.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var et=this.pendingElements.pop();et.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var et,tt=15;for(et=0;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].renderFrame()},CVCompElement.prototype.destroy=function(){var et,tt=this.layers.length;for(et=tt-1;et>=0;et-=1)this.elements[et]&&this.elements[et].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function CanvasRenderer(et,tt){this.animationItem=et,this.renderConfig={clearCanvas:tt&&tt.clearCanvas!==void 0?tt.clearCanvas:!0,context:tt&&tt.context||null,progressiveLoad:tt&&tt.progressiveLoad||!1,preserveAspectRatio:tt&&tt.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:tt&&tt.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:tt&&tt.contentVisibility||"visible",className:tt&&tt.className||"",id:tt&&tt.id||"",runExpressions:!tt||tt.runExpressions===void 0||tt.runExpressions},this.renderConfig.dpr=tt&&tt.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=tt&&tt.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var tt=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var rt=this.finalTransform.mat.toCSS();tt.transform=rt,tt.webkitTransform=rt}this.finalTransform._opMdf&&(tt.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(et,tt,rt){this.initElement(et,tt,rt)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var et;this.data.hasMask?(et=createNS("rect"),et.setAttribute("width",this.data.sw),et.setAttribute("height",this.data.sh),et.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(et=createTag("div"),et.style.width=this.data.sw+"px",et.style.height=this.data.sh+"px",et.style.backgroundColor=this.data.sc),this.layerElement.appendChild(et)};function HShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(et,tt,rt),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var et;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),et=this.svgElement;else{et=createNS("svg");var tt=this.comp.data?this.comp.data:this.globalData.compSize;et.setAttribute("width",tt.w),et.setAttribute("height",tt.h),et.appendChild(this.shapesContainer),this.layerElement.appendChild(et)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=et},HShapeElement.prototype.getTransformedPoint=function(et,tt){var rt,nt=et.length;for(rt=0;rt0&<<1&&it[gt].push(this.calculateF(lt,et,tt,rt,nt,gt))):(ut=at*at-4*ot*st,ut>=0&&(dt=(-at+bmSqrt(ut))/(2*st),dt>0&&dt<1&&it[gt].push(this.calculateF(dt,et,tt,rt,nt,gt)),bt=(-at-bmSqrt(ut))/(2*st),bt>0&&bt<1&&it[gt].push(this.calculateF(bt,et,tt,rt,nt,gt)))));this.shapeBoundingBox.left=bmMin.apply(null,it[0]),this.shapeBoundingBox.top=bmMin.apply(null,it[1]),this.shapeBoundingBox.right=bmMax.apply(null,it[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,it[1])},HShapeElement.prototype.calculateF=function(et,tt,rt,nt,it,st){return bmPow(1-et,3)*tt[st]+3*bmPow(1-et,2)*et*rt[st]+3*(1-et)*bmPow(et,2)*nt[st]+bmPow(et,3)*it[st]},HShapeElement.prototype.calculateBoundingBox=function(et,tt){var rt,nt=et.length;for(rt=0;rtrt&&(rt=it)}rt*=et.mult}else rt=et.v*et.mult;tt.x-=rt,tt.xMax+=rt,tt.y-=rt,tt.yMax+=rt},HShapeElement.prototype.currentBoxContains=function(et){return this.currentBBox.x<=et.x&&this.currentBBox.y<=et.y&&this.currentBBox.width+this.currentBBox.x>=et.x+et.width&&this.currentBBox.height+this.currentBBox.y>=et.y+et.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.tempBoundingBox,tt=999999;if(et.x=tt,et.xMax=-tt,et.y=tt,et.yMax=-tt,this.calculateBoundingBox(this.itemsData,et),et.width=et.xMax=0;tt-=1){var nt=this.hierarchy[tt].finalTransform.mProp;this.mat.translate(-nt.p.v[0],-nt.p.v[1],nt.p.v[2]),this.mat.rotateX(-nt.or.v[0]).rotateY(-nt.or.v[1]).rotateZ(nt.or.v[2]),this.mat.rotateX(-nt.rx.v).rotateY(-nt.ry.v).rotateZ(nt.rz.v),this.mat.scale(1/nt.s.v[0],1/nt.s.v[1],1/nt.s.v[2]),this.mat.translate(nt.a.v[0],nt.a.v[1],nt.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var it;this.p?it=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:it=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var st=Math.sqrt(Math.pow(it[0],2)+Math.pow(it[1],2)+Math.pow(it[2],2)),at=[it[0]/st,it[1]/st,it[2]/st],ot=Math.sqrt(at[2]*at[2]+at[0]*at[0]),lt=Math.atan2(at[1],ot),ut=Math.atan2(at[0],-at[2]);this.mat.rotateY(ut).rotateX(-lt)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var dt=!this._prevMat.equals(this.mat);if((dt||this.pe._mdf)&&this.comp.threeDElements){rt=this.comp.threeDElements.length;var bt,gt,kt;for(tt=0;tt=et)return this.threeDElements[tt].perspectiveElem;tt+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(et,tt){var rt=createTag("div"),nt,it;styleDiv(rt);var st=createTag("div");if(styleDiv(st),tt==="3d"){nt=rt.style,nt.width=this.globalData.compSize.w+"px",nt.height=this.globalData.compSize.h+"px";var at="50% 50%";nt.webkitTransformOrigin=at,nt.mozTransformOrigin=at,nt.transformOrigin=at,it=st.style;var ot="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";it.transform=ot,it.webkitTransform=ot}rt.appendChild(st);var lt={container:st,perspectiveElem:rt,startPos:et,endPos:et,type:tt};return this.threeDElements.push(lt),lt},HybridRendererBase.prototype.build3dContainers=function(){var et,tt=this.layers.length,rt,nt="";for(et=0;et=0;et-=1)this.resizerElem.appendChild(this.threeDElements[et].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(et,tt){for(var rt=0,nt=this.threeDElements.length;rtrt?(it=et/this.globalData.compSize.w,st=et/this.globalData.compSize.w,at=0,ot=(tt-this.globalData.compSize.h*(et/this.globalData.compSize.w))/2):(it=tt/this.globalData.compSize.h,st=tt/this.globalData.compSize.h,at=(et-this.globalData.compSize.w*(tt/this.globalData.compSize.h))/2,ot=0);var lt=this.resizerElem.style;lt.webkitTransform="matrix3d("+it+",0,0,0,0,"+st+",0,0,0,0,1,0,"+at+","+ot+",0,1)",lt.transform=lt.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var et=this.globalData.compSize.w,tt=this.globalData.compSize.h,rt,nt=this.threeDElements.length;for(rt=0;rt=ut;)qt/=2,Ot/=2,Mt>>>=1;return(qt+Mt)/Ot};return Wt.int32=function(){return Ht.g(4)|0},Wt.quick=function(){return Ht.g(4)/4294967296},Wt.double=Wt,$t(wt(Ht.S),et),(Bt.pass||Ft||function(lr,qt,Ot,Mt){return Mt&&(Mt.S&&pt(Mt,Ht),lr.state=function(){return pt(Ht,{})}),Ot?(tt[at]=lr,qt):lr})(Wt,zt,"global"in Bt?Bt.global:this==tt,Bt.state)}tt["seed"+at]=gt;function kt(St){var Bt,Ft=St.length,Lt=this,zt=0,Ht=Lt.i=Lt.j=0,Wt=Lt.S=[];for(Ft||(St=[Ft++]);ztrt){var nt=rt;rt=tt,tt=nt}return Math.min(Math.max(et,tt),rt)}function radiansToDegrees(et){return et/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(et){return et*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(et,tt){if(typeof et=="number"||et instanceof Number)return tt=tt||0,Math.abs(et-tt);tt||(tt=helperLengthArray);var rt,nt=Math.min(et.length,tt.length),it=0;for(rt=0;rt.5?ut/(2-it-st):ut/(it+st),it){case tt:at=(rt-nt)/ut+(rt1&&(rt-=1),rt<1/6?et+(tt-et)*6*rt:rt<1/2?tt:rt<2/3?et+(tt-et)*(2/3-rt)*6:et}function hslToRgb(et){var tt=et[0],rt=et[1],nt=et[2],it,st,at;if(rt===0)it=nt,at=nt,st=nt;else{var ot=nt<.5?nt*(1+rt):nt+rt-nt*rt,lt=2*nt-ot;it=hue2rgb(lt,ot,tt+1/3),st=hue2rgb(lt,ot,tt),at=hue2rgb(lt,ot,tt-1/3)}return[it,st,at,et[3]]}function linear(et,tt,rt,nt,it){if((nt===void 0||it===void 0)&&(nt=tt,it=rt,tt=0,rt=1),rt=rt)return it;var at=rt===tt?0:(et-tt)/(rt-tt);if(!nt.length)return nt+(it-nt)*at;var ot,lt=nt.length,ut=createTypedArray("float32",lt);for(ot=0;ot1){for(it=0;it1?tt=1:tt<0&&(tt=0);var at=et(tt);if($bm_isInstanceOfArray(it)){var ot,lt=it.length,ut=createTypedArray("float32",lt);for(ot=0;otdata.k[tt].t&&etdata.k[tt+1].t-et?(nt=tt+2,it=data.k[tt+1].t):(nt=tt+1,it=data.k[tt].t);break}nt===-1&&(nt=tt+1,it=data.k[tt].t)}var st={};return st.index=nt,st.time=it/elem.comp.globalData.frameRate,st}function key(et){var tt,rt,nt;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+et);et-=1,tt={time:data.k[et].t/elem.comp.globalData.frameRate,value:[]};var it=Object.prototype.hasOwnProperty.call(data.k[et],"s")?data.k[et].s:data.k[et-1].e;for(nt=it.length,rt=0;rt$t.length-1)&&(kt=$t.length-1),St=$t[$t.length-1-kt].t,wt=mt-St);var Bt,Ft,Lt;if(gt==="pingpong"){var zt=Math.floor((yt-St)/wt);if(zt%2!==0)return this.getValueAtTime((wt-(yt-St)%wt+St)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),lr=this.getValueAtTime(((yt-St)%wt+St)/this.comp.globalData.frameRate,0),qt=Math.floor((yt-St)/wt);if(this.pv.length){for(Lt=new Array(Ht.length),Ft=Lt.length,Bt=0;Bt=mt)return this.pv;var wt,St;pt?(kt?wt=Math.abs(this.elem.comp.globalData.frameRate*kt):wt=Math.max(0,this.elem.data.op-mt),St=mt+wt):((!kt||kt>$t.length-1)&&(kt=$t.length-1),St=$t[kt].t,wt=St-mt);var Bt,Ft,Lt;if(gt==="pingpong"){var zt=Math.floor((mt-yt)/wt);if(zt%2===0)return this.getValueAtTime(((mt-yt)%wt+mt)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Ht=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),lr=this.getValueAtTime((wt-(mt-yt)%wt+mt)/this.comp.globalData.frameRate,0),qt=Math.floor((mt-yt)/wt)+1;if(this.pv.length){for(Lt=new Array(Ht.length),Ft=Lt.length,Bt=0;Bt1?($t-yt)/(kt-1):1,wt=0,St=0,Bt;this.pv.length?Bt=createTypedArray("float32",this.pv.length):Bt=0;for(var Ft;wtwt){var zt=St,Ht=yt.c&&St===Bt-1?0:St+1,Wt=(wt-Ft)/mt[St].addedLength;Lt=bez.getPointInSegment(yt.v[zt],yt.v[Ht],yt.o[zt],yt.i[Ht],Wt,mt[St]);break}else Ft+=mt[St].addedLength;St+=1}return Lt||(Lt=yt.c?[yt.v[0][0],yt.v[0][1]]:[yt.v[yt._length-1][0],yt.v[yt._length-1][1]]),Lt},vectorOnPath:function(kt,pt,yt){kt==1?kt=this.v.c:kt==0&&(kt=.999);var $t=this.pointOnPath(kt,pt),mt=this.pointOnPath(kt+.001,pt),wt=mt[0]-$t[0],St=mt[1]-$t[1],Bt=Math.sqrt(Math.pow(wt,2)+Math.pow(St,2));if(Bt===0)return[0,0];var Ft=yt==="tangent"?[wt/Bt,St/Bt]:[-St/Bt,wt/Bt];return Ft},tangentOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"tangent")},normalOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([dt],lt),extendPrototype([dt],ut),ut.prototype.getValueAtTime=ot,ut.prototype.initiateExpression=ExpressionManager.initiateExpression;var bt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(gt,kt,pt,yt,$t){var mt=bt(gt,kt,pt,yt,$t);return mt.propertyIndex=kt.ix,mt.lock=!1,pt===3?expressionHelpers.searchExpressions(gt,kt.pt,mt):pt===4&&expressionHelpers.searchExpressions(gt,kt.ks,mt),mt.k&>.addDynamicProperty(mt),mt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function et(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(tt,rt){var nt=this.calculateExpression(rt);if(tt.t!==nt){var it={};return this.copyData(it,tt),it.t=nt.toString(),it.__complete=!1,it}return tt},TextProperty.prototype.searchProperty=function(){var tt=this.searchKeyframes(),rt=this.searchExpressions();return this.kf=tt||rt,this.kf},TextProperty.prototype.searchExpressions=et}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function et(tt,rt){var nt=createNS("feMerge");nt.setAttribute("result",tt);var it,st;for(st=0;st=ut?bt=pt<0?nt:it:bt=nt+kt*Math.pow((ot-et)/pt,1/rt),dt[gt]=bt,gt+=1,st+=256/(at-1);return dt.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){var tt,rt=this.filterManager.effectElements;this.feFuncRComposed&&(et||rt[3].p._mdf||rt[4].p._mdf||rt[5].p._mdf||rt[6].p._mdf||rt[7].p._mdf)&&(tt=this.getTableValue(rt[3].p.v,rt[4].p.v,rt[5].p.v,rt[6].p.v,rt[7].p.v),this.feFuncRComposed.setAttribute("tableValues",tt),this.feFuncGComposed.setAttribute("tableValues",tt),this.feFuncBComposed.setAttribute("tableValues",tt)),this.feFuncR&&(et||rt[10].p._mdf||rt[11].p._mdf||rt[12].p._mdf||rt[13].p._mdf||rt[14].p._mdf)&&(tt=this.getTableValue(rt[10].p.v,rt[11].p.v,rt[12].p.v,rt[13].p.v,rt[14].p.v),this.feFuncR.setAttribute("tableValues",tt)),this.feFuncG&&(et||rt[17].p._mdf||rt[18].p._mdf||rt[19].p._mdf||rt[20].p._mdf||rt[21].p._mdf)&&(tt=this.getTableValue(rt[17].p.v,rt[18].p.v,rt[19].p.v,rt[20].p.v,rt[21].p.v),this.feFuncG.setAttribute("tableValues",tt)),this.feFuncB&&(et||rt[24].p._mdf||rt[25].p._mdf||rt[26].p._mdf||rt[27].p._mdf||rt[28].p._mdf)&&(tt=this.getTableValue(rt[24].p.v,rt[25].p.v,rt[26].p.v,rt[27].p.v,rt[28].p.v),this.feFuncB.setAttribute("tableValues",tt)),this.feFuncA&&(et||rt[31].p._mdf||rt[32].p._mdf||rt[33].p._mdf||rt[34].p._mdf||rt[35].p._mdf)&&(tt=this.getTableValue(rt[31].p.v,rt[32].p.v,rt[33].p.v,rt[34].p.v,rt[35].p.v),this.feFuncA.setAttribute("tableValues",tt))}};function SVGDropShadowEffect(et,tt,rt,nt,it){var st=tt.container.globalData.renderConfig.filterSize,at=tt.data.fs||st;et.setAttribute("x",at.x||st.x),et.setAttribute("y",at.y||st.y),et.setAttribute("width",at.width||st.width),et.setAttribute("height",at.height||st.height),this.filterManager=tt;var ot=createNS("feGaussianBlur");ot.setAttribute("in","SourceAlpha"),ot.setAttribute("result",nt+"_drop_shadow_1"),ot.setAttribute("stdDeviation","0"),this.feGaussianBlur=ot,et.appendChild(ot);var lt=createNS("feOffset");lt.setAttribute("dx","25"),lt.setAttribute("dy","0"),lt.setAttribute("in",nt+"_drop_shadow_1"),lt.setAttribute("result",nt+"_drop_shadow_2"),this.feOffset=lt,et.appendChild(lt);var ut=createNS("feFlood");ut.setAttribute("flood-color","#00ff00"),ut.setAttribute("flood-opacity","1"),ut.setAttribute("result",nt+"_drop_shadow_3"),this.feFlood=ut,et.appendChild(ut);var dt=createNS("feComposite");dt.setAttribute("in",nt+"_drop_shadow_3"),dt.setAttribute("in2",nt+"_drop_shadow_2"),dt.setAttribute("operator","in"),dt.setAttribute("result",nt+"_drop_shadow_4"),et.appendChild(dt);var bt=this.createMergeNode(nt,[nt+"_drop_shadow_4",it]);et.appendChild(bt)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){if((et||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),et||this.filterManager.effectElements[0].p._mdf){var tt=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(tt[0]*255),Math.round(tt[1]*255),Math.round(tt[2]*255)))}if((et||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),et||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var rt=this.filterManager.effectElements[3].p.v,nt=(this.filterManager.effectElements[2].p.v-90)*degToRads,it=rt*Math.cos(nt),st=rt*Math.sin(nt);this.feOffset.setAttribute("dx",it),this.feOffset.setAttribute("dy",st)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(et,tt,rt){this.initialized=!1,this.filterManager=tt,this.filterElem=et,this.elem=rt,rt.matteElement=createNS("g"),rt.matteElement.appendChild(rt.layerElement),rt.matteElement.appendChild(rt.transformedElement),rt.baseElement=rt.matteElement}SVGMatte3Effect.prototype.findSymbol=function(et){for(var tt=0,rt=_svgMatteSymbols.length;tt{const et=reactExports.useRef(null);return reactExports.useEffect(()=>{const tt=document.getElementById("lottie-sphere-animation");return tt&&(et.current=lottie.loadAnimation({container:tt,animationData:preloadData,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})),()=>{et.current&&et.current.destroy()}},[]),jsxRuntimeExports.jsx(Flex,{id:"lottie-sphere-animation",style:{width:"167px",height:"167px",opacity:.5}})},Splash=()=>{const[et,tt]=reactExports.useState(initialMessageData),[rt,nt]=reactExports.useState(0),{appMetaData:it,setAppMetaData:st}=useAppStore(kt=>kt),{stats:at,setStats:ot,setSeedQuestions:lt}=useDataStore(kt=>kt),{schemas:ut,setSchemas:dt}=useSchemaStore(kt=>kt),[bt,gt]=reactExports.useState(!1);return reactExports.useEffect(()=>{!it&&!at&&!bt&&(async()=>{gt(!0);try{if(!it){const pt=await getAboutData();st(pt),pt.seed_questions&<(pt.seed_questions)}if(!at){const pt=await getStats(),yt=formatStatsResponse(pt);ot(yt);const $t=formatSplashMessage(pt);tt($t)}if(!ut.length){const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}}finally{gt(!1)}})()},[it,bt,ut.length,st,dt,lt,ot,at]),reactExports.useEffect(()=>{const kt=async()=>{try{const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}catch(pt){console.error(pt)}};ut.length||kt()},[ut.length,dt]),reactExports.useEffect(()=>{let kt;return et&&it&&(nt(pt=>pt||50),kt=setInterval(()=>{nt(pt=>pt>=100?100:pt+Math.floor(Math.random()*4))},100)),()=>{kt&&clearInterval(kt)}},[et,it]),jsxRuntimeExports.jsx(SplashWrapper,{children:jsxRuntimeExports.jsxs(Wrapper,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(SphereAnimation,{}),jsxRuntimeExports.jsxs(Flex,{style:{color:colors.white},children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"title",children:it==null?void 0:it.title}),jsxRuntimeExports.jsx(Text,{className:"subtitle",children:"Second Brain"})]}),jsxRuntimeExports.jsx(LinearProgress$1,{color:"inherit",sx:{my:1.75,height:"2px"},value:rt,variant:"determinate"}),jsxRuntimeExports.jsx(AnimatedTextContent,{message:et})]})]})})},TitleWrapper=styled$3.div` + */var Matrix=function(){var et=Math.cos,tt=Math.sin,rt=Math.tan,nt=Math.round;function it(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function st(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(Pt,-It,0,0,It,Pt,0,0,0,0,1,0,0,0,0,1)}function at(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(1,0,0,0,0,Pt,-It,0,0,It,Pt,0,0,0,0,1)}function ot(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(Pt,0,It,0,0,1,0,0,-It,0,Pt,0,0,0,0,1)}function lt(At){if(At===0)return this;var Pt=et(At),It=tt(At);return this._t(Pt,-It,0,0,It,Pt,0,0,0,0,1,0,0,0,0,1)}function ut(At,Pt){return this._t(1,Pt,At,1,0,0)}function dt(At,Pt){return this.shear(rt(At),rt(Pt))}function bt(At,Pt){var It=et(Pt),Ct=tt(Pt);return this._t(It,Ct,0,0,-Ct,It,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,rt(At),1,0,0,0,0,1,0,0,0,0,1)._t(It,-Ct,0,0,Ct,It,0,0,0,0,1,0,0,0,0,1)}function gt(At,Pt,It){return!It&&It!==0&&(It=1),At===1&&Pt===1&&It===1?this:this._t(At,0,0,0,0,Pt,0,0,0,0,It,0,0,0,0,1)}function kt(At,Pt,It,Ct,xt,Dt,tr,pr,Kt,Qt,Zt,ur,_r,er,Jt,Ar){return this.props[0]=At,this.props[1]=Pt,this.props[2]=It,this.props[3]=Ct,this.props[4]=xt,this.props[5]=Dt,this.props[6]=tr,this.props[7]=pr,this.props[8]=Kt,this.props[9]=Qt,this.props[10]=Zt,this.props[11]=ur,this.props[12]=_r,this.props[13]=er,this.props[14]=Jt,this.props[15]=Ar,this}function pt(At,Pt,It){return It=It||0,At!==0||Pt!==0||It!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,At,Pt,It,1):this}function yt(At,Pt,It,Ct,xt,Dt,tr,pr,Kt,Qt,Zt,ur,_r,er,Jt,Ar){var Er=this.props;if(At===1&&Pt===0&&It===0&&Ct===0&&xt===0&&Dt===1&&tr===0&&pr===0&&Kt===0&&Qt===0&&Zt===1&&ur===0)return Er[12]=Er[12]*At+Er[15]*_r,Er[13]=Er[13]*Dt+Er[15]*er,Er[14]=Er[14]*Zt+Er[15]*Jt,Er[15]*=Ar,this._identityCalculated=!1,this;var Dr=Er[0],Xr=Er[1],Vr=Er[2],wr=Er[3],br=Er[4],or=Er[5],xr=Er[6],Pr=Er[7],Or=Er[8],rr=Er[9],gr=Er[10],Ir=Er[11],Yt=Er[12],Ut=Er[13],Ht=Er[14],ir=Er[15];return Er[0]=Dr*At+Xr*xt+Vr*Kt+wr*_r,Er[1]=Dr*Pt+Xr*Dt+Vr*Qt+wr*er,Er[2]=Dr*It+Xr*tr+Vr*Zt+wr*Jt,Er[3]=Dr*Ct+Xr*pr+Vr*ur+wr*Ar,Er[4]=br*At+or*xt+xr*Kt+Pr*_r,Er[5]=br*Pt+or*Dt+xr*Qt+Pr*er,Er[6]=br*It+or*tr+xr*Zt+Pr*Jt,Er[7]=br*Ct+or*pr+xr*ur+Pr*Ar,Er[8]=Or*At+rr*xt+gr*Kt+Ir*_r,Er[9]=Or*Pt+rr*Dt+gr*Qt+Ir*er,Er[10]=Or*It+rr*tr+gr*Zt+Ir*Jt,Er[11]=Or*Ct+rr*pr+gr*ur+Ir*Ar,Er[12]=Yt*At+Ut*xt+Ht*Kt+ir*_r,Er[13]=Yt*Pt+Ut*Dt+Ht*Qt+ir*er,Er[14]=Yt*It+Ut*tr+Ht*Zt+ir*Jt,Er[15]=Yt*Ct+Ut*pr+Ht*ur+ir*Ar,this._identityCalculated=!1,this}function $t(At){var Pt=At.props;return this.transform(Pt[0],Pt[1],Pt[2],Pt[3],Pt[4],Pt[5],Pt[6],Pt[7],Pt[8],Pt[9],Pt[10],Pt[11],Pt[12],Pt[13],Pt[14],Pt[15])}function mt(){return this._identityCalculated||(this._identity=!(this.props[0]!==1||this.props[1]!==0||this.props[2]!==0||this.props[3]!==0||this.props[4]!==0||this.props[5]!==1||this.props[6]!==0||this.props[7]!==0||this.props[8]!==0||this.props[9]!==0||this.props[10]!==1||this.props[11]!==0||this.props[12]!==0||this.props[13]!==0||this.props[14]!==0||this.props[15]!==1),this._identityCalculated=!0),this._identity}function wt(At){for(var Pt=0;Pt<16;){if(At.props[Pt]!==this.props[Pt])return!1;Pt+=1}return!0}function St(At){var Pt;for(Pt=0;Pt<16;Pt+=1)At.props[Pt]=this.props[Pt];return At}function Bt(At){var Pt;for(Pt=0;Pt<16;Pt+=1)this.props[Pt]=At[Pt]}function Ot(At,Pt,It){return{x:At*this.props[0]+Pt*this.props[4]+It*this.props[8]+this.props[12],y:At*this.props[1]+Pt*this.props[5]+It*this.props[9]+this.props[13],z:At*this.props[2]+Pt*this.props[6]+It*this.props[10]+this.props[14]}}function Lt(At,Pt,It){return At*this.props[0]+Pt*this.props[4]+It*this.props[8]+this.props[12]}function zt(At,Pt,It){return At*this.props[1]+Pt*this.props[5]+It*this.props[9]+this.props[13]}function Vt(At,Pt,It){return At*this.props[2]+Pt*this.props[6]+It*this.props[10]+this.props[14]}function Wt(){var At=this.props[0]*this.props[5]-this.props[1]*this.props[4],Pt=this.props[5]/At,It=-this.props[1]/At,Ct=-this.props[4]/At,xt=this.props[0]/At,Dt=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/At,tr=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/At,pr=new Matrix;return pr.props[0]=Pt,pr.props[1]=It,pr.props[4]=Ct,pr.props[5]=xt,pr.props[12]=Dt,pr.props[13]=tr,pr}function lr(At){var Pt=this.getInverseMatrix();return Pt.applyToPointArray(At[0],At[1],At[2]||0)}function qt(At){var Pt,It=At.length,Ct=[];for(Pt=0;Pt0||At>-1e-6&&At<0?nt(At*Pt)/Pt:At}function Rt(){var At=this.props,Pt=Tt(At[0]),It=Tt(At[1]),Ct=Tt(At[4]),xt=Tt(At[5]),Dt=Tt(At[12]),tr=Tt(At[13]);return"matrix("+Pt+","+It+","+Ct+","+xt+","+Dt+","+tr+")"}return function(){this.reset=it,this.rotate=st,this.rotateX=at,this.rotateY=ot,this.rotateZ=lt,this.skew=dt,this.skewFromAxis=bt,this.shear=ut,this.scale=gt,this.setTransform=kt,this.translate=pt,this.transform=yt,this.multiply=$t,this.applyToPoint=Ot,this.applyToX=Lt,this.applyToY=zt,this.applyToZ=Vt,this.applyToPointArray=Mt,this.applyToTriplePoints=Ft,this.applyToPointStringified=ht,this.toCSS=Et,this.to2dCSS=Rt,this.clone=St,this.cloneFromProps=Bt,this.equals=wt,this.inversePoints=qt,this.inversePoint=lr,this.getInverseMatrix=Wt,this._t=this.transform,this.isIdentity=mt,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(et){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(rt){return typeof rt}:_typeof$3=function(rt){return rt&&typeof Symbol=="function"&&rt.constructor===Symbol&&rt!==Symbol.prototype?"symbol":typeof rt},_typeof$3(et)}var lottie={};function setLocation(et){setLocationHref(et)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(et){setSubframeEnabled(et)}function setPrefix(et){setIdPrefix(et)}function loadAnimation(et){return animationManager.loadAnimation(et)}function setQuality(et){if(typeof et=="string")switch(et){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(et)&&et>1&&setDefaultCurveSegments(et)}function inBrowser(){return typeof navigator<"u"}function installPlugin(et,tt){et==="expressions"&&setExpressionsPlugin(tt)}function getFactory(et){switch(et){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(et){for(var tt=queryString.split("&"),rt=0;rt=1?st.push({s:et-1,e:tt-1}):(st.push({s:et,e:1}),st.push({s:0,e:tt-1}));var at=[],ot,lt=st.length,ut;for(ot=0;otnt+rt)){var dt,bt;ut.s*it<=nt?dt=0:dt=(ut.s*it-nt)/rt,ut.e*it>=nt+rt?bt=1:bt=(ut.e*it-nt)/rt,at.push([dt,bt])}return at.length||at.push([0,0]),at},TrimModifier.prototype.releasePathsData=function(et){var tt,rt=et.length;for(tt=0;tt1?tt=1+nt:this.s.v<0?tt=0+nt:tt=this.s.v+nt,this.e.v>1?rt=1+nt:this.e.v<0?rt=0+nt:rt=this.e.v+nt,tt>rt){var it=tt;tt=rt,rt=it}tt=Math.round(tt*1e4)*1e-4,rt=Math.round(rt*1e4)*1e-4,this.sValue=tt,this.eValue=rt}else tt=this.sValue,rt=this.eValue;var st,at,ot=this.shapes.length,lt,ut,dt,bt,gt,kt=0;if(rt===tt)for(at=0;at=0;at-=1)if(yt=this.shapes[at],yt.shape._mdf){for($t=yt.localShapeCollection,$t.releaseShapes(),this.m===2&&ot>1?(Bt=this.calculateShapeEdges(tt,rt,yt.totalShapeLength,St,kt),St+=yt.totalShapeLength):Bt=[[mt,wt]],ut=Bt.length,lt=0;lt=1?pt.push({s:yt.totalShapeLength*(mt-1),e:yt.totalShapeLength*(wt-1)}):(pt.push({s:yt.totalShapeLength*mt,e:yt.totalShapeLength}),pt.push({s:0,e:yt.totalShapeLength*(wt-1)}));var Ot=this.addShapes(yt,pt[0]);if(pt[0].s!==pt[0].e){if(pt.length>1){var Lt=yt.shape.paths.shapes[yt.shape.paths._length-1];if(Lt.c){var zt=Ot.pop();this.addPaths(Ot,$t),Ot=this.addShapes(yt,pt[1],zt)}else this.addPaths(Ot,$t),Ot=this.addShapes(yt,pt[1])}this.addPaths(Ot,$t)}}yt.shape.paths=$t}}},TrimModifier.prototype.addPaths=function(et,tt){var rt,nt=et.length;for(rt=0;rttt.e){rt.c=!1;break}else tt.s<=ut&&tt.e>=ut+dt.addedLength?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[ot],it[st].v[ot],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[ot],it[st].o[ot-1],it[st].i[ot],(tt.s-ut)/dt.addedLength,(tt.e-ut)/dt.addedLength,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1),ut+=dt.addedLength,bt+=1;if(it[st].c&>.length){if(dt=gt[ot-1],ut<=tt.e){var mt=gt[ot-1].addedLength;tt.s<=ut&&tt.e>=ut+mt?(this.addSegment(it[st].v[ot-1],it[st].o[ot-1],it[st].i[0],it[st].v[0],rt,bt,$t),$t=!1):(kt=bez.getNewSegment(it[st].v[ot-1],it[st].v[0],it[st].o[ot-1],it[st].i[0],(tt.s-ut)/mt,(tt.e-ut)/mt,gt[ot-1]),this.addSegmentFromArray(kt,rt,bt,$t),$t=!1,rt.c=!1)}else rt.c=!1;ut+=dt.addedLength,bt+=1}if(rt._length&&(rt.setXYAt(rt.v[yt][0],rt.v[yt][1],"i",yt),rt.setXYAt(rt.v[rt._length-1][0],rt.v[rt._length-1][1],"o",rt._length-1)),ut>tt.e)break;st=this.p.keyframes[this.p.keyframes.length-1].t?(dt=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/ut,0),bt=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/ut,0)):(dt=this.p.pv,bt=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/ut,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){dt=[],bt=[];var gt=this.px,kt=this.py;gt._caching.lastFrame+gt.offsetTime<=gt.keyframes[0].t?(dt[0]=gt.getValueAtTime((gt.keyframes[0].t+.01)/ut,0),dt[1]=kt.getValueAtTime((kt.keyframes[0].t+.01)/ut,0),bt[0]=gt.getValueAtTime(gt.keyframes[0].t/ut,0),bt[1]=kt.getValueAtTime(kt.keyframes[0].t/ut,0)):gt._caching.lastFrame+gt.offsetTime>=gt.keyframes[gt.keyframes.length-1].t?(dt[0]=gt.getValueAtTime(gt.keyframes[gt.keyframes.length-1].t/ut,0),dt[1]=kt.getValueAtTime(kt.keyframes[kt.keyframes.length-1].t/ut,0),bt[0]=gt.getValueAtTime((gt.keyframes[gt.keyframes.length-1].t-.01)/ut,0),bt[1]=kt.getValueAtTime((kt.keyframes[kt.keyframes.length-1].t-.01)/ut,0)):(dt=[gt.pv,kt.pv],bt[0]=gt.getValueAtTime((gt._caching.lastFrame+gt.offsetTime-.01)/ut,gt.offsetTime),bt[1]=kt.getValueAtTime((kt._caching.lastFrame+kt.offsetTime-.01)/ut,kt.offsetTime))}else bt=et,dt=bt;this.v.rotate(-Math.atan2(dt[1]-bt[1],dt[0]-bt[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function nt(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function it(){}function st(lt){this._addDynamicProperty(lt),this.elem.addDynamicProperty(lt),this._isDirty=!0}function at(lt,ut,dt){if(this.elem=lt,this.frameId=-1,this.propType="transform",this.data=ut,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(dt||lt),ut.p&&ut.p.s?(this.px=PropertyFactory.getProp(lt,ut.p.x,0,0,this),this.py=PropertyFactory.getProp(lt,ut.p.y,0,0,this),ut.p.z&&(this.pz=PropertyFactory.getProp(lt,ut.p.z,0,0,this))):this.p=PropertyFactory.getProp(lt,ut.p||{k:[0,0,0]},1,0,this),ut.rx){if(this.rx=PropertyFactory.getProp(lt,ut.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(lt,ut.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(lt,ut.rz,0,degToRads,this),ut.or.k[0].ti){var bt,gt=ut.or.k.length;for(bt=0;bt0;)rt-=1,this._elements.unshift(tt[rt]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(et){var tt,rt=et.length;for(tt=0;tt0?Math.floor(gt):Math.ceil(gt),yt=this.pMatrix.props,$t=this.rMatrix.props,mt=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var wt=0;if(gt>0){for(;wtpt;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),wt-=1;kt&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-kt,!0),wt-=kt)}nt=this.data.m===1?0:this._currentCopies-1,it=this.data.m===1?1:-1,st=this._currentCopies;for(var St,Bt;st;){if(tt=this.elemsData[nt].it,rt=tt[tt.length-1].transform.mProps.v.props,Bt=rt.length,tt[tt.length-1].transform.mProps._mdf=!0,tt[tt.length-1].transform.op._mdf=!0,tt[tt.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(nt/(this._currentCopies-1)),wt!==0){for((nt!==0&&it===1||nt!==this._currentCopies-1&&it===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform($t[0],$t[1],$t[2],$t[3],$t[4],$t[5],$t[6],$t[7],$t[8],$t[9],$t[10],$t[11],$t[12],$t[13],$t[14],$t[15]),this.matrix.transform(mt[0],mt[1],mt[2],mt[3],mt[4],mt[5],mt[6],mt[7],mt[8],mt[9],mt[10],mt[11],mt[12],mt[13],mt[14],mt[15]),this.matrix.transform(yt[0],yt[1],yt[2],yt[3],yt[4],yt[5],yt[6],yt[7],yt[8],yt[9],yt[10],yt[11],yt[12],yt[13],yt[14],yt[15]),St=0;St0&&nt<1?[tt]:[]:[tt-nt,tt+nt].filter(function(it){return it>0&&it<1})},PolynomialBezier.prototype.split=function(et){if(et<=0)return[singlePoint(this.points[0]),this];if(et>=1)return[this,singlePoint(this.points[this.points.length-1])];var tt=lerpPoint(this.points[0],this.points[1],et),rt=lerpPoint(this.points[1],this.points[2],et),nt=lerpPoint(this.points[2],this.points[3],et),it=lerpPoint(tt,rt,et),st=lerpPoint(rt,nt,et),at=lerpPoint(it,st,et);return[new PolynomialBezier(this.points[0],tt,it,at,!0),new PolynomialBezier(at,st,nt,this.points[3],!0)]};function extrema(et,tt){var rt=et.points[0][tt],nt=et.points[et.points.length-1][tt];if(rt>nt){var it=nt;nt=rt,rt=it}for(var st=quadRoots(3*et.a[tt],2*et.b[tt],et.c[tt]),at=0;at0&&st[at]<1){var ot=et.point(st[at])[tt];otnt&&(nt=ot)}return{min:rt,max:nt}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var et=this.bounds();return{left:et.x.min,right:et.x.max,top:et.y.min,bottom:et.y.max,width:et.x.max-et.x.min,height:et.y.max-et.y.min,cx:(et.x.max+et.x.min)/2,cy:(et.y.max+et.y.min)/2}};function intersectData(et,tt,rt){var nt=et.boundingBox();return{cx:nt.cx,cy:nt.cy,width:nt.width,height:nt.height,bez:et,t:(tt+rt)/2,t1:tt,t2:rt}}function splitData(et){var tt=et.bez.split(.5);return[intersectData(tt[0],et.t1,et.t),intersectData(tt[1],et.t,et.t2)]}function boxIntersect(et,tt){return Math.abs(et.cx-tt.cx)*2=st||et.width<=nt&&et.height<=nt&&tt.width<=nt&&tt.height<=nt){it.push([et.t,tt.t]);return}var at=splitData(et),ot=splitData(tt);intersectsImpl(at[0],ot[0],rt+1,nt,it,st),intersectsImpl(at[0],ot[1],rt+1,nt,it,st),intersectsImpl(at[1],ot[0],rt+1,nt,it,st),intersectsImpl(at[1],ot[1],rt+1,nt,it,st)}}PolynomialBezier.prototype.intersections=function(et,tt,rt){tt===void 0&&(tt=2),rt===void 0&&(rt=7);var nt=[];return intersectsImpl(intersectData(this,0,1),intersectData(et,0,1),0,tt,nt,rt),nt},PolynomialBezier.shapeSegment=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[tt],et.o[tt],et.i[rt],et.v[rt],!0)},PolynomialBezier.shapeSegmentInverted=function(et,tt){var rt=(tt+1)%et.length();return new PolynomialBezier(et.v[rt],et.i[rt],et.o[tt],et.v[tt],!0)};function crossProduct(et,tt){return[et[1]*tt[2]-et[2]*tt[1],et[2]*tt[0]-et[0]*tt[2],et[0]*tt[1]-et[1]*tt[0]]}function lineIntersection(et,tt,rt,nt){var it=[et[0],et[1],1],st=[tt[0],tt[1],1],at=[rt[0],rt[1],1],ot=[nt[0],nt[1],1],lt=crossProduct(crossProduct(it,st),crossProduct(at,ot));return floatZero(lt[2])?null:[lt[0]/lt[2],lt[1]/lt[2]]}function polarOffset(et,tt,rt){return[et[0]+Math.cos(tt)*rt,et[1]-Math.sin(tt)*rt]}function pointDistance(et,tt){return Math.hypot(et[0]-tt[0],et[1]-tt[1])}function pointEqual(et,tt){return floatEqual(et[0],tt[0])&&floatEqual(et[1],tt[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(et,tt.s,0,null,this),this.frequency=PropertyFactory.getProp(et,tt.r,0,null,this),this.pointsType=PropertyFactory.getProp(et,tt.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(et,tt,rt,nt,it,st,at){var ot=rt-Math.PI/2,lt=rt+Math.PI/2,ut=tt[0]+Math.cos(rt)*nt*it,dt=tt[1]-Math.sin(rt)*nt*it;et.setTripleAt(ut,dt,ut+Math.cos(ot)*st,dt-Math.sin(ot)*st,ut+Math.cos(lt)*at,dt-Math.sin(lt)*at,et.length())}function getPerpendicularVector(et,tt){var rt=[tt[0]-et[0],tt[1]-et[1]],nt=-Math.PI*.5,it=[Math.cos(nt)*rt[0]-Math.sin(nt)*rt[1],Math.sin(nt)*rt[0]+Math.cos(nt)*rt[1]];return it}function getProjectingAngle(et,tt){var rt=tt===0?et.length()-1:tt-1,nt=(tt+1)%et.length(),it=et.v[rt],st=et.v[nt],at=getPerpendicularVector(it,st);return Math.atan2(0,1)-Math.atan2(at[1],at[0])}function zigZagCorner(et,tt,rt,nt,it,st,at){var ot=getProjectingAngle(tt,rt),lt=tt.v[rt%tt._length],ut=tt.v[rt===0?tt._length-1:rt-1],dt=tt.v[(rt+1)%tt._length],bt=st===2?Math.sqrt(Math.pow(lt[0]-ut[0],2)+Math.pow(lt[1]-ut[1],2)):0,gt=st===2?Math.sqrt(Math.pow(lt[0]-dt[0],2)+Math.pow(lt[1]-dt[1],2)):0;setPoint(et,tt.v[rt%tt._length],ot,at,nt,gt/((it+1)*2),bt/((it+1)*2))}function zigZagSegment(et,tt,rt,nt,it,st){for(var at=0;at1&&tt.length>1&&(it=getIntersection(et[0],tt[tt.length-1]),it)?[[et[0].split(it[0])[0]],[tt[tt.length-1].split(it[1])[1]]]:[rt,nt]}function pruneIntersections(et){for(var tt,rt=1;rt1&&(tt=pruneSegmentIntersection(et[et.length-1],et[0]),et[et.length-1]=tt[0],et[0]=tt[1]),et}function offsetSegmentSplit(et,tt){var rt=et.inflectionPoints(),nt,it,st,at;if(rt.length===0)return[offsetSegment(et,tt)];if(rt.length===1||floatEqual(rt[1],1))return st=et.split(rt[0]),nt=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(it,tt)];st=et.split(rt[0]),nt=st[0];var ot=(rt[1]-rt[0])/(1-rt[0]);return st=st[1].split(ot),at=st[0],it=st[1],[offsetSegment(nt,tt),offsetSegment(at,tt),offsetSegment(it,tt)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(et,tt){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(et,tt.a,0,null,this),this.miterLimit=PropertyFactory.getProp(et,tt.ml,0,null,this),this.lineJoin=tt.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(et,tt,rt,nt){var it=shapePool.newElement();it.c=et.c;var st=et.length();et.c||(st-=1);var at,ot,lt,ut=[];for(at=0;at=0;at-=1)lt=PolynomialBezier.shapeSegmentInverted(et,at),ut.push(offsetSegmentSplit(lt,tt));ut=pruneIntersections(ut);var dt=null,bt=null;for(at=0;at0&&(xt=!1),xt){var pr=createTag("style");pr.setAttribute("f-forigin",At[Pt].fOrigin),pr.setAttribute("f-origin",At[Pt].origin),pr.setAttribute("f-family",At[Pt].fFamily),pr.type="text/css",pr.innerText="@font-face {font-family: "+At[Pt].fFamily+"; font-style: normal; src: url('"+At[Pt].fPath+"');}",Rt.appendChild(pr)}}else if(At[Pt].fOrigin==="g"||At[Pt].origin===1){for(Dt=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),tr=0;tr=55296&&At<=56319){var Pt=Tt.charCodeAt(1);Pt>=56320&&Pt<=57343&&(Rt=(At-55296)*1024+Pt-56320+65536)}return Rt}function Lt(Tt,Rt){var At=Tt.toString(16)+Rt.toString(16);return bt.indexOf(At)!==-1}function zt(Tt){return Tt===lt}function Vt(Tt){return Tt===ot}function Wt(Tt){var Rt=Ot(Tt);return Rt>=ut&&Rt<=dt}function lr(Tt){return Wt(Tt.substr(0,2))&&Wt(Tt.substr(2,2))}function qt(Tt){return rt.indexOf(Tt)!==-1}function Ft(Tt,Rt){var At=Ot(Tt.substr(Rt,2));if(At!==nt)return!1;var Pt=0;for(Rt+=2;Pt<5;){if(At=Ot(Tt.substr(Rt,2)),Atat)return!1;Pt+=1,Rt+=2}return Ot(Tt.substr(Rt,2))===it}function Mt(){this.isLoaded=!0}var ht=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};ht.isModifier=Lt,ht.isZeroWidthJoiner=zt,ht.isFlagEmoji=lr,ht.isRegionalCode=Wt,ht.isCombinedCharacter=qt,ht.isRegionalFlag=Ft,ht.isVariationSelector=Vt,ht.BLACK_FLAG_CODE_POINT=nt;var Et={addChars:mt,addFonts:$t,getCharData:wt,getFontByName:Bt,measureText:St,checkLoadedFonts:pt,setIsLoaded:Mt};return ht.prototype=Et,ht}();function SlotManager(et){this.animationData=et}SlotManager.prototype.getProp=function(et){return this.animationData.slots&&this.animationData.slots[et.sid]?Object.assign(et,this.animationData.slots[et.sid].p):et};function slotFactory(et){return new SlotManager(et)}function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)===-1&&this.renderableComponents.push(tt)},removeRenderableComponent:function(tt){this.renderableComponents.indexOf(tt)!==-1&&this.renderableComponents.splice(this.renderableComponents.indexOf(tt),1)},prepareRenderableFrame:function(tt){this.checkLayerLimits(tt)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(tt){this.data.ip-this.data.st<=tt&&this.data.op-this.data.st>tt?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var tt,rt=this.renderableComponents.length;for(tt=0;tt.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(et){this.audio.rate(et)},AudioElement.prototype.volume=function(et){this._volumeMultiplier=et,this._previousVolume=et*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(et){var tt,rt=this.layers.length,nt;for(this.completeLayers=!0,tt=rt-1;tt>=0;tt-=1)this.elements[tt]||(nt=this.layers[tt],nt.ip-nt.st<=et-this.layers[tt].st&&nt.op-nt.st>et-this.layers[tt].st&&this.buildItem(tt)),this.completeLayers=this.elements[tt]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(et){switch(et.ty){case 2:return this.createImage(et);case 0:return this.createComp(et);case 1:return this.createSolid(et);case 3:return this.createNull(et);case 4:return this.createShape(et);case 5:return this.createText(et);case 6:return this.createAudio(et);case 13:return this.createCamera(et);case 15:return this.createFootage(et);default:return this.createNull(et)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(et){return new AudioElement(et,this.globalData,this)},BaseRenderer.prototype.createFootage=function(et){return new FootageElement(et,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var et,tt=this.layers.length;for(et=0;et0&&(this.maskElement.setAttribute("id",gt),this.element.maskedElement.setAttribute(wt,"url("+getLocationHref()+"#"+gt+")"),nt.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(et){return this.viewData[et].prop},MaskElement.prototype.renderFrame=function(et){var tt=this.element.finalTransform.mat,rt,nt=this.masksProperties.length;for(rt=0;rt1&&(nt+=" C"+tt.o[it-1][0]+","+tt.o[it-1][1]+" "+tt.i[0][0]+","+tt.i[0][1]+" "+tt.v[0][0]+","+tt.v[0][1]),rt.lastPath!==nt){var at="";rt.elem&&(tt.c&&(at=et.inv?this.solidPath+nt:nt),rt.elem.setAttribute("d",at)),rt.lastPath=nt}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var et={};et.createFilter=tt,et.createAlphaToLuminanceFilter=rt;function tt(nt,it){var st=createNS("filter");return st.setAttribute("id",nt),it!==!0&&(st.setAttribute("filterUnits","objectBoundingBox"),st.setAttribute("x","0%"),st.setAttribute("y","0%"),st.setAttribute("width","100%"),st.setAttribute("height","100%")),st}function rt(){var nt=createNS("feColorMatrix");return nt.setAttribute("type","matrix"),nt.setAttribute("color-interpolation-filters","sRGB"),nt.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),nt}return et}(),featureSupport=function(){var et={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(et.maskType=!1),/firefox/i.test(navigator.userAgent)&&(et.svgLumaHidden=!1),et}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(et){var tt,rt="SourceGraphic",nt=et.data.ef?et.data.ef.length:0,it=createElementID(),st=filtersFactory.createFilter(it,!0),at=0;this.filters=[];var ot;for(tt=0;tt=0&&(nt=this.shapeModifiers[tt].processShapes(this._isFirstFrame),!nt);tt-=1);}},searchProcessedElement:function(tt){for(var rt=this.processedElements,nt=0,it=rt.length;nt.01)return!1;rt+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!==this.c.length/4)return!1;if(this.data.k.k[0].s)for(var et=0,tt=this.data.k.k.length;et0;)mt=gt.transformers[Wt].mProps._mdf||mt,Vt-=1,Wt-=1;if(mt)for(Vt=Ot-gt.styles[St].lvl,Wt=gt.transformers.length-1;Vt>0;)zt.multiply(gt.transformers[Wt].mProps.v),Vt-=1,Wt-=1}else zt=et;if(Lt=gt.sh.paths,yt=Lt._length,mt){for($t="",pt=0;pt=1?Mt=.99:Mt<=-1&&(Mt=-.99);var ht=qt*Mt,Et=Math.cos(Ft+gt.a.v)*ht+$t[0],Tt=Math.sin(Ft+gt.a.v)*ht+$t[1];pt.setAttribute("fx",Et),pt.setAttribute("fy",Tt),yt&&!gt.g._collapsable&&(gt.of.setAttribute("fx",Et),gt.of.setAttribute("fy",Tt))}}}function dt(bt,gt,kt){var pt=gt.style,yt=gt.d;yt&&(yt._mdf||kt)&&yt.dashStr&&(pt.pElem.setAttribute("stroke-dasharray",yt.dashStr),pt.pElem.setAttribute("stroke-dashoffset",yt.dashoffset[0])),gt.c&&(gt.c._mdf||kt)&&pt.pElem.setAttribute("stroke","rgb("+bmFloor(gt.c.v[0])+","+bmFloor(gt.c.v[1])+","+bmFloor(gt.c.v[2])+")"),(gt.o._mdf||kt)&&pt.pElem.setAttribute("stroke-opacity",gt.o.v),(gt.w._mdf||kt)&&(pt.pElem.setAttribute("stroke-width",gt.w.v),pt.msElem&&pt.msElem.setAttribute("stroke-width",gt.w.v))}return rt}();function SVGShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(et,tt,rt),this.prevViewData=[]}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var et,tt=this.shapes.length,rt,nt,it=this.stylesList.length,st,at=[],ot=!1;for(nt=0;nt1&&ot&&this.setShapesAsAnimated(at)}},SVGShapeElement.prototype.setShapesAsAnimated=function(et){var tt,rt=et.length;for(tt=0;tt=0;lt-=1){if($t=this.searchProcessedElement(et[lt]),$t?tt[lt]=rt[$t-1]:et[lt]._render=at,et[lt].ty==="fl"||et[lt].ty==="st"||et[lt].ty==="gf"||et[lt].ty==="gs"||et[lt].ty==="no")$t?tt[lt].style.closed=!1:tt[lt]=this.createStyleElement(et[lt],it),et[lt]._render&&tt[lt].style.pElem.parentNode!==nt&&nt.appendChild(tt[lt].style.pElem),gt.push(tt[lt].style);else if(et[lt].ty==="gr"){if(!$t)tt[lt]=this.createGroupElement(et[lt]);else for(bt=tt[lt].it.length,dt=0;dt1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(et){this.effectsSequence.push(et),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(et){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!et)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var tt=this.currentData,rt=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var nt,it=this.effectsSequence.length,st=et||this.data.d.k[this.keysIndex].s;for(nt=0;nttt);)rt+=1;return this.keysIndex!==rt&&(this.keysIndex=rt),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(et){for(var tt=[],rt=0,nt=et.length,it,st,at=!1,ot=!1,lt="";rt=55296&&it<=56319?FontManager.isRegionalFlag(et,rt)?lt=et.substr(rt,14):(st=et.charCodeAt(rt+1),st>=56320&&st<=57343&&(FontManager.isModifier(it,st)?(lt=et.substr(rt,2),at=!0):FontManager.isFlagEmoji(et.substr(rt,4))?lt=et.substr(rt,4):lt=et.substr(rt,2))):it>56319?(st=et.charCodeAt(rt+1),FontManager.isVariationSelector(it)&&(at=!0)):FontManager.isZeroWidthJoiner(it)&&(at=!0,ot=!0),at?(tt[tt.length-1]+=lt,at=!1):tt.push(lt),rt+=lt.length;return tt},TextProperty.prototype.completeTextData=function(et){et.__complete=!0;var tt=this.elem.globalData.fontManager,rt=this.data,nt=[],it,st,at,ot=0,lt,ut=rt.m.g,dt=0,bt=0,gt=0,kt=[],pt=0,yt=0,$t,mt,wt=tt.getFontByName(et.f),St,Bt=0,Ot=getFontProperties(wt);et.fWeight=Ot.weight,et.fStyle=Ot.style,et.finalSize=et.s,et.finalText=this.buildFinalText(et.t),st=et.finalText.length,et.finalLineHeight=et.lh;var Lt=et.tr/1e3*et.finalSize,zt;if(et.sz)for(var Vt=!0,Wt=et.sz[0],lr=et.sz[1],qt,Ft;Vt;){Ft=this.buildFinalText(et.t),qt=0,pt=0,st=Ft.length,Lt=et.tr/1e3*et.finalSize;var Mt=-1;for(it=0;itWt&&Ft[it]!==" "?(Mt===-1?st+=1:it=Mt,qt+=et.finalLineHeight||et.finalSize*1.2,Ft.splice(it,Mt===it?1:0,"\r"),Mt=-1,pt=0):(pt+=Bt,pt+=Lt);qt+=wt.ascent*et.finalSize/100,this.canResize&&et.finalSize>this.minimumFontSize&&lryt?pt:yt,pt=-2*Lt,lt="",at=!0,gt+=1):lt=Et,tt.chars?(St=tt.getCharData(Et,wt.fStyle,tt.getFontByName(et.f).fFamily),Bt=at?0:St.w*et.finalSize/100):Bt=tt.measureText(lt,et.f,et.finalSize),Et===" "?ht+=Bt+Lt:(pt+=Bt+Lt+ht,ht=0),nt.push({l:Bt,an:Bt,add:dt,n:at,anIndexes:[],val:lt,line:gt,animatorJustifyOffset:0}),ut==2){if(dt+=Bt,lt===""||lt===" "||it===st-1){for((lt===""||lt===" ")&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;ot+=1,dt=0}}else if(ut==3){if(dt+=Bt,lt===""||it===st-1){for(lt===""&&(dt-=Bt);bt<=it;)nt[bt].an=dt,nt[bt].ind=ot,nt[bt].extra=Bt,bt+=1;dt=0,ot+=1}}else nt[ot].ind=ot,nt[ot].extra=0,ot+=1;if(et.l=nt,yt=pt>yt?pt:yt,kt.push(pt),et.sz)et.boxWidth=et.sz[0],et.justifyOffset=0;else switch(et.boxWidth=yt,et.j){case 1:et.justifyOffset=-et.boxWidth;break;case 2:et.justifyOffset=-et.boxWidth/2;break;default:et.justifyOffset=0}et.lineWidths=kt;var Tt=rt.a,Rt,At;mt=Tt.length;var Pt,It,Ct=[];for($t=0;$t0?ot=this.ne.v/100:lt=-this.ne.v/100,this.xe.v>0?ut=1-this.xe.v/100:dt=1+this.xe.v/100;var bt=BezierFactory.getBezierEasing(ot,lt,ut,dt).get,gt=0,kt=this.finalS,pt=this.finalE,yt=this.data.sh;if(yt===2)pt===kt?gt=at>=pt?1:0:gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===3)pt===kt?gt=at>=pt?0:1:gt=1-et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt=bt(gt);else if(yt===4)pt===kt?gt=0:(gt=et(0,tt(.5/(pt-kt)+(at-kt)/(pt-kt),1)),gt<.5?gt*=2:gt=1-2*(gt-.5)),gt=bt(gt);else if(yt===5){if(pt===kt)gt=0;else{var $t=pt-kt;at=tt(et(0,at+.5-kt),pt-kt);var mt=-$t/2+at,wt=$t/2;gt=Math.sqrt(1-mt*mt/(wt*wt))}gt=bt(gt)}else yt===6?(pt===kt?gt=0:(at=tt(et(0,at+.5-kt),pt-kt),gt=(1+Math.cos(Math.PI+Math.PI*2*at/(pt-kt)))/2),gt=bt(gt)):(at>=rt(kt)&&(at-kt<0?gt=et(0,tt(tt(pt,1)-(kt-at),1)):gt=et(0,tt(pt-at,1))),gt=bt(gt));if(this.sm.v!==100){var St=this.sm.v*.01;St===0&&(St=1e-8);var Bt=.5-St*.5;gt1&&(gt=1))}return gt*this.a.v},getValue:function(at){this.iterateDynamicProperties(),this._mdf=at||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,at&&this.data.r===2&&(this.e.v=this._currentTextLength);var ot=this.data.r===2?1:100/this.data.totalChars,lt=this.o.v/ot,ut=this.s.v/ot+lt,dt=this.e.v/ot+lt;if(ut>dt){var bt=ut;ut=dt,dt=bt}this.finalS=ut,this.finalE=dt}},extendPrototype([DynamicPropertyContainer],nt);function it(st,at,ot){return new nt(st,at)}return{getTextSelectorProp:it}}();function TextAnimatorDataProperty(et,tt,rt){var nt={propType:!1},it=PropertyFactory.getProp,st=tt.a;this.a={r:st.r?it(et,st.r,0,degToRads,rt):nt,rx:st.rx?it(et,st.rx,0,degToRads,rt):nt,ry:st.ry?it(et,st.ry,0,degToRads,rt):nt,sk:st.sk?it(et,st.sk,0,degToRads,rt):nt,sa:st.sa?it(et,st.sa,0,degToRads,rt):nt,s:st.s?it(et,st.s,1,.01,rt):nt,a:st.a?it(et,st.a,1,0,rt):nt,o:st.o?it(et,st.o,0,.01,rt):nt,p:st.p?it(et,st.p,1,0,rt):nt,sw:st.sw?it(et,st.sw,0,0,rt):nt,sc:st.sc?it(et,st.sc,1,0,rt):nt,fc:st.fc?it(et,st.fc,1,0,rt):nt,fh:st.fh?it(et,st.fh,0,0,rt):nt,fs:st.fs?it(et,st.fs,0,.01,rt):nt,fb:st.fb?it(et,st.fb,0,.01,rt):nt,t:st.t?it(et,st.t,0,0,rt):nt},this.s=TextSelectorProp.getTextSelectorProp(et,tt.s,rt),this.s.t=tt.s.t}function TextAnimatorProperty(et,tt,rt){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=et,this._renderType=tt,this._elem=rt,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(rt)}TextAnimatorProperty.prototype.searchProperties=function(){var et,tt=this._textData.a.length,rt,nt=PropertyFactory.getProp;for(et=0;et=pt+Ir||!Ot?(Wt=(pt+Ir-$t)/yt.partialLength,tr=Bt.point[0]+(yt.point[0]-Bt.point[0])*Wt,pr=Bt.point[1]+(yt.point[1]-Bt.point[1])*Wt,st.translate(-rt[0]*gt[dt].an*.005,-(rt[1]*ht)*.01),mt=!1):Ot&&($t+=yt.partialLength,wt+=1,wt>=Ot.length&&(wt=0,St+=1,Lt[St]?Ot=Lt[St].points:qt.v.c?(wt=0,St=0,Ot=Lt[St].points):($t-=yt.partialLength,Ot=null)),Ot&&(Bt=yt,yt=Ot[wt],zt=yt.partialLength));Dt=gt[dt].an/2-gt[dt].add,st.translate(-Dt,0,0)}else Dt=gt[dt].an/2-gt[dt].add,st.translate(-Dt,0,0),st.translate(-rt[0]*gt[dt].an*.005,-rt[1]*ht*.01,0);for(At=0;Atet?this.textSpans[et].span:createNS(ot?"g":"text"),St<=et){if(lt.setAttribute("stroke-linecap","butt"),lt.setAttribute("stroke-linejoin","round"),lt.setAttribute("stroke-miterlimit","4"),this.textSpans[et].span=lt,ot){var Ot=createNS("g");lt.appendChild(Ot),this.textSpans[et].childSpan=Ot}this.textSpans[et].span=lt,this.layerElement.appendChild(lt)}lt.style.display="inherit"}if(ut.reset(),bt&&(at[et].n&&(gt=-yt,kt+=rt.yOffset,kt+=pt?1:0,pt=!1),this.applyTextPropertiesToMatrix(rt,ut,at[et].line,gt,kt),gt+=at[et].l||0,gt+=yt),ot){Bt=this.globalData.fontManager.getCharData(rt.finalText[et],nt.fStyle,this.globalData.fontManager.getFontByName(rt.f).fFamily);var Lt;if(Bt.t===1)Lt=new SVGCompElement(Bt.data,this.globalData,this);else{var zt=emptyShapeData;Bt.data&&Bt.data.shapes&&(zt=this.buildShapeData(Bt.data,rt.finalSize)),Lt=new SVGShapeElement(zt,this.globalData,this)}if(this.textSpans[et].glyph){var Vt=this.textSpans[et].glyph;this.textSpans[et].childSpan.removeChild(Vt.layerElement),Vt.destroy()}this.textSpans[et].glyph=Lt,Lt._debug=!0,Lt.prepareFrame(0),Lt.renderFrame(),this.textSpans[et].childSpan.appendChild(Lt.layerElement),Bt.t===1&&this.textSpans[et].childSpan.setAttribute("transform","scale("+rt.finalSize/100+","+rt.finalSize/100+")")}else bt&<.setAttribute("transform","translate("+ut.props[12]+","+ut.props[13]+")"),lt.textContent=at[et].val,lt.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}bt&<&<.setAttribute("d",dt)}for(;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].prepareFrame(et-this.layers[tt].st);if(this.globalData._mdf)for(tt=0;tt=0;rt-=1)(this.completeLayers||this.elements[rt])&&(this.elements[rt].prepareFrame(this.renderedFrame-this.layers[rt].st),this.elements[rt]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var et,tt=this.layers.length;for(et=0;et=0;nt-=1)tt.finalTransform.multiply(tt.transforms[nt].transform.mProps.v);tt._mdf=st},processSequences:function(tt){var rt,nt=this.sequenceList.length;for(rt=0;rt=1){this.buffers=[];var tt=this.globalData.canvasContext,rt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(rt);var nt=assetLoader.createCanvas(tt.canvas.width,tt.canvas.height);this.buffers.push(nt),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var tt=this.globalData;if(tt.blendMode!==this.data.bm){tt.blendMode=this.data.bm;var rt=getBlendMode(this.data.bm);tt.canvasContext.globalCompositeOperation=rt}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(tt){tt.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var tt=this.buffers[0],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var tt=this.buffers[1],rt=tt.getContext("2d");this.clearCanvas(rt),rt.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var nt=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(nt.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var it=assetLoader.getLumaCanvas(this.canvasContext.canvas),st=it.getContext("2d");st.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(it,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(tt,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(tt){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!tt)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var rt=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(rt),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(rt),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(et,tt,rt,nt){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var it=4;tt.ty==="rc"?it=5:tt.ty==="el"?it=6:tt.ty==="sr"&&(it=7),this.sh=ShapePropertyFactory.getShapeProp(et,tt,it,et);var st,at=rt.length,ot;for(st=0;st=0;st-=1){if(bt=this.searchProcessedElement(et[st]),bt?tt[st]=rt[bt-1]:et[st]._shouldRender=nt,et[st].ty==="fl"||et[st].ty==="st"||et[st].ty==="gf"||et[st].ty==="gs")bt?tt[st].style.closed=!1:tt[st]=this.createStyleElement(et[st],pt),ut.push(tt[st].style);else if(et[st].ty==="gr"){if(!bt)tt[st]=this.createGroupElement(et[st]);else for(lt=tt[st].it.length,ot=0;ot=0;it-=1)tt[it].ty==="tr"?(at=rt[it].transform,this.renderShapeTransform(et,at)):tt[it].ty==="sh"||tt[it].ty==="el"||tt[it].ty==="rc"||tt[it].ty==="sr"?this.renderPath(tt[it],rt[it]):tt[it].ty==="fl"?this.renderFill(tt[it],rt[it],at):tt[it].ty==="st"?this.renderStroke(tt[it],rt[it],at):tt[it].ty==="gf"||tt[it].ty==="gs"?this.renderGradientFill(tt[it],rt[it],at):tt[it].ty==="gr"?this.renderShape(at,tt[it].it,rt[it].it):tt[it].ty;nt&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(et,tt){if(this._isFirstFrame||tt._mdf||et.transforms._mdf){var rt=et.trNodes,nt=tt.paths,it,st,at,ot=nt._length;rt.length=0;var lt=et.transforms.finalTransform;for(at=0;at=1?dt=.99:dt<=-1&&(dt=-.99);var bt=lt*dt,gt=Math.cos(ut+tt.a.v)*bt+at[0],kt=Math.sin(ut+tt.a.v)*bt+at[1];it=st.createRadialGradient(gt,kt,0,at[0],at[1],lt)}var pt,yt=et.g.p,$t=tt.g.c,mt=1;for(pt=0;ptst&<==="xMidYMid slice"||itit&&ot==="meet"||stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))/2*this.renderConfig.dpr:ut==="xMax"&&(stit&&ot==="slice")?this.transformCanvas.tx=(rt-this.transformCanvas.w*(nt/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,dt==="YMid"&&(st>it&&ot==="meet"||stit&&ot==="meet"||st=0;et-=1)this.elements[et]&&this.elements[et].destroy&&this.elements[et].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(et,tt){if(!(this.renderedFrame===et&&this.renderConfig.clearCanvas===!0&&!tt||this.destroyed||et===-1)){this.renderedFrame=et,this.globalData.frameNum=et-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||tt,this.globalData.projectInterface.currentFrame=et;var rt,nt=this.layers.length;for(this.completeLayers||this.checkLayers(et),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].prepareFrame(et-this.layers[rt].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),rt=nt-1;rt>=0;rt-=1)(this.completeLayers||this.elements[rt])&&this.elements[rt].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(et){var tt=this.elements;if(!(tt[et]||this.layers[et].ty===99)){var rt=this.createItem(this.layers[et],this,this.globalData);tt[et]=rt,rt.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var et=this.pendingElements.pop();et.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var et,tt=15;for(et=0;et=0;tt-=1)(this.completeLayers||this.elements[tt])&&this.elements[tt].renderFrame()},CVCompElement.prototype.destroy=function(){var et,tt=this.layers.length;for(et=tt-1;et>=0;et-=1)this.elements[et]&&this.elements[et].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function CanvasRenderer(et,tt){this.animationItem=et,this.renderConfig={clearCanvas:tt&&tt.clearCanvas!==void 0?tt.clearCanvas:!0,context:tt&&tt.context||null,progressiveLoad:tt&&tt.progressiveLoad||!1,preserveAspectRatio:tt&&tt.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:tt&&tt.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:tt&&tt.contentVisibility||"visible",className:tt&&tt.className||"",id:tt&&tt.id||"",runExpressions:!tt||tt.runExpressions===void 0||tt.runExpressions},this.renderConfig.dpr=tt&&tt.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=tt&&tt.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(et){return new CVCompElement(et,this.globalData,this)};function HBaseElement(){}HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),this.data.bm!==0&&this.setBlendMode()},renderElement:function(){var tt=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var rt=this.finalTransform.mat.toCSS();tt.transform=rt,tt.webkitTransform=rt}this.finalTransform._opMdf&&(tt.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting;function HSolidElement(et,tt,rt){this.initElement(et,tt,rt)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var et;this.data.hasMask?(et=createNS("rect"),et.setAttribute("width",this.data.sw),et.setAttribute("height",this.data.sh),et.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(et=createTag("div"),et.style.width=this.data.sw+"px",et.style.height=this.data.sh+"px",et.style.backgroundColor=this.data.sc),this.layerElement.appendChild(et)};function HShapeElement(et,tt,rt){this.shapes=[],this.shapesData=et.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(et,tt,rt),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var et;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),et=this.svgElement;else{et=createNS("svg");var tt=this.comp.data?this.comp.data:this.globalData.compSize;et.setAttribute("width",tt.w),et.setAttribute("height",tt.h),et.appendChild(this.shapesContainer),this.layerElement.appendChild(et)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=et},HShapeElement.prototype.getTransformedPoint=function(et,tt){var rt,nt=et.length;for(rt=0;rt0&<<1&&it[gt].push(this.calculateF(lt,et,tt,rt,nt,gt))):(ut=at*at-4*ot*st,ut>=0&&(dt=(-at+bmSqrt(ut))/(2*st),dt>0&&dt<1&&it[gt].push(this.calculateF(dt,et,tt,rt,nt,gt)),bt=(-at-bmSqrt(ut))/(2*st),bt>0&&bt<1&&it[gt].push(this.calculateF(bt,et,tt,rt,nt,gt)))));this.shapeBoundingBox.left=bmMin.apply(null,it[0]),this.shapeBoundingBox.top=bmMin.apply(null,it[1]),this.shapeBoundingBox.right=bmMax.apply(null,it[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,it[1])},HShapeElement.prototype.calculateF=function(et,tt,rt,nt,it,st){return bmPow(1-et,3)*tt[st]+3*bmPow(1-et,2)*et*rt[st]+3*(1-et)*bmPow(et,2)*nt[st]+bmPow(et,3)*it[st]},HShapeElement.prototype.calculateBoundingBox=function(et,tt){var rt,nt=et.length;for(rt=0;rtrt&&(rt=it)}rt*=et.mult}else rt=et.v*et.mult;tt.x-=rt,tt.xMax+=rt,tt.y-=rt,tt.yMax+=rt},HShapeElement.prototype.currentBoxContains=function(et){return this.currentBBox.x<=et.x&&this.currentBBox.y<=et.y&&this.currentBBox.width+this.currentBBox.x>=et.x+et.width&&this.currentBBox.height+this.currentBBox.y>=et.y+et.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var et=this.tempBoundingBox,tt=999999;if(et.x=tt,et.xMax=-tt,et.y=tt,et.yMax=-tt,this.calculateBoundingBox(this.itemsData,et),et.width=et.xMax=0;tt-=1){var nt=this.hierarchy[tt].finalTransform.mProp;this.mat.translate(-nt.p.v[0],-nt.p.v[1],nt.p.v[2]),this.mat.rotateX(-nt.or.v[0]).rotateY(-nt.or.v[1]).rotateZ(nt.or.v[2]),this.mat.rotateX(-nt.rx.v).rotateY(-nt.ry.v).rotateZ(nt.rz.v),this.mat.scale(1/nt.s.v[0],1/nt.s.v[1],1/nt.s.v[2]),this.mat.translate(nt.a.v[0],nt.a.v[1],nt.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var it;this.p?it=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:it=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var st=Math.sqrt(Math.pow(it[0],2)+Math.pow(it[1],2)+Math.pow(it[2],2)),at=[it[0]/st,it[1]/st,it[2]/st],ot=Math.sqrt(at[2]*at[2]+at[0]*at[0]),lt=Math.atan2(at[1],ot),ut=Math.atan2(at[0],-at[2]);this.mat.rotateY(ut).rotateX(-lt)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var dt=!this._prevMat.equals(this.mat);if((dt||this.pe._mdf)&&this.comp.threeDElements){rt=this.comp.threeDElements.length;var bt,gt,kt;for(tt=0;tt=et)return this.threeDElements[tt].perspectiveElem;tt+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(et,tt){var rt=createTag("div"),nt,it;styleDiv(rt);var st=createTag("div");if(styleDiv(st),tt==="3d"){nt=rt.style,nt.width=this.globalData.compSize.w+"px",nt.height=this.globalData.compSize.h+"px";var at="50% 50%";nt.webkitTransformOrigin=at,nt.mozTransformOrigin=at,nt.transformOrigin=at,it=st.style;var ot="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";it.transform=ot,it.webkitTransform=ot}rt.appendChild(st);var lt={container:st,perspectiveElem:rt,startPos:et,endPos:et,type:tt};return this.threeDElements.push(lt),lt},HybridRendererBase.prototype.build3dContainers=function(){var et,tt=this.layers.length,rt,nt="";for(et=0;et=0;et-=1)this.resizerElem.appendChild(this.threeDElements[et].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(et,tt){for(var rt=0,nt=this.threeDElements.length;rtrt?(it=et/this.globalData.compSize.w,st=et/this.globalData.compSize.w,at=0,ot=(tt-this.globalData.compSize.h*(et/this.globalData.compSize.w))/2):(it=tt/this.globalData.compSize.h,st=tt/this.globalData.compSize.h,at=(et-this.globalData.compSize.w*(tt/this.globalData.compSize.h))/2,ot=0);var lt=this.resizerElem.style;lt.webkitTransform="matrix3d("+it+",0,0,0,0,"+st+",0,0,0,0,1,0,"+at+","+ot+",0,1)",lt.transform=lt.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var et=this.globalData.compSize.w,tt=this.globalData.compSize.h,rt,nt=this.threeDElements.length;for(rt=0;rt=ut;)qt/=2,Ft/=2,Mt>>>=1;return(qt+Mt)/Ft};return Wt.int32=function(){return Vt.g(4)|0},Wt.quick=function(){return Vt.g(4)/4294967296},Wt.double=Wt,$t(wt(Vt.S),et),(Bt.pass||Ot||function(lr,qt,Ft,Mt){return Mt&&(Mt.S&&pt(Mt,Vt),lr.state=function(){return pt(Vt,{})}),Ft?(tt[at]=lr,qt):lr})(Wt,zt,"global"in Bt?Bt.global:this==tt,Bt.state)}tt["seed"+at]=gt;function kt(St){var Bt,Ot=St.length,Lt=this,zt=0,Vt=Lt.i=Lt.j=0,Wt=Lt.S=[];for(Ot||(St=[Ot++]);ztrt){var nt=rt;rt=tt,tt=nt}return Math.min(Math.max(et,tt),rt)}function radiansToDegrees(et){return et/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(et){return et*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(et,tt){if(typeof et=="number"||et instanceof Number)return tt=tt||0,Math.abs(et-tt);tt||(tt=helperLengthArray);var rt,nt=Math.min(et.length,tt.length),it=0;for(rt=0;rt.5?ut/(2-it-st):ut/(it+st),it){case tt:at=(rt-nt)/ut+(rt1&&(rt-=1),rt<1/6?et+(tt-et)*6*rt:rt<1/2?tt:rt<2/3?et+(tt-et)*(2/3-rt)*6:et}function hslToRgb(et){var tt=et[0],rt=et[1],nt=et[2],it,st,at;if(rt===0)it=nt,at=nt,st=nt;else{var ot=nt<.5?nt*(1+rt):nt+rt-nt*rt,lt=2*nt-ot;it=hue2rgb(lt,ot,tt+1/3),st=hue2rgb(lt,ot,tt),at=hue2rgb(lt,ot,tt-1/3)}return[it,st,at,et[3]]}function linear(et,tt,rt,nt,it){if((nt===void 0||it===void 0)&&(nt=tt,it=rt,tt=0,rt=1),rt=rt)return it;var at=rt===tt?0:(et-tt)/(rt-tt);if(!nt.length)return nt+(it-nt)*at;var ot,lt=nt.length,ut=createTypedArray("float32",lt);for(ot=0;ot1){for(it=0;it1?tt=1:tt<0&&(tt=0);var at=et(tt);if($bm_isInstanceOfArray(it)){var ot,lt=it.length,ut=createTypedArray("float32",lt);for(ot=0;otdata.k[tt].t&&etdata.k[tt+1].t-et?(nt=tt+2,it=data.k[tt+1].t):(nt=tt+1,it=data.k[tt].t);break}nt===-1&&(nt=tt+1,it=data.k[tt].t)}var st={};return st.index=nt,st.time=it/elem.comp.globalData.frameRate,st}function key(et){var tt,rt,nt;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+et);et-=1,tt={time:data.k[et].t/elem.comp.globalData.frameRate,value:[]};var it=Object.prototype.hasOwnProperty.call(data.k[et],"s")?data.k[et].s:data.k[et-1].e;for(nt=it.length,rt=0;rt$t.length-1)&&(kt=$t.length-1),St=$t[$t.length-1-kt].t,wt=mt-St);var Bt,Ot,Lt;if(gt==="pingpong"){var zt=Math.floor((yt-St)/wt);if(zt%2!==0)return this.getValueAtTime((wt-(yt-St)%wt+St)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Vt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),lr=this.getValueAtTime(((yt-St)%wt+St)/this.comp.globalData.frameRate,0),qt=Math.floor((yt-St)/wt);if(this.pv.length){for(Lt=new Array(Vt.length),Ot=Lt.length,Bt=0;Bt=mt)return this.pv;var wt,St;pt?(kt?wt=Math.abs(this.elem.comp.globalData.frameRate*kt):wt=Math.max(0,this.elem.data.op-mt),St=mt+wt):((!kt||kt>$t.length-1)&&(kt=$t.length-1),St=$t[kt].t,wt=St-mt);var Bt,Ot,Lt;if(gt==="pingpong"){var zt=Math.floor((mt-yt)/wt);if(zt%2===0)return this.getValueAtTime(((mt-yt)%wt+mt)/this.comp.globalData.frameRate,0)}else if(gt==="offset"){var Vt=this.getValueAtTime(mt/this.comp.globalData.frameRate,0),Wt=this.getValueAtTime(St/this.comp.globalData.frameRate,0),lr=this.getValueAtTime((wt-(mt-yt)%wt+mt)/this.comp.globalData.frameRate,0),qt=Math.floor((mt-yt)/wt)+1;if(this.pv.length){for(Lt=new Array(Vt.length),Ot=Lt.length,Bt=0;Bt1?($t-yt)/(kt-1):1,wt=0,St=0,Bt;this.pv.length?Bt=createTypedArray("float32",this.pv.length):Bt=0;for(var Ot;wtwt){var zt=St,Vt=yt.c&&St===Bt-1?0:St+1,Wt=(wt-Ot)/mt[St].addedLength;Lt=bez.getPointInSegment(yt.v[zt],yt.v[Vt],yt.o[zt],yt.i[Vt],Wt,mt[St]);break}else Ot+=mt[St].addedLength;St+=1}return Lt||(Lt=yt.c?[yt.v[0][0],yt.v[0][1]]:[yt.v[yt._length-1][0],yt.v[yt._length-1][1]]),Lt},vectorOnPath:function(kt,pt,yt){kt==1?kt=this.v.c:kt==0&&(kt=.999);var $t=this.pointOnPath(kt,pt),mt=this.pointOnPath(kt+.001,pt),wt=mt[0]-$t[0],St=mt[1]-$t[1],Bt=Math.sqrt(Math.pow(wt,2)+Math.pow(St,2));if(Bt===0)return[0,0];var Ot=yt==="tangent"?[wt/Bt,St/Bt]:[-St/Bt,wt/Bt];return Ot},tangentOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"tangent")},normalOnPath:function(kt,pt){return this.vectorOnPath(kt,pt,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([dt],lt),extendPrototype([dt],ut),ut.prototype.getValueAtTime=ot,ut.prototype.initiateExpression=ExpressionManager.initiateExpression;var bt=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(gt,kt,pt,yt,$t){var mt=bt(gt,kt,pt,yt,$t);return mt.propertyIndex=kt.ix,mt.lock=!1,pt===3?expressionHelpers.searchExpressions(gt,kt.pt,mt):pt===4&&expressionHelpers.searchExpressions(gt,kt.ks,mt),mt.k&>.addDynamicProperty(mt),mt}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function et(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(tt,rt){var nt=this.calculateExpression(rt);if(tt.t!==nt){var it={};return this.copyData(it,tt),it.t=nt.toString(),it.__complete=!1,it}return tt},TextProperty.prototype.searchProperty=function(){var tt=this.searchKeyframes(),rt=this.searchExpressions();return this.kf=tt||rt,this.kf},TextProperty.prototype.searchExpressions=et}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function et(tt,rt){var nt=createNS("feMerge");nt.setAttribute("result",tt);var it,st;for(st=0;st=ut?bt=pt<0?nt:it:bt=nt+kt*Math.pow((ot-et)/pt,1/rt),dt[gt]=bt,gt+=1,st+=256/(at-1);return dt.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){var tt,rt=this.filterManager.effectElements;this.feFuncRComposed&&(et||rt[3].p._mdf||rt[4].p._mdf||rt[5].p._mdf||rt[6].p._mdf||rt[7].p._mdf)&&(tt=this.getTableValue(rt[3].p.v,rt[4].p.v,rt[5].p.v,rt[6].p.v,rt[7].p.v),this.feFuncRComposed.setAttribute("tableValues",tt),this.feFuncGComposed.setAttribute("tableValues",tt),this.feFuncBComposed.setAttribute("tableValues",tt)),this.feFuncR&&(et||rt[10].p._mdf||rt[11].p._mdf||rt[12].p._mdf||rt[13].p._mdf||rt[14].p._mdf)&&(tt=this.getTableValue(rt[10].p.v,rt[11].p.v,rt[12].p.v,rt[13].p.v,rt[14].p.v),this.feFuncR.setAttribute("tableValues",tt)),this.feFuncG&&(et||rt[17].p._mdf||rt[18].p._mdf||rt[19].p._mdf||rt[20].p._mdf||rt[21].p._mdf)&&(tt=this.getTableValue(rt[17].p.v,rt[18].p.v,rt[19].p.v,rt[20].p.v,rt[21].p.v),this.feFuncG.setAttribute("tableValues",tt)),this.feFuncB&&(et||rt[24].p._mdf||rt[25].p._mdf||rt[26].p._mdf||rt[27].p._mdf||rt[28].p._mdf)&&(tt=this.getTableValue(rt[24].p.v,rt[25].p.v,rt[26].p.v,rt[27].p.v,rt[28].p.v),this.feFuncB.setAttribute("tableValues",tt)),this.feFuncA&&(et||rt[31].p._mdf||rt[32].p._mdf||rt[33].p._mdf||rt[34].p._mdf||rt[35].p._mdf)&&(tt=this.getTableValue(rt[31].p.v,rt[32].p.v,rt[33].p.v,rt[34].p.v,rt[35].p.v),this.feFuncA.setAttribute("tableValues",tt))}};function SVGDropShadowEffect(et,tt,rt,nt,it){var st=tt.container.globalData.renderConfig.filterSize,at=tt.data.fs||st;et.setAttribute("x",at.x||st.x),et.setAttribute("y",at.y||st.y),et.setAttribute("width",at.width||st.width),et.setAttribute("height",at.height||st.height),this.filterManager=tt;var ot=createNS("feGaussianBlur");ot.setAttribute("in","SourceAlpha"),ot.setAttribute("result",nt+"_drop_shadow_1"),ot.setAttribute("stdDeviation","0"),this.feGaussianBlur=ot,et.appendChild(ot);var lt=createNS("feOffset");lt.setAttribute("dx","25"),lt.setAttribute("dy","0"),lt.setAttribute("in",nt+"_drop_shadow_1"),lt.setAttribute("result",nt+"_drop_shadow_2"),this.feOffset=lt,et.appendChild(lt);var ut=createNS("feFlood");ut.setAttribute("flood-color","#00ff00"),ut.setAttribute("flood-opacity","1"),ut.setAttribute("result",nt+"_drop_shadow_3"),this.feFlood=ut,et.appendChild(ut);var dt=createNS("feComposite");dt.setAttribute("in",nt+"_drop_shadow_3"),dt.setAttribute("in2",nt+"_drop_shadow_2"),dt.setAttribute("operator","in"),dt.setAttribute("result",nt+"_drop_shadow_4"),et.appendChild(dt);var bt=this.createMergeNode(nt,[nt+"_drop_shadow_4",it]);et.appendChild(bt)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(et){if(et||this.filterManager._mdf){if((et||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),et||this.filterManager.effectElements[0].p._mdf){var tt=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(tt[0]*255),Math.round(tt[1]*255),Math.round(tt[2]*255)))}if((et||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),et||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var rt=this.filterManager.effectElements[3].p.v,nt=(this.filterManager.effectElements[2].p.v-90)*degToRads,it=rt*Math.cos(nt),st=rt*Math.sin(nt);this.feOffset.setAttribute("dx",it),this.feOffset.setAttribute("dy",st)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(et,tt,rt){this.initialized=!1,this.filterManager=tt,this.filterElem=et,this.elem=rt,rt.matteElement=createNS("g"),rt.matteElement.appendChild(rt.layerElement),rt.matteElement.appendChild(rt.transformedElement),rt.baseElement=rt.matteElement}SVGMatte3Effect.prototype.findSymbol=function(et){for(var tt=0,rt=_svgMatteSymbols.length;tt{const et=reactExports.useRef(null);return reactExports.useEffect(()=>{const tt=document.getElementById("lottie-sphere-animation");return tt&&(et.current=lottie.loadAnimation({container:tt,animationData:preloadData,loop:!0,autoplay:!0,rendererSettings:{preserveAspectRatio:"xMidYMid slice"}})),()=>{et.current&&et.current.destroy()}},[]),jsxRuntimeExports.jsx(Flex,{id:"lottie-sphere-animation",style:{width:"167px",height:"167px",opacity:.5}})},Splash=()=>{const[et,tt]=reactExports.useState(initialMessageData),[rt,nt]=reactExports.useState(0),{appMetaData:it,setAppMetaData:st}=useAppStore(kt=>kt),{stats:at,setStats:ot,setSeedQuestions:lt}=useDataStore(kt=>kt),{schemas:ut,setSchemas:dt}=useSchemaStore(kt=>kt),[bt,gt]=reactExports.useState(!1);return reactExports.useEffect(()=>{!it&&!at&&!bt&&(async()=>{gt(!0);try{if(!it){const pt=await getAboutData();st(pt),pt.seed_questions&<(pt.seed_questions)}if(!at){const pt=await getStats(),yt=formatStatsResponse(pt);ot(yt);const $t=formatSplashMessage(pt);tt($t)}if(!ut.length){const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}}finally{gt(!1)}})()},[it,bt,ut.length,st,dt,lt,ot,at]),reactExports.useEffect(()=>{const kt=async()=>{try{const pt=await getSchemaAll();dt(pt.schemas.filter(yt=>!yt.is_deleted))}catch(pt){console.error(pt)}};ut.length||kt()},[ut.length,dt]),reactExports.useEffect(()=>{let kt;return et&&it&&(nt(pt=>pt||50),kt=setInterval(()=>{nt(pt=>pt>=100?100:pt+Math.floor(Math.random()*4))},100)),()=>{kt&&clearInterval(kt)}},[et,it]),jsxRuntimeExports.jsx(SplashWrapper,{children:jsxRuntimeExports.jsxs(Wrapper,{align:"center",direction:"row",justify:"center",children:[jsxRuntimeExports.jsx(SphereAnimation,{}),jsxRuntimeExports.jsxs(Flex,{style:{color:colors.white},children:[jsxRuntimeExports.jsxs(TitleWrapper,{children:[jsxRuntimeExports.jsx(Text,{className:"title",children:it==null?void 0:it.title}),jsxRuntimeExports.jsx(Text,{className:"subtitle",children:"Second Brain"})]}),jsxRuntimeExports.jsx(LinearProgress$1,{color:"inherit",sx:{my:1.75,height:"2px"},value:rt,variant:"determinate"}),jsxRuntimeExports.jsx(AnimatedTextContent,{message:et})]})]})})},TitleWrapper=styled$3.div` display: flex; flex-direction: column; @@ -821,7 +821,7 @@ PROCEED WITH CAUTION! width: 442.879px; margin: 0 auto; gap: 27px; -`,AuthGuard=({children:et})=>{const[tt,rt]=reactExports.useState(!1),{setBudget:nt,setIsAdmin:it,setPubKey:st,setIsAuthenticated:at,setSwarmUiUrl:ot}=useUserStore(Lt=>Lt),{splashDataLoading:lt}=useDataStore(Lt=>Lt),[ut,dt]=reactExports.useState(!1),[bt,gt]=reactExports.useState(!1),{setTrendingTopicsFeatureFlag:kt,setQueuedSourcesFeatureFlag:pt,setCustomSchemaFeatureFlag:yt,setRealtimeGraphFeatureFlag:$t,setChatInterfaceFeatureFlag:mt,setFastFiltersFeatureFlag:wt}=useFeatureFlagStore(Lt=>Lt),St=reactExports.useCallback(async()=>{localStorage.removeItem("admin"),localStorage.removeItem("signature");let Lt;try{isE2E?Lt=await sphinxBridge.enable():Lt=await distExports$1.enable(),sessionStorage.setItem("isSphinx",Lt?"true":"false"),st(Lt==null?void 0:Lt.pubkey)}catch{st("")}(isE2E||isDevelopment)&&at(!0)},[st,at]),Bt=reactExports.useCallback(async()=>{try{const Lt=await getIsAdmin();if(Lt.data){const zt=!!Lt.data.isAdmin;localStorage.setItem("admin",JSON.stringify({isAdmin:zt})),zt&&Lt.data.swarmUiUrl&&ot(Lt.data.swarmUiUrl),it(zt),kt(Lt.data.trendingTopics),pt(Lt.data.queuedSources),yt(Lt.data.customSchema),$t(Lt.data.realtimeGraph||!1),mt(Lt.data.chatInterface||!1),wt(Lt.data.fastFilters||!1),zt&&!Lt.data.title&>(!0)}at(!0),dt(!0)}catch{rt(!0)}},[at,it,kt,pt,yt,$t,mt,wt,ot]);reactExports.useEffect(()=>{(async()=>{if(isWebView()||isE2E||isAndroid())try{isAndroid()&&await new Promise(zt=>setTimeout(zt,5e3)),await St()}catch(zt){console.error(zt)}await updateBudget(nt),await Bt()})()},[St,Bt,nt]);const Ft="This is a private Graph, Contact Admin";return tt?jsxRuntimeExports.jsx(StyledFlex,{children:jsxRuntimeExports.jsx(StyledText,{children:Ft})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[bt&&jsxRuntimeExports.jsx(OnboardingModal,{}),lt&&jsxRuntimeExports.jsx(Splash,{}),ut&&et]})},StyledText=styled$3(Text)` +`,AuthGuard=({children:et})=>{const[tt,rt]=reactExports.useState(!1),{setBudget:nt,setIsAdmin:it,setPubKey:st,setIsAuthenticated:at,setSwarmUiUrl:ot}=useUserStore(Lt=>Lt),{splashDataLoading:lt}=useDataStore(Lt=>Lt),[ut,dt]=reactExports.useState(!1),[bt,gt]=reactExports.useState(!1),{setTrendingTopicsFeatureFlag:kt,setQueuedSourcesFeatureFlag:pt,setCustomSchemaFeatureFlag:yt,setRealtimeGraphFeatureFlag:$t,setChatInterfaceFeatureFlag:mt,setFastFiltersFeatureFlag:wt}=useFeatureFlagStore(Lt=>Lt),St=reactExports.useCallback(async()=>{localStorage.removeItem("admin"),localStorage.removeItem("signature");let Lt;try{isE2E?Lt=await sphinxBridge.enable():Lt=await distExports$1.enable(),sessionStorage.setItem("isSphinx",Lt?"true":"false"),st(Lt==null?void 0:Lt.pubkey)}catch{st("")}(isE2E||isDevelopment)&&at(!0)},[st,at]),Bt=reactExports.useCallback(async()=>{try{const Lt=await getIsAdmin();if(Lt.data){const zt=!!Lt.data.isAdmin;localStorage.setItem("admin",JSON.stringify({isAdmin:zt})),zt&&Lt.data.swarmUiUrl&&ot(Lt.data.swarmUiUrl),it(zt),kt(Lt.data.trendingTopics),pt(Lt.data.queuedSources),yt(Lt.data.customSchema),$t(Lt.data.realtimeGraph||!1),mt(Lt.data.chatInterface||!1),wt(Lt.data.fastFilters||!1),zt&&!Lt.data.title&>(!0)}at(!0),dt(!0)}catch{rt(!0)}},[at,it,kt,pt,yt,$t,mt,wt,ot]);reactExports.useEffect(()=>{(async()=>{if(isWebView()||isE2E||isAndroid())try{isAndroid()&&await new Promise(zt=>setTimeout(zt,5e3)),await St()}catch(zt){console.error(zt)}await updateBudget(nt),await Bt()})()},[St,Bt,nt]);const Ot="This is a private Graph, Contact Admin";return tt?jsxRuntimeExports.jsx(StyledFlex,{children:jsxRuntimeExports.jsx(StyledText,{children:Ot})}):jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[bt&&jsxRuntimeExports.jsx(OnboardingModal,{}),lt&&jsxRuntimeExports.jsx(Splash,{}),ut&&et]})},StyledText=styled$3(Text)` font-size: 5rem; font-weight: 600; font-family: 'Barlow'; @@ -831,4 +831,4 @@ PROCEED WITH CAUTION! align-items: center; width: 100%; height: 100%; -`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-c7f888ab.js").then(et=>et.i),["assets/index-c7f888ab.js","assets/index-9e906cde.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-143cd8e7.js"),["assets/index-143cd8e7.js","assets/index-9a560549.js","assets/index-ca6739d4.js","assets/three.module-ba6167ce.js","assets/index-8fe66f52.js","assets/index-9e906cde.js","assets/TextareaAutosize-ba1f6749.js","assets/index-26468b48.js","assets/index-bdc490cb.js","assets/ClipLoader-5d1618f3.js","assets/index-c0d858f0.js","assets/Skeleton-0caad96e.js","assets/Stack-55a7903f.js","assets/isPlainObject-2fea37bb.js","assets/Typography-429e0f96.js","assets/createSvgIcon-9333dda0.js","assets/index-fff133ec.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var tt;const et=((tt=window.location)==null?void 0:tt.hostname)==="graphmindset.sphinx.chat"||window.location.hostname==="localhost"&&!isE2E;return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[et&&jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"*"})]})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{useEnhancedEffect$1 as $,clsx as A,Button$1 as B,ClearIcon as C,getNode as D,fetchNodeEdges as E,Flex as F,_inheritsLoose as G,_objectWithoutPropertiesLoose as H,InfoIcon as I,React as J,TransitionGroupContext as K,generateUtilityClass as L,generateUtilityClasses as M,NODE_ADD_ERROR as N,styled$1 as O,alpha as P,Q,ReactDOM as R,useThemeProps as S,Text as T,clsx$2 as U,composeClasses as V,We as W,ButtonBase$1 as X,capitalize as Y,useForkRef as Z,__vitePreload as _,colors as a,RSS as a$,setRef as a0,reactDomExports as a1,useEventCallback as a2,useTheme as a3,devtools as a4,LinearProgress$1 as a5,SocketContext as a6,isSphinx as a7,$2AODx$react as a8,getDefaultExportFromCjs as a9,isArguments_1 as aA,isArray_1 as aB,_arrayPush as aC,_baseUnary as aD,_defineProperty as aE,eq_1 as aF,isArrayLike_1 as aG,_isIndex as aH,isObject_1 as aI,_root as aJ,_baseAssignValue as aK,keys_1 as aL,MdBolt as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,useNormalizedNode as aQ,getAugmentedNamespace as aR,useHasAiChats as aS,postAboutData as aT,SuccessNotify as aU,TextInput as aV,requiredRule as aW,MdError as aX,BaseModal as aY,TWITTER_HANDLE as aZ,YOUTUBE_CHANNEL as a_,useNodeTypes as aa,MdViewInAr as ab,MdClose as ac,Ce as ad,addToGlobalForE2e as ae,isDevelopment as af,distExports$1 as ag,executeIfProd as ah,useIsFocusVisible as ai,rootShouldForwardProp as aj,lighten as ak,darken as al,slotShouldForwardProp as am,useFormContext as an,useHasAiChatsResponseLoading as ao,Ue as ap,hooks as aq,commonjsGlobal as ar,commonjsRequire as as,useFilteredNodes as at,_baseGetTag as au,isObjectLike_1 as av,isObject$8 as aw,isFunction$4 as ax,_Set as ay,_Symbol as az,useUserStore as b,defaultTheme$1 as b$,GITHUB_REPOSITORY as b0,LINK as b1,TWITTER_SOURCE as b2,WEB_PAGE as b3,DOCUMENT as b4,getPriceData as b5,isE2E as b6,sphinxBridge as b7,getLSat as b8,payLsat as b9,handleBreakpoints as bA,updateEdgeType as bB,postBluePrintType as bC,deleteEdgeType as bD,cloneDeep_1 as bE,useFieldArray as bF,OptionTypes as bG,NoParent as bH,editNodeSchemaUpdate as bI,createRoot as bJ,react as bK,GRAPH_GROUND_COLOR as bL,GRAPH_LIGHT_INTENSITY as bM,_MapCache as bN,_Uint8Array as bO,_getAllKeys as bP,_Stack as bQ,_getTag as bR,isBufferExports as bS,isTypedArray_1 as bT,isLength_1 as bU,_getPrototype as bV,request as bW,buffer$2 as bX,sphinx$1 as bY,Global as bZ,useTheme$2 as b_,noSpacePattern as ba,getNodeType as bb,getNodeSchemaTypes as bc,OPTIONS as bd,initialValue as be,getNodeContent as bf,MdCheckCircle as bg,MdCancel as bh,approveRadarData as bi,deleteRadarData as bj,getRadarData as bk,BaseTextInput as bl,MdCheck as bm,putRadarData as bn,getEdgeTypes as bo,getEdges as bp,postEdgeType as bq,putNodeData as br,postMergeTopics as bs,getTopicsData as bt,editNodeData as bu,deleteNode as bv,keyframes as bw,css as bx,changeNodeType as by,resolveBreakpointValues as bz,create as c,THEME_ID as c0,formatMuiErrorMessage as c1,deepmerge as c2,defaultSxConfig$1 as c3,isPlainObject$1 as c4,createStyled as c5,createTheme$1 as c6,useThemeProps$1 as c7,createUnarySpacing as c8,mergeBreakpointsInOrder as c9,getValue as ca,useTheme$3 as cb,index$1 as cc,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,FormProvider as v,updateBudget as w,_extends as x,getSchemaAll as y,api$1 as z}; +`,LazyApp=reactExports.lazy(()=>__vitePreload(()=>import("./index-6d28c8a5.js").then(et=>et.i),["assets/index-6d28c8a5.js","assets/index-292d93f3.js"]).then(({App:et})=>({default:et}))),LazyMindSet=reactExports.lazy(()=>__vitePreload(()=>import("./index-79f6d834.js"),["assets/index-79f6d834.js","assets/index-971cba7b.js","assets/index-dfd22792.js","assets/three.module-ba6167ce.js","assets/index-0f3ae51e.js","assets/index-292d93f3.js","assets/TextareaAutosize-6a1de228.js","assets/index-782ff866.js","assets/index-51ac9e53.js","assets/ClipLoader-c5e3f404.js","assets/index-e6c92504.js","assets/Skeleton-38c1ef25.js","assets/Stack-9bdcdce4.js","assets/isPlainObject-0689f20b.js","assets/Typography-1878e488.js","assets/createSvgIcon-a3d1c07a.js","assets/index-734a9b6e.js"]).then(({MindSet:et})=>({default:et}))),AppContainer=()=>{var tt;const et=((tt=window.location)==null?void 0:tt.hostname)==="graphmindset.sphinx.chat"||window.location.hostname==="localhost"&&!isE2E;return jsxRuntimeExports.jsxs(AppProviders,{children:[jsxRuntimeExports.jsx(reactExports.Suspense,{fallback:jsxRuntimeExports.jsx("div",{children:"Loading..."}),children:jsxRuntimeExports.jsxs(Routes,{children:[et&&jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(LazyMindSet,{}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"/search"}),jsxRuntimeExports.jsx(Route,{element:jsxRuntimeExports.jsx(AuthGuard,{children:jsxRuntimeExports.jsx(LazyApp,{})}),path:"*"})]})}),jsxRuntimeExports.jsx(E2ETests,{})]})},index="",root=client$1.createRoot(document.getElementById("root"));root.render(isE2E?jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})}):jsxRuntimeExports.jsx(React.StrictMode,{children:jsxRuntimeExports.jsx(BrowserRouter,{children:jsxRuntimeExports.jsx(AppContainer,{})})}));reportWebVitals();overrideConsole();export{useEnhancedEffect$1 as $,clsx as A,Button$1 as B,ClearIcon as C,getNode as D,fetchNodeEdges as E,Flex as F,_inheritsLoose as G,_objectWithoutPropertiesLoose as H,InfoIcon as I,React as J,TransitionGroupContext as K,generateUtilityClass as L,generateUtilityClasses as M,NODE_ADD_ERROR as N,styled$1 as O,alpha as P,Q,ReactDOM as R,useThemeProps as S,Text as T,clsx$2 as U,composeClasses as V,We as W,ButtonBase$1 as X,capitalize as Y,useForkRef as Z,__vitePreload as _,colors as a,RSS as a$,setRef as a0,reactDomExports as a1,useEventCallback as a2,useTheme as a3,devtools as a4,LinearProgress$1 as a5,SocketContext as a6,isSphinx as a7,$2AODx$react as a8,getDefaultExportFromCjs as a9,isArguments_1 as aA,isArray_1 as aB,_arrayPush as aC,_baseUnary as aD,_defineProperty as aE,eq_1 as aF,isArrayLike_1 as aG,_isIndex as aH,isObject_1 as aI,_root as aJ,_baseAssignValue as aK,keys_1 as aL,MdBolt as aM,getFullTranscript as aN,MdPlayArrow as aO,MdAccessTime as aP,useNormalizedNode as aQ,getAugmentedNamespace as aR,useHasAiChats as aS,postAboutData as aT,SuccessNotify as aU,TextInput as aV,requiredRule as aW,MdError as aX,BaseModal as aY,TWITTER_HANDLE as aZ,YOUTUBE_CHANNEL as a_,useNodeTypes as aa,MdViewInAr as ab,MdClose as ac,Ce as ad,addToGlobalForE2e as ae,isDevelopment as af,distExports$1 as ag,executeIfProd as ah,useIsFocusVisible as ai,rootShouldForwardProp as aj,lighten as ak,darken as al,slotShouldForwardProp as am,useFormContext as an,useHasAiChatsResponseLoading as ao,Ue as ap,hooks as aq,commonjsGlobal as ar,commonjsRequire as as,useFilteredNodes as at,_baseGetTag as au,isObjectLike_1 as av,isObject$8 as aw,isFunction$4 as ax,_Set as ay,_Symbol as az,useUserStore as b,defaultTheme$1 as b$,GITHUB_REPOSITORY as b0,LINK as b1,TWITTER_SOURCE as b2,WEB_PAGE as b3,DOCUMENT as b4,getPriceData as b5,isE2E as b6,sphinxBridge as b7,getLSat as b8,payLsat as b9,handleBreakpoints as bA,updateEdgeType as bB,postBluePrintType as bC,deleteEdgeType as bD,cloneDeep_1 as bE,useFieldArray as bF,OptionTypes as bG,NoParent as bH,editNodeSchemaUpdate as bI,createRoot as bJ,react as bK,GRAPH_GROUND_COLOR as bL,GRAPH_LIGHT_INTENSITY as bM,_MapCache as bN,_Uint8Array as bO,_getAllKeys as bP,_Stack as bQ,_getTag as bR,isBufferExports as bS,isTypedArray_1 as bT,isLength_1 as bU,_getPrototype as bV,request as bW,buffer$2 as bX,sphinx$1 as bY,Global as bZ,useTheme$2 as b_,noSpacePattern as ba,getNodeType as bb,getNodeSchemaTypes as bc,OPTIONS as bd,initialValue as be,getNodeContent as bf,MdCheckCircle as bg,MdCancel as bh,approveRadarData as bi,deleteRadarData as bj,getRadarData as bk,BaseTextInput as bl,MdCheck as bm,putRadarData as bn,getEdgeTypes as bo,getEdges as bp,postEdgeType as bq,putNodeData as br,postMergeTopics as bs,getTopicsData as bt,editNodeData as bu,deleteNode as bv,keyframes as bw,css as bx,changeNodeType as by,resolveBreakpointValues as bz,create as c,THEME_ID as c0,formatMuiErrorMessage as c1,deepmerge as c2,defaultSxConfig$1 as c3,isPlainObject$1 as c4,createStyled as c5,createTheme$1 as c6,useThemeProps$1 as c7,createUnarySpacing as c8,mergeBreakpointsInOrder as c9,getValue as ca,useTheme$3 as cb,index$1 as cc,useSchemaStore as d,useModal as e,getStats as f,getTotalProcessing as g,formatStatsResponse as h,lodashExports as i,jsxRuntimeExports as j,useAppStore as k,lottie as l,media as m,useAiSummaryStore as n,useNavigate as o,useSearchParams as p,useFeatureFlagStore as q,reactExports as r,styled$3 as s,useForm as t,useDataStore as u,FormProvider as v,updateBudget as w,_extends as x,getSchemaAll as y,api$1 as z}; diff --git a/build/assets/index-d3279c0a.js b/build/assets/index-0bfd4f43.js similarity index 97% rename from build/assets/index-d3279c0a.js rename to build/assets/index-0bfd4f43.js index 2d3f71760..e82d6517f 100644 --- a/build/assets/index-d3279c0a.js +++ b/build/assets/index-0bfd4f43.js @@ -1,4 +1,4 @@ -import{s as a,j as e,F as s,aV as g,aW as j,B as w,T as i,a as n,e as S,t as y,r as m,aU as k,aY as v,v as F,z as B}from"./index-8f1177e3.js";import{aL as T}from"./index-9e906cde.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` +import{s as a,j as e,F as s,aV as g,aW as j,B as w,T as i,a as n,e as S,t as y,r as m,aU as k,aY as v,v as F,z as B}from"./index-04f9e7e6.js";import{aL as T}from"./index-292d93f3.js";const E=({allowNextStep:r})=>e.jsxs(s,{p:12,children:[e.jsx(s,{align:"center",direction:"row",justify:"space-between",mb:25,children:e.jsx(s,{align:"center",direction:"row",children:e.jsx(z,{children:"Feedback"})})}),e.jsx(s,{mb:30,children:e.jsx(g,{id:"feedback-message",isTextArea:!0,maxLength:500,name:"message",placeholder:"Leave your feedback here ...",rules:j})}),e.jsx(s,{children:e.jsx(w,{color:"secondary","data-testid":"submit-feedback-btn",disabled:!r,size:"large",type:"submit",variant:"contained",children:"Submit"})})]}),z=a(i)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-8fe66f52.js b/build/assets/index-0f3ae51e.js similarity index 91% rename from build/assets/index-8fe66f52.js rename to build/assets/index-0f3ae51e.js index 2e0652836..c6c9c16d6 100644 --- a/build/assets/index-8fe66f52.js +++ b/build/assets/index-0f3ae51e.js @@ -1 +1 @@ -import{a9 as c}from"./index-8f1177e3.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function a(){}function n(){}n.resetWarningCache=a;var T=function(){function e(f,h,l,P,v,s){if(s!==m){var o=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 o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const _=c(u);export{_ as P,u as p}; +import{a9 as c}from"./index-04f9e7e6.js";var p={exports:{}},i="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",y=i,m=y;function a(){}function n(){}n.resetWarningCache=a;var T=function(){function e(f,h,l,P,v,s){if(s!==m){var o=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 o.name="Invariant Violation",o}}e.isRequired=e;function r(){return e}var t={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:n,resetWarningCache:a};return t.PropTypes=t,t};p.exports=T();var u=p.exports;const _=c(u);export{_ as P,u as p}; diff --git a/build/assets/index-feca9a2a.js b/build/assets/index-16a4de5c.js similarity index 96% rename from build/assets/index-feca9a2a.js rename to build/assets/index-16a4de5c.js index 392772a2c..aac5d08bb 100644 --- a/build/assets/index-feca9a2a.js +++ b/build/assets/index-16a4de5c.js @@ -1,4 +1,4 @@ -import{s as v,a as B,T as F,F as r,r as f,an as $,j as e,aV as J,aW as K,ba as Q,B as E,bb as U,q as X,bc as Z,e as D,t as N,N as O,aY as ee,v as te,bt as ne,by as re}from"./index-8f1177e3.js";import{p as V}from"./index-efc984a3.js";import{C as W}from"./ClipLoader-5d1618f3.js";import{n as Y}from"./index-9e906cde.js";import{A as G}from"./index-d9032019.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-ba6167ce.js";import"./index-26468b48.js";import"./Stack-55a7903f.js";import"./createSvgIcon-9333dda0.js";import"./TextareaAutosize-ba1f6749.js";const q=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=$();f.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{a(""),l("sourceType")},b=!t||h||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:s(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:Q}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(F)` +import{s as v,a as B,T as F,F as r,r as f,an as $,j as e,aV as J,aW as K,ba as Q,B as E,bb as U,q as X,bc as Z,e as D,t as N,N as O,aY as ee,v as te,bt as ne,by as re}from"./index-04f9e7e6.js";import{p as V}from"./index-efc984a3.js";import{C as W}from"./ClipLoader-c5e3f404.js";import{n as Y}from"./index-292d93f3.js";import{A as G}from"./index-30313f81.js";import{c as oe}from"./index-64f1c910.js";import"./three.module-ba6167ce.js";import"./index-782ff866.js";import"./Stack-9bdcdce4.js";import"./createSvgIcon-a3d1c07a.js";import"./TextareaAutosize-6a1de228.js";const q=a=>a.charAt(0).toUpperCase()+a.slice(1).replace(/_/g," "),k=a=>a?[...a].sort((l,x)=>Number(x.required)-Number(l.required)):[],H=a=>a?a.filter(l=>l.key!=="node_key"):[],ae=({handleSelectType:a,skipToStep:l,nodeType:x,selectedValues:n})=>{const[h,w]=f.useState(!1),[m,C]=f.useState(),{watch:j,formState:{isValid:t}}=$();f.useEffect(()=>{(async()=>{w(!0);const o=await U(x),T=V(o),A=H(T);C(A),w(!1)})()},[x,j]);const s=c=>c.charAt(0).toUpperCase()+c.slice(1).replace(/_/g," "),p=(m?[...m].sort((c,o)=>c.required&&!o.required?-1:!c.required&&o.required?1:0):[]).filter(c=>!!(c.required&&!Object.values(n).includes(c.key))),S=()=>{a(""),l("sourceType")},b=!t||h||p.some(c=>{var o;return c.required&&!((o=j(c.key))!=null&&o.trim())});return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(se,{children:"Required Properties"})})}),e.jsx(ie,{children:h?e.jsx(r,{style:{margin:"auto"},children:e.jsx(W,{color:B.SECONDARY_BLUE})}):e.jsx(r,{className:"input__wrapper",children:p==null?void 0:p.map(({key:c,required:o})=>e.jsx(e.Fragment,{children:e.jsxs(ce,{children:[e.jsx(F,{children:s(c)}),e.jsx(J,{id:"item-name",maxLength:50,name:c,placeholder:o?"Required":"Optional",rules:{...o?{...K,pattern:{message:"No leading whitespace allowed",value:Q}}:{}}})]})}))})}),e.jsxs(r,{direction:"row",children:[e.jsx(r,{grow:1,children:e.jsx(E,{color:"secondary",onClick:S,size:"large",variant:"contained",children:"Prev"})}),e.jsx(r,{grow:1,ml:20,children:e.jsx(E,{color:"secondary",disabled:b,onClick:()=>l("createConfirmation"),size:"large",variant:"contained",children:"Next"})})]})]})},se=v(F)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-971683ff.js b/build/assets/index-16d81c1b.js similarity index 98% rename from build/assets/index-971683ff.js rename to build/assets/index-16d81c1b.js index 94d24858a..89c5c2dff 100644 --- a/build/assets/index-971683ff.js +++ b/build/assets/index-16d81c1b.js @@ -1,4 +1,4 @@ -import{r as h,L as Q,M as X,O as F,x as I,S as K,H as Z,j as e,U as J,V as ee,Y as D,ak as gt,P as ne,al as ft,s as c,a as x,T as N,B as W,F as g,e as M,bf as mt,ad as se,J as re,u as le,bg as bt,bh as jt,ag as yt,bi as wt,bj as Ve,A as ae,bk as qe,i as we,aZ as _e,a_ as Ne,a$ as ze,bl as Ct,bm as vt,ac as Tt,bn as $t,b as Qe,C as te,bo as St,bd as Xe,bp as Ke,t as Ce,aY as ce,v as ve,bq as kt,aV as _t,aW as Nt,br as de,bs as zt,k as Lt,q as It,a7 as Bt}from"./index-8f1177e3.js";import{ao as Rt,g as Mt,P as Te,ap as je,f as q,aq as Et,ar as At,s as Ft,Y as Ze,as as Je,at as et,au as tt,a9 as st,av as Ot,aw as Wt,ax as Ht,ay as Le,az as Ie,p as Be,aA as ge,aB as Pt,q as Dt}from"./index-9e906cde.js";import{T as Re,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-0d6f6cd8.js";import{C as z}from"./ClipLoader-5d1618f3.js";import{I as Vt,A as Se,T as lt}from"./index-d9032019.js";import{u as B}from"./index-2ee36238.js";import{T as Me}from"./Typography-429e0f96.js";import{T as qt,a as Qt}from"./Tabs-daec6b20.js";import"./index-26468b48.js";import"./Stack-55a7903f.js";import"./createSvgIcon-9333dda0.js";import"./TextareaAutosize-ba1f6749.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return Q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Ee="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Ee,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Ee?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return Q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return Q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=F("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid +import{r as h,L as Q,M as X,O as F,x as I,S as K,H as Z,j as e,U as J,V as ee,Y as D,ak as gt,P as ne,al as ft,s as c,a as x,T as N,B as W,F as g,e as M,bf as mt,ad as se,J as re,u as le,bg as bt,bh as jt,ag as yt,bi as wt,bj as Ve,A as ae,bk as qe,i as we,aZ as _e,a_ as Ne,a$ as ze,bl as Ct,bm as vt,ac as Tt,bn as $t,b as Qe,C as te,bo as St,bd as Xe,bp as Ke,t as Ce,aY as ce,v as ve,bq as kt,aV as _t,aW as Nt,br as de,bs as zt,k as Lt,q as It,a7 as Bt}from"./index-04f9e7e6.js";import{ao as Rt,g as Mt,P as Te,ap as je,f as q,aq as Et,ar as At,s as Ft,Y as Ze,as as Je,at as et,au as tt,a9 as st,av as Ot,aw as Wt,ax as Ht,ay as Le,az as Ie,p as Be,aA as ge,aB as Pt,q as Dt}from"./index-292d93f3.js";import{T as Re,s as U,a as ot,S as nt,A as $e,E as Ut,D as Gt,b as rt,Q as at,V as it,c as Yt}from"./constants-2b0c7022.js";import{C as z}from"./ClipLoader-c5e3f404.js";import{I as Vt,A as Se,T as lt}from"./index-30313f81.js";import{u as B}from"./index-a5296771.js";import{T as Me}from"./Typography-1878e488.js";import{T as qt,a as Qt}from"./Tabs-bdc00dfa.js";import"./index-782ff866.js";import"./Stack-9bdcdce4.js";import"./createSvgIcon-a3d1c07a.js";import"./TextareaAutosize-6a1de228.js";const Xt=h.createContext(),ct=Xt;function Kt(t){return Q("MuiTable",t)}X("MuiTable",["root","stickyHeader"]);const Zt=["className","component","padding","size","stickyHeader"],Jt=t=>{const{classes:s,stickyHeader:n}=t;return ee({root:["root",n&&"stickyHeader"]},Kt,s)},es=F("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},s.stickyHeader&&{borderCollapse:"separate"})),Ee="table",ts=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTable"}),{className:l,component:i=Ee,padding:a="normal",size:o="medium",stickyHeader:d=!1}=r,u=Z(r,Zt),m=I({},r,{component:i,padding:a,size:o,stickyHeader:d}),p=Jt(m),b=h.useMemo(()=>({padding:a,size:o,stickyHeader:d}),[a,o,d]);return e.jsx(ct.Provider,{value:b,children:e.jsx(es,I({as:i,role:i===Ee?null:"table",ref:n,className:J(p.root,l),ownerState:m},u))})}),pe=ts,ss=h.createContext(),xe=ss;function os(t){return Q("MuiTableBody",t)}X("MuiTableBody",["root"]);const ns=["className","component"],rs=t=>{const{classes:s}=t;return ee({root:["root"]},os,s)},as=F("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-row-group"}),is={variant:"body"},Ae="tbody",ls=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableBody"}),{className:l,component:i=Ae}=r,a=Z(r,ns),o=I({},r,{component:i}),d=rs(o);return e.jsx(xe.Provider,{value:is,children:e.jsx(as,I({className:J(d.root,l),as:i,ref:n,role:i===Ae?null:"rowgroup",ownerState:o},a))})}),cs=ls;function ds(t){return Q("MuiTableCell",t)}const ps=X("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),xs=ps,hs=["align","className","component","padding","scope","size","sortDirection","variant"],us=t=>{const{classes:s,variant:n,align:r,padding:l,size:i,stickyHeader:a}=t,o={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${D(r)}`,l!=="normal"&&`padding${D(l)}`,`size${D(i)}`]};return ee(o,ds,s)},gs=F("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,s[n.variant],s[`size${D(n.size)}`],n.padding!=="normal"&&s[`padding${D(n.padding)}`],n.align!=="inherit"&&s[`align${D(n.align)}`],n.stickyHeader&&s.stickyHeader]}})(({theme:t,ownerState:s})=>I({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?`1px solid ${t.vars.palette.TableCell.border}`:`1px solid ${t.palette.mode==="light"?gt(ne(t.palette.divider,1),.88):ft(ne(t.palette.divider,1),.68)}`,textAlign:"left",padding:16},s.variant==="head"&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},s.variant==="body"&&{color:(t.vars||t).palette.text.primary},s.variant==="footer"&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},s.size==="small"&&{padding:"6px 16px",[`&.${xs.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},s.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},s.padding==="none"&&{padding:0},s.align==="left"&&{textAlign:"left"},s.align==="center"&&{textAlign:"center"},s.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},s.align==="justify"&&{textAlign:"justify"},s.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),fs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableCell"}),{align:l="inherit",className:i,component:a,padding:o,scope:d,size:u,sortDirection:m,variant:p}=r,b=Z(r,hs),j=h.useContext(ct),y=h.useContext(xe),C=y&&y.variant==="head";let w;a?w=a:w=C?"th":"td";let $=d;w==="td"?$=void 0:!$&&C&&($="col");const S=p||y&&y.variant,A=I({},r,{align:l,component:w,padding:o||(j&&j.padding?j.padding:"normal"),size:u||(j&&j.size?j.size:"medium"),sortDirection:m,stickyHeader:S==="head"&&j&&j.stickyHeader,variant:S}),O=us(A);let L=null;return m&&(L=m==="asc"?"ascending":"descending"),e.jsx(gs,I({as:w,ref:n,className:J(O.root,i),"aria-sort":L,scope:$,ownerState:A},b))}),ms=fs;function bs(t){return Q("MuiTableHead",t)}X("MuiTableHead",["root"]);const js=["className","component"],ys=t=>{const{classes:s}=t;return ee({root:["root"]},bs,s)},ws=F("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,s)=>s.root})({display:"table-header-group"}),Cs={variant:"head"},Fe="thead",vs=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableHead"}),{className:l,component:i=Fe}=r,a=Z(r,js),o=I({},r,{component:i}),d=ys(o);return e.jsx(xe.Provider,{value:Cs,children:e.jsx(ws,I({as:i,className:J(d.root,l),ref:n,role:i===Fe?null:"rowgroup",ownerState:o},a))})}),dt=vs;function Ts(t){return Q("MuiTableRow",t)}const $s=X("MuiTableRow",["root","selected","hover","head","footer"]),Oe=$s,Ss=["className","component","hover","selected"],ks=t=>{const{classes:s,selected:n,hover:r,head:l,footer:i}=t;return ee({root:["root",n&&"selected",r&&"hover",l&&"head",i&&"footer"]},Ts,s)},_s=F("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,s)=>{const{ownerState:n}=t;return[s.root,n.head&&s.head,n.footer&&s.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${Oe.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Oe.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:ne(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:ne(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),We="tr",Ns=h.forwardRef(function(s,n){const r=K({props:s,name:"MuiTableRow"}),{className:l,component:i=We,hover:a=!1,selected:o=!1}=r,d=Z(r,Ss),u=h.useContext(xe),m=I({},r,{component:i,hover:a,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=ks(m);return e.jsx(_s,I({as:i,ref:n,className:J(p.root,l),role:i===We?null:"row",ownerState:m},d))}),G=Ns;function ye(t){const s=new Date(Number(t)*1e3),n=s.getFullYear(),r=(1+s.getMonth()).toString().padStart(2,"0");return`${s.getDate().toString().padStart(2,"0")}/${r}/${n}`}const f=c(ms)` && { color: ${x.white}; diff --git a/build/assets/index-782eeb55.js b/build/assets/index-25d86406.js similarity index 98% rename from build/assets/index-782eeb55.js rename to build/assets/index-25d86406.js index af2d4977b..fe476bef7 100644 --- a/build/assets/index-782eeb55.js +++ b/build/assets/index-25d86406.js @@ -1,4 +1,4 @@ -import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as T,b2 as U,b3 as D,b4 as O,s as p,a as u,b as Z,r as f,j as e,F as r,B as C,aX as J,T as z,b5 as K,aV as X,aW as Q,e as ee,u as te,t as se,aU as ne,N as m,aY as oe,v as re,b6 as ae,ag as ie,b7 as ce,b8 as le,z as de,w as ue,b9 as pe}from"./index-8f1177e3.js";import{a9 as xe}from"./index-9e906cde.js";import{f as he}from"./index-c7f888ab.js";import{C as fe}from"./ClipLoader-5d1618f3.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?T:ve.test(t)?E:A.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Be=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[he(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(xe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Te=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{aZ as j,a_ as E,a$ as b,b0 as R,b1 as T,b2 as U,b3 as D,b4 as O,s as p,a as u,b as Z,r as f,j as e,F as r,B as C,aX as J,T as z,b5 as K,aV as X,aW as Q,e as ee,u as te,t as se,aU as ne,N as m,aY as oe,v as re,b6 as ae,ag as ie,b7 as ce,b8 as le,z as de,w as ue,b9 as pe}from"./index-04f9e7e6.js";import{a9 as xe}from"./index-292d93f3.js";import{f as he}from"./index-6d28c8a5.js";import{C as fe}from"./ClipLoader-c5e3f404.js";const A=/\b(?:twitter\.com|x\.com)\/(?:@)?([\w_]+)(?:$|\?[^/]*$)/,we=/(https?:\/\/)?(www\.)?youtube\.com\/watch\?v=([A-Za-z0-9_-]+)/,ge=/(https?:\/\/)?(www\.)?youtube\.com\/live\/([A-Za-z0-9_-]+)/,me=/(https?:\/\/)?(www\.)?youtu\.be\/([A-Za-z0-9_-]+)/,ye=/https:\/\/twitter\.com\/i\/spaces\/([A-Za-z0-9_-]+)/,be=/https:\/\/(twitter\.com|x\.com)\/[^/]+\/status\/(\d+)/,je=/(https?:\/\/)?([A-Za-z0-9_-]+)\.mp3/,Se=/(https?:\/\/)?(.*\.)?.+\/(feed|rss|rss\.xml|.*\?(feed|format)=rss)(\/.*)?$/,ve=/https?:\/\/(www\.)?youtube\.com\/(user\/)?(@)?([\w-]+)/,_e=/^(https?|ftp):\/\/[^\s/$.?#].[^\s]*$/,Ee=/https:\/\/twitter\.com\/i\/broadcasts\/([A-Za-z0-9_-]+)/,Re=/https:\/\/github\.com\/[\w-]+\/[\w-]+/;async function Ce(t){try{const n=(await fetch(t,{method:"HEAD"})).headers.get("Content-Type");return(n==null?void 0:n.includes("application/rss+xml"))??!1}catch{return!1}}async function ze(t){return[ge,Ee,we,me,ye,je].some(n=>n.test(t))?T:ve.test(t)?E:A.test(t)?j:be.test(t)?U:Se.test(t)?b:Re.test(t)?R:_e.test(t)?await Ce(t)?b:D:O}const $e=(t,s="")=>{const o=(s===j?A:/@(\w+)/).exec(t);return o?o[1]:null},_=t=>!!t&&[j,E,b,R].includes(t),Be=({onClick:t,loading:s,type:n,error:o})=>{const y=Z(i=>i.budget),[a,x]=f.useState(10),d=_(n)?"radar":"add_node";return f.useEffect(()=>{(async()=>{try{const c=await K(d);x(c.data.price)}catch(c){console.error("cannot fetch",c)}})()},[d]),e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(r,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(r,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[a," sats"]})]}),e.jsxs(Ae,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[he(y)," sats"]})]})]}),e.jsx(r,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:s||!!o,onClick:t,size:"large",startIcon:s?e.jsx(L,{children:e.jsx(fe,{color:u.lightGray,size:12})}):e.jsxs(L,{children:[" ",e.jsx(xe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),o?e.jsx(Pe,{children:e.jsxs(Ne,{children:[e.jsx(J,{className:"errorIcon"}),e.jsx("span",{children:o})]})}):null]})},Te=p(r).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${u.GRAY7}; diff --git a/build/assets/index-6dffcdfe.js b/build/assets/index-27a6e103.js similarity index 96% rename from build/assets/index-6dffcdfe.js rename to build/assets/index-27a6e103.js index e75b6a6ee..ad4df4767 100644 --- a/build/assets/index-6dffcdfe.js +++ b/build/assets/index-27a6e103.js @@ -1,4 +1,4 @@ -import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aT as G,aU as k,N as y,v as z,aV as w,aW as M,aX as D,e as j,aY as I}from"./index-8f1177e3.js";import{h as A,t as R}from"./index-9e906cde.js";import{C as B}from"./ClipLoader-5d1618f3.js";import{T as E,a as L}from"./Tabs-daec6b20.js";import"./createSvgIcon-9333dda0.js";const V=()=>(A(R(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` +import{s as t,a as o,F as n,T as S,r as b,j as e,B as v,t as C,k as $,b as T,aT as G,aU as k,N as y,v as z,aV as w,aW as M,aX as D,e as j,aY as I}from"./index-04f9e7e6.js";import{h as A,t as R}from"./index-292d93f3.js";import{C as B}from"./ClipLoader-c5e3f404.js";import{T as E,a as L}from"./Tabs-bdc00dfa.js";import"./createSvgIcon-a3d1c07a.js";const V=()=>(A(R(a=>[a.graphStyle,a.setGraphStyle])),null);t(n).attrs({direction:"row",align:"center",justify:"space-between"})` width: 447px; height: 48px; background: ${o.appearanceBg}; diff --git a/build/assets/index-9e906cde.js b/build/assets/index-292d93f3.js similarity index 82% rename from build/assets/index-9e906cde.js rename to build/assets/index-292d93f3.js index 1d6ab726f..2f02436f3 100644 --- a/build/assets/index-9e906cde.js +++ b/build/assets/index-292d93f3.js @@ -1,4 +1,4 @@ -import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P as A1,r as H,S as R1,j as r,U as c1,V as U1,X as m3,Y as k1,Z as d1,$ as _2,a0 as k2,a1 as w3,a2 as y2,a3 as G2,c as W2,u as z1,s as D,a as i1,F as f1,B as X2,C as C2,a4 as v3,a5 as _3,k as Y2,b as k3,a6 as y3,I as j3}from"./index-8f1177e3.js";const L3=e=>{const[t,n,i]=e.split(":"),s=parseInt(t,10),o=parseInt(n,10),l=parseInt(i,10);return s*3600+o*60+l};function j2(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function H3(e,t=166){let n;function i(...s){const o=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(o,t)}return i.clear=()=>{clearTimeout(n)},i}function s1(e){return e&&e.ownerDocument||document}function P1(e){return s1(e).defaultView||window}function M3(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const V3=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},L2=V3,H2={disabled:!1};var b3=function(t){return t.scrollTop},Z1="unmounted",C1="exited",a1="entering",_1="entered",i2="exiting",l1=function(e){g3(t,e);function t(i,s){var o;o=e.call(this,i,s)||this;var l=s,C=l&&!l.isMounting?i.enter:i.appear,a;return o.appearStatus=null,i.in?C?(a=C1,o.appearStatus=a1):a=_1:i.unmountOnExit||i.mountOnEnter?a=Z1:a=C1,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(s,o){var l=s.in;return l&&o.status===Z1?{status:C1}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var o=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==a1&&l!==_1&&(o=a1):(l===a1||l===_1)&&(o=i2)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,o,l,C;return o=l=C=s,s!=null&&typeof s!="number"&&(o=s.exit,l=s.enter,C=s.appear!==void 0?s.appear:l),{exit:o,enter:l,appear:C}},n.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===a1){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:O1.findDOMNode(this);l&&b3(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===C1&&this.setState({status:Z1})},n.performEnter=function(s){var o=this,l=this.props.enter,C=this.context?this.context.isMounting:s,a=this.props.nodeRef?[C]:[O1.findDOMNode(this),C],h=a[0],c=a[1],u=this.getTimeouts(),p=C?u.appear:u.enter;if(!s&&!l||H2.disabled){this.safeSetState({status:_1},function(){o.props.onEntered(h)});return}this.props.onEnter(h,c),this.safeSetState({status:a1},function(){o.props.onEntering(h,c),o.onTransitionEnd(p,function(){o.safeSetState({status:_1},function(){o.props.onEntered(h,c)})})})},n.performExit=function(){var s=this,o=this.props.exit,l=this.getTimeouts(),C=this.props.nodeRef?void 0:O1.findDOMNode(this);if(!o||H2.disabled){this.safeSetState({status:C1},function(){s.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:i2},function(){s.props.onExiting(C),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:C1},function(){s.props.onExited(C)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},n.setNextCallback=function(s){var o=this,l=!0;return this.nextCallback=function(C){l&&(l=!1,o.nextCallback=null,s(C))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:O1.findDOMNode(this),C=s==null&&!this.props.addEndListener;if(!l||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=a[0],c=a[1];this.props.addEndListener(h,c)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===Z1)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var C=r1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b1.createElement(q2.Provider,{value:null},typeof l=="function"?l(s,C):b1.cloneElement(b1.Children.only(l),C))},t}(b1.Component);l1.contextType=q2;l1.propTypes={};function v1(){}l1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v1,onEntering:v1,onEntered:v1,onExit:v1,onExiting:v1,onExited:v1};l1.UNMOUNTED=Z1;l1.EXITED=C1;l1.ENTERING=a1;l1.ENTERED=_1;l1.EXITING=i2;const K2=l1,Q2=e=>e.scrollTop;function F1(e,t){var n,i;const{timeout:s,easing:o,style:l={}}=e;return{duration:(n=l.transitionDuration)!=null?n:typeof s=="number"?s:s[t.mode]||0,easing:(i=l.transitionTimingFunction)!=null?i:typeof o=="object"?o[t.mode]:o,delay:l.transitionDelay}}function Z3(e){return T1("MuiPaper",e)}N1("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const E3=["className","component","elevation","square","variant"],S3=e=>{const{square:t,elevation:n,variant:i,classes:s}=e,o={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return U1(o,Z3,s)},I3=u1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return b({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&b({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${A1("#fff",L2(t.elevation))}, ${A1("#fff",L2(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),P3=H.forwardRef(function(t,n){const i=R1({props:t,name:"MuiPaper"}),{className:s,component:o="div",elevation:l=1,square:C=!1,variant:a="elevation"}=i,h=r1(i,E3),c=b({},i,{component:o,elevation:l,square:C,variant:a}),u=S3(c);return r.jsx(I3,b({as:o,ownerState:c,className:c1(u.root,s),ref:n},h))}),B3=P3;function T3(e){return T1("MuiIconButton",e)}const N3=N1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),R3=N3,U3=["edge","children","className","color","disabled","disableFocusRipple","size"],O3=e=>{const{classes:t,disabled:n,color:i,edge:s,size:o}=e,l={root:["root",n&&"disabled",i!=="default"&&`color${k1(i)}`,s&&`edge${k1(s)}`,`size${k1(o)}`]};return U1(l,T3,t)},$3=u1(m3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${k1(n.color)}`],n.edge&&t[`edge${k1(n.edge)}`],t[`size${k1(n.size)}`]]}})(({theme:e,ownerState:t})=>b({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const i=(n=(e.vars||e).palette)==null?void 0:n[t.color];return b({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&b({color:i==null?void 0:i.main},!t.disableRipple&&{"&:hover":b({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:A1(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${R3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),A3=H.forwardRef(function(t,n){const i=R1({props:t,name:"MuiIconButton"}),{edge:s=!1,children:o,className:l,color:C="default",disabled:a=!1,disableFocusRipple:h=!1,size:c="medium"}=i,u=r1(i,U3),p=b({},i,{edge:s,color:C,disabled:a,disableFocusRipple:h,size:c}),x=O3(p);return r.jsx($3,b({className:c1(x.root,l),centerRipple:!0,focusRipple:!h,disabled:a,ref:n,ownerState:p},u,{children:o}))}),J2=A3;function e3(e){return typeof e=="string"}function z3(e,t,n){return e===void 0||e3(e)?t:b({},t,{ownerState:b({},t.ownerState,n)})}function t3(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!t.includes(i)).forEach(i=>{n[i]=e[i]}),n}function F3(e,t,n){return typeof e=="function"?e(t,n):e}function n3(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function D3(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:s,className:o}=e;if(!t){const x=M2(n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),f=b({},n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),_=b({},n,s,i);return x.length>0&&(_.className=x),Object.keys(f).length>0&&(_.style=f),{props:_,internalRef:void 0}}const l=t3(b({},s,i)),C=V2(i),a=V2(s),h=t(l),c=M2(h==null?void 0:h.className,n==null?void 0:n.className,o,s==null?void 0:s.className,i==null?void 0:i.className),u=b({},h==null?void 0:h.style,n==null?void 0:n.style,s==null?void 0:s.style,i==null?void 0:i.style),p=b({},h,n,a,C);return c.length>0&&(p.className=c),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:h.ref}}const q3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function D1(e){var t;const{elementType:n,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:o=!1}=e,l=r1(e,q3),C=o?{}:F3(i,s),{props:a,internalRef:h}=D3(b({},l,{externalSlotProps:C})),c=d1(h,C==null?void 0:C.ref,(t=e.additionalProps)==null?void 0:t.ref);return z3(n,b({},a,{ref:c}),s)}const G3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function W3(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function X3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Y3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||X3(e))}function K3(e){const t=[],n=[];return Array.from(e.querySelectorAll(G3)).forEach((i,s)=>{const o=W3(i);o===-1||!Y3(i)||(o===0?t.push(i):n.push({documentOrder:s,tabIndex:o,node:i}))}),n.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(t)}function Q3(){return!0}function J3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:o=K3,isEnabled:l=Q3,open:C}=e,a=H.useRef(!1),h=H.useRef(null),c=H.useRef(null),u=H.useRef(null),p=H.useRef(null),x=H.useRef(!1),f=H.useRef(null),_=d1(t.ref,f),w=H.useRef(null);H.useEffect(()=>{!C||!f.current||(x.current=!n)},[n,C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current);return f.current.contains(g.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),x.current&&f.current.focus()),()=>{s||(u.current&&u.current.focus&&(a.current=!0,u.current.focus()),u.current=null)}},[C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current),v=j=>{w.current=j,!(i||!l()||j.key!=="Tab")&&g.activeElement===f.current&&j.shiftKey&&(a.current=!0,c.current&&c.current.focus())},m=()=>{const j=f.current;if(j===null)return;if(!g.hasFocus()||!l()||a.current){a.current=!1;return}if(j.contains(g.activeElement)||i&&g.activeElement!==h.current&&g.activeElement!==c.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!x.current)return;let L=[];if((g.activeElement===h.current||g.activeElement===c.current)&&(L=o(f.current)),L.length>0){var M,S;const P=!!((M=w.current)!=null&&M.shiftKey&&((S=w.current)==null?void 0:S.key)==="Tab"),V=L[0],U=L[L.length-1];typeof V!="string"&&typeof U!="string"&&(P?U.focus():V.focus())}else j.focus()};g.addEventListener("focusin",m),g.addEventListener("keydown",v,!0);const y=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(y),g.removeEventListener("focusin",m),g.removeEventListener("keydown",v,!0)}},[n,i,s,l,C,o]);const d=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0,p.current=g.target;const v=t.props.onFocus;v&&v(g)},k=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0};return r.jsxs(H.Fragment,{children:[r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:h,"data-testid":"sentinelStart"}),H.cloneElement(t,{ref:_,onFocus:d}),r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:c,"data-testid":"sentinelEnd"})]})}function e5(e){return typeof e=="function"?e():e}const t5=H.forwardRef(function(t,n){const{children:i,container:s,disablePortal:o=!1}=t,[l,C]=H.useState(null),a=d1(H.isValidElement(i)?i.ref:null,n);if(_2(()=>{o||C(e5(s)||document.body)},[s,o]),_2(()=>{if(l&&!o)return k2(n,l),()=>{k2(n,null)}},[n,l,o]),o){if(H.isValidElement(i)){const h={ref:a};return H.cloneElement(i,h)}return r.jsx(H.Fragment,{children:i})}return r.jsx(H.Fragment,{children:l&&w3.createPortal(i,l)})});function n5(e){const t=s1(e);return t.body===e?P1(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function I1(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function b2(e){return parseInt(P1(e).getComputedStyle(e).paddingRight,10)||0}function r5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||i}function Z2(e,t,n,i,s){const o=[t,n,...i];[].forEach.call(e.children,l=>{const C=o.indexOf(l)===-1,a=!r5(l);C&&a&&I1(l,s)})}function K1(e,t){let n=-1;return e.some((i,s)=>t(i)?(n=s,!0):!1),n}function i5(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(n5(i)){const l=M3(s1(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${b2(i)+l}px`;const C=s1(i).querySelectorAll(".mui-fixed");[].forEach.call(C,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${b2(a)+l}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=s1(i).body;else{const l=i.parentElement,C=P1(i);o=(l==null?void 0:l.nodeName)==="HTML"&&C.getComputedStyle(l).overflowY==="scroll"?l:i}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:l,property:C})=>{o?l.style.setProperty(C,o):l.style.removeProperty(C)})}}function s5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class o5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let i=this.modals.indexOf(t);if(i!==-1)return i;i=this.modals.length,this.modals.push(t),t.modalRef&&I1(t.modalRef,!1);const s=s5(n);Z2(n,t.mount,t.modalRef,s,!0);const o=K1(this.containers,l=>l.container===n);return o!==-1?(this.containers[o].modals.push(t),i):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),i)}mount(t,n){const i=K1(this.containers,o=>o.modals.indexOf(t)!==-1),s=this.containers[i];s.restore||(s.restore=i5(s,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const s=K1(this.containers,l=>l.modals.indexOf(t)!==-1),o=this.containers[s];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&I1(t.modalRef,n),Z2(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&I1(l.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function l5(e){return typeof e=="function"?e():e}function C5(e){return e?e.props.hasOwnProperty("in"):!1}const a5=new o5;function c5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,manager:s=a5,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:C,children:a,onClose:h,open:c,rootRef:u}=e,p=H.useRef({}),x=H.useRef(null),f=H.useRef(null),_=d1(f,u),[w,d]=H.useState(!c),k=C5(a);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const v=()=>s1(x.current),m=()=>(p.current.modalRef=f.current,p.current.mount=x.current,p.current),y=()=>{s.mount(m(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},j=y2(()=>{const E=l5(t)||v().body;s.add(m(),E),f.current&&y()}),L=H.useCallback(()=>s.isTopModal(m()),[s]),M=y2(E=>{x.current=E,E&&(c&&L()?y():f.current&&I1(f.current,g))}),S=H.useCallback(()=>{s.remove(m(),g)},[g,s]);H.useEffect(()=>()=>{S()},[S]),H.useEffect(()=>{c?j():(!k||!o)&&S()},[c,S,k,o,j]);const P=E=>I=>{var z;(z=E.onKeyDown)==null||z.call(E,I),!(I.key!=="Escape"||I.which===229||!L())&&(n||(I.stopPropagation(),h&&h(I,"escapeKeyDown")))},V=E=>I=>{var z;(z=E.onClick)==null||z.call(E,I),I.target===I.currentTarget&&h&&h(I,"backdropClick")};return{getRootProps:(E={})=>{const I=t3(e);delete I.onTransitionEnter,delete I.onTransitionExited;const z=b({},I,E);return b({role:"presentation"},z,{onKeyDown:P(z),ref:_})},getBackdropProps:(E={})=>{const I=E;return b({"aria-hidden":!0},I,{onClick:V(I),open:c})},getTransitionProps:()=>{const E=()=>{d(!1),l&&l()},I=()=>{d(!0),C&&C(),o&&S()};return{onEnter:j2(E,a==null?void 0:a.props.onEnter),onExited:j2(I,a==null?void 0:a.props.onExited)}},rootRef:_,portalRef:M,isTopModal:L,exited:w,hasTransition:k}}const h5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],u5={entering:{opacity:1},entered:{opacity:1}},d5=H.forwardRef(function(t,n){const i=G2(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:C,easing:a,in:h,onEnter:c,onEntered:u,onEntering:p,onExit:x,onExited:f,onExiting:_,style:w,timeout:d=s,TransitionComponent:k=K2}=t,g=r1(t,h5),v=H.useRef(null),m=d1(v,C.ref,n),y=B=>Z=>{if(B){const E=v.current;Z===void 0?B(E):B(E,Z)}},j=y(p),L=y((B,Z)=>{Q2(B);const E=F1({style:w,timeout:d,easing:a},{mode:"enter"});B.style.webkitTransition=i.transitions.create("opacity",E),B.style.transition=i.transitions.create("opacity",E),c&&c(B,Z)}),M=y(u),S=y(_),P=y(B=>{const Z=F1({style:w,timeout:d,easing:a},{mode:"exit"});B.style.webkitTransition=i.transitions.create("opacity",Z),B.style.transition=i.transitions.create("opacity",Z),x&&x(B)}),V=y(f),U=B=>{o&&o(v.current,B)};return r.jsx(k,b({appear:l,in:h,nodeRef:v,onEnter:L,onEntered:M,onEntering:j,onExit:P,onExited:V,onExiting:S,addEndListener:U,timeout:d},g,{children:(B,Z)=>H.cloneElement(C,b({style:b({opacity:0,visibility:B==="exited"&&!h?"hidden":void 0},u5[B],w,C.props.style),ref:m},Z))}))}),f5=d5;function p5(e){return T1("MuiBackdrop",e)}N1("MuiBackdrop",["root","invisible"]);const x5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g5=e=>{const{classes:t,invisible:n}=e;return U1({root:["root",n&&"invisible"]},p5,t)},m5=u1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>b({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),w5=H.forwardRef(function(t,n){var i,s,o;const l=R1({props:t,name:"MuiBackdrop"}),{children:C,className:a,component:h="div",components:c={},componentsProps:u={},invisible:p=!1,open:x,slotProps:f={},slots:_={},TransitionComponent:w=f5,transitionDuration:d}=l,k=r1(l,x5),g=b({},l,{component:h,invisible:p}),v=g5(g),m=(i=f.root)!=null?i:u.root;return r.jsx(w,b({in:x,timeout:d},k,{children:r.jsx(m5,b({"aria-hidden":!0},m,{as:(s=(o=_.root)!=null?o:c.Root)!=null?s:h,className:c1(v.root,a,m==null?void 0:m.className),ownerState:b({},g,m==null?void 0:m.ownerState),classes:v,ref:n,children:C}))}))}),v5=w5;function _5(e){return T1("MuiModal",e)}N1("MuiModal",["root","hidden","backdrop"]);const k5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],y5=e=>{const{open:t,exited:n,classes:i}=e;return U1({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_5,i)},j5=u1("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),L5=u1(v5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),H5=H.forwardRef(function(t,n){var i,s,o,l,C,a;const h=R1({name:"MuiModal",props:t}),{BackdropComponent:c=L5,BackdropProps:u,className:p,closeAfterTransition:x=!1,children:f,container:_,component:w,components:d={},componentsProps:k={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:m=!1,disablePortal:y=!1,disableRestoreFocus:j=!1,disableScrollLock:L=!1,hideBackdrop:M=!1,keepMounted:S=!1,onBackdropClick:P,open:V,slotProps:U,slots:B}=h,Z=r1(h,k5),E=b({},h,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:m,disablePortal:y,disableRestoreFocus:j,disableScrollLock:L,hideBackdrop:M,keepMounted:S}),{getRootProps:I,getBackdropProps:z,getTransitionProps:R,portalRef:W,isTopModal:O,exited:$,hasTransition:J}=c5(b({},E,{rootRef:n})),q=b({},E,{exited:$}),A=y5(q),p1={};if(f.props.tabIndex===void 0&&(p1.tabIndex="-1"),J){const{onEnter:T,onExited:F}=R();p1.onEnter=T,p1.onExited=F}const x1=(i=(s=B==null?void 0:B.root)!=null?s:d.Root)!=null?i:j5,L1=(o=(l=B==null?void 0:B.backdrop)!=null?l:d.Backdrop)!=null?o:c,H1=(C=U==null?void 0:U.root)!=null?C:k.root,g1=(a=U==null?void 0:U.backdrop)!=null?a:k.backdrop,X1=D1({elementType:x1,externalSlotProps:H1,externalForwardedProps:Z,getSlotProps:I,additionalProps:{ref:n,as:w},ownerState:q,className:c1(p,H1==null?void 0:H1.className,A==null?void 0:A.root,!q.open&&q.exited&&(A==null?void 0:A.hidden))}),Y1=D1({elementType:L1,externalSlotProps:g1,additionalProps:u,getSlotProps:T=>z(b({},T,{onClick:F=>{P&&P(F),T!=null&&T.onClick&&T.onClick(F)}})),className:c1(g1==null?void 0:g1.className,u==null?void 0:u.className,A==null?void 0:A.backdrop),ownerState:q});return!S&&!V&&(!J||$)?null:r.jsx(t5,{ref:W,container:_,disablePortal:y,children:r.jsxs(x1,b({},X1,{children:[!M&&c?r.jsx(L1,b({},Y1)):null,r.jsx(J3,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:j,isEnabled:O,open:V,children:H.cloneElement(f,p1)})]}))})}),M5=H5,V5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function s2(e){return`scale(${e}, ${e**2})`}const b5={entering:{opacity:1,transform:s2(1)},entered:{opacity:1,transform:"none"}},Q1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),r3=H.forwardRef(function(t,n){const{addEndListener:i,appear:s=!0,children:o,easing:l,in:C,onEnter:a,onEntered:h,onEntering:c,onExit:u,onExited:p,onExiting:x,style:f,timeout:_="auto",TransitionComponent:w=K2}=t,d=r1(t,V5),k=H.useRef(),g=H.useRef(),v=G2(),m=H.useRef(null),y=d1(m,o.ref,n),j=Z=>E=>{if(Z){const I=m.current;E===void 0?Z(I):Z(I,E)}},L=j(c),M=j((Z,E)=>{Q2(Z);const{duration:I,delay:z,easing:R}=F1({style:f,timeout:_,easing:l},{mode:"enter"});let W;_==="auto"?(W=v.transitions.getAutoHeightDuration(Z.clientHeight),g.current=W):W=I,Z.style.transition=[v.transitions.create("opacity",{duration:W,delay:z}),v.transitions.create("transform",{duration:Q1?W:W*.666,delay:z,easing:R})].join(","),a&&a(Z,E)}),S=j(h),P=j(x),V=j(Z=>{const{duration:E,delay:I,easing:z}=F1({style:f,timeout:_,easing:l},{mode:"exit"});let R;_==="auto"?(R=v.transitions.getAutoHeightDuration(Z.clientHeight),g.current=R):R=E,Z.style.transition=[v.transitions.create("opacity",{duration:R,delay:I}),v.transitions.create("transform",{duration:Q1?R:R*.666,delay:Q1?I:I||R*.333,easing:z})].join(","),Z.style.opacity=0,Z.style.transform=s2(.75),u&&u(Z)}),U=j(p),B=Z=>{_==="auto"&&(k.current=setTimeout(Z,g.current||0)),i&&i(m.current,Z)};return H.useEffect(()=>()=>{clearTimeout(k.current)},[]),r.jsx(w,b({appear:s,in:C,nodeRef:m,onEnter:M,onEntered:S,onEntering:L,onExit:V,onExited:U,onExiting:P,addEndListener:B,timeout:_==="auto"?null:_},d,{children:(Z,E)=>H.cloneElement(o,b({style:b({opacity:0,transform:s2(.75),visibility:Z==="exited"&&!C?"hidden":void 0},b5[Z],f,o.props.style),ref:y},E))}))});r3.muiSupportAuto=!0;const Z5=r3;function E5(e){return T1("MuiPopover",e)}N1("MuiPopover",["root","paper"]);const S5=["onEntering"],I5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],P5=["slotProps"];function E2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function S2(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function I2(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function J1(e){return typeof e=="function"?e():e}const B5=e=>{const{classes:t}=e;return U1({root:["root"],paper:["paper"]},E5,t)},T5=u1(M5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),N5=u1(B3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),R5=H.forwardRef(function(t,n){var i,s,o;const l=R1({props:t,name:"MuiPopover"}),{action:C,anchorEl:a,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:p,className:x,container:f,elevation:_=8,marginThreshold:w=16,open:d,PaperProps:k={},slots:g,slotProps:v,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:y=Z5,transitionDuration:j="auto",TransitionProps:{onEntering:L}={},disableScrollLock:M=!1}=l,S=r1(l.TransitionProps,S5),P=r1(l,I5),V=(i=v==null?void 0:v.paper)!=null?i:k,U=H.useRef(),B=d1(U,V.ref),Z=b({},l,{anchorOrigin:h,anchorReference:u,elevation:_,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:m,TransitionComponent:y,transitionDuration:j,TransitionProps:S}),E=B5(Z),I=H.useCallback(()=>{if(u==="anchorPosition")return c;const T=J1(a),e1=(T&&T.nodeType===1?T:s1(U.current).body).getBoundingClientRect();return{top:e1.top+E2(e1,h.vertical),left:e1.left+S2(e1,h.horizontal)}},[a,h.horizontal,h.vertical,c,u]),z=H.useCallback(T=>({vertical:E2(T,m.vertical),horizontal:S2(T,m.horizontal)}),[m.horizontal,m.vertical]),R=H.useCallback(T=>{const F={width:T.offsetWidth,height:T.offsetHeight},e1=z(F);if(u==="none")return{top:null,left:null,transformOrigin:I2(e1)};const p2=I();let m1=p2.top-e1.vertical,w1=p2.left-e1.horizontal;const x2=m1+F.height,g2=w1+F.width,m2=P1(J1(a)),w2=m2.innerHeight-w,v2=m2.innerWidth-w;if(w!==null&&m1w2){const n1=x2-w2;m1-=n1,e1.vertical+=n1}if(w!==null&&w1v2){const n1=g2-v2;w1-=n1,e1.horizontal+=n1}return{top:`${Math.round(m1)}px`,left:`${Math.round(w1)}px`,transformOrigin:I2(e1)}},[a,u,I,z,w]),[W,O]=H.useState(d),$=H.useCallback(()=>{const T=U.current;if(!T)return;const F=R(T);F.top!==null&&(T.style.top=F.top),F.left!==null&&(T.style.left=F.left),T.style.transformOrigin=F.transformOrigin,O(!0)},[R]);H.useEffect(()=>(M&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[a,M,$]);const J=(T,F)=>{L&&L(T,F),$()},q=()=>{O(!1)};H.useEffect(()=>{d&&$()}),H.useImperativeHandle(C,()=>d?{updatePosition:()=>{$()}}:null,[d,$]),H.useEffect(()=>{if(!d)return;const T=H3(()=>{$()}),F=P1(a);return F.addEventListener("resize",T),()=>{T.clear(),F.removeEventListener("resize",T)}},[a,d,$]);let A=j;j==="auto"&&!y.muiSupportAuto&&(A=void 0);const p1=f||(a?s1(J1(a)).body:void 0),x1=(s=g==null?void 0:g.root)!=null?s:T5,L1=(o=g==null?void 0:g.paper)!=null?o:N5,H1=D1({elementType:L1,externalSlotProps:b({},V,{style:W?V.style:b({},V.style,{opacity:0})}),additionalProps:{elevation:_,ref:B},ownerState:Z,className:c1(E.paper,V==null?void 0:V.className)}),g1=D1({elementType:x1,externalSlotProps:(v==null?void 0:v.root)||{},externalForwardedProps:P,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:p1,open:d},ownerState:Z,className:c1(E.root,x)}),{slotProps:X1}=g1,Y1=r1(g1,P5);return r.jsx(x1,b({},Y1,!e3(x1)&&{slotProps:X1,disableScrollLock:M},{children:r.jsx(y,b({appear:!0,in:d,onEntering:J,onExited:q,timeout:A},S,{children:r.jsx(L1,b({},H1,{children:p}))}))}))}),E7=R5;function U5(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(const[i,s]of e)if(!Object.is(s,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i{const i=e(n);return U5(t.current,i)?t.current:t.current=i}}const A5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"bubble_chart",children:[r.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_42)",children:r.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),z5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"communities",children:[r.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_39)",children:r.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),F5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"grain",children:[r.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_45)",children:r.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),D5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"public",children:[r.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_36)",children:r.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function P2(e,t,n){var i,s=1;e==null&&(e=0),t==null&&(t=0),n==null&&(n=0);function o(){var l,C=i.length,a,h=0,c=0,u=0;for(l=0;l=(a=(l+C)/2))?l=a:C=a,i=s,!(s=s[u=+c]))return i[u]=o,e;if(h=+e._x.call(null,s.data),t===h)return o.next=s,i?i[u]=o:e._root=o,e;do i=i?i[u]=new Array(2):e._root=new Array(2),(c=t>=(a=(l+C)/2))?l=a:C=a;while((u=+c)==(p=+(h>=a)));return i[p]=s,i[u]=o,e}function G5(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t);let i=1/0,s=-1/0;for(let o=0,l;os&&(s=l));if(i>s)return this;this.cover(i).cover(s);for(let o=0;oe||e>=n;)switch(l=+(el||(o=h.x1)=u))&&(h=C[C.length-1],C[C.length-1]=C[C.length-1-c],C[C.length-1-c]=h)}else{var p=Math.abs(e-+this._x.call(null,a.data));p=(h=(l+C)/2))?l=h:C=h,t=n,!(n=n[u=+c]))return this;if(!n.length)break;t[u+1&1]&&(i=t,p=u)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[u]=o:delete t[u],(n=t[0]||t[1])&&n===(t[1]||t[0])&&!n.length&&(i?i[p]=n:this._root=n),this):(this._root=o,this)}function J5(e){for(var t=0,n=e.length;t=(u=(C+h)/2))?C=u:h=u,(w=n>=(p=(a+c)/2))?a=p:c=p,s=o,!(o=o[d=w<<1|_]))return s[d]=l,e;if(x=+e._x.call(null,o.data),f=+e._y.call(null,o.data),t===x&&n===f)return l.next=o,s?s[d]=l:e._root=l,e;do s=s?s[d]=new Array(4):e._root=new Array(4),(_=t>=(u=(C+h)/2))?C=u:h=u,(w=n>=(p=(a+c)/2))?a=p:c=p;while((d=w<<1|_)===(k=(f>=p)<<1|x>=u));return s[k]=o,s[d]=l,e}function l0(e){var t,n,i=e.length,s,o,l=new Array(i),C=new Array(i),a=1/0,h=1/0,c=-1/0,u=-1/0;for(n=0;nc&&(c=s),ou&&(u=o));if(a>c||h>u)return this;for(this.cover(a,h).cover(c,u),n=0;ne||e>=s||i>t||t>=o;)switch(h=(tc||(C=f.y0)>u||(a=f.x1)=d)<<1|e>=w)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-_],p[p.length-1-_]=f)}else{var k=e-+this._x.call(null,x.data),g=t-+this._y.call(null,x.data),v=k*k+g*g;if(v=(p=(l+a)/2))?l=p:a=p,(_=u>=(x=(C+h)/2))?C=x:h=x,t=n,!(n=n[w=_<<1|f]))return this;if(!n.length)break;(t[w+1&3]||t[w+2&3]||t[w+3&3])&&(i=t,d=w)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[w]=o:delete t[w],(n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[d]=n:this._root=n),this):(this._root=o,this)}function d0(e){for(var t=0,n=e.length;t=(f=(a+u)/2))?a=f:u=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(y=i>=(w=(c+x)/2))?c=w:x=w,o=l,!(l=l[j=y<<2|m<<1|v]))return o[j]=C,e;if(d=+e._x.call(null,l.data),k=+e._y.call(null,l.data),g=+e._z.call(null,l.data),t===d&&n===k&&i===g)return C.next=l,o?o[j]=C:e._root=C,e;do o=o?o[j]=new Array(8):e._root=new Array(8),(v=t>=(f=(a+u)/2))?a=f:u=f,(m=n>=(_=(h+p)/2))?h=_:p=_,(y=i>=(w=(c+x)/2))?c=w:x=w;while((j=y<<2|m<<1|v)===(L=(g>=w)<<2|(k>=_)<<1|d>=f));return o[L]=l,o[j]=C,e}function y0(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,n=new Float64Array(t),i=new Float64Array(t),s=new Float64Array(t);let o=1/0,l=1/0,C=1/0,a=-1/0,h=-1/0,c=-1/0;for(let u=0,p,x,f,_;ua&&(a=x),fh&&(h=f),_c&&(c=_));if(o>a||l>h||C>c)return this;this.cover(o,l,C).cover(a,h,c);for(let u=0;ue||e>=l||s>t||t>=C||o>n||n>=a;)switch(p=(nf||(h=g.y0)>_||(c=g.z0)>w||(u=g.x1)=j)<<2|(t>=y)<<1|e>=m)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=g)}else{var L=e-+this._x.call(null,k.data),M=t-+this._y.call(null,k.data),S=n-+this._z.call(null,k.data),P=L*L+M*M+S*S;if(P=(_=(l+h)/2))?l=_:h=_,(g=x>=(w=(C+c)/2))?C=w:c=w,(v=f>=(d=(a+u)/2))?a=d:u=d,t=n,!(n=n[m=v<<2|g<<1|k]))return this;if(!n.length)break;(t[m+1&7]||t[m+2&7]||t[m+3&7]||t[m+4&7]||t[m+5&7]||t[m+6&7]||t[m+7&7])&&(i=t,y=m)}for(;n.data!==e;)if(s=n,!(n=n.next))return this;return(o=n.next)&&delete n.next,s?(o?s.next=o:delete s.next,this):t?(o?t[m]=o:delete t[m],(n=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&n===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!n.length&&(i?i[y]=n:this._root=n),this):(this._root=o,this)}function b0(e){for(var t=0,n=e.length;t1&&(_=x.y+x.vy),n>2&&(w=x.z+x.vz),p.visit(v);function v(m,y,j,L,M,S,P){var V=[y,j,L,M,S,P],U=V[0],B=V[1],Z=V[2],E=V[n],I=V[n+1],z=V[n+2],R=m.data,W=m.r,O=d+W;if(R){if(R.index>x.index){var $=f-R.x-R.vx,J=n>1?_-R.y-R.vy:0,q=n>2?w-R.z-R.vz:0,A=$*$+J*J+q*q;A1&&J===0&&(J=t1(s),A+=J*J),n>2&&q===0&&(q=t1(s),A+=q*q),A=(O-(A=Math.sqrt(A)))/A*o,x.vx+=($*=A)*(O=(W*=W)/(k+W)),n>1&&(x.vy+=(J*=A)*O),n>2&&(x.vz+=(q*=A)*O),R.vx-=$*(O=1-O),n>1&&(R.vy-=J*O),n>2&&(R.vz-=q*O))}return}return U>f+O||E1&&(B>_+O||I<_-O)||n>2&&(Z>w+O||zc.r&&(c.r=c[u].r)}function h(){if(t){var c,u=t.length,p;for(i=new Array(u),c=0;ctypeof p=="function")||Math.random,n=u.find(p=>[1,2,3].includes(p))||2,h()},C.iterations=function(c){return arguments.length?(l=+c,C):l},C.strength=function(c){return arguments.length?(o=+c,C):o},C.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Y(+c),h(),C):e},C}function $0(e){return e.index}function U2(e,t){var n=e.get(t);if(!n)throw new Error("node not found: "+t);return n}function A0(e){var t=$0,n=p,i,s=Y(30),o,l,C,a,h,c,u=1;e==null&&(e=[]);function p(d){return 1/Math.min(a[d.source.index],a[d.target.index])}function x(d){for(var k=0,g=e.length;k1&&(M=j.y+j.vy-y.y-y.vy||t1(c)),C>2&&(S=j.z+j.vz-y.z-y.vz||t1(c)),P=Math.sqrt(L*L+M*M+S*S),P=(P-o[v])/P*d*i[v],L*=P,M*=P,S*=P,j.vx-=L*(V=h[v]),C>1&&(j.vy-=M*V),C>2&&(j.vz-=S*V),y.vx+=L*(V=1-V),C>1&&(y.vy+=M*V),C>2&&(y.vz+=S*V)}function f(){if(l){var d,k=l.length,g=e.length,v=new Map(l.map((y,j)=>[t(y,j,l),y])),m;for(d=0,a=new Array(k);dtypeof g=="function")||Math.random,C=k.find(g=>[1,2,3].includes(g))||2,f()},x.links=function(d){return arguments.length?(e=d,f(),x):e},x.id=function(d){return arguments.length?(t=d,x):t},x.iterations=function(d){return arguments.length?(u=+d,x):u},x.strength=function(d){return arguments.length?(n=typeof d=="function"?d:Y(+d),_(),x):n},x.distance=function(d){return arguments.length?(s=typeof d=="function"?d:Y(+d),w(),x):s},x}var z0={value:()=>{}};function l3(){for(var e=0,t=arguments.length,n={},i;e=0&&(i=n.slice(s+1),n=n.slice(0,s)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}$1.prototype=l3.prototype={constructor:$1,on:function(e,t){var n=this._,i=F0(e+"",n),s,o=-1,l=i.length;if(arguments.length<2){for(;++o0)for(var n=new Array(s),i=0,s,o;i=0&&e._call.call(void 0,t),e=e._next;--y1}function $2(){h1=(G1=B1.now())+W1,y1=E1=0;try{G0()}finally{y1=0,X0(),h1=0}}function W0(){var e=B1.now(),t=e-G1;t>C3&&(W1-=t,G1=e)}function X0(){for(var e,t=q1,n,i=1/0;t;)t._call?(i>t._time&&(i=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:q1=n);S1=e,l2(i)}function l2(e){if(!y1){E1&&(E1=clearTimeout(E1));var t=e-h1;t>24?(e<1/0&&(E1=setTimeout($2,e-B1.now()-W1)),M1&&(M1=clearInterval(M1))):(M1||(G1=B1.now(),M1=setInterval(W0,C3)),y1=1,a3($2))}}const Y0=1664525,K0=1013904223,A2=4294967296;function Q0(){let e=1;return()=>(e=(Y0*e+K0)%A2)/A2}var z2=3;function n2(e){return e.x}function F2(e){return e.y}function J0(e){return e.z}var e6=10,t6=Math.PI*(3-Math.sqrt(5)),n6=Math.PI*20/(9+Math.sqrt(221));function r6(e,t){t=t||2;var n=Math.min(z2,Math.max(1,Math.round(t))),i,s=1,o=.001,l=1-Math.pow(o,1/300),C=0,a=.6,h=new Map,c=h3(x),u=l3("tick","end"),p=Q0();e==null&&(e=[]);function x(){f(),u.call("tick",i),s1&&(v.fy==null?v.y+=v.vy*=a:(v.y=v.fy,v.vy=0)),n>2&&(v.fz==null?v.z+=v.vz*=a:(v.z=v.fz,v.vz=0));return i}function _(){for(var d=0,k=e.length,g;d1&&isNaN(g.y)||n>2&&isNaN(g.z)){var v=e6*(n>2?Math.cbrt(.5+d):n>1?Math.sqrt(.5+d):d),m=d*t6,y=d*n6;n===1?g.x=v:n===2?(g.x=v*Math.cos(m),g.y=v*Math.sin(m)):(g.x=v*Math.sin(m)*Math.cos(y),g.y=v*Math.cos(m),g.z=v*Math.sin(m)*Math.sin(y))}(isNaN(g.vx)||n>1&&isNaN(g.vy)||n>2&&isNaN(g.vz))&&(g.vx=0,n>1&&(g.vy=0),n>2&&(g.vz=0))}}function w(d){return d.initialize&&d.initialize(e,p,n),d}return _(),i={tick:f,restart:function(){return c.restart(x),i},stop:function(){return c.stop(),i},numDimensions:function(d){return arguments.length?(n=Math.min(z2,Math.max(1,Math.round(d))),h.forEach(w),i):n},nodes:function(d){return arguments.length?(e=d,_(),h.forEach(w),i):e},alpha:function(d){return arguments.length?(s=+d,i):s},alphaMin:function(d){return arguments.length?(o=+d,i):o},alphaDecay:function(d){return arguments.length?(l=+d,i):+l},alphaTarget:function(d){return arguments.length?(C=+d,i):C},velocityDecay:function(d){return arguments.length?(a=1-d,i):1-a},randomSource:function(d){return arguments.length?(p=d,h.forEach(w),i):p},force:function(d,k){return arguments.length>1?(k==null?h.delete(d):h.set(d,w(k)),i):h.get(d)},find:function(){var d=Array.prototype.slice.call(arguments),k=d.shift()||0,g=(n>1?d.shift():null)||0,v=(n>2?d.shift():null)||0,m=d.shift()||1/0,y=0,j=e.length,L,M,S,P,V,U;for(m*=m,y=0;y1?(u.on(d,k),i):u.on(d)}}}function i6(){var e,t,n,i,s,o=Y(-30),l,C=1,a=1/0,h=.81;function c(f){var _,w=e.length,d=(t===1?a2(e,n2):t===2?h2(e,n2,F2):t===3?d2(e,n2,F2,J0):null).visitAfter(p);for(s=f,_=0;_1&&(f.y=v/k),t>2&&(f.z=m/k)}else{w=f,w.x=w.data.x,t>1&&(w.y=w.data.y),t>2&&(w.z=w.data.z);do _+=l[w.data.index];while(w=w.next)}f.value=_}function x(f,_,w,d,k){if(!f.value)return!0;var g=[w,d,k][t-1],v=f.x-n.x,m=t>1?f.y-n.y:0,y=t>2?f.z-n.z:0,j=g-_,L=v*v+m*m+y*y;if(j*j/h1&&m===0&&(m=t1(i),L+=m*m),t>2&&y===0&&(y=t1(i),L+=y*y),L1&&(n.vy+=m*f.value*s/L),t>2&&(n.vz+=y*f.value*s/L)),!0;if(f.length||L>=a)return;(f.data!==n||f.next)&&(v===0&&(v=t1(i),L+=v*v),t>1&&m===0&&(m=t1(i),L+=m*m),t>2&&y===0&&(y=t1(i),L+=y*y),L1&&(n.vy+=m*j),t>2&&(n.vz+=y*j));while(f=f.next)}return c.initialize=function(f,..._){e=f,i=_.find(w=>typeof w=="function")||Math.random,t=_.find(w=>[1,2,3].includes(w))||2,u()},c.strength=function(f){return arguments.length?(o=typeof f=="function"?f:Y(+f),u(),c):o},c.distanceMin=function(f){return arguments.length?(C=f*f,c):Math.sqrt(C)},c.distanceMax=function(f){return arguments.length?(a=f*f,c):Math.sqrt(a)},c.theta=function(f){return arguments.length?(h=f*f,c):Math.sqrt(h)},c}function D2(e,t,n,i){var s,o,l=Y(.1),C,a;typeof e!="function"&&(e=Y(+e)),t==null&&(t=0),n==null&&(n=0),i==null&&(i=0);function h(u){for(var p=0,x=s.length;p1&&(f.vy+=w*g),o>2&&(f.vz+=d*g)}}function c(){if(s){var u,p=s.length;for(C=new Array(p),a=new Array(p),u=0;u[1,2,3].includes(x))||2,c()},h.strength=function(u){return arguments.length?(l=typeof u=="function"?u:Y(+u),c(),h):l},h.radius=function(u){return arguments.length?(e=typeof u=="function"?u:Y(+u),c(),h):e},h.x=function(u){return arguments.length?(t=+u,h):t},h.y=function(u){return arguments.length?(n=+u,h):n},h.z=function(u){return arguments.length?(i=+u,h):i},h}function s6(e){var t=Y(.1),n,i,s;typeof e!="function"&&(e=Y(e==null?0:+e));function o(C){for(var a=0,h=n.length,c;a{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},l6={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!0,scrollEventsDisabled:!1,graphRadius:1500,selectionGraphRadius:200,graphStyle:"sphere",hoveredNode:null,selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:o6,isHovering:!1,selectionPath:[],activeNode:null,searchQuery:"",selectedNodeTypes:[],selectedLinkTypes:[]},j1=W2()((e,t)=>({...l6,setData:n=>{e({data:n})},setSelectedNodeTypes:n=>{const{selectedNodeTypes:i}=t(),s=i.includes(n)?i.filter(o=>o!==n):[...i,n];e({selectedNodeTypes:s})},setSelectedLinkTypes:n=>{const{selectedLinkTypes:i}=t(),s=i.includes(n)?i.filter(o=>o!==n):[...i,n];e({selectedLinkTypes:s})},resetSelectedNodeTypes:()=>e({selectedNodeTypes:[]}),resetSelectedLinkTypes:()=>e({selectedLinkTypes:[]}),setSelectionData:n=>e({selectionGraphData:n}),setScrollEventsDisabled:n=>e({scrollEventsDisabled:n}),setDisableCameraRotation:n=>e({disableCameraRotation:n}),setIsHovering:n=>e({isHovering:n}),setGraphRadius:n=>e({graphRadius:n}),setSelectionGraphRadius:n=>e({selectionGraphRadius:n}),setGraphStyle:n=>e({graphStyle:"sphere"}),setHoveredNode:n=>{e({hoveredNode:n})},setActiveEdge:n=>{e({activeEdge:n})},setActiveNode:n=>{e({activeNode:n})},addToSelectionPath:n=>{const{selectionPath:i}=t();e({selectionPath:[...i,n]})},setSelectedNode:n=>{const{nodesNormalized:i}=z1.getState()||{};n||e({hoveredNode:null,selectedNode:null,disableCameraRotation:!1,showSelectionGraph:!1,selectionPath:[]});const{selectedNode:s,simulation:o,selectionPath:l}=t();if((s==null?void 0:s.ref_id)!==(n==null?void 0:n.ref_id)){const C=o.nodes().find(a=>a.ref_id===(n==null?void 0:n.ref_id))||null;if(n!=null&&n.ref_id){const a=(i==null?void 0:i.get(n==null?void 0:n.ref_id))||{};e({hoveredNode:null,selectedNode:{...C,...a},disableCameraRotation:!0,showSelectionGraph:!!n,selectionPath:[...l,C.ref_id]})}}},setCameraFocusTrigger:n=>e({cameraFocusTrigger:n}),setNearbyNodeIds:n=>{const i=t().nearbyNodeIds;(n.length!==i.length||n[0]!==i[0])&&e({nearbyNodeIds:n})},setShowSelectionGraph:n=>e({showSelectionGraph:n}),simulationHelpers:{addNodesAndLinks:(n,i,s)=>{const{simulation:o,simulationHelpers:l}=t();o.stop();const C=structuredClone(n),a=structuredClone(i);o.stop();const h=s?[]:o.nodes(),c=s?[]:o.force("link").links();h.push(...C),c.push(...a);try{o.nodes(h),o.force("link").links([]).links(c),l.simulationRestart()}catch(u){console.error(u)}},addRadialForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...r2}))).force("y",null).force("radial",D2(200,0,0,0).strength(.1)).force("center",P2().strength(1)).force("collide",t2().radius(()=>150).strength(1).iterations(1))},addDefaultForce:()=>{const{simulation:n}=t();n.nodes(n.nodes().map(i=>({...i,...r2}))).force("y",null).force("charge",i6().strength(-20)).force("center",P2().strength(1)).force("collide",t2().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:n}=t(),{nodeTypes:i}=z1.getState();n.stop().nodes(n.nodes().map(s=>({...s,...r2}))).force("radial",D2(200,0,0,0).strength(.1)).force("collide",t2().radius(()=>250).strength(1).iterations(1)).force("y",s6().y(s=>{const o=i.indexOf(s.node_type),l=Math.floor(o/2)*400;return o%2===0?l:-l}).strength(10))},getLinks:()=>{const{simulation:n}=t();return n?n.force("link").links():[]},setForces:()=>{const{graphStyle:n,simulationHelpers:i}=t();n==="split"&&i.addSplitForce(),n==="sphere"&&i.addRadialForce(),n==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:n}=t();n.alpha(1).restart()}},simulationCreate:(n,i)=>{const s=structuredClone(n),o=structuredClone(i),l=r6([]).numDimensions(3).stop().nodes(s).force("link",A0().links(o).id(C=>C.ref_id));e({simulation:l})},removeSimulation:()=>e({simulation:null}),setSearchQuery:n=>e({searchQuery:n})})),u3=()=>j1(e=>e.selectedNode),S7=()=>j1(e=>e.hoveredNode),C6=()=>j1(e=>e.setSelectedNode),a6=()=>(j1($5(e=>[e.graphStyle,e.setGraphStyle])),null);D(f1).attrs({direction:"row",align:"center",justify:"space-between"})` +import{G as m3,R as $1,H as r1,J as b1,K as G2,L as N1,M as R1,O as u1,x as b,P as F1,r as H,S as U1,j as r,U as c1,V as O1,X as w3,Y as k1,Z as d1,$ as _2,a0 as k2,a1 as v3,a2 as y2,a3 as W2,c as X2,u as I1,s as D,a as i1,F as f1,B as Y2,C as C2,a4 as _3,a5 as k3,k as K2,b as y3,a6 as j3,I as L3}from"./index-04f9e7e6.js";const H3=e=>{const[n,t,i]=e.split(":"),s=parseInt(n,10),o=parseInt(t,10),l=parseInt(i,10);return s*3600+o*60+l};function j2(...e){return e.reduce((n,t)=>t==null?n:function(...s){n.apply(this,s),t.apply(this,s)},()=>{})}function M3(e,n=166){let t;function i(...s){const o=()=>{e.apply(this,s)};clearTimeout(t),t=setTimeout(o,n)}return i.clear=()=>{clearTimeout(t)},i}function s1(e){return e&&e.ownerDocument||document}function B1(e){return s1(e).defaultView||window}function V3(e){const n=e.documentElement.clientWidth;return Math.abs(window.innerWidth-n)}const b3=e=>{let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,(n/100).toFixed(2)},L2=b3,H2={disabled:!1};var Z3=function(n){return n.scrollTop},Z1="unmounted",C1="exited",a1="entering",_1="entered",i2="exiting",l1=function(e){m3(n,e);function n(i,s){var o;o=e.call(this,i,s)||this;var l=s,C=l&&!l.isMounting?i.enter:i.appear,a;return o.appearStatus=null,i.in?C?(a=C1,o.appearStatus=a1):a=_1:i.unmountOnExit||i.mountOnEnter?a=Z1:a=C1,o.state={status:a},o.nextCallback=null,o}n.getDerivedStateFromProps=function(s,o){var l=s.in;return l&&o.status===Z1?{status:C1}:null};var t=n.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(s){var o=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==a1&&l!==_1&&(o=a1):(l===a1||l===_1)&&(o=i2)}this.updateStatus(!1,o)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var s=this.props.timeout,o,l,C;return o=l=C=s,s!=null&&typeof s!="number"&&(o=s.exit,l=s.enter,C=s.appear!==void 0?s.appear:l),{exit:o,enter:l,appear:C}},t.updateStatus=function(s,o){if(s===void 0&&(s=!1),o!==null)if(this.cancelNextCallback(),o===a1){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:$1.findDOMNode(this);l&&Z3(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===C1&&this.setState({status:Z1})},t.performEnter=function(s){var o=this,l=this.props.enter,C=this.context?this.context.isMounting:s,a=this.props.nodeRef?[C]:[$1.findDOMNode(this),C],h=a[0],c=a[1],u=this.getTimeouts(),p=C?u.appear:u.enter;if(!s&&!l||H2.disabled){this.safeSetState({status:_1},function(){o.props.onEntered(h)});return}this.props.onEnter(h,c),this.safeSetState({status:a1},function(){o.props.onEntering(h,c),o.onTransitionEnd(p,function(){o.safeSetState({status:_1},function(){o.props.onEntered(h,c)})})})},t.performExit=function(){var s=this,o=this.props.exit,l=this.getTimeouts(),C=this.props.nodeRef?void 0:$1.findDOMNode(this);if(!o||H2.disabled){this.safeSetState({status:C1},function(){s.props.onExited(C)});return}this.props.onExit(C),this.safeSetState({status:i2},function(){s.props.onExiting(C),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:C1},function(){s.props.onExited(C)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(s,o){o=this.setNextCallback(o),this.setState(s,o)},t.setNextCallback=function(s){var o=this,l=!0;return this.nextCallback=function(C){l&&(l=!1,o.nextCallback=null,s(C))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},t.onTransitionEnd=function(s,o){this.setNextCallback(o);var l=this.props.nodeRef?this.props.nodeRef.current:$1.findDOMNode(this),C=s==null&&!this.props.addEndListener;if(!l||C){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=a[0],c=a[1];this.props.addEndListener(h,c)}s!=null&&setTimeout(this.nextCallback,s)},t.render=function(){var s=this.state.status;if(s===Z1)return null;var o=this.props,l=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var C=r1(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return b1.createElement(G2.Provider,{value:null},typeof l=="function"?l(s,C):b1.cloneElement(b1.Children.only(l),C))},n}(b1.Component);l1.contextType=G2;l1.propTypes={};function v1(){}l1.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:v1,onEntering:v1,onEntered:v1,onExit:v1,onExiting:v1,onExited:v1};l1.UNMOUNTED=Z1;l1.EXITED=C1;l1.ENTERING=a1;l1.ENTERED=_1;l1.EXITING=i2;const Q2=l1,J2=e=>e.scrollTop;function D1(e,n){var t,i;const{timeout:s,easing:o,style:l={}}=e;return{duration:(t=l.transitionDuration)!=null?t:typeof s=="number"?s:s[n.mode]||0,easing:(i=l.transitionTimingFunction)!=null?i:typeof o=="object"?o[n.mode]:o,delay:l.transitionDelay}}function E3(e){return N1("MuiPaper",e)}R1("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const S3=["className","component","elevation","square","variant"],I3=e=>{const{square:n,elevation:t,variant:i,classes:s}=e,o={root:["root",i,!n&&"rounded",i==="elevation"&&`elevation${t}`]};return O1(o,E3,s)},P3=u1("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,n[t.variant],!t.square&&n.rounded,t.variant==="elevation"&&n[`elevation${t.elevation}`]]}})(({theme:e,ownerState:n})=>{var t;return b({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!n.square&&{borderRadius:e.shape.borderRadius},n.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},n.variant==="elevation"&&b({boxShadow:(e.vars||e).shadows[n.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${F1("#fff",L2(n.elevation))}, ${F1("#fff",L2(n.elevation))})`},e.vars&&{backgroundImage:(t=e.vars.overlays)==null?void 0:t[n.elevation]}))}),B3=H.forwardRef(function(n,t){const i=U1({props:n,name:"MuiPaper"}),{className:s,component:o="div",elevation:l=1,square:C=!1,variant:a="elevation"}=i,h=r1(i,S3),c=b({},i,{component:o,elevation:l,square:C,variant:a}),u=I3(c);return r.jsx(P3,b({as:o,ownerState:c,className:c1(u.root,s),ref:t},h))}),T3=B3;function N3(e){return N1("MuiIconButton",e)}const R3=R1("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),U3=R3,O3=["edge","children","className","color","disabled","disableFocusRipple","size"],$3=e=>{const{classes:n,disabled:t,color:i,edge:s,size:o}=e,l={root:["root",t&&"disabled",i!=="default"&&`color${k1(i)}`,s&&`edge${k1(s)}`,`size${k1(o)}`]};return O1(l,N3,n)},A3=u1(w3,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.color!=="default"&&n[`color${k1(t.color)}`],t.edge&&n[`edge${k1(t.edge)}`],n[`size${k1(t.size)}`]]}})(({theme:e,ownerState:n})=>b({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!n.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:F1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},n.edge==="start"&&{marginLeft:n.size==="small"?-3:-12},n.edge==="end"&&{marginRight:n.size==="small"?-3:-12}),({theme:e,ownerState:n})=>{var t;const i=(t=(e.vars||e).palette)==null?void 0:t[n.color];return b({},n.color==="inherit"&&{color:"inherit"},n.color!=="inherit"&&n.color!=="default"&&b({color:i==null?void 0:i.main},!n.disableRipple&&{"&:hover":b({},i&&{backgroundColor:e.vars?`rgba(${i.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:F1(i.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),n.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},n.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${U3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),z3=H.forwardRef(function(n,t){const i=U1({props:n,name:"MuiIconButton"}),{edge:s=!1,children:o,className:l,color:C="default",disabled:a=!1,disableFocusRipple:h=!1,size:c="medium"}=i,u=r1(i,O3),p=b({},i,{edge:s,color:C,disabled:a,disableFocusRipple:h,size:c}),x=$3(p);return r.jsx(A3,b({className:c1(x.root,l),centerRipple:!0,focusRipple:!h,disabled:a,ref:t,ownerState:p},u,{children:o}))}),e3=z3;function t3(e){return typeof e=="string"}function F3(e,n,t){return e===void 0||t3(e)?n:b({},n,{ownerState:b({},n.ownerState,t)})}function n3(e,n=[]){if(e===void 0)return{};const t={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!n.includes(i)).forEach(i=>{t[i]=e[i]}),t}function D3(e,n,t){return typeof e=="function"?e(n,t):e}function r3(e){var n,t,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n!(t.match(/^on[A-Z]/)&&typeof e[t]=="function")).forEach(t=>{n[t]=e[t]}),n}function q3(e){const{getSlotProps:n,additionalProps:t,externalSlotProps:i,externalForwardedProps:s,className:o}=e;if(!n){const x=M2(t==null?void 0:t.className,o,s==null?void 0:s.className,i==null?void 0:i.className),f=b({},t==null?void 0:t.style,s==null?void 0:s.style,i==null?void 0:i.style),_=b({},t,s,i);return x.length>0&&(_.className=x),Object.keys(f).length>0&&(_.style=f),{props:_,internalRef:void 0}}const l=n3(b({},s,i)),C=V2(i),a=V2(s),h=n(l),c=M2(h==null?void 0:h.className,t==null?void 0:t.className,o,s==null?void 0:s.className,i==null?void 0:i.className),u=b({},h==null?void 0:h.style,t==null?void 0:t.style,s==null?void 0:s.style,i==null?void 0:i.style),p=b({},h,t,a,C);return c.length>0&&(p.className=c),Object.keys(u).length>0&&(p.style=u),{props:p,internalRef:h.ref}}const G3=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function q1(e){var n;const{elementType:t,externalSlotProps:i,ownerState:s,skipResolvingSlotProps:o=!1}=e,l=r1(e,G3),C=o?{}:D3(i,s),{props:a,internalRef:h}=q3(b({},l,{externalSlotProps:C})),c=d1(h,C==null?void 0:C.ref,(n=e.additionalProps)==null?void 0:n.ref);return F3(t,b({},a,{ref:c}),s)}const W3=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function X3(e){const n=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(n)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:n}function Y3(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const n=i=>e.ownerDocument.querySelector(`input[type="radio"]${i}`);let t=n(`[name="${e.name}"]:checked`);return t||(t=n(`[name="${e.name}"]`)),t!==e}function K3(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Y3(e))}function Q3(e){const n=[],t=[];return Array.from(e.querySelectorAll(W3)).forEach((i,s)=>{const o=X3(i);o===-1||!K3(i)||(o===0?n.push(i):t.push({documentOrder:s,tabIndex:o,node:i}))}),t.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(n)}function J3(){return!0}function e5(e){const{children:n,disableAutoFocus:t=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:o=Q3,isEnabled:l=J3,open:C}=e,a=H.useRef(!1),h=H.useRef(null),c=H.useRef(null),u=H.useRef(null),p=H.useRef(null),x=H.useRef(!1),f=H.useRef(null),_=d1(n.ref,f),w=H.useRef(null);H.useEffect(()=>{!C||!f.current||(x.current=!t)},[t,C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current);return f.current.contains(g.activeElement)||(f.current.hasAttribute("tabIndex")||f.current.setAttribute("tabIndex","-1"),x.current&&f.current.focus()),()=>{s||(u.current&&u.current.focus&&(a.current=!0,u.current.focus()),u.current=null)}},[C]),H.useEffect(()=>{if(!C||!f.current)return;const g=s1(f.current),v=j=>{w.current=j,!(i||!l()||j.key!=="Tab")&&g.activeElement===f.current&&j.shiftKey&&(a.current=!0,c.current&&c.current.focus())},m=()=>{const j=f.current;if(j===null)return;if(!g.hasFocus()||!l()||a.current){a.current=!1;return}if(j.contains(g.activeElement)||i&&g.activeElement!==h.current&&g.activeElement!==c.current)return;if(g.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!x.current)return;let L=[];if((g.activeElement===h.current||g.activeElement===c.current)&&(L=o(f.current)),L.length>0){var M,S;const P=!!((M=w.current)!=null&&M.shiftKey&&((S=w.current)==null?void 0:S.key)==="Tab"),V=L[0],U=L[L.length-1];typeof V!="string"&&typeof U!="string"&&(P?U.focus():V.focus())}else j.focus()};g.addEventListener("focusin",m),g.addEventListener("keydown",v,!0);const y=setInterval(()=>{g.activeElement&&g.activeElement.tagName==="BODY"&&m()},50);return()=>{clearInterval(y),g.removeEventListener("focusin",m),g.removeEventListener("keydown",v,!0)}},[t,i,s,l,C,o]);const d=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0,p.current=g.target;const v=n.props.onFocus;v&&v(g)},k=g=>{u.current===null&&(u.current=g.relatedTarget),x.current=!0};return r.jsxs(H.Fragment,{children:[r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:h,"data-testid":"sentinelStart"}),H.cloneElement(n,{ref:_,onFocus:d}),r.jsx("div",{tabIndex:C?0:-1,onFocus:k,ref:c,"data-testid":"sentinelEnd"})]})}function t5(e){return typeof e=="function"?e():e}const n5=H.forwardRef(function(n,t){const{children:i,container:s,disablePortal:o=!1}=n,[l,C]=H.useState(null),a=d1(H.isValidElement(i)?i.ref:null,t);if(_2(()=>{o||C(t5(s)||document.body)},[s,o]),_2(()=>{if(l&&!o)return k2(t,l),()=>{k2(t,null)}},[t,l,o]),o){if(H.isValidElement(i)){const h={ref:a};return H.cloneElement(i,h)}return r.jsx(H.Fragment,{children:i})}return r.jsx(H.Fragment,{children:l&&v3.createPortal(i,l)})});function r5(e){const n=s1(e);return n.body===e?B1(e).innerWidth>n.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function P1(e,n){n?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function b2(e){return parseInt(B1(e).getComputedStyle(e).paddingRight,10)||0}function i5(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,i=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||i}function Z2(e,n,t,i,s){const o=[n,t,...i];[].forEach.call(e.children,l=>{const C=o.indexOf(l)===-1,a=!i5(l);C&&a&&P1(l,s)})}function Q1(e,n){let t=-1;return e.some((i,s)=>n(i)?(t=s,!0):!1),t}function s5(e,n){const t=[],i=e.container;if(!n.disableScrollLock){if(r5(i)){const l=V3(s1(i));t.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${b2(i)+l}px`;const C=s1(i).querySelectorAll(".mui-fixed");[].forEach.call(C,a=>{t.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${b2(a)+l}px`})}let o;if(i.parentNode instanceof DocumentFragment)o=s1(i).body;else{const l=i.parentElement,C=B1(i);o=(l==null?void 0:l.nodeName)==="HTML"&&C.getComputedStyle(l).overflowY==="scroll"?l:i}t.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{t.forEach(({value:o,el:l,property:C})=>{o?l.style.setProperty(C,o):l.style.removeProperty(C)})}}function o5(e){const n=[];return[].forEach.call(e.children,t=>{t.getAttribute("aria-hidden")==="true"&&n.push(t)}),n}class l5{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(n,t){let i=this.modals.indexOf(n);if(i!==-1)return i;i=this.modals.length,this.modals.push(n),n.modalRef&&P1(n.modalRef,!1);const s=o5(t);Z2(t,n.mount,n.modalRef,s,!0);const o=Q1(this.containers,l=>l.container===t);return o!==-1?(this.containers[o].modals.push(n),i):(this.containers.push({modals:[n],container:t,restore:null,hiddenSiblings:s}),i)}mount(n,t){const i=Q1(this.containers,o=>o.modals.indexOf(n)!==-1),s=this.containers[i];s.restore||(s.restore=s5(s,t))}remove(n,t=!0){const i=this.modals.indexOf(n);if(i===-1)return i;const s=Q1(this.containers,l=>l.modals.indexOf(n)!==-1),o=this.containers[s];if(o.modals.splice(o.modals.indexOf(n),1),this.modals.splice(i,1),o.modals.length===0)o.restore&&o.restore(),n.modalRef&&P1(n.modalRef,t),Z2(o.container,n.mount,n.modalRef,o.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=o.modals[o.modals.length-1];l.modalRef&&P1(l.modalRef,!1)}return i}isTopModal(n){return this.modals.length>0&&this.modals[this.modals.length-1]===n}}function C5(e){return typeof e=="function"?e():e}function a5(e){return e?e.props.hasOwnProperty("in"):!1}const c5=new l5;function h5(e){const{container:n,disableEscapeKeyDown:t=!1,disableScrollLock:i=!1,manager:s=c5,closeAfterTransition:o=!1,onTransitionEnter:l,onTransitionExited:C,children:a,onClose:h,open:c,rootRef:u}=e,p=H.useRef({}),x=H.useRef(null),f=H.useRef(null),_=d1(f,u),[w,d]=H.useState(!c),k=a5(a);let g=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(g=!1);const v=()=>s1(x.current),m=()=>(p.current.modalRef=f.current,p.current.mount=x.current,p.current),y=()=>{s.mount(m(),{disableScrollLock:i}),f.current&&(f.current.scrollTop=0)},j=y2(()=>{const E=C5(n)||v().body;s.add(m(),E),f.current&&y()}),L=H.useCallback(()=>s.isTopModal(m()),[s]),M=y2(E=>{x.current=E,E&&(c&&L()?y():f.current&&P1(f.current,g))}),S=H.useCallback(()=>{s.remove(m(),g)},[g,s]);H.useEffect(()=>()=>{S()},[S]),H.useEffect(()=>{c?j():(!k||!o)&&S()},[c,S,k,o,j]);const P=E=>I=>{var z;(z=E.onKeyDown)==null||z.call(E,I),!(I.key!=="Escape"||I.which===229||!L())&&(t||(I.stopPropagation(),h&&h(I,"escapeKeyDown")))},V=E=>I=>{var z;(z=E.onClick)==null||z.call(E,I),I.target===I.currentTarget&&h&&h(I,"backdropClick")};return{getRootProps:(E={})=>{const I=n3(e);delete I.onTransitionEnter,delete I.onTransitionExited;const z=b({},I,E);return b({role:"presentation"},z,{onKeyDown:P(z),ref:_})},getBackdropProps:(E={})=>{const I=E;return b({"aria-hidden":!0},I,{onClick:V(I),open:c})},getTransitionProps:()=>{const E=()=>{d(!1),l&&l()},I=()=>{d(!0),C&&C(),o&&S()};return{onEnter:j2(E,a==null?void 0:a.props.onEnter),onExited:j2(I,a==null?void 0:a.props.onExited)}},rootRef:_,portalRef:M,isTopModal:L,exited:w,hasTransition:k}}const u5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],d5={entering:{opacity:1},entered:{opacity:1}},f5=H.forwardRef(function(n,t){const i=W2(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:o,appear:l=!0,children:C,easing:a,in:h,onEnter:c,onEntered:u,onEntering:p,onExit:x,onExited:f,onExiting:_,style:w,timeout:d=s,TransitionComponent:k=Q2}=n,g=r1(n,u5),v=H.useRef(null),m=d1(v,C.ref,t),y=B=>Z=>{if(B){const E=v.current;Z===void 0?B(E):B(E,Z)}},j=y(p),L=y((B,Z)=>{J2(B);const E=D1({style:w,timeout:d,easing:a},{mode:"enter"});B.style.webkitTransition=i.transitions.create("opacity",E),B.style.transition=i.transitions.create("opacity",E),c&&c(B,Z)}),M=y(u),S=y(_),P=y(B=>{const Z=D1({style:w,timeout:d,easing:a},{mode:"exit"});B.style.webkitTransition=i.transitions.create("opacity",Z),B.style.transition=i.transitions.create("opacity",Z),x&&x(B)}),V=y(f),U=B=>{o&&o(v.current,B)};return r.jsx(k,b({appear:l,in:h,nodeRef:v,onEnter:L,onEntered:M,onEntering:j,onExit:P,onExited:V,onExiting:S,addEndListener:U,timeout:d},g,{children:(B,Z)=>H.cloneElement(C,b({style:b({opacity:0,visibility:B==="exited"&&!h?"hidden":void 0},d5[B],w,C.props.style),ref:m},Z))}))}),p5=f5;function x5(e){return N1("MuiBackdrop",e)}R1("MuiBackdrop",["root","invisible"]);const g5=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],m5=e=>{const{classes:n,invisible:t}=e;return O1({root:["root",t&&"invisible"]},x5,n)},w5=u1("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,t.invisible&&n.invisible]}})(({ownerState:e})=>b({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),v5=H.forwardRef(function(n,t){var i,s,o;const l=U1({props:n,name:"MuiBackdrop"}),{children:C,className:a,component:h="div",components:c={},componentsProps:u={},invisible:p=!1,open:x,slotProps:f={},slots:_={},TransitionComponent:w=p5,transitionDuration:d}=l,k=r1(l,g5),g=b({},l,{component:h,invisible:p}),v=m5(g),m=(i=f.root)!=null?i:u.root;return r.jsx(w,b({in:x,timeout:d},k,{children:r.jsx(w5,b({"aria-hidden":!0},m,{as:(s=(o=_.root)!=null?o:c.Root)!=null?s:h,className:c1(v.root,a,m==null?void 0:m.className),ownerState:b({},g,m==null?void 0:m.ownerState),classes:v,ref:t,children:C}))}))}),_5=v5;function k5(e){return N1("MuiModal",e)}R1("MuiModal",["root","hidden","backdrop"]);const y5=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],j5=e=>{const{open:n,exited:t,classes:i}=e;return O1({root:["root",!n&&t&&"hidden"],backdrop:["backdrop"]},k5,i)},L5=u1("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:t}=e;return[n.root,!t.open&&t.exited&&n.hidden]}})(({theme:e,ownerState:n})=>b({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!n.open&&n.exited&&{visibility:"hidden"})),H5=u1(_5,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,n)=>n.backdrop})({zIndex:-1}),M5=H.forwardRef(function(n,t){var i,s,o,l,C,a;const h=U1({name:"MuiModal",props:n}),{BackdropComponent:c=H5,BackdropProps:u,className:p,closeAfterTransition:x=!1,children:f,container:_,component:w,components:d={},componentsProps:k={},disableAutoFocus:g=!1,disableEnforceFocus:v=!1,disableEscapeKeyDown:m=!1,disablePortal:y=!1,disableRestoreFocus:j=!1,disableScrollLock:L=!1,hideBackdrop:M=!1,keepMounted:S=!1,onBackdropClick:P,open:V,slotProps:U,slots:B}=h,Z=r1(h,y5),E=b({},h,{closeAfterTransition:x,disableAutoFocus:g,disableEnforceFocus:v,disableEscapeKeyDown:m,disablePortal:y,disableRestoreFocus:j,disableScrollLock:L,hideBackdrop:M,keepMounted:S}),{getRootProps:I,getBackdropProps:z,getTransitionProps:R,portalRef:W,isTopModal:O,exited:$,hasTransition:J}=h5(b({},E,{rootRef:t})),q=b({},E,{exited:$}),A=j5(q),p1={};if(f.props.tabIndex===void 0&&(p1.tabIndex="-1"),J){const{onEnter:T,onExited:F}=R();p1.onEnter=T,p1.onExited=F}const x1=(i=(s=B==null?void 0:B.root)!=null?s:d.Root)!=null?i:L5,L1=(o=(l=B==null?void 0:B.backdrop)!=null?l:d.Backdrop)!=null?o:c,H1=(C=U==null?void 0:U.root)!=null?C:k.root,g1=(a=U==null?void 0:U.backdrop)!=null?a:k.backdrop,Y1=q1({elementType:x1,externalSlotProps:H1,externalForwardedProps:Z,getSlotProps:I,additionalProps:{ref:t,as:w},ownerState:q,className:c1(p,H1==null?void 0:H1.className,A==null?void 0:A.root,!q.open&&q.exited&&(A==null?void 0:A.hidden))}),K1=q1({elementType:L1,externalSlotProps:g1,additionalProps:u,getSlotProps:T=>z(b({},T,{onClick:F=>{P&&P(F),T!=null&&T.onClick&&T.onClick(F)}})),className:c1(g1==null?void 0:g1.className,u==null?void 0:u.className,A==null?void 0:A.backdrop),ownerState:q});return!S&&!V&&(!J||$)?null:r.jsx(n5,{ref:W,container:_,disablePortal:y,children:r.jsxs(x1,b({},Y1,{children:[!M&&c?r.jsx(L1,b({},K1)):null,r.jsx(e5,{disableEnforceFocus:v,disableAutoFocus:g,disableRestoreFocus:j,isEnabled:O,open:V,children:H.cloneElement(f,p1)})]}))})}),V5=M5,b5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function s2(e){return`scale(${e}, ${e**2})`}const Z5={entering:{opacity:1,transform:s2(1)},entered:{opacity:1,transform:"none"}},J1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),i3=H.forwardRef(function(n,t){const{addEndListener:i,appear:s=!0,children:o,easing:l,in:C,onEnter:a,onEntered:h,onEntering:c,onExit:u,onExited:p,onExiting:x,style:f,timeout:_="auto",TransitionComponent:w=Q2}=n,d=r1(n,b5),k=H.useRef(),g=H.useRef(),v=W2(),m=H.useRef(null),y=d1(m,o.ref,t),j=Z=>E=>{if(Z){const I=m.current;E===void 0?Z(I):Z(I,E)}},L=j(c),M=j((Z,E)=>{J2(Z);const{duration:I,delay:z,easing:R}=D1({style:f,timeout:_,easing:l},{mode:"enter"});let W;_==="auto"?(W=v.transitions.getAutoHeightDuration(Z.clientHeight),g.current=W):W=I,Z.style.transition=[v.transitions.create("opacity",{duration:W,delay:z}),v.transitions.create("transform",{duration:J1?W:W*.666,delay:z,easing:R})].join(","),a&&a(Z,E)}),S=j(h),P=j(x),V=j(Z=>{const{duration:E,delay:I,easing:z}=D1({style:f,timeout:_,easing:l},{mode:"exit"});let R;_==="auto"?(R=v.transitions.getAutoHeightDuration(Z.clientHeight),g.current=R):R=E,Z.style.transition=[v.transitions.create("opacity",{duration:R,delay:I}),v.transitions.create("transform",{duration:J1?R:R*.666,delay:J1?I:I||R*.333,easing:z})].join(","),Z.style.opacity=0,Z.style.transform=s2(.75),u&&u(Z)}),U=j(p),B=Z=>{_==="auto"&&(k.current=setTimeout(Z,g.current||0)),i&&i(m.current,Z)};return H.useEffect(()=>()=>{clearTimeout(k.current)},[]),r.jsx(w,b({appear:s,in:C,nodeRef:m,onEnter:M,onEntered:S,onEntering:L,onExit:V,onExited:U,onExiting:P,addEndListener:B,timeout:_==="auto"?null:_},d,{children:(Z,E)=>H.cloneElement(o,b({style:b({opacity:0,transform:s2(.75),visibility:Z==="exited"&&!C?"hidden":void 0},Z5[Z],f,o.props.style),ref:y},E))}))});i3.muiSupportAuto=!0;const E5=i3;function S5(e){return N1("MuiPopover",e)}R1("MuiPopover",["root","paper"]);const I5=["onEntering"],P5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],B5=["slotProps"];function E2(e,n){let t=0;return typeof n=="number"?t=n:n==="center"?t=e.height/2:n==="bottom"&&(t=e.height),t}function S2(e,n){let t=0;return typeof n=="number"?t=n:n==="center"?t=e.width/2:n==="right"&&(t=e.width),t}function I2(e){return[e.horizontal,e.vertical].map(n=>typeof n=="number"?`${n}px`:n).join(" ")}function e2(e){return typeof e=="function"?e():e}const T5=e=>{const{classes:n}=e;return O1({root:["root"],paper:["paper"]},S5,n)},N5=u1(V5,{name:"MuiPopover",slot:"Root",overridesResolver:(e,n)=>n.root})({}),R5=u1(T3,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,n)=>n.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),U5=H.forwardRef(function(n,t){var i,s,o;const l=U1({props:n,name:"MuiPopover"}),{action:C,anchorEl:a,anchorOrigin:h={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:p,className:x,container:f,elevation:_=8,marginThreshold:w=16,open:d,PaperProps:k={},slots:g,slotProps:v,transformOrigin:m={vertical:"top",horizontal:"left"},TransitionComponent:y=E5,transitionDuration:j="auto",TransitionProps:{onEntering:L}={},disableScrollLock:M=!1}=l,S=r1(l.TransitionProps,I5),P=r1(l,P5),V=(i=v==null?void 0:v.paper)!=null?i:k,U=H.useRef(),B=d1(U,V.ref),Z=b({},l,{anchorOrigin:h,anchorReference:u,elevation:_,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:m,TransitionComponent:y,transitionDuration:j,TransitionProps:S}),E=T5(Z),I=H.useCallback(()=>{if(u==="anchorPosition")return c;const T=e2(a),e1=(T&&T.nodeType===1?T:s1(U.current).body).getBoundingClientRect();return{top:e1.top+E2(e1,h.vertical),left:e1.left+S2(e1,h.horizontal)}},[a,h.horizontal,h.vertical,c,u]),z=H.useCallback(T=>({vertical:E2(T,m.vertical),horizontal:S2(T,m.horizontal)}),[m.horizontal,m.vertical]),R=H.useCallback(T=>{const F={width:T.offsetWidth,height:T.offsetHeight},e1=z(F);if(u==="none")return{top:null,left:null,transformOrigin:I2(e1)};const p2=I();let m1=p2.top-e1.vertical,w1=p2.left-e1.horizontal;const x2=m1+F.height,g2=w1+F.width,m2=B1(e2(a)),w2=m2.innerHeight-w,v2=m2.innerWidth-w;if(w!==null&&m1w2){const n1=x2-w2;m1-=n1,e1.vertical+=n1}if(w!==null&&w1v2){const n1=g2-v2;w1-=n1,e1.horizontal+=n1}return{top:`${Math.round(m1)}px`,left:`${Math.round(w1)}px`,transformOrigin:I2(e1)}},[a,u,I,z,w]),[W,O]=H.useState(d),$=H.useCallback(()=>{const T=U.current;if(!T)return;const F=R(T);F.top!==null&&(T.style.top=F.top),F.left!==null&&(T.style.left=F.left),T.style.transformOrigin=F.transformOrigin,O(!0)},[R]);H.useEffect(()=>(M&&window.addEventListener("scroll",$),()=>window.removeEventListener("scroll",$)),[a,M,$]);const J=(T,F)=>{L&&L(T,F),$()},q=()=>{O(!1)};H.useEffect(()=>{d&&$()}),H.useImperativeHandle(C,()=>d?{updatePosition:()=>{$()}}:null,[d,$]),H.useEffect(()=>{if(!d)return;const T=M3(()=>{$()}),F=B1(a);return F.addEventListener("resize",T),()=>{T.clear(),F.removeEventListener("resize",T)}},[a,d,$]);let A=j;j==="auto"&&!y.muiSupportAuto&&(A=void 0);const p1=f||(a?s1(e2(a)).body:void 0),x1=(s=g==null?void 0:g.root)!=null?s:N5,L1=(o=g==null?void 0:g.paper)!=null?o:R5,H1=q1({elementType:L1,externalSlotProps:b({},V,{style:W?V.style:b({},V.style,{opacity:0})}),additionalProps:{elevation:_,ref:B},ownerState:Z,className:c1(E.paper,V==null?void 0:V.className)}),g1=q1({elementType:x1,externalSlotProps:(v==null?void 0:v.root)||{},externalForwardedProps:P,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:p1,open:d},ownerState:Z,className:c1(E.root,x)}),{slotProps:Y1}=g1,K1=r1(g1,B5);return r.jsx(x1,b({},K1,!t3(x1)&&{slotProps:Y1,disableScrollLock:M},{children:r.jsx(y,b({appear:!0,in:d,onEntering:J,onExited:q,timeout:A},S,{children:r.jsx(L1,b({},H1,{children:p}))}))}))}),E7=U5;function O5(e,n){if(Object.is(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;if(e instanceof Map&&n instanceof Map){if(e.size!==n.size)return!1;for(const[i,s]of e)if(!Object.is(s,n.get(i)))return!1;return!0}if(e instanceof Set&&n instanceof Set){if(e.size!==n.size)return!1;for(const i of e)if(!n.has(i))return!1;return!0}const t=Object.keys(e);if(t.length!==Object.keys(n).length)return!1;for(let i=0;i{const i=e(t);return O5(n.current,i)?n.current:n.current=i}}const z5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"bubble_chart",children:[r.jsx("mask",{id:"mask0_1551_42",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_42)",children:r.jsx("path",{id:"bubble_chart_2",d:"M5.83333 15C4.91667 15 4.13194 14.6736 3.47917 14.0208C2.82639 13.3681 2.5 12.5833 2.5 11.6667C2.5 10.75 2.82639 9.96528 3.47917 9.3125C4.13194 8.65972 4.91667 8.33333 5.83333 8.33333C6.75 8.33333 7.53472 8.65972 8.1875 9.3125C8.84028 9.96528 9.16667 10.75 9.16667 11.6667C9.16667 12.5833 8.84028 13.3681 8.1875 14.0208C7.53472 14.6736 6.75 15 5.83333 15ZM13.75 11.6667C12.4722 11.6667 11.3889 11.2222 10.5 10.3333C9.61111 9.44444 9.16667 8.36111 9.16667 7.08333C9.16667 5.80556 9.61111 4.72222 10.5 3.83333C11.3889 2.94444 12.4722 2.5 13.75 2.5C15.0278 2.5 16.1111 2.94444 17 3.83333C17.8889 4.72222 18.3333 5.80556 18.3333 7.08333C18.3333 8.36111 17.8889 9.44444 17 10.3333C16.1111 11.2222 15.0278 11.6667 13.75 11.6667ZM12.0833 17.5C11.3889 17.5 10.7986 17.2569 10.3125 16.7708C9.82639 16.2847 9.58333 15.6944 9.58333 15C9.58333 14.3056 9.82639 13.7153 10.3125 13.2292C10.7986 12.7431 11.3889 12.5 12.0833 12.5C12.7778 12.5 13.3681 12.7431 13.8542 13.2292C14.3403 13.7153 14.5833 14.3056 14.5833 15C14.5833 15.6944 14.3403 16.2847 13.8542 16.7708C13.3681 17.2569 12.7778 17.5 12.0833 17.5Z",fill:"currentColor"})})]})}),F5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"communities",children:[r.jsx("mask",{id:"mask0_1551_39",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_39)",children:r.jsx("path",{id:"communities_2",d:"M7.50002 13.125C7.90494 13.125 8.24921 12.9832 8.53285 12.6995C8.81651 12.4159 8.95833 12.0716 8.95833 11.6667C8.95833 11.2618 8.81651 10.9175 8.53285 10.6339C8.24921 10.3502 7.90494 10.2084 7.50002 10.2084C7.0951 10.2084 6.75083 10.3502 6.46719 10.6339C6.18353 10.9175 6.04171 11.2618 6.04171 11.6667C6.04171 12.0716 6.18353 12.4159 6.46719 12.6995C6.75083 12.9832 7.0951 13.125 7.50002 13.125ZM12.5 13.125C12.9049 13.125 13.2492 12.9832 13.5329 12.6995C13.8165 12.4159 13.9583 12.0716 13.9583 11.6667C13.9583 11.2618 13.8165 10.9175 13.5329 10.6339C13.2492 10.3502 12.9049 10.2084 12.5 10.2084C12.0951 10.2084 11.7508 10.3502 11.4672 10.6339C11.1835 10.9175 11.0417 11.2618 11.0417 11.6667C11.0417 12.0716 11.1835 12.4159 11.4672 12.6995C11.7508 12.9832 12.0951 13.125 12.5 13.125ZM10 8.95833C10.4049 8.95833 10.7492 8.81651 11.0329 8.53285C11.3165 8.24922 11.4583 7.90494 11.4583 7.50002C11.4583 7.0951 11.3165 6.75083 11.0329 6.46719C10.7492 6.18354 10.4049 6.04171 10 6.04171C9.5951 6.04171 9.25083 6.18354 8.96719 6.46719C8.68354 6.75083 8.54171 7.0951 8.54171 7.50002C8.54171 7.90494 8.68354 8.24922 8.96719 8.53285C9.25083 8.81651 9.5951 8.95833 10 8.95833ZM10.0014 17.9167C8.90647 17.9167 7.87728 17.7089 6.91383 17.2933C5.95037 16.8778 5.1123 16.3138 4.39962 15.6015C3.68693 14.8891 3.12271 14.0514 2.70698 13.0884C2.29124 12.1253 2.08337 11.0964 2.08337 10.0014C2.08337 8.90647 2.29115 7.87728 2.70671 6.91383C3.12226 5.95037 3.68622 5.11231 4.39858 4.39963C5.11096 3.68693 5.94866 3.12272 6.91169 2.70698C7.8747 2.29124 8.90368 2.08337 9.99862 2.08337C11.0936 2.08337 12.1228 2.29115 13.0862 2.70671C14.0497 3.12226 14.8877 3.68622 15.6004 4.39858C16.3131 5.11096 16.8773 5.94866 17.2931 6.91169C17.7088 7.8747 17.9167 8.90368 17.9167 9.99863C17.9167 11.0936 17.7089 12.1228 17.2933 13.0862C16.8778 14.0497 16.3138 14.8877 15.6015 15.6004C14.8891 16.3131 14.0514 16.8773 13.0884 17.2931C12.1253 17.7088 11.0964 17.9167 10.0014 17.9167ZM10 16.6667C11.8611 16.6667 13.4375 16.0209 14.7292 14.7292C16.0209 13.4375 16.6667 11.8611 16.6667 10C16.6667 8.13891 16.0209 6.56252 14.7292 5.27085C13.4375 3.97919 11.8611 3.33335 10 3.33335C8.13891 3.33335 6.56252 3.97919 5.27085 5.27085C3.97919 6.56252 3.33335 8.13891 3.33335 10C3.33335 11.8611 3.97919 13.4375 5.27085 14.7292C6.56252 16.0209 8.13891 16.6667 10 16.6667Z",fill:"currentColor"})})]})}),D5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"grain",children:[r.jsx("mask",{id:"mask0_1551_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_45)",children:r.jsx("path",{id:"grain_2",d:"M4.99999 16.5064C4.57906 16.5064 4.22276 16.3605 3.93109 16.0689C3.63942 15.7772 3.49359 15.4209 3.49359 15C3.49359 14.5791 3.63942 14.2228 3.93109 13.9311C4.22276 13.6394 4.57906 13.4936 4.99999 13.4936C5.42092 13.4936 5.77722 13.6394 6.06888 13.9311C6.36055 14.2228 6.50638 14.5791 6.50638 15C6.50638 15.4209 6.36055 15.7772 6.06888 16.0689C5.77722 16.3605 5.42092 16.5064 4.99999 16.5064ZM11.6667 16.5064C11.2457 16.5064 10.8894 16.3605 10.5978 16.0689C10.3061 15.7772 10.1603 15.4209 10.1603 15C10.1603 14.5791 10.3061 14.2228 10.5978 13.9311C10.8894 13.6394 11.2457 13.4936 11.6667 13.4936C12.0876 13.4936 12.4439 13.6394 12.7355 13.9311C13.0272 14.2228 13.1731 14.5791 13.1731 15C13.1731 15.4209 13.0272 15.7772 12.7355 16.0689C12.4439 16.3605 12.0876 16.5064 11.6667 16.5064ZM8.33332 13.1731C7.91239 13.1731 7.55609 13.0272 7.26442 12.7355C6.97276 12.4439 6.82692 12.0876 6.82692 11.6667C6.82692 11.2457 6.97276 10.8894 7.26442 10.5978C7.55609 10.3061 7.91239 10.1603 8.33332 10.1603C8.75425 10.1603 9.11055 10.3061 9.40222 10.5978C9.69388 10.8894 9.83972 11.2457 9.83972 11.6667C9.83972 12.0876 9.69388 12.4439 9.40222 12.7355C9.11055 13.0272 8.75425 13.1731 8.33332 13.1731ZM15 13.1731C14.5791 13.1731 14.2228 13.0272 13.9311 12.7355C13.6394 12.4439 13.4936 12.0876 13.4936 11.6667C13.4936 11.2457 13.6394 10.8894 13.9311 10.5978C14.2228 10.3061 14.5791 10.1603 15 10.1603C15.4209 10.1603 15.7772 10.3061 16.0689 10.5978C16.3605 10.8894 16.5064 11.2457 16.5064 11.6667C16.5064 12.0876 16.3605 12.4439 16.0689 12.7355C15.7772 13.0272 15.4209 13.1731 15 13.1731ZM4.99999 9.83972C4.57906 9.83972 4.22276 9.69388 3.93109 9.40222C3.63942 9.11055 3.49359 8.75425 3.49359 8.33332C3.49359 7.91239 3.63942 7.55609 3.93109 7.26442C4.22276 6.97276 4.57906 6.82692 4.99999 6.82692C5.42092 6.82692 5.77722 6.97276 6.06888 7.26442C6.36055 7.55609 6.50638 7.91239 6.50638 8.33332C6.50638 8.75425 6.36055 9.11055 6.06888 9.40222C5.77722 9.69388 5.42092 9.83972 4.99999 9.83972ZM11.6667 9.83972C11.2457 9.83972 10.8894 9.69388 10.5978 9.40222C10.3061 9.11055 10.1603 8.75425 10.1603 8.33332C10.1603 7.91239 10.3061 7.55609 10.5978 7.26442C10.8894 6.97276 11.2457 6.82692 11.6667 6.82692C12.0876 6.82692 12.4439 6.97276 12.7355 7.26442C13.0272 7.55609 13.1731 7.91239 13.1731 8.33332C13.1731 8.75425 13.0272 9.11055 12.7355 9.40222C12.4439 9.69388 12.0876 9.83972 11.6667 9.83972ZM8.33332 6.50638C7.91239 6.50638 7.55609 6.36055 7.26442 6.06888C6.97276 5.77722 6.82692 5.42092 6.82692 4.99999C6.82692 4.57906 6.97276 4.22276 7.26442 3.93109C7.55609 3.63942 7.91239 3.49359 8.33332 3.49359C8.75425 3.49359 9.11055 3.63942 9.40222 3.93109C9.69388 4.22276 9.83972 4.57906 9.83972 4.99999C9.83972 5.42092 9.69388 5.77722 9.40222 6.06888C9.11055 6.36055 8.75425 6.50638 8.33332 6.50638ZM15 6.50638C14.5791 6.50638 14.2228 6.36055 13.9311 6.06888C13.6394 5.77722 13.4936 5.42092 13.4936 4.99999C13.4936 4.57906 13.6394 4.22276 13.9311 3.93109C14.2228 3.63942 14.5791 3.49359 15 3.49359C15.4209 3.49359 15.7772 3.63942 16.0689 3.93109C16.3605 4.22276 16.5064 4.57906 16.5064 4.99999C16.5064 5.42092 16.3605 5.77722 16.0689 6.06888C15.7772 6.36055 15.4209 6.50638 15 6.50638Z",fill:"currentColor"})})]})}),q5=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"public",children:[r.jsx("mask",{id:"mask0_1551_36",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1551_36)",children:r.jsx("path",{id:"public_2",d:"M10.0028 17.5C8.96567 17.5 7.9906 17.3032 7.07758 16.9096C6.16457 16.516 5.37037 15.9818 4.69498 15.3071C4.0196 14.6323 3.48493 13.8389 3.09096 12.9267C2.69699 12.0145 2.5 11.0399 2.5 10.0028C2.5 8.96567 2.6968 7.9906 3.0904 7.07758C3.48401 6.16457 4.01819 5.37037 4.69294 4.69498C5.36769 4.0196 6.16114 3.48493 7.07329 3.09096C7.98546 2.69699 8.9601 2.5 9.99721 2.5C11.0343 2.5 12.0094 2.6968 12.9224 3.0904C13.8354 3.48401 14.6296 4.01819 15.305 4.69294C15.9804 5.36769 16.5151 6.16114 16.909 7.07329C17.303 7.98546 17.5 8.9601 17.5 9.99721C17.5 11.0343 17.3032 12.0094 16.9096 12.9224C16.516 13.8354 15.9818 14.6296 15.3071 15.305C14.6323 15.9804 13.8389 16.5151 12.9267 16.909C12.0145 17.303 11.0399 17.5 10.0028 17.5ZM9.16667 16.625V15C8.70833 15 8.31597 14.8368 7.98958 14.5104C7.66319 14.184 7.5 13.7917 7.5 13.3333V12.5L3.5 8.5C3.45833 8.75 3.42014 9 3.38542 9.25C3.35069 9.5 3.33333 9.75 3.33333 10C3.33333 11.6806 3.88542 13.1528 4.98958 14.4167C6.09375 15.6806 7.48611 16.4167 9.16667 16.625ZM14.9167 14.5C15.1944 14.1944 15.4444 13.8646 15.6667 13.5104C15.8889 13.1562 16.0729 12.7882 16.2187 12.4062C16.3646 12.0243 16.4757 11.6319 16.5521 11.2292C16.6285 10.8264 16.6667 10.4167 16.6667 10C16.6667 8.63083 16.2909 7.38042 15.5393 6.24877C14.7877 5.11712 13.7746 4.30129 12.5 3.80129V4.16667C12.5 4.625 12.3368 5.01736 12.0104 5.34375C11.684 5.67014 11.2917 5.83333 10.8333 5.83333H9.16667V7.5C9.16667 7.73611 9.08681 7.93403 8.92708 8.09375C8.76736 8.25347 8.56944 8.33333 8.33333 8.33333H6.66667V10H11.6667C11.9028 10 12.1007 10.0799 12.2604 10.2396C12.4201 10.3993 12.5 10.5972 12.5 10.8333V13.3333H13.3333C13.6944 13.3333 14.0208 13.441 14.3125 13.6562C14.6042 13.8715 14.8056 14.1528 14.9167 14.5Z",fill:"currentColor"})})]})});function P2(e,n,t){var i,s=1;e==null&&(e=0),n==null&&(n=0),t==null&&(t=0);function o(){var l,C=i.length,a,h=0,c=0,u=0;for(l=0;l=(a=(l+C)/2))?l=a:C=a,i=s,!(s=s[u=+c]))return i[u]=o,e;if(h=+e._x.call(null,s.data),n===h)return o.next=s,i?i[u]=o:e._root=o,e;do i=i?i[u]=new Array(2):e._root=new Array(2),(c=n>=(a=(l+C)/2))?l=a:C=a;while((u=+c)==(p=+(h>=a)));return i[p]=s,i[u]=o,e}function W5(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,t=new Float64Array(n);let i=1/0,s=-1/0;for(let o=0,l;os&&(s=l));if(i>s)return this;this.cover(i).cover(s);for(let o=0;oe||e>=t;)switch(l=+(el||(o=h.x1)=u))&&(h=C[C.length-1],C[C.length-1]=C[C.length-1-c],C[C.length-1-c]=h)}else{var p=Math.abs(e-+this._x.call(null,a.data));p=(h=(l+C)/2))?l=h:C=h,n=t,!(t=t[u=+c]))return this;if(!t.length)break;n[u+1&1]&&(i=n,p=u)}for(;t.data!==e;)if(s=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,s?(o?s.next=o:delete s.next,this):n?(o?n[u]=o:delete n[u],(t=n[0]||n[1])&&t===(n[1]||n[0])&&!t.length&&(i?i[p]=t:this._root=t),this):(this._root=o,this)}function e0(e){for(var n=0,t=e.length;n=(u=(C+h)/2))?C=u:h=u,(w=t>=(p=(a+c)/2))?a=p:c=p,s=o,!(o=o[d=w<<1|_]))return s[d]=l,e;if(x=+e._x.call(null,o.data),f=+e._y.call(null,o.data),n===x&&t===f)return l.next=o,s?s[d]=l:e._root=l,e;do s=s?s[d]=new Array(4):e._root=new Array(4),(_=n>=(u=(C+h)/2))?C=u:h=u,(w=t>=(p=(a+c)/2))?a=p:c=p;while((d=w<<1|_)===(k=(f>=p)<<1|x>=u));return s[k]=o,s[d]=l,e}function C0(e){var n,t,i=e.length,s,o,l=new Array(i),C=new Array(i),a=1/0,h=1/0,c=-1/0,u=-1/0;for(t=0;tc&&(c=s),ou&&(u=o));if(a>c||h>u)return this;for(this.cover(a,h).cover(c,u),t=0;te||e>=s||i>n||n>=o;)switch(h=(nc||(C=f.y0)>u||(a=f.x1)=d)<<1|e>=w)&&(f=p[p.length-1],p[p.length-1]=p[p.length-1-_],p[p.length-1-_]=f)}else{var k=e-+this._x.call(null,x.data),g=n-+this._y.call(null,x.data),v=k*k+g*g;if(v=(p=(l+a)/2))?l=p:a=p,(_=u>=(x=(C+h)/2))?C=x:h=x,n=t,!(t=t[w=_<<1|f]))return this;if(!t.length)break;(n[w+1&3]||n[w+2&3]||n[w+3&3])&&(i=n,d=w)}for(;t.data!==e;)if(s=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,s?(o?s.next=o:delete s.next,this):n?(o?n[w]=o:delete n[w],(t=n[0]||n[1]||n[2]||n[3])&&t===(n[3]||n[2]||n[1]||n[0])&&!t.length&&(i?i[d]=t:this._root=t),this):(this._root=o,this)}function f0(e){for(var n=0,t=e.length;n=(f=(a+u)/2))?a=f:u=f,(m=t>=(_=(h+p)/2))?h=_:p=_,(y=i>=(w=(c+x)/2))?c=w:x=w,o=l,!(l=l[j=y<<2|m<<1|v]))return o[j]=C,e;if(d=+e._x.call(null,l.data),k=+e._y.call(null,l.data),g=+e._z.call(null,l.data),n===d&&t===k&&i===g)return C.next=l,o?o[j]=C:e._root=C,e;do o=o?o[j]=new Array(8):e._root=new Array(8),(v=n>=(f=(a+u)/2))?a=f:u=f,(m=t>=(_=(h+p)/2))?h=_:p=_,(y=i>=(w=(c+x)/2))?c=w:x=w;while((j=y<<2|m<<1|v)===(L=(g>=w)<<2|(k>=_)<<1|d>=f));return o[L]=l,o[j]=C,e}function j0(e){Array.isArray(e)||(e=Array.from(e));const n=e.length,t=new Float64Array(n),i=new Float64Array(n),s=new Float64Array(n);let o=1/0,l=1/0,C=1/0,a=-1/0,h=-1/0,c=-1/0;for(let u=0,p,x,f,_;ua&&(a=x),fh&&(h=f),_c&&(c=_));if(o>a||l>h||C>c)return this;this.cover(o,l,C).cover(a,h,c);for(let u=0;ue||e>=l||s>n||n>=C||o>t||t>=a;)switch(p=(tf||(h=g.y0)>_||(c=g.z0)>w||(u=g.x1)=j)<<2|(n>=y)<<1|e>=m)&&(g=d[d.length-1],d[d.length-1]=d[d.length-1-v],d[d.length-1-v]=g)}else{var L=e-+this._x.call(null,k.data),M=n-+this._y.call(null,k.data),S=t-+this._z.call(null,k.data),P=L*L+M*M+S*S;if(P=(_=(l+h)/2))?l=_:h=_,(g=x>=(w=(C+c)/2))?C=w:c=w,(v=f>=(d=(a+u)/2))?a=d:u=d,n=t,!(t=t[m=v<<2|g<<1|k]))return this;if(!t.length)break;(n[m+1&7]||n[m+2&7]||n[m+3&7]||n[m+4&7]||n[m+5&7]||n[m+6&7]||n[m+7&7])&&(i=n,y=m)}for(;t.data!==e;)if(s=t,!(t=t.next))return this;return(o=t.next)&&delete t.next,s?(o?s.next=o:delete s.next,this):n?(o?n[m]=o:delete n[m],(t=n[0]||n[1]||n[2]||n[3]||n[4]||n[5]||n[6]||n[7])&&t===(n[7]||n[6]||n[5]||n[4]||n[3]||n[2]||n[1]||n[0])&&!t.length&&(i?i[y]=t:this._root=t),this):(this._root=o,this)}function Z0(e){for(var n=0,t=e.length;n1&&(_=x.y+x.vy),t>2&&(w=x.z+x.vz),p.visit(v);function v(m,y,j,L,M,S,P){var V=[y,j,L,M,S,P],U=V[0],B=V[1],Z=V[2],E=V[t],I=V[t+1],z=V[t+2],R=m.data,W=m.r,O=d+W;if(R){if(R.index>x.index){var $=f-R.x-R.vx,J=t>1?_-R.y-R.vy:0,q=t>2?w-R.z-R.vz:0,A=$*$+J*J+q*q;A1&&J===0&&(J=t1(s),A+=J*J),t>2&&q===0&&(q=t1(s),A+=q*q),A=(O-(A=Math.sqrt(A)))/A*o,x.vx+=($*=A)*(O=(W*=W)/(k+W)),t>1&&(x.vy+=(J*=A)*O),t>2&&(x.vz+=(q*=A)*O),R.vx-=$*(O=1-O),t>1&&(R.vy-=J*O),t>2&&(R.vz-=q*O))}return}return U>f+O||E1&&(B>_+O||I<_-O)||t>2&&(Z>w+O||zc.r&&(c.r=c[u].r)}function h(){if(n){var c,u=n.length,p;for(i=new Array(u),c=0;ctypeof p=="function")||Math.random,t=u.find(p=>[1,2,3].includes(p))||2,h()},C.iterations=function(c){return arguments.length?(l=+c,C):l},C.strength=function(c){return arguments.length?(o=+c,C):o},C.radius=function(c){return arguments.length?(e=typeof c=="function"?c:Y(+c),h(),C):e},C}function A0(e){return e.index}function U2(e,n){var t=e.get(n);if(!t)throw new Error("node not found: "+n);return t}function z0(e){var n=A0,t=p,i,s=Y(30),o,l,C,a,h,c,u=1;e==null&&(e=[]);function p(d){return 1/Math.min(a[d.source.index],a[d.target.index])}function x(d){for(var k=0,g=e.length;k1&&(M=j.y+j.vy-y.y-y.vy||t1(c)),C>2&&(S=j.z+j.vz-y.z-y.vz||t1(c)),P=Math.sqrt(L*L+M*M+S*S),P=(P-o[v])/P*d*i[v],L*=P,M*=P,S*=P,j.vx-=L*(V=h[v]),C>1&&(j.vy-=M*V),C>2&&(j.vz-=S*V),y.vx+=L*(V=1-V),C>1&&(y.vy+=M*V),C>2&&(y.vz+=S*V)}function f(){if(l){var d,k=l.length,g=e.length,v=new Map(l.map((y,j)=>[n(y,j,l),y])),m;for(d=0,a=new Array(k);dtypeof g=="function")||Math.random,C=k.find(g=>[1,2,3].includes(g))||2,f()},x.links=function(d){return arguments.length?(e=d,f(),x):e},x.id=function(d){return arguments.length?(n=d,x):n},x.iterations=function(d){return arguments.length?(u=+d,x):u},x.strength=function(d){return arguments.length?(t=typeof d=="function"?d:Y(+d),_(),x):t},x.distance=function(d){return arguments.length?(s=typeof d=="function"?d:Y(+d),w(),x):s},x}var F0={value:()=>{}};function C3(){for(var e=0,n=arguments.length,t={},i;e=0&&(i=t.slice(s+1),t=t.slice(0,s)),t&&!n.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:i}})}z1.prototype=C3.prototype={constructor:z1,on:function(e,n){var t=this._,i=D0(e+"",t),s,o=-1,l=i.length;if(arguments.length<2){for(;++o0)for(var t=new Array(s),i=0,s,o;i=0&&e._call.call(void 0,n),e=e._next;--y1}function $2(){h1=(W1=T1.now())+X1,y1=E1=0;try{W0()}finally{y1=0,Y0(),h1=0}}function X0(){var e=T1.now(),n=e-W1;n>a3&&(X1-=n,W1=e)}function Y0(){for(var e,n=G1,t,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:G1=t);S1=e,l2(i)}function l2(e){if(!y1){E1&&(E1=clearTimeout(E1));var n=e-h1;n>24?(e<1/0&&(E1=setTimeout($2,e-T1.now()-X1)),M1&&(M1=clearInterval(M1))):(M1||(W1=T1.now(),M1=setInterval(X0,a3)),y1=1,c3($2))}}const K0=1664525,Q0=1013904223,A2=4294967296;function J0(){let e=1;return()=>(e=(K0*e+Q0)%A2)/A2}var z2=3;function r2(e){return e.x}function F2(e){return e.y}function e6(e){return e.z}var t6=10,n6=Math.PI*(3-Math.sqrt(5)),r6=Math.PI*20/(9+Math.sqrt(221));function i6(e,n){n=n||2;var t=Math.min(z2,Math.max(1,Math.round(n))),i,s=1,o=.001,l=1-Math.pow(o,1/300),C=0,a=.6,h=new Map,c=u3(x),u=C3("tick","end"),p=J0();e==null&&(e=[]);function x(){f(),u.call("tick",i),s1&&(v.fy==null?v.y+=v.vy*=a:(v.y=v.fy,v.vy=0)),t>2&&(v.fz==null?v.z+=v.vz*=a:(v.z=v.fz,v.vz=0));return i}function _(){for(var d=0,k=e.length,g;d1&&isNaN(g.y)||t>2&&isNaN(g.z)){var v=t6*(t>2?Math.cbrt(.5+d):t>1?Math.sqrt(.5+d):d),m=d*n6,y=d*r6;t===1?g.x=v:t===2?(g.x=v*Math.cos(m),g.y=v*Math.sin(m)):(g.x=v*Math.sin(m)*Math.cos(y),g.y=v*Math.cos(m),g.z=v*Math.sin(m)*Math.sin(y))}(isNaN(g.vx)||t>1&&isNaN(g.vy)||t>2&&isNaN(g.vz))&&(g.vx=0,t>1&&(g.vy=0),t>2&&(g.vz=0))}}function w(d){return d.initialize&&d.initialize(e,p,t),d}return _(),i={tick:f,restart:function(){return c.restart(x),i},stop:function(){return c.stop(),i},numDimensions:function(d){return arguments.length?(t=Math.min(z2,Math.max(1,Math.round(d))),h.forEach(w),i):t},nodes:function(d){return arguments.length?(e=d,_(),h.forEach(w),i):e},alpha:function(d){return arguments.length?(s=+d,i):s},alphaMin:function(d){return arguments.length?(o=+d,i):o},alphaDecay:function(d){return arguments.length?(l=+d,i):+l},alphaTarget:function(d){return arguments.length?(C=+d,i):C},velocityDecay:function(d){return arguments.length?(a=1-d,i):1-a},randomSource:function(d){return arguments.length?(p=d,h.forEach(w),i):p},force:function(d,k){return arguments.length>1?(k==null?h.delete(d):h.set(d,w(k)),i):h.get(d)},find:function(){var d=Array.prototype.slice.call(arguments),k=d.shift()||0,g=(t>1?d.shift():null)||0,v=(t>2?d.shift():null)||0,m=d.shift()||1/0,y=0,j=e.length,L,M,S,P,V,U;for(m*=m,y=0;y1?(u.on(d,k),i):u.on(d)}}}function D2(){var e,n,t,i,s,o=Y(-30),l,C=1,a=1/0,h=.81;function c(f){var _,w=e.length,d=(n===1?a2(e,r2):n===2?h2(e,r2,F2):n===3?d2(e,r2,F2,e6):null).visitAfter(p);for(s=f,_=0;_1&&(f.y=v/k),n>2&&(f.z=m/k)}else{w=f,w.x=w.data.x,n>1&&(w.y=w.data.y),n>2&&(w.z=w.data.z);do _+=l[w.data.index];while(w=w.next)}f.value=_}function x(f,_,w,d,k){if(!f.value)return!0;var g=[w,d,k][n-1],v=f.x-t.x,m=n>1?f.y-t.y:0,y=n>2?f.z-t.z:0,j=g-_,L=v*v+m*m+y*y;if(j*j/h1&&m===0&&(m=t1(i),L+=m*m),n>2&&y===0&&(y=t1(i),L+=y*y),L1&&(t.vy+=m*f.value*s/L),n>2&&(t.vz+=y*f.value*s/L)),!0;if(f.length||L>=a)return;(f.data!==t||f.next)&&(v===0&&(v=t1(i),L+=v*v),n>1&&m===0&&(m=t1(i),L+=m*m),n>2&&y===0&&(y=t1(i),L+=y*y),L1&&(t.vy+=m*j),n>2&&(t.vz+=y*j));while(f=f.next)}return c.initialize=function(f,..._){e=f,i=_.find(w=>typeof w=="function")||Math.random,n=_.find(w=>[1,2,3].includes(w))||2,u()},c.strength=function(f){return arguments.length?(o=typeof f=="function"?f:Y(+f),u(),c):o},c.distanceMin=function(f){return arguments.length?(C=f*f,c):Math.sqrt(C)},c.distanceMax=function(f){return arguments.length?(a=f*f,c):Math.sqrt(a)},c.theta=function(f){return arguments.length?(h=f*f,c):Math.sqrt(h)},c}function q2(e,n,t,i){var s,o,l=Y(.1),C,a;typeof e!="function"&&(e=Y(+e)),n==null&&(n=0),t==null&&(t=0),i==null&&(i=0);function h(u){for(var p=0,x=s.length;p1&&(f.vy+=w*g),o>2&&(f.vz+=d*g)}}function c(){if(s){var u,p=s.length;for(C=new Array(p),a=new Array(p),u=0;u[1,2,3].includes(x))||2,c()},h.strength=function(u){return arguments.length?(l=typeof u=="function"?u:Y(+u),c(),h):l},h.radius=function(u){return arguments.length?(e=typeof u=="function"?u:Y(+u),c(),h):e},h.x=function(u){return arguments.length?(n=+u,h):n},h.y=function(u){return arguments.length?(t=+u,h):t},h.z=function(u){return arguments.length?(i=+u,h):i},h}function s6(e){var n=Y(.1),t,i,s;typeof e!="function"&&(e=Y(e==null?0:+e));function o(C){for(var a=0,h=t.length,c;a{},setForces:()=>{},addRadialForce:()=>{},addDefaultForce:()=>{},addClusterForce:()=>{},addSplitForce:()=>{},simulationRestart:()=>{},getLinks:()=>[]},l6={data:null,simulation:null,selectionGraphData:{nodes:[],links:[]},disableCameraRotation:!0,scrollEventsDisabled:!1,graphRadius:1500,selectionGraphRadius:200,graphStyle:"sphere",hoveredNode:null,hoveredNodeSiblings:[],selectedNode:null,activeEdge:null,cameraFocusTrigger:!1,nearbyNodeIds:[],showSelectionGraph:!1,simulationHelpers:o6,isHovering:!1,selectionPath:[],activeNode:null,highlightNodes:[],searchQuery:"",selectedNodeTypes:[],selectedLinkTypes:[]},j1=X2()((e,n)=>({...l6,setData:t=>{e({data:t})},setSelectedNodeTypes:t=>{const{selectedNodeTypes:i}=n(),s=i.includes(t)?i.filter(o=>o!==t):[...i,t];e({selectedNodeTypes:s})},setSelectedLinkTypes:t=>{const{selectedLinkTypes:i}=n(),s=i.includes(t)?i.filter(o=>o!==t):[...i,t];e({selectedLinkTypes:s})},resetSelectedNodeTypes:()=>e({selectedNodeTypes:[]}),resetSelectedLinkTypes:()=>e({selectedLinkTypes:[]}),setSelectionData:t=>e({selectionGraphData:t}),setScrollEventsDisabled:t=>e({scrollEventsDisabled:t}),setDisableCameraRotation:t=>e({disableCameraRotation:t}),setIsHovering:t=>e({isHovering:t}),setGraphRadius:t=>e({graphRadius:t}),setSelectionGraphRadius:t=>e({selectionGraphRadius:t}),setGraphStyle:t=>e({graphStyle:"sphere"}),setHoveredNode:t=>{const{nodesNormalized:i}=I1.getState()||{};if(t){const s=i.get(t.ref_id),o=[...(s==null?void 0:s.targets)||[],...(s==null?void 0:s.sources)||[]];e({hoveredNode:t,hoveredNodeSiblings:o})}else e({hoveredNode:t,hoveredNodeSiblings:[]})},setActiveEdge:t=>{e({activeEdge:t})},setActiveNode:t=>{e({activeNode:t})},setHighlightNodes:t=>{e({highlightNodes:t})},addToSelectionPath:t=>{const{selectionPath:i}=n();e({selectionPath:[...i,t]})},setSelectedNode:t=>{const{nodesNormalized:i}=I1.getState()||{};t||e({hoveredNode:null,selectedNode:null,disableCameraRotation:!1,showSelectionGraph:!1,selectionPath:[]});const{selectedNode:s,simulation:o,selectionPath:l}=n();if((s==null?void 0:s.ref_id)!==(t==null?void 0:t.ref_id)){const C=o.nodes().find(a=>a.ref_id===(t==null?void 0:t.ref_id))||null;if(t!=null&&t.ref_id){const a=(i==null?void 0:i.get(t==null?void 0:t.ref_id))||{};e({hoveredNode:null,selectedNode:{...C,...a},disableCameraRotation:!0,showSelectionGraph:!!t,selectionPath:[...l,C.ref_id]})}}},setCameraFocusTrigger:t=>e({cameraFocusTrigger:t}),setNearbyNodeIds:t=>{const i=n().nearbyNodeIds;(t.length!==i.length||t[0]!==i[0])&&e({nearbyNodeIds:t})},setShowSelectionGraph:t=>e({showSelectionGraph:t}),simulationHelpers:{addNodesAndLinks:(t,i,s)=>{const{simulation:o,simulationHelpers:l}=n();console.log(o.nodes()),console.log(t),o.stop();const C=structuredClone(t),a=structuredClone(i);o.stop();const h=s?[]:o.nodes(),c=s?[]:o.force("link").links();h.push(...C),c.push(...a),o.nodes(h),o.force("link").links([]).links(c),l.simulationRestart();try{console.log("try")}catch(u){console.error(u)}},addRadialForce:()=>{const{simulation:t}=n();t.nodes(t.nodes().map(i=>({...i,...A1}))).force("y",null).force("center",P2().strength(1)).force("charge",D2().strength(-1)).force("collide",n2().radius(i=>(i.scale||1)*95).strength(.5).iterations(1))},addClusterForce:()=>{const{simulation:t,highlightNodes:i}=n();t.nodes(t.nodes().map(s=>({...s,...A1}))).force("cluster",q2(s=>i.includes(s.ref_id)?25:500).strength(1))},addDefaultForce:()=>{const{simulation:t}=n();t.nodes(t.nodes().map(i=>({...i,...A1}))).force("y",null).force("charge",D2().strength(-20)).force("center",P2().strength(1)).force("collide",n2().radius(()=>250).strength(1).iterations(1))},addSplitForce:()=>{const{simulation:t}=n(),{nodeTypes:i}=I1.getState();t.stop().nodes(t.nodes().map(s=>({...s,...A1}))).force("radial",q2(200,0,0,0).strength(.1)).force("collide",n2().radius(()=>250).strength(1).iterations(1)).force("y",s6().y(s=>{const o=i.indexOf(s.node_type),l=Math.floor(o/2)*400;return o%2===0?l:-l}).strength(10))},getLinks:()=>{const{simulation:t}=n();return t?t.force("link").links():[]},setForces:()=>{const{graphStyle:t,simulationHelpers:i}=n();t==="split"&&i.addSplitForce(),t==="sphere"&&i.addRadialForce(),t==="force"&&i.addDefaultForce(),i.simulationRestart()},simulationRestart:()=>{const{simulation:t}=n();t.alpha(1).restart()}},simulationCreate:(t,i)=>{const s=structuredClone(t),o=structuredClone(i),l=i6([]).numDimensions(3).stop().nodes(s).force("link",z0().strength(0).links(o).id(C=>C.ref_id));e({simulation:l})},removeSimulation:()=>e({simulation:null}),setSearchQuery:t=>e({searchQuery:t})})),d3=()=>j1(e=>e.selectedNode),S7=()=>j1(e=>e.hoveredNode),C6=()=>j1(e=>e.setSelectedNode),a6=()=>(j1(A5(e=>[e.graphStyle,e.setGraphStyle])),null);D(f1).attrs({direction:"row",align:"center",justify:"space-between"})` padding: 6px 6px 6px 11px; background: ${i1.BG1}; border-radius: 200px; @@ -23,7 +23,7 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P .icon + .icon { margin-left: 20px; } -`;const d3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"center",children:[r.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),r.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),c6=()=>{const e=j1(n=>n.cameraFocusTrigger),t=j1(n=>n.setCameraFocusTrigger);return r.jsx(h6,{href:"",onClick:()=>t(!e),size:"medium",startIcon:r.jsx(d3,{})})},h6=D(X2)` +`;const f3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 17",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"center",children:[r.jsx("path",{id:"Vector 121",d:"M9 4L9 1",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 123",d:"M14 9H17",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 122",d:"M9 16L9 14",stroke:"white","stroke-linecap":"round"}),r.jsx("path",{id:"Vector 124",d:"M1 9L4 9",stroke:"white","stroke-linecap":"round"}),r.jsx("circle",{id:"Ellipse 2",cx:"9.00001",cy:"9.00001",r:"5.02857",stroke:"white"})]})}),c6=()=>{const e=j1(t=>t.cameraFocusTrigger),n=j1(t=>t.setCameraFocusTrigger);return r.jsx(h6,{href:"",onClick:()=>n(!e),size:"medium",startIcon:r.jsx(f3,{})})},h6=D(Y2)` && { padding: 0; width: 32px; @@ -37,7 +37,7 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P filter: brightness(0.65); } } -`,f3=D.div` +`,p3=D.div` position: relative; display: inline-flex; align-items: center; @@ -62,11 +62,11 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P font-size: ${({fontSize:e})=>e||"12px"}; font-weight: ${({fontWeight:e})=>e||"600"}; - ${f3}:hover & { + ${p3}:hover & { visibility: visible; opacity: 1; } -`,d6=({content:e,children:t,margin:n,backgroundColor:i,color:s,padding:o,fontSize:l,fontWeight:C,borderRadius:a,minWidth:h,whiteSpace:c,position:u,textAlign:p})=>r.jsxs(f3,{children:[t,r.jsx(u6,{backgroundColor:i,borderRadius:a,color:s,fontSize:l,fontWeight:C,margin:n,minWidth:h,padding:o,position:u,textAlign:p,whiteSpace:c,children:e})]}),f6=()=>{const{resetGraph:e}=z1(t=>t);return r.jsx(d6,{content:"Clear Graph",fontSize:"13px",position:"left",children:r.jsx(p6,{href:"",onClick:()=>e(),size:"medium",startIcon:r.jsx(C2,{})})})},p6=D(X2)` +`,d6=({content:e,children:n,margin:t,backgroundColor:i,color:s,padding:o,fontSize:l,fontWeight:C,borderRadius:a,minWidth:h,whiteSpace:c,position:u,textAlign:p})=>r.jsxs(p3,{children:[n,r.jsx(u6,{backgroundColor:i,borderRadius:a,color:s,fontSize:l,fontWeight:C,margin:t,minWidth:h,padding:o,position:u,textAlign:p,whiteSpace:c,children:e})]}),f6=()=>{const{resetGraph:e}=I1(n=>n);return r.jsx(d6,{content:"Clear Graph",fontSize:"13px",position:"left",children:r.jsx(p6,{href:"",onClick:()=>e(),size:"medium",startIcon:r.jsx(C2,{})})})},p6=D(Y2)` && { padding: 0; width: 32px; @@ -81,15 +81,15 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P filter: brightness(0.65); } } -`,p3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Pause Normal",children:r.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),x3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Play & Pause",children:r.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),x6={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},g6=D.div` - background-image: ${({src:e,type:t="audio"})=>`url(${e}), url('/${x6[t]||"generic"}_placeholder_img.png')`}; +`,x3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Pause Normal",children:r.jsx("path",{id:"Pause",d:"M19 3C10.15 3 3 10.15 3 19C3 27.85 10.15 35 19 35C27.85 35 35 27.85 35 19C35 10.15 27.8 3 19 3ZM17.25 23.3C17.25 24.25 16.5 25.05 15.5 25.05C14.55 25.05 13.75 24.3 13.75 23.3V14.65C13.75 13.7 14.5 12.9 15.5 12.9C16.45 12.9 17.25 13.65 17.25 14.65V23.3ZM24.2 23.3C24.2 24.25 23.45 25.05 22.45 25.05C21.5 25.05 20.7 24.3 20.7 23.3V14.65C20.7 13.7 21.45 12.9 22.45 12.9C23.4 12.9 24.2 13.65 24.2 14.65V23.3Z",fill:"currentColor"})})}),g3=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 38 38",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Play & Pause",children:r.jsx("path",{id:"Play",d:"M19 3C10.1606 3 3 10.1606 3 19C3 27.8394 10.1606 35 19 35C27.8394 35 35 27.8394 35 19C35 10.1606 27.8338 3 19 3ZM24.0746 20.0898L16.936 24.6361C16.182 25.1149 15.1913 24.5755 15.1913 23.6784V14.5913C15.1913 13.6942 16.182 13.1548 16.936 13.6336L24.0746 18.1799C24.7736 18.6202 24.7736 19.644 24.0746 20.0898Z",fill:"currentColor"})})}),x6={video:"video",podcast:"audio",episode:"audio",clip:"audio",tweet:"twitter",person:"person",guest:"person",twitter_space:"audio",show:"show",image:"image"},g6=D.div` + background-image: ${({src:e,type:n="audio"})=>`url(${e}), url('/${x6[n]||"generic"}_placeholder_img.png')`}; background-size: cover; background-position: center; background-repeat: no-repeat; - width: ${({size:e=45,width:t})=>t||e}px; - height: ${({size:e=45,height:t})=>t||e}px; + width: ${({size:e=45,width:n})=>n||e}px; + height: ${({size:e=45,height:n})=>n||e}px; border-radius: ${({rounded:e})=>e?"50%":"2px"}; -`,V1={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playbackSpeed:1,playerRef:null},m6=W2()(v3((e,t)=>({...V1,setIsSeeking:n=>e({isSeeking:n}),setIsPlaying:n=>e({isPlaying:n}),setPlayerRef:n=>e({playerRef:n}),setMiniPlayerIsVisible:n=>{e(n?{miniPlayerIsVisible:n}:{miniPlayerIsVisible:n,isPlaying:!1})},setHasError:n=>e({hasError:n}),setPlayingTime:n=>e({playingTime:n}),setDuration:n=>e({duration:n}),setVolume:n=>e({volume:n}),setPlayingNodeLink:n=>{const{playingNode:i}=t();i&&e({playingNode:{...i,link:n}})},setPlayingNode:n=>{n||e({...V1});const i=t().playingNode;(i==null?void 0:i.ref_id)!==(n==null?void 0:n.ref_id)&&e({...V1,miniPlayerIsVisible:!0,playingNode:n})},resetPlayer:()=>e({duration:V1.duration,hasError:V1.hasError}),setPlaybackSpeed:n=>e({playbackSpeed:n})}))),w6=()=>{var v,m,y,j,L;const e=H.useRef(null),[t,n]=H.useState(0),i=u3(),s=C6(),[o,l]=Y2(M=>[M.sidebarIsOpen,M.setSidebarOpen]),[C,a,h,c,u,p]=m6(M=>[M.isPlaying,M.setIsPlaying,M.playingTime,M.playingNode,M.miniPlayerIsVisible,M.setMiniPlayerIsVisible]),[x,f]=(v=c==null?void 0:c.properties)!=null&&v.timestamp?c.properties.timestamp.split("-").map(M=>L3(M)):[0,0],_=(h-x)/(f-x)*100;H.useEffect(()=>{var P,V;const M=((P=e.current)==null?void 0:P.offsetWidth)||0,S=((V=e.current)==null?void 0:V.scrollWidth)||0;n(S-M)},[]);const w=M=>{p(!1),M.stopPropagation()},d=()=>{s(c),l(!0)},k=o&&(i==null?void 0:i.ref_id)!==(c==null?void 0:c.ref_id)||c&&!o,g=((m=window.location)==null?void 0:m.hostname)==="graphmindset.sphinx.chat";return u&&c&&k&&!g?r.jsxs(v6,{onClick:d,children:[r.jsxs(_6,{children:[r.jsx(g6,{src:((y=c==null?void 0:c.properties)==null?void 0:y.image_url)||"",type:c.node_type}),r.jsxs(k6,{children:[r.jsxs(M6,{ref:e,children:[r.jsx(H6,{className:"title",scrollValue:t,children:(j=c==null?void 0:c.properties)==null?void 0:j.episode_title}),r.jsx("div",{className:"subtitle",children:(L=c==null?void 0:c.properties)==null?void 0:L.show_title})]}),r.jsx(j6,{"data-testid":"play-pause-button",onClick:M=>{a(!C),M.stopPropagation()},size:"small",children:C?r.jsx(p3,{"data-testid":"pause-icon"}):r.jsx(x3,{"data-testid":"play-icon"})})]}),r.jsx(y6,{onClick:M=>w(M),children:r.jsx(C2,{})})]}),r.jsx(L6,{value:_,variant:"determinate"})]}):null},v6=D(f1).attrs({direction:"column",align:"stretch",justify:"space-between"})` +`,V1={isPlaying:!1,miniPlayerIsVisible:!1,hasError:!1,isSeeking:!1,playingTime:0,playingNode:null,duration:0,volume:.5,playbackSpeed:1,playerRef:null},m6=X2()(_3((e,n)=>({...V1,setIsSeeking:t=>e({isSeeking:t}),setIsPlaying:t=>e({isPlaying:t}),setPlayerRef:t=>e({playerRef:t}),setMiniPlayerIsVisible:t=>{e(t?{miniPlayerIsVisible:t}:{miniPlayerIsVisible:t,isPlaying:!1})},setHasError:t=>e({hasError:t}),setPlayingTime:t=>e({playingTime:t}),setDuration:t=>e({duration:t}),setVolume:t=>e({volume:t}),setPlayingNodeLink:t=>{const{playingNode:i}=n();i&&e({playingNode:{...i,link:t}})},setPlayingNode:t=>{t||e({...V1});const i=n().playingNode;(i==null?void 0:i.ref_id)!==(t==null?void 0:t.ref_id)&&e({...V1,miniPlayerIsVisible:!0,playingNode:t})},resetPlayer:()=>e({duration:V1.duration,hasError:V1.hasError}),setPlaybackSpeed:t=>e({playbackSpeed:t})}))),w6=()=>{var v,m,y,j,L;const e=H.useRef(null),[n,t]=H.useState(0),i=d3(),s=C6(),[o,l]=K2(M=>[M.sidebarIsOpen,M.setSidebarOpen]),[C,a,h,c,u,p]=m6(M=>[M.isPlaying,M.setIsPlaying,M.playingTime,M.playingNode,M.miniPlayerIsVisible,M.setMiniPlayerIsVisible]),[x,f]=(v=c==null?void 0:c.properties)!=null&&v.timestamp?c.properties.timestamp.split("-").map(M=>H3(M)):[0,0],_=(h-x)/(f-x)*100;H.useEffect(()=>{var P,V;const M=((P=e.current)==null?void 0:P.offsetWidth)||0,S=((V=e.current)==null?void 0:V.scrollWidth)||0;t(S-M)},[]);const w=M=>{p(!1),M.stopPropagation()},d=()=>{s(c),l(!0)},k=o&&(i==null?void 0:i.ref_id)!==(c==null?void 0:c.ref_id)||c&&!o,g=((m=window.location)==null?void 0:m.hostname)==="graphmindset.sphinx.chat";return u&&c&&k&&!g?r.jsxs(v6,{onClick:d,children:[r.jsxs(_6,{children:[r.jsx(g6,{src:((y=c==null?void 0:c.properties)==null?void 0:y.image_url)||"",type:c.node_type}),r.jsxs(k6,{children:[r.jsxs(M6,{ref:e,children:[r.jsx(H6,{className:"title",scrollValue:n,children:(j=c==null?void 0:c.properties)==null?void 0:j.episode_title}),r.jsx("div",{className:"subtitle",children:(L=c==null?void 0:c.properties)==null?void 0:L.show_title})]}),r.jsx(j6,{"data-testid":"play-pause-button",onClick:M=>{a(!C),M.stopPropagation()},size:"small",children:C?r.jsx(x3,{"data-testid":"pause-icon"}):r.jsx(g3,{"data-testid":"play-icon"})})]}),r.jsx(y6,{onClick:M=>w(M),children:r.jsx(C2,{})})]}),r.jsx(L6,{value:_,variant:"determinate"})]}):null},v6=D(f1).attrs({direction:"column",align:"stretch",justify:"space-between"})` padding: 8px; background: ${i1.BG1}; border-radius: 6px; @@ -116,11 +116,11 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P white-space: nowrap; text-overflow: ellipsis; } -`,y6=D(J2)` +`,y6=D(e3)` padding: 8px; color: ${i1.GRAY6}; z-index: 100000; -`,j6=D(J2)` +`,j6=D(e3)` && { font-size: 36px; padding: 2px; @@ -128,7 +128,7 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P overflow: hidden; z-index: 100000; } -`,L6=D(_3)` +`,L6=D(k3)` && { flex-shrink: 0; height: 2px; @@ -164,7 +164,7 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P `,M6=D(f1)` overflow: hidden; flex: 1; -`,V6=()=>{const e=u3(),t=z1(s=>s.isFetching),n=Y2(s=>s.universeQuestionIsOpen),{isAdmin:i}=k3(s=>s);return r.jsxs(b6,{align:"flex-end",id:"actions-toolbar",children:[r.jsxs(Z6,{children:[!t&&!n&&i&&r.jsx(f6,{}),!t&&!n&&r.jsx(c6,{})]}),r.jsx(f1,{align:"center",direction:"row",mt:16,children:!t&&!n&&r.jsx(a6,{})}),r.jsx(w6,{},e==null?void 0:e.ref_id)]})},b6=D(f1)` +`,V6=()=>{const e=d3(),n=I1(s=>s.isFetching),t=K2(s=>s.universeQuestionIsOpen),{isAdmin:i}=y3(s=>s);return r.jsxs(b6,{align:"flex-end",id:"actions-toolbar",children:[r.jsxs(Z6,{children:[!n&&!t&&i&&r.jsx(f6,{}),!n&&!t&&r.jsx(c6,{})]}),r.jsx(f1,{align:"center",direction:"row",mt:16,children:!n&&!t&&r.jsx(a6,{})}),r.jsx(w6,{},e==null?void 0:e.ref_id)]})},b6=D(f1)` position: absolute; right: 20px; bottom: 20px; @@ -173,4 +173,4 @@ import{G as g3,R as O1,H as r1,J as b1,K as q2,L as T1,M as N1,O as u1,x as b,P display: flex; flex-direction: column; gap: 4px; -`,I7=()=>r.jsx(E6,{children:r.jsx(V6,{})}),E6=D("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",paddingRight:"0",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),P7=()=>{const e=H.useContext(y3);return e==null?void 0:e.socket},S6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),I6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Nodes",children:[r.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_141)",children:r.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),P6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),B6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_25)",children:r.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),T6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"add_link",children:[r.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2659_52)",children:r.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),N6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_27)",children:r.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),R6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),U6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),O6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),$6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21694)",children:r.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),A6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"arrow_forward",children:[r.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8980_24763)",children:r.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),z6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),F6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),D6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Audio",children:[r.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_147)",children:r.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),q6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_45)",children:r.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),G6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),W6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"browse_gallery",children:[r.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1360_27257)",children:r.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),X6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21901)",children:r.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Y6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),K6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Q6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),J6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),e9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),t9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"keyboard_arrow_left",children:[r.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1428_267)",children:r.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),n9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"chevron_right",children:[r.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1247_21809)",children:r.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),r9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),i9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),r.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),s9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),o9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),l9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_4256)",children:r.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),C9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22054)",children:r.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),a9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),r.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),c9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"content_copy",children:[r.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1489_75628)",children:r.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),h9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_27)",children:r.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),u9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:r.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8954_27793)",children:r.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),r.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),d9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[r.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask1_2777_4506)",children:r.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),f9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"delete",children:[r.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),p9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),r.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),r.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),x9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22108)",children:r.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),g9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),m9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2638_2680)",children:r.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),w9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Type=Edit, Size=20x20",children:r.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),v9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),r.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),_9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),k9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Episode",children:[r.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),y9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_31)",children:r.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),j9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4160_9271)",children:r.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),L9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"captive_portal",children:[r.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[r.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),r.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),H9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),M9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"filter_alt_off",children:[r.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_23288)",children:r.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),b9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22315)",children:r.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),Z9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),E9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_23)",children:r.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),S9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3130_18463)",children:r.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),I9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22375)",children:r.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),P9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),B9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22441)",children:r.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),T9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22444)",children:r.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),N9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),R9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),U9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),O9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_19)",children:r.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),$9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22519)",children:r.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),A9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Icons 20x20",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),z9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),F9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),D9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_49)",children:r.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),q9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_mute",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),r.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),G9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),W9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"notes",children:[r.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1473_73722)",children:r.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),X9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Y9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),K9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_2772)",children:r.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),Q9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22741)",children:r.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),J9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_3741)",children:r.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),e7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:r.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),t7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{opacity:"0.4",children:[r.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13105)",children:r.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),n7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13106)",children:r.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),r7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22801)",children:r.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),i7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:r.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5099_7163)",children:r.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),s7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22828)",children:r.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),o7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22840)",children:r.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),l7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"schedule",children:[r.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4051_4016)",children:r.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),C7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_35)",children:r.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),a7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),c7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),h7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Normal",children:r.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),u7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"sensors",children:[r.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_161)",children:r.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),d7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_28)",children:r.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),f7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_29)",children:r.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),p7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"shield_person",children:[r.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_22988)",children:r.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),x7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),g7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"brand_awareness",children:[r.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3696_4540)",children:r.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),m7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),w7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_26)",children:r.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),v7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"stacks",children:[r.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8417_33308)",children:r.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),_7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9529_33)",children:r.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),k7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),r.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),r.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),y7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22378)",children:r.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),j7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5577_416)",children:r.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),L7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Twitter",children:[r.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_167)",children:r.jsx("g",{id:"X",children:r.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),H7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Video",children:[r.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_153)",children:r.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),M7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),V7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),b7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_up",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1483_75386)",children:r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),B7={AddCircleIcon:P6,AddContentIcon:B6,AddLinkIcon:T6,AddSourceIcon:N6,AiPauseIcon:R6,AiPlayIcon:U6,AiSummaryIcon:O6,AndroidIcon:$6,ArrowBackIcon:A6,ArrowForwardIcon:z6,ArrowRight:F6,AudioIcon:D6,BitcoinIcon:q6,BoostIcon:G6,BrowseGalleryIcon:W6,BubbleChartIcon:A5,BudgetIcon:S6,BuildIcon:X6,CalendarIcon:Y6,CameraCenterIcon:d3,CancelIcon:K6,CheckIcon:Q6,CheckedIcon:J6,ChevronDownIcon:e9,ChevronLeftIcon:t9,ChevronRightIcon:n9,ChevronUpIcon:r9,ChipIcon:i9,ClearIcon:C2,CloseIcon:s9,ColorPickerIcon:o9,CommunitiesIcon:z5,CompassIcon:l9,ConstructionIcon:C9,ContentIcon:a9,CopyIcon:c9,CorporationIcon:h9,CreateEdgeIcon:u9,DefaultShowIcon:d9,DeleteIcon:f9,DeleteNodeIcon:p9,DesignServicesIcon:x9,DocumentIcon:g9,DownloadIcon:m9,EditIcon:w9,EditNodeIcon:v9,EditTopicIcon:_9,EpisodeIcon:k9,EventIcon:y9,ExitFullScreen:j9,ExploreIcon:L9,FamilyHistoryIcon:H9,FeedbackIcon:M9,FilterOffIcon:V9,FingerprintIcon:b9,FlipIcon:Z9,FortIcon:E9,FullScreenIcon:S9,FunctionIcon:I9,GlobeIcon:P9,GrainIcon:F5,HandymanIcon:B9,HardwareIcon:T9,HashTag:N9,HashtagIcon:R9,HelpIcon:U9,HomeIcon:O9,InfoIcon:j3,JoystickIcon:$9,LinkIcon:A9,MenuIcon:z9,MergeIcon:F9,MoneyIcon:D9,MuteVolumeIcon:q9,NodeCircleIcon:G9,NodesIcon:I6,NotesIcon:W9,OrganizationIcon:X9,PauseIcon:p3,PersonAdd:Y9,PersonIcon:K9,PhoneIcon:Q9,PlaceIcon:J9,PlayIcon:x3,PlusIcon:e7,PropertyHide:t7,PropertyShow:n7,PublicIcon:D5,QrCodeIcon:r7,ReloadIcon:i7,RobotIcon:s7,SaveIcon:o7,ScheduleIcon:l7,SchoolIcon:C7,SearchFilterCloseIcon:a7,SearchFilterIcon:c7,SearchIcon:h7,SensorsIcon:u7,SentimentDataIcon:d7,SettingsIcon:f7,ShieldPersonIcon:p7,SortFilterIcon:x7,SoundIcon:g7,SourcesIcon:m7,SourcesTableIcon:w7,StackIcon:v7,StorageIcon:_7,SucessFeedBackIcon:k7,SumFunctionIcon:y7,ThreeDotsIcons:j7,TwitterIcon:L7,VideoIcon:H7,VisibilityOff:M7,VisibilityOn:V7,VolumeIcon:b7};export{A9 as $,V6 as A,S6 as B,z5 as C,g9 as D,L9 as E,M9 as F,K2 as G,U9 as H,B7 as I,H3 as J,Q2 as K,F1 as L,q9 as M,I6 as N,I7 as O,E7 as P,e3 as Q,s7 as R,w7 as S,d6 as T,D1 as U,b7 as V,Z5 as W,z3 as X,h7 as Y,v7 as Z,G6 as _,P7 as a,P9 as a0,R9 as a1,m7 as a2,r9 as a3,e9 as a4,O6 as a5,R6 as a6,U6 as a7,A6 as a8,Q6 as a9,x7 as aA,_9 as aB,v9 as aC,p9 as aD,A0 as aE,i6 as aF,P2 as aG,t2 as aH,r6 as aI,H9 as aJ,u9 as aK,k7 as aL,M3 as aM,N5 as aN,t5 as aO,g7 as aP,A5 as aQ,W6 as aa,m9 as ab,i7 as ac,d7 as ad,N9 as ae,a7 as af,c7 as ag,W9 as ah,c9 as ai,l7 as aj,S9 as ak,j9 as al,t9 as am,n9 as an,a9 as ao,V9 as ap,B3 as aq,f9 as ar,G9 as as,Z9 as at,F6 as au,n7 as av,t7 as aw,j7 as ax,V7 as ay,M7 as az,g6 as b,m6 as c,p3 as d,x3 as e,J2 as f,e7 as g,j1 as h,z9 as i,N6 as j,B6 as k,f7 as l,z6 as m,u3 as n,S7 as o,F9 as p,P6 as q,C9 as r,w9 as s,$5 as t,C6 as u,s9 as v,L3 as w,s1 as x,t3 as y,P1 as z}; +`,I7=()=>r.jsx(E6,{children:r.jsx(V6,{})}),E6=D("div")(({theme:e})=>({position:"absolute",zIndex:1,top:0,left:0,userSelect:"none",pointerEvents:"none",display:"flex",justifyContent:"flex-end",alignItems:"flex-start",height:"100%",width:"100%",padding:"16px",paddingRight:"0",overflow:"hidden",[e.breakpoints.down("sm")]:{top:50}})),P7=()=>{const e=H.useContext(j3);return e==null?void 0:e.socket},S6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14 16C11.7667 16 9.875 15.225 8.325 13.675C6.775 12.125 6 10.2333 6 8C6 5.76667 6.775 3.875 8.325 2.325C9.875 0.775 11.7667 0 14 0C16.2333 0 18.125 0.775 19.675 2.325C21.225 3.875 22 5.76667 22 8C22 10.2333 21.225 12.125 19.675 13.675C18.125 15.225 16.2333 16 14 16ZM4.625 15.25C3.225 14.6 2.10433 13.625 1.263 12.325C0.421 11.025 0 9.58333 0 8C0 6.41667 0.421 4.975 1.263 3.675C2.10433 2.375 3.225 1.4 4.625 0.75C4.975 0.583333 5.29167 0.595667 5.575 0.787C5.85833 0.979 6 1.29167 6 1.725C6 1.89167 5.946 2.054 5.838 2.212C5.72933 2.37067 5.59167 2.49167 5.425 2.575C4.375 3.05833 3.54167 3.78733 2.925 4.762C2.30833 5.73733 2 6.81667 2 8C2 9.18333 2.30833 10.2623 2.925 11.237C3.54167 12.2123 4.375 12.9417 5.425 13.425C5.59167 13.5083 5.72933 13.625 5.838 13.775C5.946 13.925 6 14.0917 6 14.275C6 14.6917 5.85833 15 5.575 15.2C5.29167 15.4 4.975 15.4167 4.625 15.25ZM14 14C15.6667 14 17.0833 13.4167 18.25 12.25C19.4167 11.0833 20 9.66667 20 8C20 6.33333 19.4167 4.91667 18.25 3.75C17.0833 2.58333 15.6667 2 14 2C12.3333 2 10.9167 2.58333 9.75 3.75C8.58333 4.91667 8 6.33333 8 8C8 9.66667 8.58333 11.0833 9.75 12.25C10.9167 13.4167 12.3333 14 14 14Z",fill:"currentColor"})}),I6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Nodes",children:[r.jsx("mask",{id:"mask0_1506_141",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_141)",children:r.jsx("path",{id:"hub",d:"M4.00071 15.1667C3.49166 15.1667 3.05873 14.9886 2.70189 14.6322C2.34506 14.2759 2.16664 13.8432 2.16664 13.3341C2.16664 12.8251 2.3449 12.3922 2.70141 12.0353C3.05793 11.6785 3.49084 11.5001 4.00014 11.5001C4.14275 11.5001 4.28286 11.5178 4.42048 11.5533C4.55808 11.5887 4.68799 11.6364 4.81021 11.6962L6.13204 10.0513C5.85512 9.74962 5.66409 9.41201 5.55896 9.03851C5.45384 8.66501 5.43247 8.28938 5.49486 7.91161L3.57431 7.2757C3.40679 7.54493 3.18652 7.76074 2.91351 7.92313C2.6405 8.08552 2.33598 8.16671 1.99996 8.16671C1.4907 8.16671 1.05784 7.98855 0.701359 7.63221C0.344882 7.27588 0.166637 6.84319 0.166626 6.33415C0.166626 5.8251 0.344793 5.39217 0.701126 5.03533C1.05746 4.6785 1.49015 4.50008 1.99919 4.50008C2.50824 4.50008 2.94118 4.67832 3.29801 5.0348C3.65484 5.39128 3.83326 5.82414 3.83328 6.3334C3.83328 6.37272 3.83221 6.40563 3.83008 6.43211C3.82794 6.45861 3.82688 6.48511 3.82688 6.51161L5.74101 7.177C5.92476 6.83683 6.17711 6.54496 6.49806 6.30138C6.81899 6.05779 7.18715 5.90138 7.60253 5.83215V3.78595C7.17347 3.68509 6.82689 3.46821 6.56279 3.13531C6.29869 2.80241 6.16664 2.42312 6.16664 1.99742C6.16664 1.49064 6.34481 1.05883 6.70114 0.701999C7.05748 0.345166 7.49016 0.166748 7.99921 0.166748C8.50825 0.166748 8.94119 0.344987 9.29803 0.701465C9.65486 1.05794 9.83328 1.49081 9.83328 2.00007C9.83328 2.424 9.69951 2.80241 9.43199 3.13531C9.16448 3.46821 8.81961 3.68509 8.39739 3.78595V5.83215C8.81277 5.90138 9.17986 6.05779 9.49866 6.30138C9.81746 6.54496 10.0709 6.83683 10.2589 7.177L12.173 6.51161C12.1688 6.48084 12.1666 6.45327 12.1666 6.42892V6.3334C12.1666 5.82414 12.3448 5.39128 12.7011 5.0348C13.0575 4.67832 13.4902 4.50008 13.9992 4.50008C14.5083 4.50008 14.9412 4.67825 15.298 5.03458C15.6549 5.39091 15.8333 5.8236 15.8333 6.33265C15.8333 6.84169 15.655 7.27463 15.2986 7.63146C14.9421 7.9883 14.5092 8.16671 14 8.16671C13.6653 8.16671 13.3594 8.08552 13.0823 7.92313C12.8052 7.76074 12.5863 7.54493 12.4256 7.2757L10.5051 7.91161C10.5674 8.28938 10.5461 8.6633 10.441 9.03338C10.3358 9.40347 10.1448 9.74065 9.86788 10.0449L11.1897 11.6796C11.3119 11.624 11.4418 11.5802 11.5794 11.5481C11.7171 11.5161 11.8572 11.5001 11.9998 11.5001C12.5091 11.5001 12.942 11.6782 13.2985 12.0346C13.655 12.3909 13.8333 12.8236 13.8333 13.3326C13.8333 13.8417 13.6551 14.2746 13.2988 14.6315C12.9424 14.9883 12.5098 15.1667 12.0007 15.1667C11.4917 15.1667 11.0587 14.9885 10.7019 14.632C10.3451 14.2755 10.1666 13.8427 10.1666 13.3334C10.1666 13.1232 10.2006 12.9208 10.2686 12.7264C10.3365 12.5319 10.438 12.3535 10.573 12.1911L9.25123 10.5334C8.8726 10.759 8.45488 10.8718 7.99804 10.8718C7.54121 10.8718 7.12134 10.759 6.73844 10.5334L5.42688 12.1911C5.55764 12.3535 5.65807 12.5319 5.72816 12.7264C5.79824 12.9208 5.83328 13.1232 5.83328 13.3334C5.83328 13.8427 5.65511 14.2755 5.29878 14.632C4.94244 14.9885 4.50975 15.1667 4.00071 15.1667Z",fill:"currentColor"})})]})}),P6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.37516 8.625V11.3334C7.37516 11.5104 7.43508 11.6589 7.55491 11.7786C7.67476 11.8984 7.82326 11.9583 8.00041 11.9583C8.17758 11.9583 8.32599 11.8984 8.44564 11.7786C8.5653 11.6589 8.62512 11.5104 8.62512 11.3334V8.625H11.3335C11.5106 8.625 11.659 8.56508 11.7788 8.44525C11.8986 8.3254 11.9585 8.1769 11.9585 7.99975C11.9585 7.82258 11.8986 7.67417 11.7788 7.55452C11.659 7.43487 11.5106 7.37504 11.3335 7.37504H8.62512V4.66669C8.62512 4.4896 8.56521 4.34117 8.44537 4.22137C8.32553 4.1016 8.17702 4.04171 7.99987 4.04171C7.82271 4.04171 7.6743 4.1016 7.55464 4.22137C7.43499 4.34117 7.37516 4.4896 7.37516 4.66669V7.37504H4.66681C4.48973 7.37504 4.3413 7.43496 4.22152 7.55479C4.10173 7.67464 4.04183 7.82314 4.04183 8.00029C4.04183 8.17746 4.10173 8.32587 4.22152 8.44552C4.3413 8.56517 4.48973 8.625 4.66681 8.625H7.37516ZM8.00154 15.9167C6.90659 15.9167 5.8774 15.7089 4.91395 15.2933C3.9505 14.8778 3.11243 14.3138 2.39975 13.6015C1.68705 12.8891 1.12284 12.0514 0.7071 11.0884C0.291364 10.1253 0.0834961 9.09636 0.0834961 8.00142C0.0834961 6.90647 0.291274 5.87728 0.70683 4.91383C1.12239 3.95037 1.68634 3.11231 2.3987 2.39963C3.11108 1.68693 3.94878 1.12272 4.91181 0.706979C5.87482 0.291243 6.9038 0.083374 7.99875 0.083374C9.09369 0.083374 10.1229 0.291153 11.0863 0.706708C12.0498 1.12226 12.8879 1.68622 13.6005 2.39858C14.3132 3.11096 14.8774 3.94866 15.2932 4.91169C15.7089 5.8747 15.9168 6.90368 15.9168 7.99863C15.9168 9.09357 15.709 10.1228 15.2935 11.0862C14.8779 12.0497 14.3139 12.8877 13.6016 13.6004C12.8892 14.3131 12.0515 14.8773 11.0885 15.2931C10.1255 15.7088 9.09648 15.9167 8.00154 15.9167ZM8.00014 14.6667C9.86125 14.6667 11.4376 14.0209 12.7293 12.7292C14.021 11.4375 14.6668 9.86113 14.6668 8.00002C14.6668 6.13891 14.021 4.56252 12.7293 3.27085C11.4376 1.97919 9.86125 1.33335 8.00014 1.33335C6.13903 1.33335 4.56264 1.97919 3.27098 3.27085C1.97931 4.56252 1.33348 6.13891 1.33348 8.00002C1.33348 9.86113 1.97931 11.4375 3.27098 12.7292C4.56264 14.0209 6.13903 14.6667 8.00014 14.6667Z",fill:"currentColor"})}),B6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_25",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_25)",children:r.jsx("path",{d:"M11.25 12.75V16C11.25 16.2125 11.3219 16.3906 11.4657 16.5343C11.6095 16.6781 11.7877 16.75 12.0003 16.75C12.2129 16.75 12.391 16.6781 12.5346 16.5343C12.6782 16.3906 12.75 16.2125 12.75 16V12.75H16C16.2125 12.75 16.3906 12.6781 16.5344 12.5343C16.6781 12.3904 16.75 12.2122 16.75 11.9997C16.75 11.7871 16.6781 11.609 16.5344 11.4654C16.3906 11.3218 16.2125 11.25 16 11.25H12.75V7.99998C12.75 7.78748 12.6781 7.60935 12.5343 7.4656C12.3905 7.32187 12.2123 7.25 11.9997 7.25C11.7871 7.25 11.609 7.32187 11.4654 7.4656C11.3218 7.60935 11.25 7.78748 11.25 7.99998V11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H11.25ZM12.0017 21.5C10.6877 21.5 9.45271 21.2506 8.29658 20.752C7.14043 20.2533 6.13475 19.5765 5.27953 18.7217C4.4243 17.8669 3.74724 16.8616 3.24836 15.706C2.74947 14.5504 2.50003 13.3156 2.50003 12.0017C2.50003 10.6877 2.74936 9.45268 3.24803 8.29655C3.7467 7.1404 4.42345 6.13472 5.27828 5.2795C6.13313 4.42427 7.13837 3.74721 8.29401 3.24833C9.44962 2.74944 10.6844 2.5 11.9983 2.5C13.3123 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8653 4.42342 18.7205 5.27825C19.5757 6.1331 20.2528 7.13834 20.7517 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5766 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0017 21.5ZM12 20C14.2333 20 16.125 19.225 17.675 17.675C19.225 16.125 20 14.2333 20 12C20 9.76664 19.225 7.87498 17.675 6.32498C16.125 4.77498 14.2333 3.99998 12 3.99998C9.76667 3.99998 7.87501 4.77498 6.32501 6.32498C4.77501 7.87498 4.00001 9.76664 4.00001 12C4.00001 14.2333 4.77501 16.125 6.32501 17.675C7.87501 19.225 9.76667 20 12 20Z",fill:"currentColor"})})]}),T6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"add_link",children:[r.jsx("mask",{id:"mask0_2659_52",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2659_52)",children:r.jsx("path",{id:"add_link_2",d:"M14.1987 13.7821H12.3349C12.1629 13.7821 12.0192 13.7222 11.9039 13.6024C11.7885 13.4826 11.7308 13.3342 11.7308 13.1571C11.7308 12.9851 11.7907 12.8379 11.9105 12.7156C12.0303 12.5933 12.1787 12.5321 12.3558 12.5321H14.1987V10.6891C14.1987 10.5121 14.2587 10.3636 14.3785 10.2438C14.4983 10.124 14.6468 10.0641 14.824 10.0641C15.0012 10.0641 15.1496 10.124 15.2692 10.2438C15.3889 10.3636 15.4487 10.5121 15.4487 10.6891V12.5321H17.2917C17.4687 12.5321 17.6172 12.592 17.737 12.7119C17.8568 12.8317 17.9167 12.9802 17.9167 13.1574C17.9167 13.3345 17.8568 13.4829 17.737 13.6026C17.6172 13.7222 17.4687 13.7821 17.2917 13.7821H15.4487V15.625C15.4487 15.8021 15.3888 15.9505 15.2689 16.0703C15.1491 16.1901 15.0006 16.25 14.8234 16.25C14.6463 16.25 14.4979 16.1901 14.3782 16.0703C14.2586 15.9505 14.1987 15.8021 14.1987 15.625V13.7821ZM8.38142 13.7821H5.8654C4.81904 13.7821 3.92711 13.4134 3.18961 12.676C2.45211 11.9386 2.08336 11.0467 2.08336 10.0005C2.08336 8.95426 2.45211 8.06229 3.18961 7.32458C3.92711 6.58687 4.81904 6.21802 5.8654 6.21802H8.38142C8.55342 6.21802 8.70059 6.27918 8.82292 6.4015C8.94524 6.52383 9.0064 6.67233 9.0064 6.847C9.0064 7.02168 8.94524 7.16884 8.82292 7.2885C8.70059 7.40815 8.55342 7.46798 8.38142 7.46798H5.86444C5.16529 7.46798 4.56865 7.71504 4.07453 8.20916C3.5804 8.70329 3.33334 9.30025 3.33334 10C3.33334 10.6998 3.5804 11.2968 4.07453 11.7909C4.56865 12.285 5.16529 12.5321 5.86444 12.5321H8.38142C8.55342 12.5321 8.70059 12.5933 8.82292 12.7156C8.94524 12.8379 9.0064 12.9864 9.0064 13.1611C9.0064 13.3358 8.94524 13.4829 8.82292 13.6026C8.70059 13.7222 8.55342 13.7821 8.38142 13.7821ZM7.50001 10.625C7.32292 10.625 7.17449 10.5651 7.05471 10.4453C6.93492 10.3254 6.87503 10.1769 6.87503 9.99977C6.87503 9.8226 6.93492 9.67419 7.05471 9.55454C7.17449 9.43489 7.32292 9.37506 7.50001 9.37506H12.5C12.6771 9.37506 12.8255 9.43498 12.9453 9.55481C13.0651 9.67466 13.125 9.82316 13.125 10.0003C13.125 10.1775 13.0651 10.3259 12.9453 10.4455C12.8255 10.5652 12.6771 10.625 12.5 10.625H7.50001ZM17.9167 10H16.6667C16.6667 9.30025 16.4196 8.70329 15.9255 8.20916C15.4314 7.71504 14.8347 7.46798 14.1356 7.46798H11.5978C11.4258 7.46798 11.2821 7.40809 11.1667 7.28831C11.0513 7.16852 10.9936 7.02008 10.9936 6.843C10.9936 6.671 11.0535 6.52383 11.1733 6.4015C11.2931 6.27918 11.4415 6.21802 11.6186 6.21802H14.1346C15.181 6.21802 16.0729 6.58676 16.8104 7.32425C17.5479 8.06175 17.9167 8.95368 17.9167 10Z",fill:"currentColor"})})]})}),N6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_27)",children:r.jsx("path",{d:"M5.30773 20.5C4.81061 20.5 4.38506 20.3229 4.03106 19.9689C3.67704 19.6149 3.50003 19.1894 3.50003 18.6923V5.3077C3.50003 4.81058 3.67704 4.38503 4.03106 4.03103C4.38506 3.67701 4.81061 3.5 5.30773 3.5H18.6923C19.1894 3.5 19.615 3.67701 19.969 4.03103C20.323 4.38503 20.5 4.81058 20.5 5.3077V11.6327C20.2538 11.5275 20.0074 11.4384 19.7606 11.3654C19.5138 11.2923 19.2603 11.234 19 11.1904V5.3077C19 5.23077 18.968 5.16024 18.9039 5.09613C18.8397 5.03203 18.7692 4.99998 18.6923 4.99998H5.30773C5.2308 4.99998 5.16027 5.03203 5.09616 5.09613C5.03206 5.16024 5.00001 5.23077 5.00001 5.3077V18.6923C5.00001 18.7692 5.03206 18.8397 5.09616 18.9038C5.16027 18.9679 5.2308 19 5.30773 19H11.1654C11.2026 19.2769 11.2577 19.5387 11.3308 19.7855C11.4038 20.0323 11.4929 20.2705 11.5981 20.5H5.30773ZM5.00001 19V4.99998V11.1904V11.1154V19ZM7.25003 15.8849C7.25003 16.0975 7.32191 16.2756 7.46566 16.4192C7.60939 16.5628 7.78751 16.6346 8.00001 16.6346H11.2673C11.3109 16.3743 11.3757 16.1208 11.4616 15.874C11.5475 15.6272 11.641 15.3808 11.7423 15.1346H8.00001C7.78751 15.1346 7.60939 15.2065 7.46566 15.3503C7.32191 15.4941 7.25003 15.6723 7.25003 15.8849ZM7.25003 12.0003C7.25003 12.2129 7.32191 12.391 7.46566 12.5346C7.60939 12.6782 7.78751 12.75 8.00001 12.75H13.5904C14.0212 12.3846 14.4808 12.0785 14.9692 11.8317C15.4577 11.5849 15.9807 11.4096 16.5384 11.3058C16.4259 11.281 16.3009 11.2655 16.1634 11.2593C16.0259 11.2531 15.901 11.25 15.7885 11.25H8.00001C7.78751 11.25 7.60939 11.3219 7.46566 11.4657C7.32191 11.6095 7.25003 11.7877 7.25003 12.0003ZM7.25003 8.1157C7.25003 8.3283 7.32191 8.50639 7.46566 8.64998C7.60939 8.79356 7.78751 8.86535 8.00001 8.86535H16C16.2125 8.86535 16.3906 8.79344 16.5344 8.64963C16.6781 8.50583 16.75 8.32763 16.75 8.11503C16.75 7.90244 16.6781 7.72436 16.5344 7.58078C16.3906 7.43718 16.2125 7.36538 16 7.36538H8.00001C7.78751 7.36538 7.60939 7.43728 7.46566 7.5811C7.32191 7.72492 7.25003 7.90312 7.25003 8.1157ZM18 22.5576C16.7513 22.5576 15.6891 22.1198 14.8135 21.2442C13.9378 20.3685 13.5 19.3064 13.5 18.0577C13.5 16.809 13.9378 15.7468 14.8135 14.8712C15.6891 13.9955 16.7513 13.5577 18 13.5577C19.2487 13.5577 20.3109 13.9955 21.1865 14.8712C22.0622 15.7468 22.5 16.809 22.5 18.0577C22.5 19.3064 22.0622 20.3685 21.1865 21.2442C20.3109 22.1198 19.2487 22.5576 18 22.5576ZM17.5577 18.5V20.5577C17.5577 20.6756 17.6019 20.7788 17.6904 20.8673C17.7788 20.9557 17.8821 21 18 21C18.118 21 18.2212 20.9557 18.3096 20.8673C18.3981 20.7788 18.4423 20.6756 18.4423 20.5577V18.5H20.5C20.618 18.5 20.7212 18.4557 20.8096 18.3673C20.8981 18.2788 20.9423 18.1756 20.9423 18.0577C20.9423 17.9397 20.8981 17.8365 20.8096 17.748C20.7212 17.6596 20.618 17.6154 20.5 17.6154H18.4423V15.5577C18.4423 15.4397 18.3981 15.3365 18.3096 15.2481C18.2212 15.1596 18.118 15.1154 18 15.1154C17.8821 15.1154 17.7788 15.1596 17.6904 15.2481C17.6019 15.3365 17.5577 15.4397 17.5577 15.5577V17.6154H15.5C15.3821 17.6154 15.2788 17.6596 15.1904 17.748C15.1019 17.8365 15.0577 17.9397 15.0577 18.0577C15.0577 18.1756 15.1019 18.2788 15.1904 18.3673C15.2788 18.4557 15.3821 18.5 15.5 18.5H17.5577Z",fill:"currentColor"})})]}),R6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.50033 10C7.27703 10 7.08233 9.91694 6.9162 9.75081C6.75006 9.58467 6.66699 9.38996 6.66699 9.16667V0.833333C6.66699 0.610042 6.75006 0.415326 6.9162 0.249187C7.08233 0.0830625 7.27703 0 7.50033 0H8.75033C8.97362 0 9.16833 0.0830625 9.33447 0.249187C9.5006 0.415326 9.58366 0.610042 9.58366 0.833333V9.16667C9.58366 9.38996 9.5006 9.58467 9.33447 9.75081C9.16833 9.91694 8.97362 10 8.75033 10H7.50033ZM1.25033 10C1.02703 10 0.832319 9.91694 0.66618 9.75081C0.500055 9.58467 0.416992 9.38996 0.416992 9.16667V0.833333C0.416992 0.610042 0.500055 0.415326 0.66618 0.249187C0.832319 0.0830625 1.02703 0 1.25033 0H2.50033C2.72362 0 2.91833 0.0830625 3.08445 0.249187C3.25059 0.415326 3.33366 0.610042 3.33366 0.833333V9.16667C3.33366 9.38996 3.25059 9.58467 3.08445 9.75081C2.91833 9.91694 2.72362 10 2.50033 10H1.25033Z",fill:"currentColor"})}),U6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 15 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M13.577 7.62502H11.8142C11.6368 7.62502 11.4883 7.56519 11.3687 7.44554C11.249 7.32589 11.1892 7.17739 11.1892 7.00004C11.1892 6.82269 11.249 6.67419 11.3687 6.55454C11.4883 6.43489 11.6368 6.37506 11.8142 6.37506H13.577C13.7543 6.37506 13.9028 6.43489 14.0225 6.55454C14.1421 6.67419 14.202 6.82269 14.202 7.00004C14.202 7.17739 14.1421 7.32589 14.0225 7.44554C13.9028 7.56519 13.7543 7.62502 13.577 7.62502ZM10.1106 10.9279C10.2175 10.7816 10.354 10.6972 10.5201 10.6747C10.6862 10.6523 10.8425 10.6945 10.9888 10.8013L12.3943 11.8574C12.5406 11.9642 12.625 12.1007 12.6475 12.2669C12.6699 12.433 12.6277 12.5892 12.5209 12.7356C12.4141 12.882 12.2776 12.9664 12.1114 12.9888C11.9453 13.0112 11.7891 12.969 11.6427 12.8622L10.2372 11.8061C10.0909 11.6993 10.0065 11.5628 9.98405 11.3967C9.96161 11.2305 10.0038 11.0743 10.1106 10.9279ZM12.3622 2.1106L10.9568 3.16671C10.8104 3.27354 10.6542 3.31574 10.488 3.29331C10.3219 3.27087 10.1854 3.18646 10.0786 3.0401C9.97176 2.89374 9.92956 2.7375 9.95199 2.57137C9.97442 2.40525 10.0588 2.26876 10.2052 2.16192L11.6106 1.10583C11.757 0.998998 11.9133 0.956796 12.0794 0.979227C12.2455 1.00166 12.382 1.08606 12.4888 1.23244C12.5957 1.3788 12.6379 1.53504 12.6154 1.70116C12.593 1.86729 12.5086 2.00377 12.3622 2.1106ZM4.05778 9.08335H1.71805C1.5033 9.08335 1.32408 9.0115 1.18039 8.86779C1.03669 8.7241 0.964844 8.54488 0.964844 8.33014V5.66994C0.964844 5.4552 1.03669 5.27599 1.18039 5.13229C1.32408 4.98858 1.5033 4.91673 1.71805 4.91673H4.05778L6.55134 2.42317C6.75114 2.22339 6.9811 2.17771 7.24124 2.28614C7.50138 2.39459 7.63145 2.5909 7.63145 2.87508V11.125C7.63145 11.4092 7.50138 11.6055 7.24124 11.7139C6.9811 11.8224 6.75114 11.7767 6.55134 11.5769L4.05778 9.08335Z",fill:"currentColor"})}),O6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.28729 0.918723C7.41428 0.105284 8.58572 0.105284 8.71271 0.918723L8.76054 1.22508C9.2444 4.32436 11.6757 6.75568 14.775 7.23954L15.0814 7.28737C15.8948 7.41436 15.8948 8.5858 15.0814 8.71279L14.775 8.76062C11.6757 9.24448 9.2444 11.6758 8.76054 14.7751L8.71271 15.0814C8.58572 15.8949 7.41428 15.8949 7.28729 15.0814L7.23946 14.7751C6.7556 11.6758 4.32428 9.24448 1.225 8.76062L0.918643 8.71279C0.105204 8.5858 0.105204 7.41436 0.918642 7.28737L1.225 7.23954C4.32428 6.75568 6.7556 4.32436 7.23946 1.22508L7.28729 0.918723Z",fill:"currentColor"})}),$6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21694",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21694)",children:r.jsx("path",{d:"M1.07697 10.4639C1.16067 9.50216 1.45574 8.61772 1.96217 7.81059C2.4687 7.00354 3.14323 6.36236 3.98576 5.88704L2.99074 4.16621C2.9361 4.0824 2.92244 3.99661 2.94976 3.90881C2.97708 3.82093 3.0356 3.75268 3.12534 3.70406C3.20312 3.65915 3.28503 3.65035 3.37107 3.67767C3.45701 3.70499 3.52692 3.75909 3.58078 3.83998L4.57697 5.56504C5.34872 5.24159 6.15639 5.07986 6.99999 5.07986C7.84358 5.07986 8.65126 5.24159 9.42301 5.56504L10.4192 3.83998C10.4731 3.75909 10.543 3.70499 10.6289 3.67767C10.7149 3.65035 10.7969 3.65915 10.8746 3.70406C10.9644 3.75268 11.0229 3.82093 11.0502 3.90881C11.0775 3.99661 11.0639 4.0824 11.0092 4.16621L10.0142 5.88704C10.8567 6.36236 11.5313 7.00354 12.0378 7.81059C12.5442 8.61772 12.8393 9.50216 12.923 10.4639H1.07697ZM4.30849 8.98323C4.49719 8.98323 4.6564 8.91809 4.78609 8.78782C4.91588 8.65744 4.98078 8.49795 4.98078 8.30934C4.98078 8.12063 4.91564 7.96138 4.78536 7.83159C4.65508 7.70189 4.49559 7.63704 4.30688 7.63704C4.11817 7.63704 3.95897 7.70218 3.82928 7.83246C3.69949 7.96274 3.63459 8.12223 3.63459 8.31094C3.63459 8.49955 3.69973 8.65875 3.83001 8.78854C3.96028 8.91834 4.11978 8.98323 4.30849 8.98323ZM9.69309 8.98323C9.8818 8.98323 10.041 8.91809 10.1707 8.78782C10.3005 8.65744 10.3654 8.49795 10.3654 8.30934C10.3654 8.12063 10.3002 7.96138 10.17 7.83159C10.0397 7.70189 9.88019 7.63704 9.69149 7.63704C9.50278 7.63704 9.34358 7.70218 9.21388 7.83246C9.08409 7.96274 9.0192 8.12223 9.0192 8.31094C9.0192 8.49955 9.08433 8.65875 9.21461 8.78854C9.34489 8.91834 9.50438 8.98323 9.69309 8.98323Z",fill:"currentColor"})})]}),A6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"arrow_forward",children:[r.jsx("mask",{id:"mask0_8980_24763",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",x:"20",y:"20",width:"1em",height:"1em",transform:"rotate(-180 20 20)",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8980_24763)",children:r.jsx("path",{id:"arrow_forward_2",d:"M7.52981 10.4372L16.0625 10.4372C16.2221 10.4372 16.3558 10.4911 16.4635 10.5988C16.5712 10.7065 16.625 10.8401 16.625 10.9997C16.625 11.1593 16.5712 11.293 16.4635 11.4007C16.3558 11.5084 16.2221 11.5622 16.0625 11.5622L7.52981 11.5622L11.4067 15.4391C11.5183 15.5507 11.5733 15.6812 11.5719 15.8307C11.5704 15.9802 11.5115 16.1132 11.3952 16.2295C11.2789 16.3382 11.1471 16.3944 11 16.3983C10.8529 16.4021 10.7212 16.3459 10.6048 16.2295L5.84956 11.4742C5.77938 11.404 5.72986 11.33 5.70101 11.2521C5.67216 11.1742 5.65773 11.0901 5.65773 10.9997C5.65773 10.9093 5.67216 10.8252 5.70101 10.7473C5.72986 10.6694 5.77938 10.5954 5.84956 10.5252L10.6048 5.76993C10.7087 5.66608 10.8373 5.61295 10.9906 5.61055C11.144 5.60815 11.2789 5.66128 11.3952 5.76993C11.5115 5.88626 11.5697 6.01992 11.5697 6.17088C11.5697 6.32184 11.5115 6.45549 11.3952 6.57183L7.52981 10.4372Z",fill:"currentColor"})})]})}),z6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.47019 6.56248H0.9375C0.777887 6.56248 0.644237 6.50863 0.53655 6.40094C0.42885 6.29326 0.375 6.15961 0.375 5.99999C0.375 5.84038 0.42885 5.70673 0.53655 5.59904C0.644237 5.49136 0.777887 5.43751 0.9375 5.43751H9.47019L5.59326 1.56058C5.48172 1.44904 5.42667 1.31851 5.42812 1.169C5.42956 1.01948 5.48846 0.886545 5.60481 0.770208C5.72114 0.661558 5.85287 0.605308 5.99998 0.601458C6.14709 0.597608 6.27882 0.653858 6.39516 0.770208L11.1504 5.52549C11.2206 5.59568 11.2701 5.66971 11.299 5.7476C11.3278 5.82548 11.3423 5.90961 11.3423 5.99999C11.3423 6.09038 11.3278 6.17451 11.299 6.25239C11.2701 6.33028 11.2206 6.40431 11.1504 6.4745L6.39516 11.2298C6.29132 11.3336 6.16272 11.3868 6.00936 11.3892C5.85599 11.3916 5.72114 11.3384 5.60481 11.2298C5.48846 11.1134 5.43028 10.9798 5.43028 10.8288C5.43028 10.6779 5.48846 10.5442 5.60481 10.4279L9.47019 6.56248Z",fill:"currentColor"})}),F6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 6 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M6 5L6.90043e-08 9.33013L4.47556e-07 0.669872L6 5Z",fill:"currentColor"})}),D6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Audio",children:[r.jsx("mask",{id:"mask0_1506_147",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_147)",children:r.jsx("path",{id:"headphones",d:"M4.48719 13.6667H3.53851C3.20175 13.6667 2.91671 13.55 2.68337 13.3167C2.45004 13.0833 2.33337 12.7983 2.33337 12.4615V8.00002C2.33337 7.21337 2.4821 6.47654 2.77954 5.78952C3.07697 5.10251 3.48124 4.50345 3.99234 3.99234C4.50345 3.48124 5.10247 3.07697 5.78941 2.77954C6.47634 2.4821 7.21309 2.33337 7.99966 2.33337C8.78622 2.33337 9.5231 2.4821 10.2103 2.77954C10.8975 3.07697 11.4966 3.48124 12.0077 3.99234C12.5188 4.50345 12.9231 5.10251 13.2205 5.78952C13.518 6.47654 13.6667 7.21337 13.6667 8.00002V12.4615C13.6667 12.7983 13.55 13.0833 13.3167 13.3167C13.0833 13.55 12.7983 13.6667 12.4615 13.6667H11.5129C11.1814 13.6667 10.8977 13.5487 10.6617 13.3127C10.4257 13.0767 10.3077 12.793 10.3077 12.4615V10.1539C10.3077 9.82247 10.4257 9.53878 10.6617 9.30278C10.8977 9.06676 11.1814 8.94876 11.5129 8.94876H12.6667V8.00002C12.6667 6.70002 12.2139 5.59725 11.3084 4.69169C10.4028 3.78614 9.30002 3.33336 8.00002 3.33336C6.70002 3.33336 5.59725 3.78614 4.69169 4.69169C3.78614 5.59725 3.33336 6.70002 3.33336 8.00002V8.94876H4.48719C4.8186 8.94876 5.10231 9.06676 5.33831 9.30278C5.57431 9.53878 5.69231 9.82247 5.69231 10.1539V12.4615C5.69231 12.793 5.57431 13.0767 5.33831 13.3127C5.10231 13.5487 4.8186 13.6667 4.48719 13.6667Z",fill:"currentColor"})})]})}),q6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_45",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_45)",children:r.jsx("path",{d:"M5.13135 11.705V11.2019H4.04489C3.85871 11.2019 3.70155 11.1378 3.57341 11.0098C3.44537 10.8817 3.38135 10.7245 3.38135 10.5383C3.38135 10.3521 3.44537 10.195 3.57341 10.0668C3.70155 9.9388 3.85871 9.87478 4.04489 9.87478H4.54801V4.12516H4.04489C3.85871 4.12516 3.70155 4.06114 3.57341 3.9331C3.44537 3.80496 3.38135 3.6478 3.38135 3.46162C3.38135 3.27544 3.44537 3.11828 3.57341 2.99014C3.70155 2.8621 3.85871 2.79808 4.04489 2.79808H5.13135V2.29495C5.13135 2.10877 5.19537 1.95161 5.32341 1.82347C5.45155 1.69543 5.60871 1.63141 5.79489 1.63141C5.98107 1.63141 6.13823 1.69543 6.26637 1.82347C6.39441 1.95161 6.45843 2.10877 6.45843 2.29495V2.79808H7.54139V2.29495C7.54139 2.10877 7.60541 1.95161 7.73345 1.82347C7.86159 1.69543 8.01875 1.63141 8.20493 1.63141C8.39111 1.63141 8.54827 1.69543 8.67641 1.82347C8.80445 1.95161 8.86847 2.10877 8.86847 2.29495V2.89185C9.3857 3.04196 9.80958 3.33114 10.1401 3.75941C10.4707 4.18777 10.636 4.67879 10.636 5.23247C10.636 5.50985 10.5896 5.77794 10.497 6.03674C10.4044 6.29555 10.2742 6.52815 10.1062 6.73455C10.4418 6.94805 10.7112 7.2333 10.9144 7.5903C11.1177 7.9473 11.2193 8.33969 11.2193 8.76747C11.2193 9.42537 10.9908 9.99033 10.5339 10.4623C10.0769 10.9345 9.52181 11.1786 8.86847 11.1949V11.705C8.86847 11.8912 8.80445 12.0483 8.67641 12.1765C8.54827 12.3045 8.39111 12.3685 8.20493 12.3685C8.01875 12.3685 7.86159 12.3045 7.73345 12.1765C7.60541 12.0483 7.54139 11.8912 7.54139 11.705V11.2019H6.45843V11.705C6.45843 11.8912 6.39441 12.0483 6.26637 12.1765C6.13823 12.3045 5.98107 12.3685 5.79489 12.3685C5.60871 12.3685 5.45155 12.3045 5.32341 12.1765C5.19537 12.0483 5.13135 11.8912 5.13135 11.705ZM5.8751 6.33643H8.20493C8.50953 6.33643 8.76965 6.22861 8.98529 6.01297C9.20102 5.79724 9.30889 5.53707 9.30889 5.23247C9.30889 4.92797 9.20102 4.66727 8.98529 4.45037C8.76965 4.23356 8.50953 4.12516 8.20493 4.12516H5.8751V6.33643ZM5.8751 9.87478H8.78826C9.09286 9.87478 9.35298 9.76638 9.56862 9.54957C9.78436 9.33267 9.89222 9.07197 9.89222 8.76747C9.89222 8.46287 9.78436 8.20271 9.56862 7.98697C9.35298 7.77133 9.09286 7.66351 8.78826 7.66351H5.8751V9.87478Z",fill:"currentColor"})})]}),G6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 9 9",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{id:"Icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.97172 5.26825L8.23268 0.525927C8.24606 0.301673 8.05202 0.110397 7.81782 0.116993L3.00677 0.374226C2.66551 0.394014 2.51161 0.796353 2.7525 1.0338L7.30259 5.51889C7.54348 5.75633 7.95165 5.60463 7.97172 5.26825ZM5.56945 5.5915L2.67881 2.74215L1.79555 3.61278L4.6862 6.46213L5.56945 5.5915ZM1.14615 6.44238L0.0353953 5.34749L0.918648 4.47686L3.80929 7.32621L2.92604 8.19685L1.81528 7.10196L0.918648 7.98578C0.731292 8.17046 0.436874 8.17046 0.249518 7.98578C0.0621611 7.8011 0.0621611 7.51089 0.249517 7.32621L1.14615 6.44238Z",fill:"currentColor"})}),W6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"browse_gallery",children:[r.jsx("mask",{id:"mask0_1360_27257",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1360_27257)",children:r.jsx("path",{id:"browse_gallery_2",d:"M11.8 15.8442L12.8442 14.8L9.74998 11.7026V7.25003H8.25003V12.2942L11.8 15.8442ZM18 19.9615V18.3C19.2333 17.7167 20.2083 16.8583 20.925 15.725C21.6417 14.5917 22 13.35 22 12C22 10.65 21.6417 9.40834 20.925 8.27501C20.2083 7.14167 19.2333 6.28334 18 5.70001V4.03851C19.6628 4.67184 20.9952 5.71318 21.9971 7.16253C22.999 8.61188 23.5 10.2244 23.5 12C23.5 13.7756 22.999 15.3881 21.9971 16.8375C20.9952 18.2868 19.6628 19.3282 18 19.9615ZM9.00055 20.5C7.8207 20.5 6.71539 20.2769 5.68463 19.8307C4.65386 19.3846 3.75514 18.7782 2.98848 18.0115C2.22181 17.2449 1.61541 16.3463 1.16927 15.3159C0.723092 14.2855 0.5 13.1804 0.5 12.0006C0.5 10.8207 0.723083 9.7154 1.16925 8.68463C1.6154 7.65386 2.2218 6.75515 2.98845 5.98848C3.75512 5.22183 4.65365 4.61543 5.68405 4.16928C6.71445 3.72311 7.81957 3.50003 8.99942 3.50003C10.1793 3.50003 11.2846 3.72311 12.3154 4.16928C13.3461 4.61543 14.2448 5.22183 15.0115 5.98848C15.7782 6.75515 16.3846 7.65368 16.8307 8.68408C17.2769 9.71448 17.5 10.8196 17.5 11.9995C17.5 13.1793 17.2769 14.2846 16.8307 15.3154C16.3846 16.3461 15.7782 17.2449 15.0115 18.0115C14.2448 18.7782 13.3463 19.3846 12.3159 19.8307C11.2855 20.2769 10.1804 20.5 9.00055 20.5ZM9 19C10.95 19 12.6042 18.3208 13.9625 16.9625C15.3208 15.6042 16 13.95 16 12C16 10.05 15.3208 8.39584 13.9625 7.03751C12.6042 5.67917 10.95 5.00001 9 5.00001C7.05 5.00001 5.39583 5.67917 4.0375 7.03751C2.67917 8.39584 2 10.05 2 12C2 13.95 2.67917 15.6042 4.0375 16.9625C5.39583 18.3208 7.05 19 9 19Z",fill:"currentColor"})})]})}),X6=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_21901",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_21901)",children:r.jsx("path",{d:"M5.21632 8.60415C4.28522 8.60415 3.49344 8.27787 2.84099 7.62531C2.18843 6.97285 1.86215 6.18108 1.86215 5.24998C1.86215 5.08917 1.87396 4.92744 1.89759 4.76479C1.92112 4.60214 1.96054 4.44639 2.01586 4.29754C2.05329 4.20781 2.1038 4.14145 2.16738 4.09848C2.23087 4.05551 2.30262 4.0243 2.38263 4.00485C2.46274 3.98541 2.54334 3.98687 2.62442 4.00923C2.7056 4.03169 2.77944 4.07622 2.84594 4.14281L4.39965 5.68529L5.65163 4.43331L4.11469 2.89083C4.04819 2.82424 4.00371 2.74947 3.98126 2.66654C3.9588 2.58351 3.95729 2.50199 3.97674 2.42198C3.99618 2.34197 4.02836 2.27017 4.07328 2.20658C4.1181 2.143 4.18353 2.09249 4.26957 2.05506C4.41842 1.99605 4.57324 1.95473 4.73405 1.9311C4.89476 1.90758 5.05551 1.89581 5.21632 1.89581C6.14742 1.89581 6.93924 2.22209 7.5918 2.87465C8.24426 3.5271 8.57049 4.31888 8.57049 5.24998C8.57049 5.49605 8.5473 5.72525 8.50092 5.93758C8.45455 6.15001 8.38498 6.35535 8.29223 6.55358L11.4625 9.70577C11.707 9.95029 11.8293 10.2487 11.8293 10.6009C11.8293 10.9531 11.707 11.2516 11.4625 11.4962C11.218 11.7407 10.9196 11.8629 10.5674 11.8629C10.2151 11.8629 9.91672 11.7377 9.67211 11.4871L6.51992 8.3259C6.3142 8.41495 6.10517 8.48359 5.89284 8.53181C5.68041 8.58004 5.4549 8.60415 5.21632 8.60415Z",fill:"currentColor"})})]}),Y6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M2.1875 11.4688C2.1875 12.0381 2.64941 12.5 3.21875 12.5H10.7812C11.3506 12.5 11.8125 12.0381 11.8125 11.4688V5.625H2.1875V11.4688ZM9.0625 7.25781C9.0625 7.11602 9.17852 7 9.32031 7H10.1797C10.3215 7 10.4375 7.11602 10.4375 7.25781V8.11719C10.4375 8.25898 10.3215 8.375 10.1797 8.375H9.32031C9.17852 8.375 9.0625 8.25898 9.0625 8.11719V7.25781ZM9.0625 10.0078C9.0625 9.86602 9.17852 9.75 9.32031 9.75H10.1797C10.3215 9.75 10.4375 9.86602 10.4375 10.0078V10.8672C10.4375 11.009 10.3215 11.125 10.1797 11.125H9.32031C9.17852 11.125 9.0625 11.009 9.0625 10.8672V10.0078ZM6.3125 7.25781C6.3125 7.11602 6.42852 7 6.57031 7H7.42969C7.57148 7 7.6875 7.11602 7.6875 7.25781V8.11719C7.6875 8.25898 7.57148 8.375 7.42969 8.375H6.57031C6.42852 8.375 6.3125 8.25898 6.3125 8.11719V7.25781ZM6.3125 10.0078C6.3125 9.86602 6.42852 9.75 6.57031 9.75H7.42969C7.57148 9.75 7.6875 9.86602 7.6875 10.0078V10.8672C7.6875 11.009 7.57148 11.125 7.42969 11.125H6.57031C6.42852 11.125 6.3125 11.009 6.3125 10.8672V10.0078ZM3.5625 7.25781C3.5625 7.11602 3.67852 7 3.82031 7H4.67969C4.82148 7 4.9375 7.11602 4.9375 7.25781V8.11719C4.9375 8.25898 4.82148 8.375 4.67969 8.375H3.82031C3.67852 8.375 3.5625 8.25898 3.5625 8.11719V7.25781ZM3.5625 10.0078C3.5625 9.86602 3.67852 9.75 3.82031 9.75H4.67969C4.82148 9.75 4.9375 9.86602 4.9375 10.0078V10.8672C4.9375 11.009 4.82148 11.125 4.67969 11.125H3.82031C3.67852 11.125 3.5625 11.009 3.5625 10.8672V10.0078ZM10.7812 2.875H9.75V1.84375C9.75 1.65469 9.59531 1.5 9.40625 1.5H8.71875C8.52969 1.5 8.375 1.65469 8.375 1.84375V2.875H5.625V1.84375C5.625 1.65469 5.47031 1.5 5.28125 1.5H4.59375C4.40469 1.5 4.25 1.65469 4.25 1.84375V2.875H3.21875C2.64941 2.875 2.1875 3.33691 2.1875 3.90625V4.9375H11.8125V3.90625C11.8125 3.33691 11.3506 2.875 10.7812 2.875Z",fill:"currentColor"})}),K6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),Q6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 7",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M3.08467 5.34482L8.02842 0.401074C8.14508 0.284408 8.28363 0.226074 8.44404 0.226074C8.60446 0.226074 8.743 0.284408 8.85967 0.401074C8.97633 0.517741 9.03467 0.656283 9.03467 0.816699C9.03467 0.977116 8.97633 1.11566 8.85967 1.23232L3.493 6.59899C3.37633 6.71566 3.24022 6.77399 3.08467 6.77399C2.92911 6.77399 2.793 6.71566 2.67633 6.59899L0.168 4.09066C0.0513333 3.97399 -0.00456944 3.83545 0.000291667 3.67503C0.00515278 3.51462 0.0659167 3.37607 0.182583 3.25941C0.29925 3.14274 0.437792 3.08441 0.598208 3.08441C0.758625 3.08441 0.897167 3.14274 1.01383 3.25941L3.08467 5.34482Z",fill:"currentColor"})}),J6=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 11 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M10.6649 1.81615L4.76839 7.381C4.56014 7.57431 4.29239 7.67389 4.02463 7.67389C3.75688 7.67389 3.48913 7.57431 3.28088 7.381L0.329676 4.59858C-0.0987253 4.19439 -0.110625 3.52661 0.299926 3.10485C0.710477 2.6831 1.38878 2.67138 1.81718 3.07556L4.02463 5.16092L9.17735 0.293138C9.60575 -0.111046 10.2841 -0.0934726 10.6946 0.322427C11.1052 0.744184 11.0933 1.41197 10.6649 1.81615Z",fill:"currentColor"})}),e9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.00031 5.21584C4.89989 5.21584 4.80642 5.1998 4.71989 5.16772C4.63337 5.13577 4.55107 5.08077 4.47302 5.00272L0.72781 1.25751C0.612533 1.14209 0.551421 0.999177 0.544477 0.82876C0.537532 0.658482 0.598644 0.508691 0.72781 0.379385C0.848644 0.258691 0.995032 0.198343 1.16698 0.198343C1.33892 0.198343 1.48531 0.258691 1.60614 0.379385L5.00031 3.76084L8.39448 0.379385C8.50989 0.263968 8.65281 0.202788 8.82323 0.195843C8.99364 0.188899 9.14351 0.250079 9.27281 0.379385C9.39351 0.50008 9.45385 0.646399 9.45385 0.818344C9.45385 0.990427 9.39351 1.13682 9.27281 1.25751L5.5276 5.00272C5.44955 5.08077 5.36725 5.13577 5.28073 5.16772C5.1942 5.1998 5.10073 5.21584 5.00031 5.21584Z",fill:"currentColor"})}),t9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"keyboard_arrow_left",children:[r.jsx("mask",{id:"mask0_1428_267",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("path",{id:"Bounding box",d:"M0 0H18V18H0V0Z",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1428_267)",children:r.jsx("path",{id:"keyboard_arrow_left_2",d:"M8.10001 8.99998L11.025 11.925C11.1625 12.0625 11.2313 12.2375 11.2313 12.45C11.2313 12.6625 11.1625 12.8375 11.025 12.975C10.8875 13.1125 10.7125 13.1812 10.5 13.1812C10.2875 13.1812 10.1125 13.1125 9.97501 12.975L6.52501 9.52498C6.45001 9.44998 6.39688 9.36873 6.36563 9.28123C6.33438 9.19373 6.31876 9.09998 6.31876 8.99998C6.31876 8.89998 6.33438 8.80623 6.36563 8.71873C6.39688 8.63123 6.45001 8.54998 6.52501 8.47498L9.97501 5.02498C10.1125 4.88748 10.2875 4.81873 10.5 4.81873C10.7125 4.81873 10.8875 4.88748 11.025 5.02498C11.1625 5.16248 11.2313 5.33748 11.2313 5.54998C11.2313 5.76248 11.1625 5.93748 11.025 6.07498L8.10001 8.99998Z",fill:"currentColor"})})]})}),n9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"chevron_right",children:[r.jsx("mask",{id:"mask0_1247_21809",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1247_21809)",children:r.jsx("path",{id:"chevron_right_2",d:"M9.44998 8.99998L6.52498 6.07498C6.38748 5.93748 6.31873 5.76248 6.31873 5.54998C6.31873 5.33748 6.38748 5.16248 6.52498 5.02498C6.66248 4.88748 6.83748 4.81873 7.04998 4.81873C7.26248 4.81873 7.43748 4.88748 7.57498 5.02498L11.025 8.47498C11.1 8.54997 11.1531 8.63123 11.1844 8.71873C11.2156 8.80623 11.2312 8.89998 11.2312 8.99998C11.2312 9.09998 11.2156 9.19373 11.1844 9.28123C11.1531 9.36873 11.1 9.44998 11.025 9.52497L7.57498 12.975C7.43748 13.1125 7.26248 13.1812 7.04998 13.1812C6.83748 13.1812 6.66248 13.1125 6.52498 12.975C6.38748 12.8375 6.31873 12.6625 6.31873 12.45C6.31873 12.2375 6.38748 12.0625 6.52498 11.925L9.44998 8.99998Z",fill:"currentColor"})})]})}),r9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 6",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.99993 1.71281L1.60576 5.10719C1.49034 5.22247 1.34528 5.28149 1.17055 5.28427C0.99597 5.28691 0.848262 5.22788 0.727428 5.10719C0.606734 4.98635 0.546387 4.83997 0.546387 4.66802C0.546387 4.49608 0.606734 4.34969 0.727428 4.22885L4.47264 0.483646C4.62333 0.333091 4.7991 0.257812 4.99993 0.257812C5.20076 0.257812 5.37653 0.333091 5.52722 0.483646L9.27243 4.22885C9.38771 4.34427 9.44673 4.48934 9.44951 4.66406C9.45215 4.83865 9.39312 4.98635 9.27243 5.10719C9.1516 5.22788 9.00521 5.28823 8.83326 5.28823C8.66132 5.28823 8.51493 5.22788 8.39409 5.10719L4.99993 1.71281Z",fill:"currentColor"})}),i9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M9.16074 4.89288H4.83931C4.73083 4.89288 4.64288 4.98083 4.64288 5.08931V9.41074C4.64288 9.51923 4.73083 9.60717 4.83931 9.60717H9.16074C9.26923 9.60717 9.35717 9.51923 9.35717 9.41074V5.08931C9.35717 4.98083 9.26923 4.89288 9.16074 4.89288Z",fill:"currentColor"}),r.jsx("path",{d:"M12.1071 5.67857C12.2113 5.67857 12.3113 5.63718 12.3849 5.56351C12.4586 5.48983 12.5 5.38991 12.5 5.28571C12.5 5.18152 12.4586 5.0816 12.3849 5.00792C12.3113 4.93425 12.2113 4.89286 12.1071 4.89286H11.7143V4.10714C11.7138 3.69051 11.5481 3.29108 11.2535 2.99648C10.9589 2.70188 10.5595 2.53617 10.1429 2.53571H9.35714V2.14286C9.35714 2.03866 9.31575 1.93874 9.24208 1.86507C9.1684 1.79139 9.06848 1.75 8.96429 1.75C8.86009 1.75 8.76017 1.79139 8.68649 1.86507C8.61282 1.93874 8.57143 2.03866 8.57143 2.14286V2.53571H7.39286V2.14286C7.39286 2.03866 7.35147 1.93874 7.27779 1.86507C7.20412 1.79139 7.10419 1.75 7 1.75C6.89581 1.75 6.79588 1.79139 6.72221 1.86507C6.64853 1.93874 6.60714 2.03866 6.60714 2.14286V2.53571H5.42857V2.14286C5.42857 2.03866 5.38718 1.93874 5.31351 1.86507C5.23983 1.79139 5.13991 1.75 5.03571 1.75C4.93152 1.75 4.8316 1.79139 4.75792 1.86507C4.68425 1.93874 4.64286 2.03866 4.64286 2.14286V2.53571H3.85714C3.44051 2.53617 3.04108 2.70188 2.74648 2.99648C2.45188 3.29108 2.28617 3.69051 2.28571 4.10714V4.89286H1.89286C1.78866 4.89286 1.68874 4.93425 1.61507 5.00792C1.54139 5.0816 1.5 5.18152 1.5 5.28571C1.5 5.38991 1.54139 5.48983 1.61507 5.56351C1.68874 5.63718 1.78866 5.67857 1.89286 5.67857H2.28571V6.85714H1.89286C1.78866 6.85714 1.68874 6.89853 1.61507 6.97221C1.54139 7.04588 1.5 7.14581 1.5 7.25C1.5 7.35419 1.54139 7.45412 1.61507 7.52779C1.68874 7.60147 1.78866 7.64286 1.89286 7.64286H2.28571V8.82143H1.89286C1.78866 8.82143 1.68874 8.86282 1.61507 8.93649C1.54139 9.01017 1.5 9.11009 1.5 9.21429C1.5 9.31848 1.54139 9.4184 1.61507 9.49208C1.68874 9.56575 1.78866 9.60714 1.89286 9.60714H2.28571V10.3929C2.28617 10.8095 2.45188 11.2089 2.74648 11.5035C3.04108 11.7981 3.44051 11.9638 3.85714 11.9643H4.64286V12.3571C4.64286 12.4613 4.68425 12.5613 4.75792 12.6349C4.8316 12.7086 4.93152 12.75 5.03571 12.75C5.13991 12.75 5.23983 12.7086 5.31351 12.6349C5.38718 12.5613 5.42857 12.4613 5.42857 12.3571V11.9643H6.60714V12.3571C6.60714 12.4613 6.64853 12.5613 6.72221 12.6349C6.79588 12.7086 6.89581 12.75 7 12.75C7.10419 12.75 7.20412 12.7086 7.27779 12.6349C7.35147 12.5613 7.39286 12.4613 7.39286 12.3571V11.9643H8.57143V12.3571C8.57143 12.4613 8.61282 12.5613 8.68649 12.6349C8.76017 12.7086 8.86009 12.75 8.96429 12.75C9.06848 12.75 9.1684 12.7086 9.24208 12.6349C9.31575 12.5613 9.35714 12.4613 9.35714 12.3571V11.9643H10.1429C10.5595 11.9638 10.9589 11.7981 11.2535 11.5035C11.5481 11.2089 11.7138 10.8095 11.7143 10.3929V9.60714H12.1071C12.2113 9.60714 12.3113 9.56575 12.3849 9.49208C12.4586 9.4184 12.5 9.31848 12.5 9.21429C12.5 9.11009 12.4586 9.01017 12.3849 8.93649C12.3113 8.86282 12.2113 8.82143 12.1071 8.82143H11.7143V7.64286H12.1071C12.2113 7.64286 12.3113 7.60147 12.3849 7.52779C12.4586 7.45412 12.5 7.35419 12.5 7.25C12.5 7.14581 12.4586 7.04588 12.3849 6.97221C12.3113 6.89853 12.2113 6.85714 12.1071 6.85714H11.7143V5.67857H12.1071ZM10.1429 9.60714C10.1429 9.81553 10.0601 10.0154 9.91273 10.1627C9.76538 10.3101 9.56553 10.3929 9.35714 10.3929H4.64286C4.43447 10.3929 4.23462 10.3101 4.08727 10.1627C3.93992 10.0154 3.85714 9.81553 3.85714 9.60714V4.89286C3.85714 4.68447 3.93992 4.48462 4.08727 4.33727C4.23462 4.18992 4.43447 4.10714 4.64286 4.10714H9.35714C9.56553 4.10714 9.76538 4.18992 9.91273 4.33727C10.0601 4.48462 10.1429 4.68447 10.1429 4.89286V9.60714Z",fill:"currentColor"})]}),s9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"cancel",children:[r.jsx("mask",{id:"mask0_1264_3381",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1264_3381)",children:r.jsx("path",{id:"cancel_2",d:"M16 17.4051L20.0975 21.5025C20.2821 21.6872 20.5141 21.7816 20.7936 21.7859C21.0731 21.7902 21.3094 21.6957 21.5025 21.5025C21.6957 21.3094 21.7923 21.0752 21.7923 20.8C21.7923 20.5248 21.6957 20.2906 21.5025 20.0975L17.4051 16L21.5025 11.9025C21.6872 11.7179 21.7816 11.4859 21.7859 11.2064C21.7902 10.9269 21.6957 10.6906 21.5025 10.4975C21.3094 10.3043 21.0752 10.2077 20.8 10.2077C20.5248 10.2077 20.2906 10.3043 20.0975 10.4975L16 14.5949L11.9025 10.4975C11.7179 10.3129 11.4859 10.2184 11.2064 10.2141C10.9269 10.2099 10.6906 10.3043 10.4975 10.4975C10.3043 10.6906 10.2077 10.9248 10.2077 11.2C10.2077 11.4752 10.3043 11.7094 10.4975 11.9025L14.5949 16L10.4975 20.0975C10.3129 20.2821 10.2184 20.5141 10.2141 20.7936C10.2099 21.0731 10.3043 21.3094 10.4975 21.5025C10.6906 21.6957 10.9248 21.7923 11.2 21.7923C11.4752 21.7923 11.7094 21.6957 11.9025 21.5025L16 17.4051ZM16.0022 28.6666C14.2503 28.6666 12.6036 28.3342 11.0621 27.6693C9.52057 27.0044 8.17966 26.1021 7.03937 24.9623C5.89906 23.8225 4.99632 22.4822 4.33114 20.9413C3.66596 19.4005 3.33337 17.7542 3.33337 16.0022C3.33337 14.2503 3.66582 12.6036 4.33071 11.0621C4.9956 9.52057 5.89793 8.17967 7.03771 7.03938C8.17751 5.89907 9.51783 4.99632 11.0587 4.33114C12.5995 3.66596 14.2459 3.33337 15.9978 3.33337C17.7497 3.33337 19.3964 3.66582 20.9379 4.33071C22.4794 4.9956 23.8204 5.89793 24.9606 7.03771C26.101 8.17751 27.0037 9.51783 27.6689 11.0587C28.3341 12.5995 28.6666 14.2459 28.6666 15.9978C28.6666 17.7497 28.3342 19.3964 27.6693 20.9379C27.0044 22.4794 26.1021 23.8204 24.9623 24.9606C23.8225 26.101 22.4822 27.0037 20.9413 27.6689C19.4005 28.3341 17.7542 28.6666 16.0022 28.6666Z",fill:"currentColor"})})]})}),o9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 8 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.5884 4.12155L3.88306 2.41429C3.8396 2.37079 3.80894 2.32471 3.79108 2.27605C3.77323 2.22738 3.7643 2.17524 3.7643 2.11963C3.7643 2.06401 3.77323 2.01206 3.79108 1.96379C3.80894 1.91553 3.8396 1.86964 3.88306 1.82614L5.5884 0.118886C5.63185 0.0753881 5.67788 0.0446995 5.72649 0.0268199C5.7751 0.00894031 5.82719 0 5.88275 0C5.9383 0 5.99019 0.00894031 6.0384 0.0268199C6.08662 0.0446995 6.13245 0.0753881 6.1759 0.118886L7.88125 1.82614C7.9247 1.86964 7.95536 1.91573 7.97321 1.96439C7.99107 2.01306 8 2.0652 8 2.12081C8 2.17643 7.99107 2.22838 7.97321 2.27664C7.95536 2.32491 7.9247 2.37079 7.88125 2.41429L6.1759 4.12155C6.13245 4.16505 6.08642 4.19574 6.03781 4.21362C5.9892 4.23149 5.93711 4.24043 5.88155 4.24043C5.826 4.24043 5.77412 4.23149 5.7259 4.21362C5.67768 4.19574 5.63185 4.16505 5.5884 4.12155ZM0 3.21787V0.804477C0 0.68544 0.0402151 0.585661 0.120645 0.505141C0.201076 0.424621 0.300743 0.384361 0.419648 0.384361H2.83035C2.94925 0.384361 3.04891 0.424621 3.12934 0.505141C3.20977 0.585661 3.24999 0.68544 3.24999 0.804477V3.21787C3.24999 3.3369 3.20977 3.43668 3.12934 3.5172C3.04891 3.59772 2.94925 3.63798 2.83035 3.63798H0.419648C0.300743 3.63798 0.201076 3.59772 0.120645 3.5172C0.0402151 3.43668 0 3.3369 0 3.21787ZM4.35715 7.57988V5.16649C4.35715 5.04746 4.39737 4.94768 4.4778 4.86716C4.55823 4.78664 4.65789 4.74638 4.77679 4.74638H7.18749C7.3064 4.74638 7.40607 4.78664 7.4865 4.86716C7.56693 4.94768 7.60714 5.04746 7.60714 5.16649V7.57988C7.60714 7.69892 7.56693 7.7987 7.4865 7.87922C7.40607 7.95974 7.3064 8 7.18749 8H4.77679C4.65789 8 4.55823 7.95974 4.4778 7.87922C4.39737 7.7987 4.35715 7.69892 4.35715 7.57988ZM0 7.57988V5.16649C0 5.04746 0.0402151 4.94768 0.120645 4.86716C0.201076 4.78664 0.300743 4.74638 0.419648 4.74638H2.83035C2.94925 4.74638 3.04891 4.78664 3.12934 4.86716C3.20977 4.94768 3.24999 5.04746 3.24999 5.16649V7.57988C3.24999 7.69892 3.20977 7.7987 3.12934 7.87922C3.04891 7.95974 2.94925 8 2.83035 8H0.419648C0.300743 8 0.201076 7.95974 0.120645 7.87922C0.0402151 7.7987 0 7.69892 0 7.57988Z",fill:"currentColor"})}),l9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_4256",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_4256)",children:r.jsx("path",{d:"M3.98234 10.0176L8.00952 8.00958L10.0175 3.9824L5.99031 5.99038L3.98234 10.0176ZM6.99992 7.58331C6.83464 7.58331 6.6961 7.52741 6.58429 7.4156C6.47249 7.3038 6.41658 7.16526 6.41658 6.99998C6.41658 6.8347 6.47249 6.69616 6.58429 6.58435C6.6961 6.47255 6.83464 6.41665 6.99992 6.41665C7.1652 6.41665 7.30374 6.47255 7.41554 6.58435C7.52735 6.69616 7.58325 6.8347 7.58325 6.99998C7.58325 7.16526 7.52735 7.3038 7.41554 7.4156C7.30374 7.52741 7.1652 7.58331 6.99992 7.58331ZM7.00094 12.5416C6.23444 12.5416 5.51397 12.3962 4.83954 12.1053C4.16511 11.8144 3.57847 11.4197 3.07963 10.921C2.58078 10.4223 2.18581 9.83595 1.89473 9.16181C1.60374 8.48767 1.45825 7.7674 1.45825 7.001C1.45825 6.2345 1.6037 5.51403 1.89459 4.8396C2.18547 4.16517 2.58025 3.57854 3.0789 3.07969C3.57755 2.58084 4.16395 2.18588 4.83809 1.89479C5.51222 1.60381 6.23249 1.45831 6.9989 1.45831C7.7654 1.45831 8.48586 1.60376 9.16029 1.89465C9.83472 2.18553 10.4214 2.58031 10.9202 3.07896C11.4191 3.57761 11.814 4.16401 12.1051 4.83815C12.3961 5.51229 12.5416 6.23256 12.5416 6.99896C12.5416 7.76546 12.3961 8.48592 12.1053 9.16035C11.8144 9.83479 11.4196 10.4214 10.9209 10.9203C10.4223 11.4191 9.83589 11.8141 9.16175 12.1052C8.48761 12.3962 7.76734 12.5416 7.00094 12.5416Z",fill:"currentColor"})})]}),C9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22054",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22054)",children:r.jsx("path",{d:"M10.5808 11.4972L7.8257 8.74213L8.74765 7.82003L11.5029 10.5751C11.627 10.6993 11.6891 10.853 11.6891 11.0362C11.6891 11.2194 11.627 11.3731 11.5029 11.4972C11.3787 11.6214 11.225 11.6834 11.0418 11.6834C10.8586 11.6834 10.7049 11.6214 10.5808 11.4972ZM2.50278 11.4972C2.37863 11.3731 2.31655 11.2194 2.31655 11.0362C2.31655 10.853 2.37863 10.6993 2.50278 10.5751L6.08357 6.99446L4.72163 5.63807C4.62587 5.73383 4.50473 5.78171 4.35822 5.78171C4.21161 5.78171 4.09042 5.73383 3.99465 5.63807L3.70984 5.34757V6.56469C3.70984 6.68583 3.65617 6.76794 3.54884 6.811C3.44151 6.85398 3.34482 6.83244 3.25878 6.7464L1.78703 5.27465C1.70099 5.18861 1.6795 5.09197 1.72257 4.98473C1.76554 4.8774 1.8476 4.82373 1.96874 4.82373H3.18586L2.91549 4.55336C2.8101 4.44787 2.7574 4.32391 2.7574 4.18148C2.7574 4.03905 2.8101 3.91509 2.91549 3.80961L4.20786 2.51738C4.37236 2.35278 4.55052 2.23237 4.74234 2.15615C4.93416 2.07983 5.13366 2.04167 5.34084 2.04167C5.50534 2.04167 5.66051 2.06525 5.80634 2.1124C5.95217 2.15946 6.09465 2.23388 6.23378 2.33567C6.30028 2.38049 6.33693 2.44198 6.34374 2.52015C6.35045 2.59832 6.32351 2.66769 6.26295 2.72826L5.3229 3.6683L5.64374 3.98913C5.7394 4.0848 5.78724 4.20594 5.78724 4.35255C5.78724 4.49916 5.7394 4.6203 5.64374 4.71596L7.00553 6.07236L8.40786 4.67003C8.34282 4.5519 8.29533 4.42984 8.26538 4.30384C8.23544 4.17774 8.22047 4.04518 8.22047 3.90615C8.22047 3.38115 8.40145 2.93767 8.7634 2.57571C9.12536 2.21375 9.56884 2.03278 10.0938 2.03278C10.1604 2.03278 10.2212 2.03423 10.2761 2.03715C10.3312 2.04016 10.389 2.04955 10.4495 2.0653C10.5221 2.09067 10.5696 2.14205 10.592 2.21944C10.6144 2.29693 10.5972 2.36406 10.5404 2.42084L9.64847 3.31261C9.59392 3.36725 9.56665 3.42971 9.56665 3.5C9.56665 3.5703 9.59392 3.63276 9.64847 3.6874L10.3126 4.35153C10.3672 4.40607 10.4297 4.43334 10.5 4.43334C10.5703 4.43334 10.6327 4.40607 10.6874 4.35153L11.5792 3.45961C11.6359 3.40283 11.7031 3.38416 11.7806 3.40361C11.8579 3.42305 11.9093 3.47201 11.9347 3.55046C11.9504 3.61103 11.9598 3.66883 11.9628 3.72386C11.9658 3.77879 11.9672 3.83955 11.9672 3.90615C11.9672 4.43115 11.7862 4.87463 11.4243 5.23659C11.0623 5.59855 10.6188 5.77953 10.0938 5.77953C9.95481 5.77953 9.82225 5.76606 9.69615 5.73913C9.57015 5.7122 9.44809 5.6632 9.32997 5.59213L3.42488 11.4972C3.30073 11.6214 3.14702 11.6834 2.96376 11.6834C2.78059 11.6834 2.62693 11.6214 2.50278 11.4972Z",fill:"currentColor"})})]}),a9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 56 56",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.75129 14.5773L28 1.1547L51.2487 14.5773V41.4226L28 54.8453L4.75129 41.4226V14.5773Z",stroke:"#47505E","stroke-width":"2"}),r.jsx("path",{d:"M51.5956 14.4722L28.0001 28.0003M28.0001 28.0003L4.40457 14.4722M28.0001 28.0003L28.0001 55.3711",stroke:"#47505E","stroke-width":"2"})]}),c9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"content_copy",children:[r.jsx("mask",{id:"mask0_1489_75628",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1489_75628)",children:r.jsx("path",{id:"content_copy_2",d:"M5.28363 10.2083C4.98897 10.2083 4.73956 10.1063 4.5354 9.9021C4.33124 9.69793 4.22915 9.44852 4.22915 9.15385V2.51287C4.22915 2.21821 4.33124 1.96879 4.5354 1.76462C4.73956 1.56046 4.98897 1.45837 5.28363 1.45837H10.1746C10.4693 1.45837 10.7187 1.56046 10.9229 1.76462C11.127 1.96879 11.2291 2.21821 11.2291 2.51287V9.15385C11.2291 9.44852 11.127 9.69793 10.9229 9.9021C10.7187 10.1063 10.4693 10.2083 10.1746 10.2083H5.28363ZM5.28363 9.33336H10.1746C10.2195 9.33336 10.2606 9.31466 10.298 9.27727C10.3354 9.23987 10.3541 9.19873 10.3541 9.15385V2.51287C10.3541 2.46799 10.3354 2.42685 10.298 2.38945C10.2606 2.35206 10.2195 2.33336 10.1746 2.33336H5.28363C5.23875 2.33336 5.19762 2.35206 5.16023 2.38945C5.12282 2.42685 5.10412 2.46799 5.10412 2.51287V9.15385C5.10412 9.19873 5.12282 9.23987 5.16023 9.27727C5.19762 9.31466 5.23875 9.33336 5.28363 9.33336ZM3.24198 12.25C2.94733 12.25 2.69792 12.1479 2.49375 11.9437C2.28958 11.7396 2.1875 11.4902 2.1875 11.1955V3.67953H3.06249V11.1955C3.06249 11.2404 3.08118 11.2815 3.11857 11.3189C3.15597 11.3563 3.19711 11.375 3.24198 11.375H9.00796V12.25H3.24198Z",fill:"currentColor"})})]})}),h9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_27",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_27)",children:r.jsx("path",{d:"M2.51277 11.9583C2.21809 11.9583 1.96867 11.8562 1.7645 11.6521C1.56034 11.4479 1.45825 11.1985 1.45825 10.9038V4.84619C1.45825 4.55151 1.56034 4.30208 1.7645 4.09792C1.96867 3.89375 2.21809 3.79167 2.51277 3.79167H4.95825V2.80452C4.95825 2.50984 5.06034 2.26042 5.2645 2.05625C5.46867 1.85208 5.71809 1.75 6.01277 1.75H7.98706C8.28174 1.75 8.53117 1.85208 8.73534 2.05625C8.9395 2.26042 9.04159 2.50984 9.04159 2.80452V3.79167H11.4871C11.7817 3.79167 12.0312 3.89375 12.2353 4.09792C12.4395 4.30208 12.5416 4.55151 12.5416 4.84619V10.9038C12.5416 11.1985 12.4395 11.4479 12.2353 11.6521C12.0312 11.8562 11.7817 11.9583 11.4871 11.9583H2.51277ZM5.83325 3.79167H8.16659V2.80452C8.16659 2.7596 8.14787 2.71848 8.11044 2.68115C8.07311 2.64371 8.03198 2.625 7.98706 2.625H6.01277C5.96786 2.625 5.92673 2.64371 5.8894 2.68115C5.85197 2.71848 5.83325 2.7596 5.83325 2.80452V3.79167Z",fill:"currentColor"})})]}),u9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 23 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_8954_27793",maskUnits:"userSpaceOnUse",x:"10",y:"-3",width:"16",height:"16",children:r.jsx("rect",{x:"10",y:"-3",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8954_27793)",children:r.jsx("path",{d:"M17.5 5.50005H14.1666C14.025 5.50005 13.9062 5.45212 13.8104 5.35625C13.7145 5.26037 13.6666 5.14157 13.6666 4.99985C13.6666 4.85812 13.7145 4.73939 13.8104 4.64367C13.9062 4.54794 14.025 4.50008 14.1666 4.50008H17.5V1.16675C17.5 1.02508 17.5479 0.906331 17.6438 0.810498C17.7396 0.714665 17.8584 0.666748 18.0002 0.666748C18.1419 0.666748 18.2606 0.714665 18.3563 0.810498C18.4521 0.906331 18.4999 1.02508 18.4999 1.16675V4.50008H21.8333C21.9749 4.50008 22.0937 4.54802 22.1895 4.64388C22.2853 4.73976 22.3333 4.85856 22.3333 5.00028C22.3333 5.14202 22.2853 5.26074 22.1895 5.35647C22.0937 5.45219 21.9749 5.50005 21.8333 5.50005H18.4999V8.83338C18.4999 8.97505 18.452 9.0938 18.3561 9.18963C18.2602 9.28547 18.1414 9.33338 17.9997 9.33338C17.858 9.33338 17.7393 9.28547 17.6435 9.18963C17.5478 9.0938 17.5 8.97505 17.5 8.83338V5.50005Z",fill:"currentColor"})}),r.jsx("path",{d:"M1.33333 6C1.33333 7.47276 2.52724 8.66667 4 8.66667C5.47276 8.66667 6.66667 7.47276 6.66667 6C6.66667 4.52724 5.47276 3.33333 4 3.33333C2.52724 3.33333 1.33333 4.52724 1.33333 6ZM14.3333 19C14.3333 20.4728 15.5272 21.6667 17 21.6667C18.4728 21.6667 19.6667 20.4728 19.6667 19C19.6667 17.5272 18.4728 16.3333 17 16.3333C15.5272 16.3333 14.3333 17.5272 14.3333 19ZM3.64645 6.35355L16.6464 19.3536L17.3536 18.6464L4.35355 5.64645L3.64645 6.35355Z",fill:"currentColor"})]}),d9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 34 34",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_2777_4506)",children:[r.jsx("mask",{id:"mask1_2777_4506",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"34",height:"34",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask1_2777_4506)",children:r.jsx("path",{d:"M8.25212 29.988L10.5542 20.0359L2.83337 13.3421L13.0334 12.4567L17 3.07129L20.9667 12.4567L31.1667 13.3421L23.4459 20.0359L25.748 29.988L17 24.7109L8.25212 29.988Z",fill:"currentColor"})})]})]}),f9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"delete",children:[r.jsx("mask",{id:"mask0_2401_3378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{id:"delete_2",d:"M6.08975 17.0834C5.67415 17.0834 5.31919 16.9362 5.02485 16.6419C4.73051 16.3475 4.58333 15.9926 4.58333 15.577V5.00009H4.375C4.19765 5.00009 4.04915 4.94026 3.9295 4.82061C3.80983 4.70095 3.75 4.55245 3.75 4.37511C3.75 4.19776 3.80983 4.04926 3.9295 3.92961C4.04915 3.80994 4.19765 3.75011 4.375 3.75011H7.49998C7.49998 3.54605 7.57183 3.37218 7.71552 3.22848C7.85922 3.08479 8.03309 3.01294 8.23715 3.01294H11.7628C11.9669 3.01294 12.1407 3.08479 12.2844 3.22848C12.4281 3.37218 12.5 3.54605 12.5 3.75011H15.625C15.8023 3.75011 15.9508 3.80994 16.0705 3.92961C16.1901 4.04926 16.25 4.19776 16.25 4.37511C16.25 4.55245 16.1901 4.70095 16.0705 4.82061C15.9508 4.94026 15.8023 5.00009 15.625 5.00009H15.4166V15.577C15.4166 15.9926 15.2695 16.3475 14.9751 16.6419C14.6808 16.9362 14.3258 17.0834 13.9102 17.0834H6.08975ZM14.1666 5.00009H5.83331V15.577C5.83331 15.6518 5.85735 15.7132 5.90544 15.7613C5.95352 15.8094 6.01496 15.8334 6.08975 15.8334H13.9102C13.985 15.8334 14.0464 15.8094 14.0945 15.7613C14.1426 15.7132 14.1666 15.6518 14.1666 15.577V5.00009ZM7.83654 14.1668H9.08652V6.66675H7.83654V14.1668ZM10.9134 14.1668H12.1634V6.66675H10.9134V14.1668Z",fill:"currentColor"})})]})}),p9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 60 52",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M12.849 16.2461L31.5592 5.44376L50.2694 16.2461V37.8508L31.5592 48.6531L12.849 37.8508V16.2461Z",stroke:"#6B7A8D",fill:"currentColor","stroke-width":"2"}),r.jsx("path",{d:"M50.7383 16.0509L31.559 27.047M31.559 27.047L12.3798 16.0509M31.559 27.047L31.559 49.2949",stroke:"#6B7A8D","stroke-width":"2"}),r.jsx("path",{d:"M7.44052 9.03136C5.80715 8.08833 3.71857 8.64797 2.77554 10.2813C1.83251 11.9147 2.39215 14.0033 4.02552 14.9463L52.5595 42.9674C54.1929 43.9104 56.2814 43.3508 57.2245 41.7174L55.4924 40.7174L57.2245 41.7174C58.1675 40.0841 57.6079 37.9955 55.9745 37.0525L7.44052 9.03136Z",fill:"currentColor",stroke:"#23252F","stroke-width":"4","stroke-linecap":"round"})]}),x9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22108",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22108)",children:r.jsx("path",{d:"M5.22302 6.62316L6.51656 5.32073L5.50915 4.30427L5.15798 4.65543C5.07719 4.73623 4.97715 4.77905 4.85785 4.78391C4.73866 4.78877 4.63381 4.74595 4.54329 4.65543C4.45278 4.56492 4.40752 4.46099 4.40752 4.34364C4.40752 4.2262 4.45278 4.12222 4.54329 4.03171L4.88542 3.68958L3.98796 2.79212L2.68552 4.09456L5.22302 6.62316ZM9.8999 11.3088L11.2022 10.0064L10.3047 9.10889L9.95371 9.45116C9.86689 9.53789 9.76534 9.58217 9.64906 9.58402C9.53279 9.58587 9.42939 9.54158 9.33888 9.45116C9.24846 9.36065 9.20325 9.25818 9.20325 9.14375C9.20325 9.02932 9.24846 8.92684 9.33888 8.83633L9.68115 8.48531L8.67038 7.48343L7.37683 8.77698L9.8999 11.3088ZM9.2626 3.84329L10.1746 4.75533L11.0924 3.8376L10.1713 2.91666L9.2626 3.84329ZM2.569 11.9583C2.4186 11.9583 2.29313 11.908 2.1926 11.8074C2.09198 11.7069 2.04167 11.5814 2.04167 11.431V10.0187C2.04167 9.94846 2.0544 9.88152 2.07987 9.81793C2.10525 9.75435 2.14526 9.69529 2.1999 9.64075L4.59944 7.24121L1.953 4.58923C1.81767 4.45389 1.75 4.289 1.75 4.09456C1.75 3.90012 1.81767 3.73523 1.953 3.59989L3.49329 2.0596C3.62863 1.92427 3.79351 1.85811 3.98796 1.86112C4.1824 1.86404 4.34729 1.93321 4.48263 2.06864L7.14919 4.72048L9.55325 2.30752C9.64376 2.217 9.74322 2.15007 9.85163 2.10671C9.96003 2.06334 10.0733 2.04166 10.1916 2.04166C10.3097 2.04166 10.423 2.06334 10.5314 2.10671C10.6399 2.15007 10.7393 2.217 10.8297 2.30752L11.6925 3.19608C11.783 3.2865 11.849 3.38595 11.8904 3.49445C11.9319 3.60286 11.9526 3.71612 11.9526 3.83425C11.9526 3.95247 11.9319 4.06335 11.8904 4.16689C11.849 4.27043 11.783 4.36746 11.6925 4.45798L9.29965 6.86539L11.9404 9.51737C12.0757 9.65271 12.1434 9.81759 12.1434 10.012C12.1434 10.2065 12.0757 10.3714 11.9404 10.5067L10.4001 12.047C10.2648 12.1823 10.0999 12.25 9.90544 12.25C9.71099 12.25 9.5461 12.1823 9.41077 12.047L6.75879 9.40056L4.35925 11.8001C4.30471 11.8547 4.24565 11.8947 4.18206 11.9201C4.11848 11.9456 4.05154 11.9583 3.98125 11.9583H2.569Z",fill:"currentColor"})})]}),g9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33333 12C0.966667 12 0.652778 11.8694 0.391667 11.6083C0.130556 11.3472 0 11.0333 0 10.6667V1.33333C0 0.966667 0.130556 0.652778 0.391667 0.391667C0.652778 0.130556 0.966667 0 1.33333 0H10.6667C11.0333 0 11.3472 0.130556 11.6083 0.391667C11.8694 0.652778 12 0.966667 12 1.33333V10.6667C12 11.0333 11.8694 11.3472 11.6083 11.6083C11.3472 11.8694 11.0333 12 10.6667 12H1.33333ZM3.33333 9.33333H6.66667C6.85556 9.33333 7.01389 9.26945 7.14167 9.14167C7.26944 9.01389 7.33333 8.85556 7.33333 8.66667C7.33333 8.47778 7.26944 8.31945 7.14167 8.19167C7.01389 8.06389 6.85556 8 6.66667 8H3.33333C3.14444 8 2.98611 8.06389 2.85833 8.19167C2.73056 8.31945 2.66667 8.47778 2.66667 8.66667C2.66667 8.85556 2.73056 9.01389 2.85833 9.14167C2.98611 9.26945 3.14444 9.33333 3.33333 9.33333ZM3.33333 6.66667H8.66667C8.85556 6.66667 9.01389 6.60278 9.14167 6.475C9.26945 6.34722 9.33333 6.18889 9.33333 6C9.33333 5.81111 9.26945 5.65278 9.14167 5.525C9.01389 5.39722 8.85556 5.33333 8.66667 5.33333H3.33333C3.14444 5.33333 2.98611 5.39722 2.85833 5.525C2.73056 5.65278 2.66667 5.81111 2.66667 6C2.66667 6.18889 2.73056 6.34722 2.85833 6.475C2.98611 6.60278 3.14444 6.66667 3.33333 6.66667ZM3.33333 4H8.66667C8.85556 4 9.01389 3.93611 9.14167 3.80833C9.26945 3.68056 9.33333 3.52222 9.33333 3.33333C9.33333 3.14444 9.26945 2.98611 9.14167 2.85833C9.01389 2.73056 8.85556 2.66667 8.66667 2.66667H3.33333C3.14444 2.66667 2.98611 2.73056 2.85833 2.85833C2.73056 2.98611 2.66667 3.14444 2.66667 3.33333C2.66667 3.52222 2.73056 3.68056 2.85833 3.80833C2.98611 3.93611 3.14444 4 3.33333 4Z",fill:"currentColor"})}),m9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_2638_2680",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_2638_2680)",children:r.jsx("path",{d:"M9.99732 16C9.90858 16 9.82421 15.985 9.74419 15.9551C9.66418 15.9252 9.5909 15.8765 9.52435 15.8091L6.18835 12.4277C6.06278 12.3004 6 12.1406 6 11.9483C6 11.7559 6.06278 11.5961 6.18835 11.4689C6.32145 11.3315 6.48099 11.2648 6.66697 11.2686C6.85295 11.2724 7.00873 11.3392 7.13429 11.4689L9.32114 13.674V4.68539C9.32114 4.49306 9.3864 4.33074 9.51692 4.19845C9.64744 4.06615 9.80758 4 9.99732 4C10.1871 4 10.3472 4.06615 10.4777 4.19845C10.6082 4.33074 10.6735 4.49306 10.6735 4.68539V13.674L12.849 11.4689C12.9845 11.3315 13.1447 11.2629 13.3294 11.2629C13.5143 11.2629 13.6744 11.3315 13.8099 11.4689C13.9378 11.6062 14.0012 11.7685 14 11.9558C13.9988 12.1431 13.9354 12.3004 13.8099 12.4277L10.4738 15.8091C10.4073 15.8765 10.3334 15.9252 10.2522 15.9551C10.171 15.985 10.0861 16 9.99732 16Z",fill:"currentColor"})})]}),w9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Type=Edit, Size=20x20",children:r.jsx("path",{id:"icon","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.9243 3.3359L9.06461 9.19559C8.97523 9.28497 8.9036 9.39048 8.85353 9.50654L7.99772 11.49C7.89015 11.7394 8.14272 11.9919 8.39203 11.8843L10.3755 11.0285C10.4916 10.9785 10.5971 10.9068 10.6865 10.8175L16.5462 4.95777C16.994 4.50991 16.994 3.78377 16.5462 3.3359C16.0983 2.88804 15.3722 2.88804 14.9243 3.3359ZM14.5297 10.7363C14.5297 10.3876 14.8127 10.1047 15.1615 10.1047C15.5116 10.1047 15.7933 10.3889 15.7933 10.7363L15.7222 14.1051C15.7222 15.1499 14.8954 16 13.8506 16H5.87166C4.85054 16 4 15.1499 4 14.0814V6.0806C4 5.05918 4.85054 4.2091 5.87166 4.2091L9.68606 4.20936C10.0362 4.20936 10.3178 4.49228 10.3178 4.841C10.3178 5.18972 10.0349 5.47264 9.68606 5.47264H5.89535C5.54735 5.47264 5.26357 5.75609 5.26357 6.10428V14.1051C5.26357 14.4533 5.54735 14.7367 5.89535 14.7367H13.898C14.246 14.7367 14.5297 14.4533 14.5297 14.1051V10.7363Z",fill:"currentColor"})})}),v9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"4 3 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M10 4.7002H6.1C5.21634 4.7002 4.5 5.41654 4.5 6.3002V13.9002C4.5 14.7838 5.21634 15.5002 6.1 15.5002H13.7C14.5837 15.5002 15.3 14.7839 15.3 13.9002V10.5002",stroke:"#909BAA","stroke-linecap":"round"}),r.jsx("path",{d:"M16 4L9 11",stroke:"#909BAA","stroke-width":"1.5","stroke-linecap":"round"})]}),_9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1765 0.310088L4.72809 5.70971C4.63832 5.79868 4.56637 5.90372 4.51607 6.01926L3.74627 7.78746C3.63822 8.03565 3.89191 8.28707 4.14234 8.17999L5.92651 7.41707C6.04309 7.36722 6.14907 7.29592 6.23885 7.20695L11.6872 1.80733C12.1044 1.39388 12.1044 0.723539 11.6872 0.310088C11.27 -0.103363 10.5936 -0.103363 10.1765 0.310088ZM9.80835 7.14088C9.80835 6.81895 10.072 6.55777 10.3969 6.55777C10.723 6.55777 10.9854 6.82017 10.9854 7.14088L10.9191 10.2508C10.9191 11.2153 10.1489 12.0001 9.17571 12.0001H1.74343C0.79227 12.0001 0 11.2153 0 10.2289V2.84292C0 1.89999 0.79227 1.11523 1.74343 1.11523L5.29651 1.11548C5.62264 1.11548 5.88501 1.37666 5.88501 1.69858C5.88501 2.0205 5.62141 2.28168 5.29651 2.28168H1.7655C1.44134 2.28168 1.177 2.54335 1.177 2.86479V10.2508C1.177 10.5722 1.44134 10.8339 1.7655 10.8339H9.21985C9.54402 10.8339 9.80835 10.5722 9.80835 10.2508V7.14088Z",fill:"currentColor"})}),k9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Episode",children:[r.jsx("path",{id:"Rectangle 4456 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M10 6.125H1L1 11H10V6.125ZM1 5.125C0.447715 5.125 0 5.57272 0 6.125V11C0 11.5523 0.447715 12 1 12H10C10.5523 12 11 11.5523 11 11V6.125C11 5.57272 10.5523 5.125 10 5.125H1Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4457 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.0625 3.5625H2.0625V2.5625H12.0625C12.8909 2.5625 13.5625 3.23407 13.5625 4.0625V9.9375H12.5625V4.0625C12.5625 3.78636 12.3386 3.5625 12.0625 3.5625Z",fill:"currentColor"}),r.jsx("path",{id:"Rectangle 4458 (Stroke)","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.125 1.5H4.125V0.5H14.125C14.9534 0.5 15.625 1.17157 15.625 2V7.875H14.625V2C14.625 1.72386 14.4011 1.5 14.125 1.5Z",fill:"currentColor"})]})}),y9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_31",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_31)",children:r.jsx("path",{d:"M4.2304 12.5416C3.33955 12.5416 2.5819 12.2297 1.95744 11.6058C1.33298 10.9821 1.02075 10.2245 1.02075 9.33331V6.59617C1.02075 6.30615 1.124 6.0579 1.3305 5.8514C1.537 5.6449 1.78526 5.54165 2.07527 5.54165H6.3829C6.67291 5.54165 6.92117 5.6449 7.12767 5.8514C7.33417 6.0579 7.43742 6.30615 7.43742 6.59617V9.33331C7.43742 10.2245 7.12563 10.9821 6.50204 11.6058C5.87846 12.2297 5.12125 12.5416 4.2304 12.5416ZM3.06242 8.40217C3.20903 8.40217 3.33357 8.35098 3.43604 8.2486C3.53842 8.14613 3.58961 8.02159 3.58961 7.87498C3.58961 7.72837 3.53842 7.60383 3.43604 7.50135C3.33357 7.39898 3.20903 7.34779 3.06242 7.34779C2.91581 7.34779 2.79131 7.39898 2.68894 7.50135C2.58647 7.60383 2.53523 7.72837 2.53523 7.87498C2.53523 8.02159 2.58647 8.14613 2.68894 8.2486C2.79131 8.35098 2.91581 8.40217 3.06242 8.40217ZM5.39575 8.40217C5.54236 8.40217 5.6669 8.35098 5.76938 8.2486C5.87175 8.14613 5.92294 8.02159 5.92294 7.87498C5.92294 7.72837 5.87175 7.60383 5.76938 7.50135C5.6669 7.39898 5.54236 7.34779 5.39575 7.34779C5.24914 7.34779 5.12465 7.39898 5.02227 7.50135C4.9198 7.60383 4.86856 7.72837 4.86856 7.87498C4.86856 8.02159 4.9198 8.14613 5.02227 8.2486C5.12465 8.35098 5.24914 8.40217 5.39575 8.40217ZM12.9791 2.51283V5.24998C12.9791 6.14122 12.6671 6.89872 12.0433 7.5225C11.4195 8.14638 10.662 8.45831 9.77075 8.45831C9.59575 8.45831 9.42318 8.4449 9.25304 8.41806C9.0829 8.39133 8.9152 8.35113 8.74992 8.29746C8.61381 8.24389 8.50686 8.15595 8.42908 8.03365C8.35131 7.91144 8.31242 7.77552 8.31242 7.6259V6.23713C8.31242 5.83628 8.19575 5.48161 7.96242 5.17313C7.72909 4.86464 7.42546 4.7104 7.05154 4.7104C6.91057 4.7104 6.79381 4.65916 6.70125 4.55669C6.6087 4.45422 6.56242 4.32972 6.56242 4.18321V2.51283C6.56242 2.22282 6.66567 1.97456 6.87217 1.76806C7.07867 1.56156 7.32693 1.45831 7.61694 1.45831H11.9246C12.2146 1.45831 12.4628 1.56156 12.6693 1.76806C12.8758 1.97456 12.9791 2.22282 12.9791 2.51283ZM8.60409 4.31883C8.7507 4.31883 8.87519 4.26765 8.97756 4.16527C9.08004 4.0628 9.13127 3.93826 9.13127 3.79165C9.13127 3.64504 9.08004 3.52049 8.97756 3.41802C8.87519 3.31565 8.7507 3.26446 8.60409 3.26446C8.45747 3.26446 8.33293 3.31565 8.23046 3.41802C8.12809 3.52049 8.0769 3.64504 8.0769 3.79165C8.0769 3.93826 8.12809 4.0628 8.23046 4.16527C8.33293 4.26765 8.45747 4.31883 8.60409 4.31883ZM10.9374 4.31883C11.084 4.31883 11.2085 4.26765 11.3109 4.16527C11.4134 4.0628 11.4646 3.93826 11.4646 3.79165C11.4646 3.64504 11.4134 3.52049 11.3109 3.41802C11.2085 3.31565 11.084 3.26446 10.9374 3.26446C10.7908 3.26446 10.6663 3.31565 10.5638 3.41802C10.4614 3.52049 10.4102 3.64504 10.4102 3.79165C10.4102 3.93826 10.4614 4.0628 10.5638 4.16527C10.6663 4.26765 10.7908 4.31883 10.9374 4.31883ZM9.77046 5.30613C9.51486 5.30613 9.26947 5.35362 9.03429 5.4486C8.79911 5.54349 8.61945 5.70051 8.49529 5.91965C8.44289 6.00938 8.4494 6.09557 8.51484 6.17821C8.58027 6.26085 8.67131 6.30217 8.78798 6.30217H10.7534C10.8663 6.30217 10.9555 6.26085 11.021 6.17821C11.0864 6.09557 11.093 6.00938 11.0407 5.91965C10.9165 5.70051 10.7377 5.54349 10.5041 5.4486C10.2706 5.35362 10.0261 5.30613 9.77046 5.30613ZM4.22909 10.3855C4.47885 10.3855 4.71685 10.3395 4.94309 10.2475C5.16932 10.1556 5.3505 10.006 5.48661 9.79881C5.54494 9.70781 5.54586 9.61686 5.48938 9.52596C5.43299 9.43496 5.34646 9.38946 5.22979 9.38946H3.22852C3.1137 9.38946 3.02756 9.43525 2.97011 9.52683C2.91274 9.61842 2.91323 9.70908 2.97156 9.79881C3.10768 10.006 3.28885 10.1556 3.51509 10.2475C3.74132 10.3395 3.97932 10.3855 4.22909 10.3855Z",fill:"currentColor"})})]}),j9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_4160_9271",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"32",height:"32",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4160_9271)",children:r.jsx("path",{d:"M11 25V21H7V19H13V25H11ZM19 25V19H25V21H21V25H19ZM7 13V11H11V7H13V13H7ZM19 13V7H21V11H25V13H19Z",fill:"currentColor"})})]}),L9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"captive_portal",children:[r.jsx("mask",{id:"mask0_8513_13265",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_8513_13265)",children:[r.jsx("path",{id:"captive_portal_2",d:"M9.99992 17.9154C8.90589 17.9154 7.87735 17.7073 6.91429 17.2912C5.9511 16.8751 5.11318 16.3107 4.40054 15.5981C3.6879 14.8854 3.12353 14.0475 2.70742 13.0843C2.29131 12.1213 2.08325 11.0927 2.08325 9.9987C2.08325 8.90467 2.29131 7.87613 2.70742 6.91307C3.12353 5.94988 3.6879 5.11196 4.40054 4.39932C5.11318 3.68668 5.9511 3.12231 6.91429 2.7062C7.87735 2.29009 8.90589 2.08203 9.99992 2.08203C11.0939 2.08203 12.1225 2.29009 13.0855 2.7062C14.0487 3.12231 14.8867 3.68668 15.5993 4.39932C16.3119 5.11196 16.8763 5.94988 17.2924 6.91307C17.7085 7.87613 17.9166 8.90467 17.9166 9.9987C17.9166 10.1429 17.9131 10.2983 17.9062 10.4649C17.8992 10.6316 17.8861 10.7871 17.8668 10.9314C17.8444 11.1088 17.7699 11.2487 17.6433 11.3512C17.5167 11.4538 17.3605 11.5052 17.1745 11.5052C17.011 11.5052 16.8717 11.4346 16.7564 11.2935C16.641 11.1525 16.5945 10.9977 16.617 10.8289C16.6448 10.6846 16.66 10.5462 16.6626 10.4137C16.6653 10.2812 16.6666 10.1429 16.6666 9.9987C16.6666 9.69425 16.6466 9.39113 16.6066 9.08932C16.5664 8.78738 16.5037 8.48689 16.4183 8.18786H13.3203C13.3727 8.48689 13.4107 8.78738 13.4343 9.08932C13.4578 9.39113 13.4695 9.69425 13.4695 9.9987C13.4695 10.1429 13.4682 10.2962 13.4655 10.4587C13.4628 10.6211 13.4544 10.7743 13.4405 10.9185C13.4182 11.0959 13.345 11.2379 13.221 11.3447C13.0971 11.4517 12.9464 11.5052 12.7691 11.5052C12.6056 11.5052 12.4628 11.4389 12.3405 11.3064C12.2182 11.1739 12.1682 11.0233 12.1905 10.8545C12.2044 10.7102 12.2128 10.5676 12.2155 10.4266C12.2182 10.2855 12.2195 10.1429 12.2195 9.9987C12.2195 9.69425 12.2078 9.39113 12.1843 9.08932C12.1607 8.78738 12.1228 8.48689 12.0705 8.18786H7.92929C7.87707 8.48689 7.83915 8.78738 7.81554 9.08932C7.79207 9.39113 7.78033 9.69425 7.78033 9.9987C7.78033 10.3031 7.79207 10.6063 7.81554 10.9081C7.83915 11.21 7.87707 11.5105 7.92929 11.8095H10.3685C10.5458 11.8095 10.6944 11.8694 10.8141 11.9891C10.9337 12.1087 10.9935 12.2572 10.9935 12.4345C10.9935 12.6119 10.9337 12.7604 10.8141 12.8802C10.6944 12.9997 10.5458 13.0595 10.3685 13.0595H8.21617C8.39895 13.7155 8.63693 14.3445 8.93013 14.9466C9.22346 15.5487 9.58006 16.1157 9.99992 16.6477C10.1495 16.6477 10.2991 16.6485 10.4487 16.6502C10.5983 16.6517 10.7451 16.6429 10.8893 16.6237C11.0614 16.6012 11.2051 16.6455 11.3203 16.7566C11.4358 16.8677 11.4935 17.0093 11.4935 17.1814C11.4935 17.3672 11.4457 17.5222 11.3501 17.6462C11.2544 17.7701 11.1179 17.8432 10.9405 17.8656C10.7964 17.8849 10.641 17.898 10.4743 17.9049C10.3076 17.9119 10.1495 17.9154 9.99992 17.9154ZM3.58159 11.8095H6.6795C6.62714 11.5105 6.58915 11.21 6.56554 10.9081C6.54207 10.6063 6.53033 10.3031 6.53033 9.9987C6.53033 9.69425 6.54207 9.39113 6.56554 9.08932C6.58915 8.78738 6.62714 8.48689 6.6795 8.18786H3.58159C3.49617 8.48689 3.43339 8.78738 3.39325 9.08932C3.35325 9.39113 3.33325 9.69425 3.33325 9.9987C3.33325 10.3031 3.35325 10.6063 3.39325 10.9081C3.43339 11.21 3.49617 11.5105 3.58159 11.8095ZM8.38617 16.4345C8.05075 15.9143 7.76256 15.3715 7.52159 14.8064C7.28061 14.2413 7.08429 13.659 6.93263 13.0595H4.10575C4.54047 13.9174 5.1302 14.6413 5.87492 15.231C6.61964 15.8209 7.45672 16.222 8.38617 16.4345ZM4.10575 6.93786H6.93263C7.0736 6.33314 7.26325 5.74821 7.50159 5.18307C7.73978 4.61779 8.03464 4.07773 8.38617 3.56286C7.45131 3.77009 6.6129 4.16856 5.87096 4.75828C5.12888 5.348 4.54047 6.07453 4.10575 6.93786ZM8.21617 6.93786H11.7837C11.6063 6.28189 11.3669 5.65557 11.0655 5.05891C10.7643 4.4621 10.4091 3.89238 9.99992 3.34974C9.58534 3.88168 9.22874 4.4487 8.93013 5.05078C8.63152 5.65286 8.39353 6.28189 8.21617 6.93786ZM13.0672 6.93786H15.8941C15.4594 6.07453 14.871 5.34668 14.1289 4.75432C13.3869 4.16182 12.5485 3.76467 11.6137 3.56286C11.9491 4.08314 12.2333 4.62717 12.4662 5.19495C12.6991 5.76286 12.8994 6.34384 13.0672 6.93786Z",fill:"currentColor"}),r.jsx("path",{id:"travel_explore",d:"M18.0634 18.7783L16.8556 17.5822C16.6378 17.7211 16.4031 17.8331 16.1517 17.9184C15.9003 18.0038 15.6342 18.0465 15.3535 18.0465C14.6044 18.0465 13.9694 17.7857 13.4484 17.2642C12.9275 16.7428 12.667 16.1071 12.667 15.3572C12.667 14.6074 12.9275 13.9717 13.4484 13.4502C13.9694 12.9287 14.6044 12.668 15.3535 12.668C16.1026 12.668 16.7376 12.9287 17.2586 13.4502C17.7795 13.9717 18.04 14.6074 18.04 15.3572C18.04 15.6425 17.9963 15.9121 17.9089 16.166C17.8215 16.4198 17.7063 16.6557 17.5633 16.8738L18.7711 18.0698C18.8684 18.1628 18.917 18.2798 18.917 18.4208C18.917 18.5618 18.8684 18.6809 18.7711 18.7783C18.6781 18.8714 18.5611 18.918 18.4203 18.918C18.2796 18.918 18.1606 18.8714 18.0634 18.7783ZM15.3535 17.038C15.8236 17.038 16.221 16.8755 16.5456 16.5506C16.8703 16.2256 17.0326 15.8278 17.0326 15.3572C17.0326 14.8866 16.8703 14.4888 16.5456 14.1639C16.221 13.8389 15.8236 13.6764 15.3535 13.6764C14.8834 13.6764 14.486 13.8389 14.1614 14.1639C13.8367 14.4888 13.6744 14.8866 13.6744 15.3572C13.6744 15.8278 13.8367 16.2256 14.1614 16.5506C14.486 16.8755 14.8834 17.038 15.3535 17.038Z",fill:"currentColor"})]})]})}),H9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 19",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.5002 0.270145C10.3742 0.270145 11.1128 0.571885 11.7161 1.17537C12.3193 1.77868 12.6209 2.51732 12.6209 3.39129C12.6209 4.17273 12.3716 4.85117 11.873 5.42662C11.3744 6.00189 10.7483 6.34792 9.99474 6.46469L9.99474 9.0052L13.8388 9.0052C14.2785 9.0052 14.6549 9.16172 14.9679 9.47476C15.2809 9.78779 15.4375 10.1642 15.4375 10.6039L15.4375 12.564L17.0171 12.564C17.2435 12.564 17.4334 12.6405 17.5866 12.7936C17.7396 12.9468 17.8162 13.1366 17.8162 13.3631L17.8162 17.5042C17.8162 17.7389 17.7396 17.9321 17.5866 18.0836C17.4334 18.2352 17.2435 18.311 17.0171 18.311L12.8759 18.311C12.6412 18.311 12.4481 18.2345 12.2965 18.0814C12.1449 17.9282 12.0692 17.7384 12.0692 17.5119L12.0692 13.3707C12.0692 13.136 12.1457 12.9429 12.2987 12.7913C12.452 12.6398 12.6418 12.564 12.8682 12.564L14.4479 12.564L14.4479 10.6039C14.4479 10.4262 14.3908 10.2803 14.2767 10.166C14.1624 10.0518 14.0164 9.99478 13.8388 9.99478L5.16112 9.99478C4.98349 9.99478 4.83753 10.0518 4.72323 10.166C4.6091 10.2803 4.55203 10.4262 4.55203 10.6039L4.55203 12.6115C5.3056 12.7283 5.93168 13.0743 6.43026 13.6496C6.92885 14.225 7.17814 14.9034 7.17814 15.6849C7.17814 16.5587 6.87648 17.2973 6.27317 17.9008C5.66969 18.5041 4.93096 18.8058 4.05699 18.8058C3.18303 18.8058 2.44439 18.5041 1.84107 17.9008C1.23792 17.2973 0.936342 16.5587 0.936343 15.6849C0.936343 14.9034 1.18564 14.225 1.68422 13.6496C2.18281 13.0743 2.80888 12.7283 3.56245 12.6115L3.56245 10.6039C3.56245 10.1642 3.71897 9.78779 4.03201 9.47476C4.34504 9.16172 4.72142 9.0052 5.16112 9.0052L9.00516 9.0052L9.00516 6.46469C8.25159 6.34792 7.62552 6.00189 7.12693 5.42662C6.62835 4.85117 6.37905 4.17273 6.37905 3.39129C6.37905 2.51732 6.68071 1.77868 7.28403 1.17537C7.88751 0.571885 8.62623 0.270145 9.5002 0.270145Z",fill:"currentColor"})}),M9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 25 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.8553 2.95196L15.3555 5.30477C15.2095 5.44218 15.1081 5.62031 15.0647 5.81603L14.52 8.26717H7.41204C6.80549 8.26717 6.31378 8.75888 6.31378 9.36543C6.31378 9.97198 6.80549 10.4637 7.41204 10.4637H15.0998C15.1427 10.4637 15.185 10.4612 15.2266 10.4564C15.2442 10.4574 15.2619 10.4578 15.2798 10.4578H18.6054C18.8441 10.4578 19.0749 10.3724 19.2562 10.2171L21.3582 8.41535C21.5744 9.252 21.6894 10.1293 21.6894 11.0336C21.6894 16.7958 17.0182 21.467 11.256 21.467C9.70613 21.467 8.23523 21.1291 6.91291 20.5229L1.57616 21.8571C1.20996 21.9486 0.878268 21.6169 0.969816 21.2508L2.21945 16.2522C1.33102 14.7172 0.82251 12.9347 0.82251 11.0336C0.82251 5.27132 5.49373 0.600098 11.256 0.600098C13.7596 0.600098 16.0573 1.48194 17.8553 2.95196ZM7.41204 12.6603C6.80549 12.6603 6.31378 13.152 6.31378 13.7586C6.31378 14.3651 6.80549 14.8568 7.41204 14.8568H11.8051C12.4116 14.8568 12.9033 14.3651 12.9033 13.7586C12.9033 13.152 12.4116 12.6603 11.8051 12.6603H7.41204ZM22.1006 1.12041L16.3757 6.84529C16.3348 6.88621 16.3066 6.93809 16.2945 6.99468L15.9135 8.77616C15.868 8.98885 16.0569 9.17774 16.2696 9.13226L18.0511 8.75129C18.1077 8.73919 18.1596 8.71098 18.2005 8.67006L23.9254 2.94518C24.0425 2.82803 24.0425 2.63808 23.9254 2.52092L22.5249 1.12041C22.4077 1.00325 22.2178 1.00325 22.1006 1.12041Z",fill:"currentColor"})}),V9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"filter_alt_off",children:[r.jsx("mask",{id:"mask0_1543_23288",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_23288)",children:r.jsx("path",{id:"filter_alt_off_2",d:"M14.8 11.9748L6.82503 3.9998H19C19.4167 3.9998 19.7167 4.18314 19.9 4.5498C20.0834 4.91647 20.05 5.26647 19.8 5.5998L14.8 11.9748ZM19.775 22.5998L14 16.8248V18.9998C14 19.2831 13.9042 19.5206 13.7125 19.7123C13.5209 19.904 13.2834 19.9998 13 19.9998H11C10.7167 19.9998 10.4792 19.904 10.2875 19.7123C10.0959 19.5206 10 19.2831 10 18.9998V12.8248L1.40002 4.2248L2.80002 2.7998L21.2 21.1998L19.775 22.5998Z",fill:"currentColor"})})]})}),b9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22315",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22315)",children:r.jsx("path",{d:"M7.02156 2.82555C8.05212 2.82555 9.02376 3.04731 9.93648 3.49084C10.8492 3.93437 11.6095 4.57535 12.2173 5.4138C12.2947 5.5152 12.3195 5.60635 12.2917 5.68724C12.2639 5.76803 12.2161 5.83623 12.1485 5.89184C12.0809 5.94512 12.003 5.96874 11.9147 5.96271C11.8264 5.95669 11.7508 5.90895 11.6879 5.81951C11.1625 5.06817 10.4856 4.49369 9.6575 4.09605C8.82926 3.69841 7.95062 3.49842 7.02156 3.49609C6.09241 3.49376 5.21989 3.69258 4.404 4.09255C3.58811 4.49252 2.91606 5.06934 2.38785 5.82301C2.32019 5.92451 2.2411 5.98012 2.15058 5.98984C2.05997 5.99956 1.98088 5.97895 1.91331 5.92801C1.83592 5.87473 1.7876 5.80638 1.76835 5.72296C1.7491 5.63964 1.77098 5.5556 1.83398 5.47082C2.43209 4.63276 3.18741 3.9824 4.09994 3.51971C5.01247 3.05694 5.98634 2.82555 7.02156 2.82555ZM7.02156 4.20338C8.3364 4.20338 9.46301 4.64492 10.4014 5.52798C11.3398 6.41115 11.809 7.50043 11.809 8.79582C11.809 9.2936 11.6341 9.7117 11.2843 10.0501C10.9345 10.3887 10.5082 10.5579 10.0055 10.5579C9.50263 10.5579 9.07144 10.3916 8.71192 10.0589C8.35239 9.72619 8.17263 9.31212 8.17263 8.81667C8.17263 8.50517 8.06053 8.24238 7.83633 8.0283C7.61204 7.81421 7.34162 7.70717 7.02506 7.70717C6.70841 7.70717 6.43799 7.81421 6.21379 8.0283C5.9895 8.24238 5.87735 8.50517 5.87735 8.81667C5.87735 9.75282 6.14992 10.5369 6.69504 11.1688C7.24007 11.8008 7.9724 12.2373 8.89202 12.4784C8.99109 12.5052 9.05754 12.5573 9.09137 12.6347C9.12521 12.7121 9.13124 12.7943 9.10946 12.8813C9.08768 12.9587 9.04359 13.0258 8.97719 13.0826C8.91069 13.1393 8.82324 13.1567 8.71483 13.1349C7.65715 12.8892 6.80806 12.382 6.16756 11.6135C5.52706 10.8448 5.20681 9.91256 5.20681 8.81667C5.20681 8.31666 5.38415 7.89496 5.73881 7.55157C6.09348 7.20828 6.52223 7.03663 7.02506 7.03663C7.5278 7.03663 7.9565 7.20599 8.31117 7.54471C8.66583 7.88334 8.84317 8.30037 8.84317 8.79582C8.84317 9.10498 8.95774 9.36666 9.1869 9.58084C9.41595 9.79492 9.68881 9.90196 10.0055 9.90196C10.322 9.90196 10.5906 9.79492 10.8112 9.58084C11.0317 9.36666 11.1419 9.10498 11.1419 8.79582C11.1419 7.68661 10.7386 6.75323 9.93196 5.99567C9.1254 5.23812 8.15897 4.85934 7.03265 4.85934C5.90633 4.85934 4.94159 5.24103 4.13844 6.00442C3.33529 6.76781 2.93371 7.70153 2.93371 8.80559C2.93371 9.08083 2.95617 9.38878 3.00108 9.72944C3.046 10.0702 3.14298 10.4518 3.29202 10.8742C3.32585 10.9757 3.32401 11.0657 3.28648 11.1442C3.24895 11.2227 3.18663 11.2789 3.09952 11.3128C3.00784 11.3466 2.92088 11.3442 2.83863 11.3055C2.75647 11.2668 2.69615 11.1992 2.65765 11.1029C2.52115 10.7493 2.4213 10.3842 2.3581 10.0075C2.29491 9.63091 2.26331 9.23395 2.26331 8.81667C2.26331 7.51438 2.72949 6.4199 3.66185 5.53324C4.59422 4.64667 5.71412 4.20338 7.02156 4.20338ZM7.02506 1.40338C7.65195 1.40338 8.26304 1.47873 8.85833 1.62942C9.45372 1.78012 10.0297 1.9976 10.5862 2.28188C10.6877 2.3374 10.7475 2.4056 10.7655 2.48648C10.7836 2.56728 10.7758 2.64637 10.7419 2.72376C10.7058 2.80114 10.6478 2.86103 10.5681 2.90342C10.4885 2.94571 10.3954 2.9391 10.2888 2.88359C9.7782 2.61876 9.24883 2.41702 8.70069 2.27838C8.15255 2.13974 7.59401 2.07042 7.02506 2.07042C6.46117 2.07042 5.90642 2.13605 5.36081 2.2673C4.8152 2.39855 4.29448 2.60398 3.79865 2.88359C3.70687 2.9391 3.61572 2.95412 3.52521 2.92865C3.4346 2.90328 3.3664 2.84703 3.3206 2.75992C3.27938 2.67748 3.27078 2.59654 3.29479 2.51711C3.3189 2.43758 3.37451 2.37118 3.46163 2.3179C4.01074 2.01467 4.58644 1.78644 5.18873 1.63321C5.79112 1.47999 6.40323 1.40338 7.02506 1.40338ZM7.02506 5.61446C7.93156 5.61446 8.71051 5.92178 9.3619 6.53642C10.0133 7.15096 10.339 7.9041 10.339 8.79582C10.339 8.89955 10.3093 8.98399 10.25 9.04913C10.1907 9.11427 10.1092 9.14684 10.0055 9.14684C9.90901 9.14684 9.82876 9.11427 9.76469 9.04913C9.70052 8.98399 9.66844 8.89955 9.66844 8.79582C9.66844 8.08522 9.40793 7.48852 8.88692 7.00571C8.3659 6.52291 7.74529 6.28151 7.02506 6.28151C6.30241 6.28151 5.68485 6.52524 5.1724 7.01271C4.66004 7.50019 4.40385 8.10151 4.40385 8.81667C4.40385 9.5856 4.53297 10.2441 4.79119 10.7923C5.04951 11.3404 5.44 11.8904 5.96267 12.4422C6.03033 12.5099 6.06475 12.5879 6.06592 12.6762C6.06708 12.7643 6.03733 12.8411 5.97667 12.9064C5.909 12.9787 5.82699 13.0131 5.73065 13.0097C5.6342 13.0062 5.55219 12.9706 5.48463 12.9029C4.91101 12.3048 4.47628 11.6864 4.18044 11.0476C3.88469 10.409 3.73681 9.66533 3.73681 8.81667C3.73681 7.92038 4.05765 7.16258 4.69931 6.54328C5.34098 5.92407 6.11623 5.61446 7.02506 5.61446ZM7.01398 8.4623C7.11538 8.4623 7.19632 8.49613 7.25679 8.5638C7.31726 8.63137 7.3475 8.71104 7.3475 8.80282C7.3475 9.55055 7.6065 10.1479 8.1245 10.5948C8.6425 11.0417 9.255 11.2652 9.962 11.2652C10.0297 11.2652 10.1187 11.2592 10.229 11.2471C10.3395 11.2351 10.4519 11.2217 10.5662 11.2069C10.663 11.192 10.7465 11.2099 10.8167 11.2607C10.8868 11.3114 10.9293 11.3852 10.9442 11.4821C10.959 11.5737 10.9397 11.6505 10.8864 11.7123C10.8332 11.7742 10.7653 11.8171 10.6829 11.8413C10.5172 11.8899 10.3676 11.9178 10.234 11.925C10.1004 11.9321 10.0097 11.9356 9.962 11.9356C9.07115 11.9356 8.30149 11.6469 7.65302 11.0694C7.00465 10.4919 6.68046 9.73635 6.68046 8.80282C6.68046 8.71104 6.71065 8.63137 6.77102 8.5638C6.83149 8.49613 6.91248 8.4623 7.01398 8.4623Z",fill:"currentColor"})})]}),Z9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{d:"M4.5 6.04386L7.83333 2.83398V13.6673",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),r.jsx("path",{d:"M15.5 13.9581L12.1667 17.168L12.1667 6.33463",stroke:"white","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),E9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_23",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_23)",children:r.jsx("path",{d:"M0.729248 11.2291V10.3418C0.729248 10.2273 0.751123 10.1166 0.794873 10.0095C0.838526 9.9025 0.900408 9.80834 0.980519 9.72706L1.89591 8.81167V5.18931L1.03666 4.32904C0.940901 4.23328 0.865748 4.12094 0.811206 3.99202C0.756567 3.8631 0.729248 3.72753 0.729248 3.58529V2.33331C0.729248 2.20935 0.771199 2.10547 0.855102 2.02167C0.939005 1.93776 1.04294 1.89581 1.16689 1.89581C1.29095 1.89581 1.39483 1.93776 1.47854 2.02167C1.56235 2.10547 1.60425 2.20935 1.60425 2.33331V3.06248H3.06258V2.33331C3.06258 2.20935 3.10453 2.10547 3.18844 2.02167C3.27234 1.93776 3.37627 1.89581 3.50023 1.89581C3.62428 1.89581 3.72816 1.93776 3.81187 2.02167C3.89568 2.10547 3.93758 2.20935 3.93758 2.33331V3.06248H5.39592V2.33331C5.39592 2.20935 5.43787 2.10547 5.52177 2.02167C5.60567 1.93776 5.7096 1.89581 5.83356 1.89581C5.95762 1.89581 6.0615 1.93776 6.14521 2.02167C6.22901 2.10547 6.27092 2.20935 6.27092 2.33331V3.58529C6.27092 3.72753 6.2436 3.8631 6.18896 3.99202C6.13442 4.12094 6.05926 4.23328 5.9635 4.32904L5.10425 5.18829V5.97915H8.89592V5.18829L8.03667 4.32904C7.9409 4.23328 7.86575 4.12094 7.81121 3.99202C7.75657 3.8631 7.72925 3.72753 7.72925 3.58529V2.33331C7.72925 2.20935 7.7712 2.10547 7.8551 2.02167C7.93901 1.93776 8.04294 1.89581 8.16689 1.89581C8.29095 1.89581 8.39483 1.93776 8.47854 2.02167C8.56235 2.10547 8.60425 2.20935 8.60425 2.33331V3.06248H10.0626V2.33331C10.0626 2.20935 10.1045 2.10547 10.1884 2.02167C10.2723 1.93776 10.3763 1.89581 10.5002 1.89581C10.6243 1.89581 10.7282 1.93776 10.8119 2.02167C10.8957 2.10547 10.9376 2.20935 10.9376 2.33331V3.06248H12.3959V2.33331C12.3959 2.20935 12.4379 2.10547 12.5218 2.02167C12.6057 1.93776 12.7096 1.89581 12.8336 1.89581C12.9576 1.89581 13.0615 1.93776 13.1452 2.02167C13.229 2.10547 13.2709 2.20935 13.2709 2.33331V3.58529C13.2709 3.72753 13.2436 3.8631 13.189 3.99202C13.1344 4.12094 13.0593 4.23328 12.9635 4.32904L12.1042 5.18931V8.81167L13.0196 9.72706C13.0998 9.80834 13.1616 9.9025 13.2053 10.0095C13.249 10.1166 13.2709 10.2273 13.2709 10.3418V11.2291C13.2709 11.4677 13.1847 11.6732 13.0124 11.8456C12.84 12.018 12.6345 12.1041 12.3959 12.1041H8.83977C8.69044 12.1041 8.56521 12.0536 8.4641 11.9526C8.36309 11.8515 8.31258 11.7263 8.31258 11.577V10.5C8.31258 10.139 8.18396 9.83002 7.92671 9.57306C7.66946 9.31601 7.36024 9.18748 6.99906 9.18748C6.63778 9.18748 6.32886 9.31601 6.07229 9.57306C5.81582 9.83002 5.68758 10.139 5.68758 10.5V11.5742C5.68758 11.7263 5.63707 11.8527 5.53606 11.9532C5.43495 12.0538 5.30973 12.1041 5.16039 12.1041H1.60425C1.36566 12.1041 1.16019 12.018 0.987811 11.8456C0.815436 11.6732 0.729248 11.4677 0.729248 11.2291Z",fill:"currentColor"})})]}),S9=e=>r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",children:[r.jsx("mask",{id:"mask0_3130_18463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3130_18463)",children:r.jsx("path",{d:"M4.58301 17.4166V12.8333H5.95798V16.0416H9.16634V17.4166H4.58301ZM4.58301 9.16658V4.58325H9.16634V5.95823H5.95798V9.16658H4.58301ZM12.833 17.4166V16.0416H16.0414V12.8333H17.4163V17.4166H12.833ZM16.0414 9.16658V5.95823H12.833V4.58325H17.4163V9.16658H16.0414Z",fill:"currentColor"})})]}),I9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22375",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22375)",children:r.jsx("path",{d:"M3.2509 12.3541C2.86201 12.3541 2.54458 12.2487 2.29861 12.0378C2.05254 11.8269 1.9295 11.5475 1.9295 11.1999C1.9295 10.9374 1.99809 10.7263 2.13528 10.5665C2.27255 10.4069 2.44702 10.3271 2.65867 10.3271C2.8606 10.3271 3.03259 10.3966 3.17463 10.5358C3.31677 10.6749 3.38784 10.8424 3.38784 11.0383C3.38784 11.1168 3.37044 11.1858 3.33563 11.2452C3.30082 11.3047 3.258 11.3513 3.20715 11.3849C3.22582 11.4036 3.25202 11.4195 3.28575 11.4326C3.31939 11.4457 3.35678 11.4522 3.3979 11.4522C3.52507 11.4462 3.62905 11.3878 3.70984 11.2767C3.79053 11.1656 3.85557 10.9945 3.90496 10.7634L4.81482 5.93748H3.55613C3.43198 5.93748 3.328 5.89558 3.24419 5.81177C3.16048 5.72806 3.11863 5.62413 3.11863 5.49998C3.11863 5.37583 3.16048 5.2719 3.24419 5.18819C3.328 5.10438 3.43198 5.06248 3.55613 5.06248H4.97742L5.27244 3.46735C5.34798 3.05679 5.5172 2.73386 5.78009 2.49858C6.04298 2.2634 6.36546 2.14581 6.74755 2.14581C7.13051 2.14581 7.44497 2.2582 7.69094 2.48298C7.93701 2.70766 8.06005 2.99087 8.06005 3.3326C8.06005 3.58315 7.99146 3.78829 7.85428 3.94802C7.717 4.10766 7.54253 4.18748 7.33088 4.18748C7.12895 4.18748 6.95696 4.11884 6.81492 3.98156C6.67278 3.84438 6.60171 3.67483 6.60171 3.4729C6.60171 3.39434 6.61912 3.32536 6.65392 3.26596C6.68873 3.20646 6.7334 3.15989 6.78794 3.12625C6.76928 3.10379 6.7403 3.08508 6.70103 3.0701C6.66175 3.05523 6.62155 3.04779 6.58042 3.04779C6.45851 3.05975 6.36148 3.11322 6.28934 3.20821C6.2172 3.30319 6.16203 3.44378 6.12382 3.62996L5.8759 5.06248H8.11051C8.23466 5.06248 8.33864 5.10438 8.42244 5.18819C8.50615 5.2719 8.54801 5.37583 8.54801 5.49998C8.54801 5.61217 8.51213 5.70867 8.44038 5.78946C8.36853 5.87015 8.27953 5.91648 8.17336 5.92844H7.89846L8.98551 7.16817L10.0725 5.92844H9.7978C9.69153 5.91648 9.60253 5.87015 9.53078 5.78946C9.45893 5.70867 9.42301 5.61217 9.42301 5.49998C9.42301 5.37583 9.46491 5.2719 9.54871 5.18819C9.63242 5.10438 9.73635 5.06248 9.86051 5.06248H11.6105C11.7347 5.06248 11.8386 5.10438 11.9224 5.18819C12.0062 5.2719 12.048 5.37583 12.048 5.49998C12.048 5.62413 12.0062 5.72806 11.9224 5.81177C11.8386 5.89558 11.7347 5.93748 11.6105 5.93748H11.2224L9.56782 7.83331L11.228 9.72915H11.6105C11.7347 9.72915 11.8386 9.77105 11.9224 9.85485C12.0062 9.93856 12.048 10.0425 12.048 10.1666C12.048 10.2908 12.0062 10.3947 11.9224 10.4784C11.8386 10.5622 11.7347 10.6041 11.6105 10.6041H9.86051C9.73635 10.6041 9.63242 10.5622 9.54871 10.4784C9.46491 10.3947 9.42301 10.2908 9.42301 10.1666C9.42301 10.0545 9.45893 9.95796 9.53078 9.87717C9.60253 9.79647 9.69153 9.75015 9.7978 9.73819H10.0725L8.98551 8.48956L7.89846 9.73819H8.17336C8.27953 9.75015 8.36853 9.79647 8.44038 9.87717C8.51213 9.95796 8.54801 10.0545 8.54801 10.1666C8.54801 10.2908 8.50615 10.3947 8.42244 10.4784C8.33864 10.5622 8.23466 10.6041 8.11051 10.6041H6.3605C6.23635 10.6041 6.13242 10.5622 6.04871 10.4784C5.96491 10.3947 5.923 10.2908 5.923 10.1666C5.923 10.0425 5.96491 9.93856 6.04871 9.85485C6.13242 9.77105 6.23635 9.72915 6.3605 9.72915H6.74871L8.40334 7.83331L6.74871 5.93748H5.70761L4.77428 10.8363C4.68162 11.3337 4.50648 11.711 4.24884 11.9683C3.9912 12.2255 3.65855 12.3541 3.2509 12.3541Z",fill:"currentColor"})})]}),P9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.00261 14C6.03462 14 5.12456 13.8163 4.27241 13.449C3.42026 13.0816 2.67901 12.583 2.04865 11.9533C1.4183 11.3235 0.919269 10.5829 0.551561 9.73159C0.183854 8.88024 0 7.97058 0 7.00261C0 6.03462 0.183679 5.12456 0.551036 4.27241C0.918407 3.42026 1.41698 2.67901 2.04674 2.04865C2.67651 1.4183 3.41706 0.919269 4.26841 0.551562C5.11976 0.183854 6.02942 0 6.99739 0C7.96538 0 8.87544 0.183679 9.72759 0.551036C10.5797 0.918406 11.321 1.41697 11.9514 2.04674C12.5817 2.67651 13.0807 3.41706 13.4484 4.26841C13.8161 5.11976 14 6.02942 14 6.99739C14 7.96538 13.8163 8.87544 13.449 9.72759C13.0816 10.5797 12.583 11.321 11.9533 11.9514C11.3235 12.5817 10.5829 13.0807 9.73159 13.4484C8.88024 13.8161 7.97058 14 7.00261 14ZM6.22222 13.1833V11.6667C5.79444 11.6667 5.42824 11.5144 5.12361 11.2097C4.81898 10.9051 4.66667 10.5389 4.66667 10.1111V9.33333L0.933333 5.6C0.894445 5.83333 0.858796 6.06667 0.826389 6.3C0.793981 6.53333 0.777778 6.76667 0.777778 7C0.777778 8.56852 1.29306 9.94259 2.32361 11.1222C3.35417 12.3019 4.6537 12.9889 6.22222 13.1833ZM11.5889 11.2C11.8481 10.9148 12.0815 10.6069 12.2889 10.2764C12.4963 9.94583 12.6681 9.60231 12.8042 9.24583C12.9403 8.88935 13.044 8.52315 13.1153 8.14722C13.1866 7.7713 13.2222 7.38889 13.2222 7C13.2222 5.72211 12.8715 4.55506 12.17 3.49885C11.4685 2.44264 10.5229 1.68121 9.33333 1.21454V1.55556C9.33333 1.98333 9.18102 2.34954 8.87639 2.65417C8.57176 2.9588 8.20556 3.11111 7.77778 3.11111H6.22222V4.66667C6.22222 4.88704 6.14769 5.07176 5.99861 5.22083C5.84954 5.36991 5.66481 5.44444 5.44444 5.44444H3.88889V7H8.55556C8.77593 7 8.96065 7.07454 9.10972 7.22361C9.2588 7.37269 9.33333 7.55741 9.33333 7.77778V10.1111H10.1111C10.4481 10.1111 10.7528 10.2116 11.025 10.4125C11.2972 10.6134 11.4852 10.8759 11.5889 11.2Z",fill:"currentColor"})}),B9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22441",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22441)",children:r.jsx("path",{d:"M10.8837 12.5271C10.8134 12.5271 10.748 12.5159 10.6874 12.4934C10.6267 12.471 10.5691 12.4325 10.5146 12.3779L7.57328 9.44214C7.51864 9.3875 7.48009 9.3299 7.45764 9.26933C7.43528 9.20876 7.42409 9.14333 7.42409 9.07304C7.42409 9.00274 7.43528 8.93731 7.45764 8.87674C7.48009 8.81618 7.51864 8.75862 7.57328 8.70408L8.67826 7.5991C8.7328 7.54446 8.79036 7.50591 8.85093 7.48345C8.9115 7.46109 8.97693 7.44991 9.04722 7.44991C9.11751 7.44991 9.18294 7.46109 9.24351 7.48345C9.30418 7.50591 9.36178 7.54446 9.41632 7.5991L12.3576 10.5404C12.4123 10.595 12.4508 10.6525 12.4733 10.7131C12.4956 10.7737 12.5068 10.8392 12.5068 10.9095C12.5068 10.9798 12.4956 11.0452 12.4733 11.1058C12.4508 11.1664 12.4123 11.2239 12.3576 11.2785L11.2527 12.3779C11.1981 12.4325 11.1406 12.471 11.08 12.4934C11.0194 12.5159 10.954 12.5271 10.8837 12.5271ZM3.10174 12.536C3.03145 12.536 2.96451 12.5233 2.90093 12.4979C2.83744 12.4725 2.77838 12.4325 2.72374 12.3779L1.6278 11.2875C1.57316 11.2329 1.53316 11.1738 1.50778 11.1103C1.48231 11.0467 1.46957 10.9798 1.46957 10.9095C1.46957 10.8392 1.48231 10.7728 1.50778 10.7103C1.53316 10.6479 1.57316 10.5894 1.6278 10.5347L4.67455 7.48797H5.90291L6.37628 7.0146L3.93635 4.57466H3.10509L1.48634 2.95591L2.93243 1.50997L4.55118 3.12872V3.95997L6.99097 6.39991L8.71632 4.67456L7.86495 3.82304L8.60301 3.08497H7.11784L6.79366 2.76633L8.65682 0.903015L8.97547 1.22166V2.71252L9.71353 1.97445L11.9079 4.15743C12.0619 4.30774 12.178 4.47899 12.2561 4.6712C12.3343 4.86341 12.3734 5.0668 12.3734 5.28137C12.3734 5.46988 12.3409 5.65145 12.2758 5.82606C12.2108 6.00067 12.1162 6.15938 11.992 6.3022L10.7749 5.08508L9.95255 5.90743L9.33451 5.28925L6.51205 8.1117V9.34225L3.47084 12.3779C3.4163 12.4325 3.3587 12.4725 3.29803 12.4979C3.23746 12.5233 3.17203 12.536 3.10174 12.536Z",fill:"currentColor"})})]}),T9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22444",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22444)",children:r.jsx("path",{d:"M6.13623 11.9584C5.99341 11.9584 5.87169 11.908 5.77107 11.8074C5.67054 11.7069 5.62028 11.5852 5.62028 11.4423V7.44306H8.5368V11.4423C8.5368 11.5852 8.48653 11.7069 8.386 11.8074C8.28538 11.908 8.16366 11.9584 8.02084 11.9584H6.13623ZM5.62028 6.56252V4.37502H3.53821C3.37216 4.37502 3.23921 4.31071 3.13936 4.18208C3.03951 4.05346 3.01467 3.90797 3.06484 3.7456C3.22107 3.23412 3.52018 2.82228 3.96215 2.5101C4.40422 2.19783 4.89709 2.04169 5.44075 2.04169H8.02084C8.16366 2.04169 8.28538 2.092 8.386 2.19262C8.48653 2.29315 8.5368 2.41487 8.5368 2.55779V3.758L10.0355 2.25927C10.1021 2.19277 10.1792 2.13988 10.2667 2.1006C10.3542 2.06133 10.445 2.04169 10.5392 2.04169H10.6738C10.8017 2.04169 10.9094 2.08359 10.9969 2.1674C11.0844 2.2511 11.1281 2.35503 11.1281 2.47919V5.91196C11.1281 6.03601 11.0844 6.13994 10.9969 6.22375C10.9094 6.30746 10.8017 6.34931 10.6738 6.34931H10.5392C10.445 6.34931 10.3542 6.32972 10.2667 6.29054C10.1792 6.25126 10.1021 6.19833 10.0355 6.13173L8.5368 4.633V6.56252H5.62028Z",fill:"currentColor"})})]}),N9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),R9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M4.24488 9.94873L3.51732 12.8382C3.48633 12.976 3.4201 13.0844 3.31861 13.1635C3.21711 13.2425 3.09318 13.2821 2.94682 13.2821C2.75237 13.2821 2.59319 13.2046 2.46928 13.0497C2.34535 12.8948 2.31009 12.7244 2.36351 12.5385L3.01094 9.94873H0.635943C0.427609 9.94873 0.260144 9.86913 0.133547 9.70995C0.00694957 9.55077 -0.0296407 9.37129 0.023776 9.1715C0.0600955 9.02514 0.134609 8.90975 0.247318 8.82535C0.360026 8.74096 0.489568 8.69877 0.635943 8.69877H3.32344L4.1728 5.30131H1.7978C1.58946 5.30131 1.422 5.22172 1.2954 5.06254C1.1688 4.90336 1.13221 4.72388 1.18563 4.5241C1.22195 4.37773 1.29646 4.26234 1.40917 4.17795C1.52188 4.09355 1.65142 4.05135 1.7978 4.05135H4.4853L5.21286 1.16191C5.24383 1.02409 5.31007 0.915657 5.41157 0.836601C5.51305 0.757546 5.63698 0.718018 5.78336 0.718018C5.97779 0.718018 6.13697 0.795469 6.2609 0.950372C6.38483 1.10529 6.42009 1.27569 6.36667 1.46158L5.71923 4.05135H9.16476L9.89232 1.16191C9.9233 1.02409 9.98954 0.915657 10.091 0.836601C10.1925 0.757546 10.3165 0.718018 10.4628 0.718018C10.6573 0.718018 10.8164 0.795469 10.9404 0.950372C11.0643 1.10529 11.0995 1.27569 11.0461 1.46158L10.3987 4.05135H12.7737C12.982 4.05135 13.1495 4.13094 13.2761 4.29012C13.4027 4.4493 13.4393 4.62879 13.3859 4.82858C13.3495 4.97494 13.275 5.09032 13.1623 5.17473C13.0496 5.25911 12.9201 5.30131 12.7737 5.30131H10.0862L9.23684 8.69877H11.6118C11.8202 8.69877 11.9876 8.77836 12.1142 8.93754C12.2408 9.09672 12.2774 9.2762 12.224 9.47598C12.1877 9.62235 12.1132 9.73773 12.0005 9.82212C11.8878 9.90652 11.7582 9.94873 11.6118 9.94873H8.92434L8.19678 12.8382C8.1658 12.976 8.09957 13.0844 7.99807 13.1635C7.89658 13.2425 7.77265 13.2821 7.62628 13.2821C7.43185 13.2821 7.27267 13.2046 7.14874 13.0497C7.0248 12.8948 6.98955 12.7244 7.04296 12.5385L7.6904 9.94873H4.24488ZM4.55738 8.69877H8.0029L8.85226 5.30131H5.40673L4.55738 8.69877Z",fill:"currentColor"})}),U9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M8.95833 14.0013C9.25 14.0013 9.49653 13.9006 9.69792 13.6992C9.89931 13.4978 10 13.2513 10 12.9596C10 12.668 9.89931 12.4214 9.69792 12.2201C9.49653 12.0187 9.25 11.918 8.95833 11.918C8.66667 11.918 8.42014 12.0187 8.21875 12.2201C8.01736 12.4214 7.91667 12.668 7.91667 12.9596C7.91667 13.2513 8.01736 13.4978 8.21875 13.6992C8.42014 13.9006 8.66667 14.0013 8.95833 14.0013ZM9 17.3346C7.84722 17.3346 6.76389 17.1159 5.75 16.6784C4.73611 16.2409 3.85417 15.6471 3.10417 14.8971C2.35417 14.1471 1.76042 13.2652 1.32292 12.2513C0.885416 11.2374 0.666666 10.1541 0.666666 9.0013C0.666666 7.84852 0.885416 6.76519 1.32292 5.7513C1.76042 4.73741 2.35417 3.85547 3.10417 3.10547C3.85417 2.35547 4.73611 1.76172 5.75 1.32422C6.76389 0.886719 7.84722 0.667969 9 0.667969C10.1528 0.667969 11.2361 0.886719 12.25 1.32422C13.2639 1.76172 14.1458 2.35547 14.8958 3.10547C15.6458 3.85547 16.2396 4.73741 16.6771 5.7513C17.1146 6.76519 17.3333 7.84852 17.3333 9.0013C17.3333 10.1541 17.1146 11.2374 16.6771 12.2513C16.2396 13.2652 15.6458 14.1471 14.8958 14.8971C14.1458 15.6471 13.2639 16.2409 12.25 16.6784C11.2361 17.1159 10.1528 17.3346 9 17.3346ZM9.08333 5.41797C9.43056 5.41797 9.73264 5.52908 9.98958 5.7513C10.2465 5.97352 10.375 6.2513 10.375 6.58464C10.375 6.89019 10.2812 7.16102 10.0937 7.39714C9.90625 7.63325 9.69444 7.85547 9.45833 8.0638C9.13889 8.34158 8.85764 8.64714 8.61458 8.98047C8.37153 9.3138 8.25 9.6888 8.25 10.1055C8.25 10.2999 8.32292 10.4631 8.46875 10.5951C8.61458 10.727 8.78472 10.793 8.97917 10.793C9.1875 10.793 9.36458 10.7235 9.51042 10.5846C9.65625 10.4457 9.75 10.2721 9.79167 10.0638C9.84722 9.77214 9.97222 9.51172 10.1667 9.28255C10.3611 9.05339 10.5694 8.83464 10.7917 8.6263C11.1111 8.32075 11.3854 7.98741 11.6146 7.6263C11.8437 7.26519 11.9583 6.86241 11.9583 6.41797C11.9583 5.70964 11.6701 5.12977 11.0937 4.67839C10.5174 4.227 9.84722 4.0013 9.08333 4.0013C8.55555 4.0013 8.05208 4.11241 7.57292 4.33464C7.09375 4.55686 6.72917 4.89714 6.47917 5.35547C6.38194 5.52214 6.35069 5.69922 6.38542 5.88672C6.42014 6.07422 6.51389 6.21658 6.66667 6.3138C6.86111 6.42491 7.0625 6.45964 7.27083 6.41797C7.47917 6.3763 7.65278 6.25825 7.79167 6.0638C7.94444 5.85547 8.13542 5.69575 8.36458 5.58464C8.59375 5.47352 8.83333 5.41797 9.08333 5.41797Z",fill:"currentColor"})}),O9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_19",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_19)",children:r.jsx("path",{d:"M2.625 11.0833V5.923C2.625 5.75607 2.66233 5.59794 2.737 5.44861C2.81176 5.29918 2.91501 5.17614 3.04675 5.0795L6.36737 2.57788C6.55161 2.4373 6.76219 2.367 6.99913 2.367C7.23606 2.367 7.44722 2.4373 7.63263 2.57788L10.9532 5.0795C11.085 5.17614 11.1882 5.29918 11.263 5.44861C11.3377 5.59794 11.375 5.75607 11.375 5.923V11.0833C11.375 11.3219 11.2888 11.5274 11.1164 11.6998C10.9441 11.8721 10.7386 11.9583 10.5 11.9583H8.63785C8.48842 11.9583 8.3632 11.9078 8.26219 11.8067C8.16108 11.7056 8.11052 11.5804 8.11052 11.431V8.58169C8.11052 8.43236 8.06001 8.30714 7.959 8.20603C7.85799 8.10501 7.73276 8.0545 7.58333 8.0545H6.41667C6.26724 8.0545 6.14201 8.10501 6.041 8.20603C5.93999 8.30714 5.88948 8.43236 5.88948 8.58169V11.431C5.88948 11.5804 5.83892 11.7056 5.73781 11.8067C5.6368 11.9078 5.51158 11.9583 5.36215 11.9583H3.5C3.26142 11.9583 3.05594 11.8721 2.88356 11.6998C2.71119 11.5274 2.625 11.3219 2.625 11.0833Z",fill:"currentColor"})})]}),$9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22519",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22519)",children:r.jsx("path",{d:"M6.56249 5.32954V4.85719C6.17963 4.76074 5.86516 4.55755 5.61909 4.2476C5.37302 3.93756 5.24999 3.57726 5.24999 3.16669C5.24999 2.68135 5.42032 2.26835 5.76099 1.92769C6.10166 1.58702 6.51466 1.41669 6.99999 1.41669C7.48532 1.41669 7.89832 1.58702 8.23899 1.92769C8.57966 2.26835 8.74999 2.68135 8.74999 3.16669C8.74999 3.57726 8.62696 3.93756 8.38089 4.2476C8.13482 4.55755 7.82035 4.76074 7.43749 4.85719V5.32954L11.431 7.627C11.597 7.72267 11.7264 7.85202 11.8192 8.01506C11.9119 8.1781 11.9583 8.35534 11.9583 8.54677V9.45327C11.9583 9.6447 11.9119 9.82194 11.8192 9.98498C11.7264 10.148 11.597 10.2774 11.431 10.373L7.52718 12.62C7.36122 12.7158 7.18549 12.7637 6.99999 12.7637C6.81449 12.7637 6.63876 12.7158 6.4728 12.62L2.56899 10.373C2.40293 10.2774 2.27353 10.148 2.18078 9.98498C2.08803 9.82194 2.04166 9.6447 2.04166 9.45327V8.54677C2.04166 8.35534 2.08803 8.1781 2.18078 8.01506C2.27353 7.85202 2.40293 7.72267 2.56899 7.627L6.56249 5.32954ZM3.65253 8.01287L6.9103 9.89194C6.94015 9.9106 6.97005 9.91994 6.99999 9.91994C7.02993 9.91994 7.05983 9.9106 7.08968 9.89194L10.3419 8.01287L7.43749 6.33462V8.27085H6.56249V6.33462L3.65253 8.01287Z",fill:"currentColor"})})]}),A9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Icons 20x20",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M17.5661 2.056C17.7371 2.12703 17.873 2.26296 17.9441 2.434C17.9799 2.51816 17.999 2.60853 18.0001 2.7V6.9C18.0001 7.08565 17.9263 7.2637 17.795 7.39497C17.6638 7.52625 17.4857 7.6 17.3001 7.6C17.1144 7.6 16.9364 7.52625 16.8051 7.39497C16.6738 7.2637 16.6001 7.08565 16.6001 6.9V4.387L10.0971 10.897C10.032 10.9626 9.95456 11.0147 9.86926 11.0502C9.78396 11.0858 9.69246 11.1041 9.60006 11.1041C9.50765 11.1041 9.41615 11.0858 9.33085 11.0502C9.24555 11.0147 9.16813 10.9626 9.10306 10.897C9.03745 10.8319 8.98537 10.7545 8.94983 10.6692C8.91429 10.5839 8.896 10.4924 8.896 10.4C8.896 10.3076 8.91429 10.2161 8.94983 10.1308C8.98537 10.0455 9.03745 9.96807 9.10306 9.903L15.6131 3.4H13.1001C12.9144 3.4 12.7364 3.32625 12.6051 3.19497C12.4738 3.0637 12.4001 2.88565 12.4001 2.7C12.4001 2.51435 12.4738 2.3363 12.6051 2.20503C12.7364 2.07375 12.9144 2 13.1001 2H17.3001C17.3915 2.00111 17.4819 2.02013 17.5661 2.056ZM14.705 9.20463C14.8363 9.07336 15.0143 8.99961 15.2 8.99961C15.3857 8.99961 15.5637 9.07336 15.695 9.20463C15.8263 9.33591 15.9 9.51396 15.9 9.69961V13.8996C15.9 14.4566 15.6788 14.9907 15.2849 15.3845C14.8911 15.7784 14.357 15.9996 13.8 15.9996H6.1C5.54305 15.9996 5.0089 15.7784 4.61508 15.3845C4.22125 14.9907 4 14.4566 4 13.8996V6.19961C4 5.64265 4.22125 5.10851 4.61508 4.71469C5.0089 4.32086 5.54305 4.09961 6.1 4.09961H10.3C10.4857 4.09961 10.6637 4.17336 10.795 4.30463C10.9263 4.43591 11 4.61396 11 4.79961C11 4.98526 10.9263 5.16331 10.795 5.29458C10.6637 5.42586 10.4857 5.49961 10.3 5.49961H6.1C5.91435 5.49961 5.7363 5.57336 5.60503 5.70463C5.47375 5.83591 5.4 6.01396 5.4 6.19961V13.8996C5.4 14.0853 5.47375 14.2633 5.60503 14.3946C5.7363 14.5259 5.91435 14.5996 6.1 14.5996H13.8C13.9857 14.5996 14.1637 14.5259 14.295 14.3946C14.4263 14.2633 14.5 14.0853 14.5 13.8996V9.69961C14.5 9.51396 14.5737 9.33591 14.705 9.20463Z",fill:"currentColor"})})}),z9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 18",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Union","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16.2669 9.02431C16.2669 13.346 12.7635 16.8494 8.44179 16.8494C7.27934 16.8494 6.1761 16.5959 5.18431 16.1412L1.18187 17.1418C0.90723 17.2105 0.658457 16.9617 0.727118 16.6871L1.66434 12.9382C0.998057 11.7869 0.616699 10.4502 0.616699 9.02431C0.616699 4.70263 4.12011 1.19922 8.44179 1.19922C12.7635 1.19922 16.2669 4.70263 16.2669 9.02431ZM4.73511 7.77304C4.73511 7.31812 5.10389 6.94934 5.5588 6.94934H11.3247C11.7796 6.94934 12.1484 7.31812 12.1484 7.77304C12.1484 8.22795 11.7796 8.59673 11.3247 8.59673H5.5588C5.10389 8.59673 4.73511 8.22795 4.73511 7.77304ZM4.73505 11.068C4.73505 10.613 5.10383 10.2443 5.55874 10.2443H8.85352C9.30843 10.2443 9.67721 10.613 9.67721 11.068C9.67721 11.5229 9.30843 11.8917 8.85352 11.8917H5.55874C5.10383 11.8917 4.73505 11.5229 4.73505 11.068Z",fill:"currentColor"})})}),F9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.33317 15.5L0.166504 14.3333L4.18734 10.2917C4.50678 9.97222 4.74984 9.61111 4.9165 9.20833C5.08317 8.80556 5.1665 8.38194 5.1665 7.9375L5.1665 3.6875L3.83317 5L2.6665 3.83333L5.99984 0.5L9.33317 3.83333L8.1665 5L6.83317 3.6875L6.83317 7.9375C6.83317 8.38194 6.9165 8.80556 7.08317 9.20833C7.24984 9.61111 7.49289 9.97222 7.81234 10.2917L11.8332 14.3333L10.6665 15.5L5.99984 10.8333L1.33317 15.5Z",fill:"currentColor"})}),D9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_49",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_49)",children:r.jsx("path",{d:"M7.02162 12.3023C6.84934 12.3023 6.70438 12.2441 6.58675 12.1276C6.4692 12.0112 6.41043 11.8668 6.41043 11.6945V11.0377C5.96593 10.9381 5.57665 10.7639 5.2426 10.515C4.90854 10.2661 4.63827 9.92181 4.43177 9.48207C4.35904 9.33196 4.35836 9.1746 4.42972 9.01001C4.50109 8.84531 4.62636 8.72777 4.80554 8.65738C4.95331 8.59438 5.10532 8.5974 5.26156 8.66642C5.41789 8.73545 5.5419 8.84983 5.63358 9.00957C5.79662 9.28733 6.00103 9.49748 6.24681 9.64001C6.49259 9.78263 6.78975 9.85395 7.13829 9.85395C7.5299 9.85395 7.85671 9.76922 8.11872 9.59976C8.38064 9.4304 8.5116 9.16658 8.5116 8.80832C8.5116 8.48428 8.40349 8.22319 8.18727 8.02505C7.97104 7.82691 7.47638 7.60495 6.70327 7.35917C5.87649 7.10134 5.30521 6.78488 4.98943 6.4098C4.67365 6.03481 4.51577 5.58015 4.51577 5.04582C4.51577 4.42321 4.71702 3.93107 5.11952 3.5694C5.52211 3.20783 5.95242 2.99574 6.41043 2.93313V2.30547C6.41043 2.13319 6.4692 1.98881 6.58675 1.87234C6.70438 1.75587 6.84934 1.69763 7.02162 1.69763C7.19613 1.69763 7.34104 1.75587 7.45635 1.87234C7.57165 1.98881 7.62931 2.13319 7.62931 2.30547V2.93313C7.99875 2.99847 8.32134 3.12106 8.59706 3.30092C8.87278 3.48078 9.10047 3.7043 9.28014 3.97147C9.37688 4.10942 9.39506 4.26376 9.33468 4.43449C9.27421 4.60511 9.15322 4.72795 8.9717 4.80301C8.83093 4.86367 8.68295 4.86669 8.52779 4.81205C8.37262 4.75741 8.22022 4.65737 8.0706 4.51192C7.94888 4.38515 7.80528 4.28763 7.63981 4.21938C7.47434 4.15104 7.27216 4.11686 7.03329 4.11686C6.62184 4.11686 6.31185 4.2047 6.10331 4.38038C5.89486 4.55597 5.79064 4.77428 5.79064 5.03532C5.79064 5.33992 5.92772 5.58108 6.20189 5.7588C6.47615 5.93652 6.97763 6.1298 7.70631 6.33863C8.38647 6.53774 8.90321 6.85167 9.25652 7.28042C9.60982 7.70917 9.78647 8.20875 9.78647 8.77915C9.78647 9.47876 9.57997 10.0119 9.16697 10.3785C8.75397 10.7452 8.24142 10.9747 7.62931 11.0668V11.6945C7.62931 11.8668 7.57107 12.0112 7.4546 12.1276C7.33822 12.2441 7.1939 12.3023 7.02162 12.3023Z",fill:"currentColor"})})]}),q9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_mute",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsxs("g",{mask:"url(#mask0_1483_75386)",children:[r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"}),r.jsx("path",{id:"mute_line",d:"M6 21L21 4",stroke:"#808080","stroke-width":"2","stroke-linecap":"round"})]})]})}),G9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("circle",{cx:"5",cy:"5",r:"4.5",fill:"currentColor",stroke:"#6B7A8D"})}),W9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"notes",children:[r.jsx("mask",{id:"mask0_1473_73722",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1473_73722)",children:r.jsx("path",{id:"notes_2",d:"M2.83337 11.7564C2.69171 11.7564 2.57296 11.7085 2.47712 11.6126C2.38129 11.5167 2.33337 11.3979 2.33337 11.2562C2.33337 11.1144 2.38129 10.9957 2.47712 10.9C2.57296 10.8043 2.69171 10.7564 2.83337 10.7564H9.16668C9.30834 10.7564 9.42709 10.8043 9.52293 10.9002C9.61876 10.9961 9.66668 11.1149 9.66668 11.2566C9.66668 11.3983 9.61876 11.5171 9.52293 11.6128C9.42709 11.7085 9.30834 11.7564 9.16668 11.7564H2.83337ZM2.83337 8.49997C2.69171 8.49997 2.57296 8.45204 2.47712 8.35617C2.38129 8.2603 2.33337 8.1415 2.33337 7.99977C2.33337 7.85804 2.38129 7.73931 2.47712 7.64359C2.57296 7.54787 2.69171 7.50001 2.83337 7.50001H13.1667C13.3083 7.50001 13.4271 7.54794 13.5229 7.64381C13.6188 7.73969 13.6667 7.85849 13.6667 8.00021C13.6667 8.14194 13.6188 8.26067 13.5229 8.35639C13.4271 8.45211 13.3083 8.49997 13.1667 8.49997H2.83337ZM2.83337 5.24357C2.69171 5.24357 2.57296 5.19564 2.47712 5.09976C2.38129 5.00389 2.33337 4.88509 2.33337 4.74336C2.33337 4.60164 2.38129 4.48291 2.47712 4.38719C2.57296 4.29146 2.69171 4.24359 2.83337 4.24359H13.1667C13.3083 4.24359 13.4271 4.29153 13.5229 4.38741C13.6188 4.48329 13.6667 4.60209 13.6667 4.74381C13.6667 4.88554 13.6188 5.00427 13.5229 5.09999C13.4271 5.19571 13.3083 5.24357 13.1667 5.24357H2.83337Z",fill:"currentColor"})})]})}),X9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M1.16675 4.66669V7.0006H1.75008V10.5H1.16675V12.25H10.5001L12.2501 12.2506L12.8334 12.25V10.5H12.2501V7.0006H12.8334V4.66669L7.00008 1.16669L1.16675 4.66669ZM3.50008 10.5V7.0006H4.66675V10.5H3.50008ZM6.41675 10.5V7.0006H7.58342V10.5H6.41675ZM10.5001 10.5H9.33342V7.0006H10.5001V10.5ZM8.16675 4.66669C8.16671 4.81993 8.13649 4.97167 8.07781 5.11324C8.01913 5.25481 7.93314 5.38343 7.82475 5.49177C7.71636 5.6001 7.58769 5.68603 7.4461 5.74464C7.3045 5.80325 7.15275 5.83339 6.9995 5.83335C6.84625 5.83332 6.69451 5.80309 6.55294 5.74441C6.41138 5.68573 6.28275 5.59974 6.17442 5.49135C6.06608 5.38296 5.98016 5.2543 5.92155 5.1127C5.86294 4.97111 5.83279 4.81935 5.83283 4.6661C5.83291 4.35661 5.95593 4.05982 6.17483 3.84103C6.39373 3.62223 6.69059 3.49936 7.00008 3.49944C7.30958 3.49951 7.60637 3.62254 7.82516 3.84144C8.04395 4.06034 8.16683 4.35719 8.16675 4.66669Z",fill:"currentColor"})}),Y9=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 22 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M17 7H15C14.7167 7 14.4792 6.90417 14.2875 6.7125C14.0958 6.52083 14 6.28333 14 6C14 5.71667 14.0958 5.47917 14.2875 5.2875C14.4792 5.09583 14.7167 5 15 5H17V3C17 2.71667 17.0958 2.47917 17.2875 2.2875C17.4792 2.09583 17.7167 2 18 2C18.2833 2 18.5208 2.09583 18.7125 2.2875C18.9042 2.47917 19 2.71667 19 3V5H21C21.2833 5 21.5208 5.09583 21.7125 5.2875C21.9042 5.47917 22 5.71667 22 6C22 6.28333 21.9042 6.52083 21.7125 6.7125C21.5208 6.90417 21.2833 7 21 7H19V9C19 9.28333 18.9042 9.52083 18.7125 9.7125C18.5208 9.90417 18.2833 10 18 10C17.7167 10 17.4792 9.90417 17.2875 9.7125C17.0958 9.52083 17 9.28333 17 9V7ZM8 8C6.9 8 5.95833 7.60833 5.175 6.825C4.39167 6.04167 4 5.1 4 4C4 2.9 4.39167 1.95833 5.175 1.175C5.95833 0.391667 6.9 0 8 0C9.1 0 10.0417 0.391667 10.825 1.175C11.6083 1.95833 12 2.9 12 4C12 5.1 11.6083 6.04167 10.825 6.825C10.0417 7.60833 9.1 8 8 8ZM0 14V13.2C0 12.6333 0.145833 12.1125 0.4375 11.6375C0.729167 11.1625 1.11667 10.8 1.6 10.55C2.63333 10.0333 3.68333 9.64583 4.75 9.3875C5.81667 9.12917 6.9 9 8 9C9.1 9 10.1833 9.12917 11.25 9.3875C12.3167 9.64583 13.3667 10.0333 14.4 10.55C14.8833 10.8 15.2708 11.1625 15.5625 11.6375C15.8542 12.1125 16 12.6333 16 13.2V14C16 14.55 15.8042 15.0208 15.4125 15.4125C15.0208 15.8042 14.55 16 14 16H2C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14Z",fill:"currentColor"})}),K9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_2772",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_2772)",children:r.jsx("path",{d:"M3.51334 10.0871C4.00917 9.71924 4.54934 9.42869 5.13384 9.21548C5.71824 9.00237 6.34027 8.89581 6.99992 8.89581C7.65957 8.89581 8.2816 9.00237 8.866 9.21548C9.4505 9.42869 9.99067 9.71924 10.4865 10.0871C10.8491 9.68851 11.1365 9.2271 11.3485 8.70288C11.5606 8.17865 11.6666 7.61102 11.6666 6.99998C11.6666 5.70692 11.2121 4.60588 10.303 3.69685C9.39402 2.78783 8.29297 2.33331 6.99992 2.33331C5.70686 2.33331 4.60582 2.78783 3.69679 3.69685C2.78777 4.60588 2.33325 5.70692 2.33325 6.99998C2.33325 7.61102 2.43927 8.17865 2.65131 8.70288C2.86336 9.2271 3.1507 9.68851 3.51334 10.0871ZM6.99992 7.43748C6.46743 7.43748 6.01836 7.2546 5.65271 6.88885C5.28696 6.5232 5.10409 6.07413 5.10409 5.54165C5.10409 5.00916 5.28696 4.56009 5.65271 4.19444C6.01836 3.82869 6.46743 3.64581 6.99992 3.64581C7.5324 3.64581 7.98147 3.82869 8.34713 4.19444C8.71288 4.56009 8.89575 5.00916 8.89575 5.54165C8.89575 6.07413 8.71288 6.5232 8.34713 6.88885C7.98147 7.2546 7.5324 7.43748 6.99992 7.43748ZM6.99992 12.5416C6.2304 12.5416 5.50853 12.3969 4.83429 12.1075C4.16006 11.8181 3.57356 11.4239 3.07481 10.9251C2.57597 10.4263 2.18183 9.83984 1.8924 9.1656C1.60297 8.49137 1.45825 7.76949 1.45825 6.99998C1.45825 6.23047 1.60297 5.50859 1.8924 4.83435C2.18183 4.16012 2.57597 3.57363 3.07481 3.07488C3.57356 2.57603 4.16006 2.18189 4.83429 1.89246C5.50853 1.60303 6.2304 1.45831 6.99992 1.45831C7.76943 1.45831 8.49131 1.60303 9.16554 1.89246C9.83978 2.18189 10.4263 2.57603 10.925 3.07488C11.4239 3.57363 11.818 4.16012 12.1074 4.83435C12.3969 5.50859 12.5416 6.23047 12.5416 6.99998C12.5416 7.76949 12.3969 8.49137 12.1074 9.1656C11.818 9.83984 11.4239 10.4263 10.925 10.9251C10.4263 11.4239 9.83978 11.8181 9.16554 12.1075C8.49131 12.3969 7.76943 12.5416 6.99992 12.5416Z",fill:"currentColor"})})]}),Q9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22741)",children:r.jsx("path",{d:"M4.26283 13.375C3.96815 13.375 3.71873 13.2729 3.51456 13.0687C3.3104 12.8646 3.20831 12.6152 3.20831 12.3205V2.17952C3.20831 1.88484 3.3104 1.63542 3.51456 1.43125C3.71873 1.22708 3.96815 1.125 4.26283 1.125H9.73713C10.0318 1.125 10.2812 1.22708 10.4854 1.43125C10.6896 1.63542 10.7916 1.88484 10.7916 2.17952V12.3205C10.7916 12.6152 10.6896 12.8646 10.4854 13.0687C10.2812 13.2729 10.0318 13.375 9.73713 13.375H4.26283ZM6.99998 12.0737C7.1428 12.0737 7.26452 12.0234 7.36515 11.9228C7.46567 11.8223 7.51594 11.7005 7.51594 11.5576C7.51594 11.4148 7.46567 11.2931 7.36515 11.1926C7.26452 11.092 7.1428 11.0417 6.99998 11.0417C6.85716 11.0417 6.73544 11.092 6.63481 11.1926C6.53429 11.2931 6.48402 11.4148 6.48402 11.5576C6.48402 11.7005 6.53429 11.8223 6.63481 11.9228C6.73544 12.0234 6.85716 12.0737 6.99998 12.0737ZM4.08331 9.7404H9.91665V3.60417H4.08331V9.7404Z",fill:"currentColor"})})]}),J9=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7640_3741",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7640_3741)",children:r.jsx("path",{d:"M6.99992 12.2151C6.88627 12.2151 6.77262 12.1955 6.65897 12.1564C6.54522 12.1171 6.44235 12.0563 6.35038 11.9741C5.82694 11.4916 5.33708 10.9948 4.88082 10.4836C4.42465 9.97255 4.02813 9.4616 3.69126 8.95079C3.35428 8.43999 3.08765 7.9337 2.89136 7.43194C2.69507 6.93008 2.59692 6.44542 2.59692 5.97798C2.59692 4.63184 3.03233 3.54203 3.90315 2.70854C4.77407 1.87506 5.80633 1.45831 6.99992 1.45831C8.19352 1.45831 9.22578 1.87506 10.0967 2.70854C10.9675 3.54203 11.4029 4.63184 11.4029 5.97798C11.4029 6.44542 11.3048 6.92911 11.1085 7.42902C10.9122 7.92904 10.6465 8.43537 10.3115 8.94802C9.97638 9.46067 9.58074 9.97163 9.12457 10.4809C8.6684 10.9902 8.17855 11.4861 7.65501 11.9684C7.5644 12.0506 7.46139 12.1123 7.34599 12.1534C7.23068 12.1946 7.11533 12.2151 6.99992 12.2151ZM7.00094 6.92138C7.29115 6.92138 7.53926 6.81803 7.74528 6.61133C7.95139 6.40464 8.05444 6.15619 8.05444 5.86598C8.05444 5.57577 7.9511 5.32761 7.7444 5.1215C7.53771 4.91549 7.28921 4.81248 6.9989 4.81248C6.70869 4.81248 6.46058 4.91583 6.25457 5.12252C6.04846 5.32922 5.9454 5.57772 5.9454 5.86802C5.9454 6.15823 6.04875 6.40634 6.25544 6.61236C6.46214 6.81837 6.71064 6.92138 7.00094 6.92138Z",fill:"currentColor"})})]}),e7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 21 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_3553_6463",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"21",height:"20",children:r.jsx("rect",{x:"0.5",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{children:r.jsx("path",{d:"M9.87516 10.625H5.7085C5.53141 10.625 5.38298 10.5651 5.26318 10.4453C5.14339 10.3254 5.0835 10.1769 5.0835 9.99975C5.0835 9.82258 5.14339 9.67417 5.26318 9.55452C5.38298 9.43487 5.53141 9.37504 5.7085 9.37504H9.87516V5.20837C9.87516 5.03129 9.93508 4.88285 10.0549 4.76306C10.1748 4.64327 10.3233 4.58337 10.5004 4.58337C10.6776 4.58337 10.826 4.64327 10.9456 4.76306C11.0653 4.88285 11.1251 5.03129 11.1251 5.20837V9.37504H15.2918C15.4689 9.37504 15.6173 9.43496 15.7371 9.55479C15.8569 9.67464 15.9168 9.82314 15.9168 10.0003C15.9168 10.1775 15.8569 10.3259 15.7371 10.4455C15.6173 10.5652 15.4689 10.625 15.2918 10.625H11.1251V14.7917C11.1251 14.9688 11.0652 15.1172 10.9454 15.237C10.8255 15.3568 10.677 15.4167 10.4999 15.4167C10.3227 15.4167 10.1743 15.3568 10.0546 15.237C9.93499 15.1172 9.87516 14.9688 9.87516 14.7917V10.625Z",fill:"currentColor"})})]}),t7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{opacity:"0.4",children:[r.jsx("mask",{id:"mask0_5162_13105",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13105)",children:r.jsx("path",{d:"M19.7615 21.8691L15.7154 17.8537C15.1256 18.0819 14.5195 18.2467 13.8971 18.348C13.2747 18.4493 12.6423 18.4999 12 18.4999C9.89486 18.4999 7.96698 17.94 6.21635 16.8201C4.46572 15.7002 3.07822 14.2243 2.05385 12.3922C1.97052 12.2486 1.90963 12.1025 1.87118 11.9538C1.83271 11.8051 1.81348 11.6538 1.81348 11.4999C1.81348 11.3461 1.83431 11.1932 1.87598 11.0413C1.91764 10.8894 1.98014 10.7448 2.06348 10.6076C2.46219 9.9448 2.88591 9.30345 3.33463 8.68357C3.78336 8.0637 4.30516 7.51531 4.90003 7.0384L2.13078 4.2384L3.18463 3.18457L20.8153 20.8153L19.7615 21.8691ZM12 15.5768C12.2218 15.5768 12.4336 15.5637 12.6356 15.5374C12.8375 15.5111 13.0346 15.4537 13.2269 15.3653L8.13463 10.273C8.05258 10.4653 7.99681 10.6624 7.96733 10.8643C7.93783 11.0663 7.92308 11.2781 7.92308 11.4999C7.92308 12.6345 8.31891 13.5977 9.11058 14.3893C9.90224 15.181 10.8654 15.5768 12 15.5768ZM18.9538 16.0845L15.8173 12.973C15.9019 12.7345 15.9663 12.4941 16.0105 12.2518C16.0548 12.0095 16.0769 11.7589 16.0769 11.4999C16.0769 10.3653 15.681 9.40219 14.8894 8.61052C14.0977 7.81885 13.1346 7.42302 12 7.42302C11.741 7.42302 11.4904 7.44674 11.2481 7.49417C11.0058 7.5416 10.7686 7.61917 10.5366 7.72687L8.03463 5.23457C8.67051 4.98329 9.3189 4.79803 9.9798 4.6788C10.6407 4.55956 11.3141 4.49995 12 4.49995C14.1115 4.49995 16.0484 5.06245 17.8105 6.18745C19.5727 7.31245 20.9628 8.79738 21.9807 10.6422C22.0576 10.7692 22.1169 10.9054 22.1586 11.0509C22.2003 11.1964 22.2211 11.3461 22.2211 11.4999C22.2211 11.6538 22.2028 11.8034 22.1663 11.9489C22.1297 12.0945 22.073 12.2307 21.9961 12.3576C21.6089 13.0832 21.1673 13.7605 20.6711 14.3893C20.175 15.0182 19.6025 15.5832 18.9538 16.0845ZM14.6846 11.8499L11.675 8.84992C12.0955 8.76659 12.5051 8.79671 12.9038 8.9403C13.3025 9.0839 13.6468 9.30761 13.9365 9.61145C14.2327 9.91145 14.4465 10.2563 14.5779 10.6461C14.7093 11.0358 14.7449 11.4371 14.6846 11.8499Z",fill:"currentColor"})})]})}),n7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5162_13106",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5162_13106)",children:r.jsx("path",{d:"M12.0023 15.5769C13.1354 15.5769 14.0978 15.1803 14.8895 14.3871C15.6811 13.5939 16.077 12.6308 16.077 11.4977C16.077 10.3646 15.6804 9.40224 14.8872 8.61058C14.094 7.81891 13.1309 7.42308 11.9978 7.42308C10.8647 7.42308 9.90234 7.81966 9.11067 8.61282C8.31901 9.40601 7.92317 10.3692 7.92317 11.5023C7.92317 12.6353 8.31976 13.5977 9.11293 14.3894C9.90611 15.181 10.8692 15.5769 12.0023 15.5769ZM12.0001 14.2C11.2501 14.2 10.6126 13.9375 10.0876 13.4125C9.56258 12.8875 9.30007 12.25 9.30007 11.5C9.30007 10.75 9.56258 10.1125 10.0876 9.58748C10.6126 9.06248 11.2501 8.79998 12.0001 8.79998C12.7501 8.79998 13.3876 9.06248 13.9126 9.58748C14.4376 10.1125 14.7001 10.75 14.7001 11.5C14.7001 12.25 14.4376 12.8875 13.9126 13.4125C13.3876 13.9375 12.7501 14.2 12.0001 14.2ZM12.0014 18.5C9.70183 18.5 7.60651 17.8657 5.71547 16.5971C3.82446 15.3285 2.43216 13.6295 1.53857 11.5C2.43216 9.37049 3.82401 7.67146 5.71412 6.40288C7.60422 5.13429 9.69908 4.5 11.9987 4.5C14.2983 4.5 16.3936 5.13429 18.2847 6.40288C20.1757 7.67146 21.568 9.37049 22.4616 11.5C21.568 13.6295 20.1761 15.3285 18.286 16.5971C16.3959 17.8657 14.3011 18.5 12.0014 18.5Z",fill:"currentColor"})})]}),r7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22801",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22801)",children:r.jsx("path",{d:"M7.58335 12.2196V11.1089H8.69387V12.2196H7.58335ZM6.47283 11.1089V8.36054H7.58335V11.1089H6.47283ZM10.8589 9.24677V7.25002H11.9696V9.24677H10.8589ZM9.74839 7.25002V6.1395H10.8589V7.25002H9.74839ZM3.14112 8.36054V7.25002H4.25164V8.36054H3.14112ZM2.03046 7.25002V6.1395H3.14112V7.25002H2.03046ZM7.00002 3.39112V2.28046H8.11054V3.39112H7.00002ZM2.72594 4.91669H4.66669V2.97594H2.72594V4.91669ZM2.03046 5.08498V2.80779C2.03046 2.65836 2.08101 2.53314 2.18212 2.43212C2.28314 2.33101 2.40836 2.28046 2.55779 2.28046H4.83498C4.98431 2.28046 5.10953 2.33101 5.21064 2.43212C5.31166 2.53314 5.36216 2.65836 5.36216 2.80779V5.08498C5.36216 5.23431 5.31166 5.35953 5.21064 5.46064C5.10953 5.56166 4.98431 5.61217 4.83498 5.61217H2.55779C2.40836 5.61217 2.28314 5.56166 2.18212 5.46064C2.08101 5.35953 2.03046 5.23431 2.03046 5.08498ZM2.72594 11.5241H4.7116V9.58335H2.72594V11.5241ZM2.03046 11.6922V9.41506C2.03046 9.26573 2.08101 9.14051 2.18212 9.03939C2.28314 8.93838 2.40836 8.88787 2.55779 8.88787H4.87989C5.02923 8.88787 5.15445 8.93838 5.25556 9.03939C5.35657 9.14051 5.40708 9.26573 5.40708 9.41506V11.6922C5.40708 11.8417 5.35657 11.9669 5.25556 12.0679C5.15445 12.169 5.02923 12.2196 4.87989 12.2196H2.55779C2.40836 12.2196 2.28314 12.169 2.18212 12.0679C2.08101 11.9669 2.03046 11.8417 2.03046 11.6922ZM9.33335 4.91669H11.2741V2.97594H9.33335V4.91669ZM8.63787 5.08498V2.80779C8.63787 2.65836 8.68838 2.53314 8.78939 2.43212C8.89051 2.33101 9.01573 2.28046 9.16506 2.28046H11.4422C11.5917 2.28046 11.7169 2.33101 11.8179 2.43212C11.919 2.53314 11.9696 2.65836 11.9696 2.80779V5.08498C11.9696 5.23431 11.919 5.35953 11.8179 5.46064C11.7169 5.56166 11.5917 5.61217 11.4422 5.61217H9.16506C9.01573 5.61217 8.89051 5.56166 8.78939 5.46064C8.68838 5.35953 8.63787 5.23431 8.63787 5.08498ZM9.74839 12.2196V10.3573H8.63787V9.24677H10.8589V11.1089H11.9696V12.2196H9.74839ZM7.58335 8.36054V7.25002H9.74839V8.36054H7.58335ZM5.36216 8.36054V7.25002H4.25164V6.1395H7.58335V7.25002H6.47283V8.36054H5.36216ZM5.8895 5.61217V3.39112H7.00002V4.50164H8.11054V5.61217H5.8895ZM3.2925 4.35012V3.5425H4.10012V4.35012H3.2925ZM3.33173 10.9183V10.1105H4.1395V10.9183H3.33173ZM9.89991 4.35012V3.5425H10.7075V4.35012H9.89991Z",fill:"currentColor"})})]}),i7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5099_7163",maskUnits:"userSpaceOnUse",x:"2",y:"2",width:"16",height:"16",children:r.jsx("rect",{x:"2",y:"2",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5099_7163)",children:r.jsx("path",{d:"M10 16.6667C9.16667 16.6667 8.38611 16.5083 7.65833 16.1917C6.93056 15.875 6.29722 15.4472 5.75833 14.9083C5.21944 14.3695 4.79167 13.7361 4.475 13.0083C4.15833 12.2806 4 11.5 4 10.6667C4 10.4778 4.06389 10.3195 4.19167 10.1917C4.31944 10.0639 4.47778 10 4.66667 10C4.85556 10 5.01389 10.0639 5.14167 10.1917C5.26944 10.3195 5.33333 10.4778 5.33333 10.6667C5.33333 11.9667 5.78611 13.0695 6.69167 13.975C7.59722 14.8806 8.7 15.3333 10 15.3333C11.3 15.3333 12.4028 14.8806 13.3083 13.975C14.2139 13.0695 14.6667 11.9667 14.6667 10.6667C14.6667 9.36667 14.2139 8.2639 13.3083 7.35834C12.4028 6.45279 11.3 6.00001 10 6.00001H9.9L10.4667 6.56667C10.6 6.70001 10.6639 6.85556 10.6583 7.03334C10.6528 7.21112 10.5889 7.36667 10.4667 7.50001C10.3333 7.63334 10.175 7.70279 9.99167 7.70834C9.80833 7.7139 9.65 7.65001 9.51667 7.51667L7.8 5.80001C7.66667 5.66667 7.6 5.51112 7.6 5.33334C7.6 5.15556 7.66667 5.00001 7.8 4.86667L9.51667 3.15001C9.65 3.01667 9.80833 2.95279 9.99167 2.95834C10.175 2.9639 10.3333 3.03334 10.4667 3.16667C10.5889 3.30001 10.6528 3.45556 10.6583 3.63334C10.6639 3.81112 10.6 3.96667 10.4667 4.10001L9.9 4.66667H10C10.8333 4.66667 11.6139 4.82501 12.3417 5.14167C13.0694 5.45834 13.7028 5.88612 14.2417 6.42501C14.7806 6.9639 15.2083 7.59723 15.525 8.32501C15.8417 9.05279 16 9.83334 16 10.6667C16 11.5 15.8417 12.2806 15.525 13.0083C15.2083 13.7361 14.7806 14.3695 14.2417 14.9083C13.7028 15.4472 13.0694 15.875 12.3417 16.1917C11.6139 16.5083 10.8333 16.6667 10 16.6667Z",fill:"currentColor"})})]}),s7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22828",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22828)",children:r.jsx("path",{d:"M5.24999 7.10419C5.53339 7.10419 5.77441 7.00492 5.97303 6.8064C6.17156 6.60777 6.27082 6.36676 6.27082 6.08335C6.27082 5.79995 6.17156 5.55894 5.97303 5.36031C5.77441 5.16178 5.53339 5.06252 5.24999 5.06252C4.96659 5.06252 4.72557 5.16178 4.52695 5.36031C4.32842 5.55894 4.22916 5.79995 4.22916 6.08335C4.22916 6.36676 4.32842 6.60777 4.52695 6.8064C4.72557 7.00492 4.96659 7.10419 5.24999 7.10419ZM8.74999 7.10419C9.03339 7.10419 9.27441 7.00492 9.47303 6.8064C9.67156 6.60777 9.77082 6.36676 9.77082 6.08335C9.77082 5.79995 9.67156 5.55894 9.47303 5.36031C9.27441 5.16178 9.03339 5.06252 8.74999 5.06252C8.46659 5.06252 8.22557 5.16178 8.02695 5.36031C7.82842 5.55894 7.72916 5.79995 7.72916 6.08335C7.72916 6.36676 7.82842 6.60777 8.02695 6.8064C8.22557 7.00492 8.46659 7.10419 8.74999 7.10419ZM5.10416 12.2084V10.2004C5.10416 10.148 5.12098 10.105 5.15461 10.0713C5.18825 10.0377 5.23127 10.0209 5.28368 10.0209H6.56249V12.2084H5.10416ZM7.43749 12.2084V10.0209H8.7163C8.76871 10.0209 8.81173 10.0377 8.84537 10.0713C8.879 10.105 8.89582 10.148 8.89582 10.2004V12.2084H7.43749ZM3.09618 12.2084C2.80616 12.2084 2.55791 12.1051 2.35141 11.8986C2.14491 11.6921 2.04166 11.4438 2.04166 11.1538V5.50002C2.04166 4.60878 2.35359 3.85128 2.97747 3.2275C3.60125 2.60362 4.35875 2.29169 5.24999 2.29169H8.74999C9.64123 2.29169 10.3987 2.60362 11.0225 3.2275C11.6464 3.85128 11.9583 4.60878 11.9583 5.50002V11.1538C11.9583 11.4438 11.8551 11.6921 11.6486 11.8986C11.4421 12.1051 11.1938 12.2084 10.9038 12.2084H9.77082V10.2004C9.77082 9.91036 9.66757 9.6621 9.46107 9.4556C9.25457 9.2491 9.00632 9.14585 8.7163 9.14585H5.28368C4.99366 9.14585 4.74541 9.2491 4.53891 9.4556C4.33241 9.6621 4.22916 9.91036 4.22916 10.2004V12.2084H3.09618Z",fill:"currentColor"})})]}),o7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22840",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22840)",children:r.jsx("path",{d:"M3.09619 12.2084C2.80151 12.2084 2.55209 12.1063 2.34792 11.9021C2.14376 11.6979 2.04167 11.4485 2.04167 11.1538V3.34621C2.04167 3.05153 2.14376 2.8021 2.34792 2.59794C2.55209 2.39377 2.80151 2.29169 3.09619 2.29169H9.35682C9.49915 2.29169 9.63478 2.31901 9.76369 2.37365C9.89261 2.42819 10.0049 2.50334 10.1006 2.5991L11.6509 4.14946C11.7467 4.24512 11.8218 4.35742 11.8764 4.48633C11.931 4.61525 11.9583 4.75087 11.9583 4.89321V11.1538C11.9583 11.4485 11.8563 11.6979 11.6521 11.9021C11.4479 12.1063 11.1985 12.2084 10.9038 12.2084H3.09619ZM6.99869 10.3238C7.40343 10.3238 7.74789 10.1821 8.03207 9.89879C8.31625 9.61549 8.45834 9.27146 8.45834 8.86673C8.45834 8.46199 8.31669 8.11753 8.03338 7.83335C7.75007 7.54917 7.40605 7.40708 7.00132 7.40708C6.59658 7.40708 6.25212 7.54874 5.96794 7.83204C5.68376 8.11535 5.54167 8.45937 5.54167 8.8641C5.54167 9.26884 5.68333 9.6133 5.96663 9.89748C6.24994 10.1817 6.59396 10.3238 6.99869 10.3238ZM4.25163 6.01598H7.98598C8.13707 6.01598 8.26292 5.96547 8.36355 5.86446C8.46408 5.76344 8.51434 5.63822 8.51434 5.48879V4.50165C8.51434 4.35221 8.46383 4.22699 8.36282 4.12598C8.2618 4.02497 8.13658 3.97446 7.98715 3.97446H4.2528C4.10171 3.97446 3.97586 4.02497 3.87523 4.12598C3.77471 4.22699 3.72444 4.35221 3.72444 4.50165V5.48879C3.72444 5.63822 3.77495 5.76344 3.87596 5.86446C3.97698 5.96547 4.1022 6.01598 4.25163 6.01598Z",fill:"currentColor"})})]}),l7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"schedule",children:[r.jsx("mask",{id:"mask0_4051_4016",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_4051_4016)",children:r.jsx("path",{id:"schedule_2",d:"M12.75 11.6961V7.74995C12.75 7.53747 12.6781 7.35935 12.5343 7.2156C12.3904 7.07185 12.2122 6.99998 11.9997 6.99998C11.7871 6.99998 11.609 7.07185 11.4654 7.2156C11.3218 7.35935 11.25 7.53747 11.25 7.74995V11.9269C11.25 12.0446 11.2718 12.1587 11.3154 12.269C11.359 12.3794 11.4276 12.4814 11.5212 12.575L14.9462 16C15.0846 16.1384 15.2587 16.2093 15.4683 16.2125C15.6779 16.2157 15.8551 16.1448 16 16C16.1448 15.8551 16.2173 15.6795 16.2173 15.4731C16.2173 15.2667 16.1448 15.091 16 14.9462L12.75 11.6961ZM12.0016 21.5C10.6877 21.5 9.45268 21.2506 8.29655 20.752C7.1404 20.2533 6.13472 19.5765 5.2795 18.7217C4.42427 17.8669 3.74721 16.8616 3.24833 15.706C2.74944 14.5504 2.5 13.3156 2.5 12.0017C2.5 10.6877 2.74933 9.45268 3.248 8.29655C3.74667 7.1404 4.42342 6.13472 5.27825 5.2795C6.1331 4.42427 7.13834 3.74721 8.29398 3.24833C9.44959 2.74944 10.6844 2.5 11.9983 2.5C13.3122 2.5 14.5473 2.74933 15.7034 3.248C16.8596 3.74667 17.8652 4.42342 18.7205 5.27825C19.5757 6.1331 20.2527 7.13834 20.7516 8.29398C21.2505 9.44959 21.5 10.6844 21.5 11.9983C21.5 13.3122 21.2506 14.5473 20.752 15.7034C20.2533 16.8596 19.5765 17.8652 18.7217 18.7205C17.8669 19.5757 16.8616 20.2527 15.706 20.7516C14.5504 21.2505 13.3156 21.5 12.0016 21.5Z",fill:"currentColor"})})]})}),C7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9540_35",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9540_35)",children:r.jsx("path",{d:"M12.2501 9.33332V5.89165L7.55426 8.44373C7.37926 8.54096 7.19454 8.58957 7.0001 8.58957C6.80565 8.58957 6.62093 8.54096 6.44593 8.44373L1.51676 5.7604C1.40982 5.70207 1.33447 5.62915 1.29072 5.54165C1.24697 5.45415 1.2251 5.35693 1.2251 5.24998C1.2251 5.14304 1.24697 5.04582 1.29072 4.95832C1.33447 4.87082 1.40982 4.7979 1.51676 4.73957L6.44593 2.05623C6.53343 2.00762 6.62336 1.97116 6.71572 1.94686C6.80808 1.92255 6.90288 1.9104 7.0001 1.9104C7.09732 1.9104 7.19211 1.92255 7.28447 1.94686C7.37683 1.97116 7.46676 2.00762 7.55426 2.05623L13.1105 5.08957C13.2077 5.13818 13.2831 5.20866 13.3366 5.30103C13.39 5.39339 13.4168 5.49304 13.4168 5.59998V9.33332C13.4168 9.49859 13.3609 9.63714 13.2491 9.74894C13.1373 9.86075 12.9987 9.91665 12.8334 9.91665C12.6682 9.91665 12.5296 9.86075 12.4178 9.74894C12.306 9.63714 12.2501 9.49859 12.2501 9.33332ZM6.44593 11.9437L3.52926 10.3687C3.33482 10.2618 3.18413 10.116 3.07718 9.93123C2.97024 9.74651 2.91676 9.54721 2.91676 9.33332V7.11665L6.44593 9.02707C6.62093 9.12429 6.80565 9.1729 7.0001 9.1729C7.19454 9.1729 7.37926 9.12429 7.55426 9.02707L11.0834 7.11665V9.33332C11.0834 9.54721 11.03 9.74651 10.923 9.93123C10.8161 10.116 10.6654 10.2618 10.4709 10.3687L7.55426 11.9437C7.46676 11.9923 7.37683 12.0288 7.28447 12.0531C7.19211 12.0774 7.09732 12.0896 7.0001 12.0896C6.90288 12.0896 6.80808 12.0774 6.71572 12.0531C6.62336 12.0288 6.53343 11.9923 6.44593 11.9437Z",fill:"currentColor"})})]}),a7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.99995 7.22422L1.71245 11.5117C1.55203 11.6721 1.34787 11.7523 1.09995 11.7523C0.852035 11.7523 0.647868 11.6721 0.487451 11.5117C0.327035 11.3513 0.246826 11.1471 0.246826 10.8992C0.246826 10.6513 0.327035 10.4471 0.487451 10.2867L4.77495 5.99922L0.487451 1.71172C0.327035 1.5513 0.246826 1.34714 0.246826 1.09922C0.246826 0.851302 0.327035 0.647135 0.487451 0.486719C0.647868 0.326302 0.852035 0.246094 1.09995 0.246094C1.34787 0.246094 1.55203 0.326302 1.71245 0.486719L5.99995 4.77422L10.2875 0.486719C10.4479 0.326302 10.652 0.246094 10.9 0.246094C11.1479 0.246094 11.352 0.326302 11.5125 0.486719C11.6729 0.647135 11.7531 0.851302 11.7531 1.09922C11.7531 1.34714 11.6729 1.5513 11.5125 1.71172L7.22495 5.99922L11.5125 10.2867C11.6729 10.4471 11.7531 10.6513 11.7531 10.8992C11.7531 11.1471 11.6729 11.3513 11.5125 11.5117C11.352 11.6721 11.1479 11.7523 10.9 11.7523C10.652 11.7523 10.4479 11.6721 10.2875 11.5117L5.99995 7.22422Z",fill:"currentColor"})}),c7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M7.38474 15.5C7.13341 15.5 6.92316 15.4153 6.75399 15.246C6.58466 15.0768 6.49999 14.8666 6.49999 14.6152V8.827L0.901988 1.7155C0.709655 1.459 0.681738 1.19233 0.818238 0.9155C0.954905 0.6385 1.18541 0.5 1.50974 0.5H14.4902C14.8146 0.5 15.0451 0.6385 15.1817 0.9155C15.3182 1.19233 15.2903 1.459 15.098 1.7155L9.49999 8.827V14.6152C9.49999 14.8666 9.41532 15.0768 9.24599 15.246C9.07682 15.4153 8.86657 15.5 8.61524 15.5H7.38474Z",fill:"currentColor"})}),h7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 32 32",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Property 1=Normal",children:r.jsx("path",{id:"search",d:"M15.5192 20.6153C13.8115 20.6153 12.3654 20.023 11.1808 18.8384C9.99618 17.6538 9.40387 16.2077 9.40387 14.5C9.40387 12.7923 9.99618 11.3462 11.1808 10.1615C12.3654 8.97694 13.8115 8.38464 15.5192 8.38464C17.2269 8.38464 18.6731 8.97694 19.8577 10.1615C21.0423 11.3462 21.6346 12.7923 21.6346 14.5C21.6346 15.2141 21.5147 15.8961 21.275 16.5461C21.0352 17.1961 20.7153 17.7615 20.3153 18.2423L23.0692 20.9961C23.2077 21.1346 23.2785 21.3087 23.2817 21.5183C23.2849 21.7279 23.2141 21.9051 23.0692 22.05C22.9243 22.1948 22.7487 22.2673 22.5423 22.2673C22.3359 22.2673 22.1603 22.1948 22.0154 22.05L19.2615 19.2961C18.7615 19.7089 18.1865 20.032 17.5365 20.2653C16.8865 20.4987 16.2141 20.6153 15.5192 20.6153ZM15.5192 19.1154C16.8077 19.1154 17.899 18.6683 18.7933 17.774C19.6875 16.8798 20.1346 15.7885 20.1346 14.5C20.1346 13.2115 19.6875 12.1202 18.7933 11.2259C17.899 10.3317 16.8077 9.88459 15.5192 9.88459C14.2308 9.88459 13.1394 10.3317 12.2452 11.2259C11.351 12.1202 10.9038 13.2115 10.9038 14.5C10.9038 15.7885 11.351 16.8798 12.2452 17.774C13.1394 18.6683 14.2308 19.1154 15.5192 19.1154Z",fill:"currentColor"})})}),u7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"sensors",children:[r.jsx("mask",{id:"mask0_1506_161",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_161)",children:r.jsx("path",{id:"sensors_2",d:"M5 8.97359C4.73205 8.97359 4.49839 8.87655 4.29903 8.68246C4.09968 8.48836 4 8.26087 4 8C4 7.73913 4.09968 7.51164 4.29903 7.31754C4.49839 7.12345 4.73205 7.02641 5 7.02641C5.26795 7.02641 5.50161 7.12345 5.70097 7.31754C5.90032 7.51164 6 7.73913 6 8C6 8.26087 5.90032 8.48836 5.70097 8.68246C5.50161 8.87655 5.26795 8.97359 5 8.97359ZM8.17885 11.0949C8.08527 11.0038 8.03431 10.893 8.02597 10.7626C8.01764 10.6321 8.05642 10.5076 8.1423 10.389C8.40257 10.0595 8.61058 9.69099 8.76635 9.28346C8.92212 8.87591 9 8.44809 9 8C9 7.5519 8.92212 7.12408 8.76635 6.71654C8.61058 6.30901 8.40257 5.94048 8.1423 5.61095C8.05642 5.49239 8.01539 5.37006 8.01922 5.24398C8.02308 5.11792 8.07821 5.00308 8.18463 4.89948C8.29488 4.79214 8.41699 4.7394 8.55097 4.74127C8.68494 4.74315 8.79488 4.79964 8.88077 4.91072C9.23077 5.33136 9.50482 5.80567 9.7029 6.33365C9.90097 6.86165 10 7.41709 10 8C10 8.5829 9.90097 9.13648 9.7029 9.66073C9.50482 10.185 9.23077 10.6593 8.88077 11.0837C8.79488 11.1948 8.68397 11.2512 8.54807 11.2531C8.41217 11.255 8.2891 11.2022 8.17885 11.0949ZM11.0096 13.8509C10.916 13.7598 10.8663 13.6481 10.8606 13.5158C10.8548 13.3834 10.8987 13.2599 10.9923 13.1451C11.6154 12.4548 12.1058 11.6737 12.4635 10.8019C12.8212 9.93002 13 8.99606 13 8C13 7.00394 12.8221 6.06998 12.4663 5.19813C12.1106 4.32626 11.6212 3.5452 10.9981 2.85494C10.9045 2.74012 10.8555 2.62061 10.851 2.49641C10.8465 2.37222 10.8994 2.25644 11.0096 2.14908C11.1071 2.05422 11.225 2.00461 11.3635 2.00025C11.5019 1.99588 11.6179 2.04924 11.7115 2.16033C12.4244 2.9417 12.984 3.82667 13.3904 4.81524C13.7968 5.80381 14 6.86539 14 8C14 9.13086 13.7968 10.1915 13.3904 11.182C12.984 12.1724 12.4244 13.0583 11.7115 13.8397C11.6179 13.9508 11.5019 14.0041 11.3635 13.9998C11.225 13.9954 11.1071 13.9458 11.0096 13.8509Z",fill:"currentColor"})})]})}),d7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_28",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_28)",children:r.jsx("path",{d:"M3 20.75L2.91345 19.4327L4.74998 17.6058V20.75H3ZM7.25003 20.75V15.1058L8.74998 13.6058V20.75H7.25003ZM11.25 20.75V13.6058L12.75 15.1308V20.75H11.25ZM15.25 20.75V15.1308L16.75 13.6308V20.75H15.25ZM19.25 20.75V11.1058L20.75 9.60583V20.75H19.25ZM3.25003 15.2192V13.1058L10 6.35581L14 10.3558L20.75 3.60583V5.71924L14 12.4692L10 8.46921L3.25003 15.2192Z",fill:"currentColor"})})]}),f7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_29",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_29)",children:r.jsx("path",{d:"M13.5096 21.5H10.4808C10.2564 21.5 10.0622 21.4246 9.8981 21.274C9.734 21.1233 9.63528 20.9358 9.60195 20.7115L9.31157 18.4538C9.04362 18.3641 8.76894 18.2384 8.48752 18.0769C8.2061 17.9153 7.9545 17.7422 7.7327 17.5576L5.64425 18.4384C5.43015 18.5217 5.21765 18.5301 5.00675 18.4634C4.79585 18.3967 4.63014 18.2647 4.50962 18.0673L3.00582 15.4481C2.8853 15.2506 2.84845 15.0397 2.89525 14.8154C2.94203 14.591 3.0558 14.4102 3.23657 14.2731L5.04427 12.9058C5.02119 12.757 5.00484 12.6077 4.99522 12.4577C4.9856 12.3077 4.9808 12.1583 4.9808 12.0096C4.9808 11.8673 4.9856 11.7227 4.99522 11.5759C5.00484 11.4291 5.02119 11.2686 5.04427 11.0942L3.23657 9.72688C3.0558 9.58971 2.94203 9.40894 2.89525 9.18458C2.84845 8.96023 2.8853 8.74934 3.00582 8.5519L4.50962 5.95195C4.61989 5.74425 4.78143 5.60963 4.99425 5.5481C5.20706 5.48657 5.42052 5.49747 5.63462 5.5808L7.72307 6.45195C7.9641 6.26092 8.22148 6.08623 8.4952 5.9279C8.76893 5.76955 9.03785 5.6423 9.30195 5.54615L9.60195 3.28848C9.63528 3.06411 9.734 2.87661 9.8981 2.72598C10.0622 2.57533 10.2564 2.5 10.4808 2.5H13.5096C13.7339 2.5 13.9298 2.57533 14.0971 2.72598C14.2644 2.87661 14.3647 3.06411 14.398 3.28848L14.6884 5.55578C14.9884 5.66474 15.2599 5.79198 15.5029 5.9375C15.7458 6.08302 15.991 6.2545 16.2384 6.45195L18.3654 5.5808C18.5795 5.49747 18.7904 5.48753 18.998 5.55098C19.2057 5.61444 19.3699 5.74489 19.4904 5.94233L20.9942 8.5519C21.1147 8.74934 21.1515 8.96023 21.1047 9.18458C21.058 9.40894 20.9442 9.58971 20.7634 9.72688L18.9173 11.123C18.9532 11.2846 18.9727 11.4355 18.9759 11.5759C18.9791 11.7163 18.9807 11.8577 18.9807 12C18.9807 12.1359 18.9775 12.274 18.9711 12.4144C18.9647 12.5548 18.9416 12.7154 18.9019 12.8962L20.7288 14.2731C20.916 14.4038 21.0314 14.583 21.0749 14.8106C21.1185 15.0381 21.0801 15.2506 20.9596 15.4481L19.4557 18.0519C19.3352 18.2493 19.167 18.3823 18.9509 18.4509C18.7349 18.5195 18.5198 18.5121 18.3057 18.4288L16.2384 17.548C15.991 17.7455 15.7384 17.9201 15.4807 18.0721C15.223 18.224 14.9589 18.348 14.6884 18.4442L14.398 20.7115C14.3647 20.9358 14.2644 21.1233 14.0971 21.274C13.9298 21.4246 13.7339 21.5 13.5096 21.5ZM12.0115 15C12.8436 15 13.5516 14.708 14.1355 14.124C14.7195 13.54 15.0115 12.832 15.0115 12C15.0115 11.1679 14.7195 10.4599 14.1355 9.87595C13.5516 9.29198 12.8436 9 12.0115 9C11.1692 9 10.4587 9.29198 9.87982 9.87595C9.30099 10.4599 9.01157 11.1679 9.01157 12C9.01157 12.832 9.30099 13.54 9.87982 14.124C10.4587 14.708 11.1692 15 12.0115 15Z",fill:"currentColor"})})]}),p7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"shield_person",children:[r.jsx("mask",{id:"mask0_1543_22988",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1543_22988)",children:r.jsx("path",{id:"shield_person_2",d:"M9.99998 10.6249C10.7521 10.6249 11.3915 10.3616 11.9182 9.83486C12.4449 9.30816 12.7083 8.66875 12.7083 7.91661C12.7083 7.16447 12.4449 6.52505 11.9182 5.99836C11.3915 5.47165 10.7521 5.20829 9.99998 5.20829C9.24784 5.20829 8.60842 5.47165 8.08173 5.99836C7.55502 6.52505 7.29167 7.16447 7.29167 7.91661C7.29167 8.66875 7.55502 9.30816 8.08173 9.83486C8.60842 10.3616 9.24784 10.6249 9.99998 10.6249ZM9.99998 17.9005C8.08973 17.376 6.57051 16.3049 5.44231 14.6874C4.3141 13.0699 3.75 11.2574 3.75 9.24994V4.45509L9.99998 2.11536L16.25 4.45509V9.24994C16.25 11.2574 15.6859 13.0699 14.5576 14.6874C13.4295 16.3049 11.9102 17.376 9.99998 17.9005ZM9.99998 16.5833C10.782 16.3301 11.4823 15.9422 12.1009 15.4198C12.7195 14.8974 13.2569 14.298 13.7131 13.6218C13.1373 13.3269 12.5371 13.1009 11.9126 12.9439C11.2882 12.7868 10.6506 12.7083 9.99998 12.7083C9.34934 12.7083 8.71179 12.7868 8.08733 12.9439C7.46286 13.1009 6.8627 13.3269 6.28685 13.6218C6.74305 14.298 7.28044 14.8974 7.89902 15.4198C8.51762 15.9422 9.21794 16.3301 9.99998 16.5833Z",fill:"currentColor"})})]})}),x7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 12 8",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M0.333496 7.66704V6.66706H3.91681V7.66704H0.333496ZM0.333496 4.50037V3.50041H7.7886V4.50037H0.333496ZM0.333496 1.33372V0.33374H11.6668V1.33372H0.333496Z",fill:"currentColor"})}),g7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"brand_awareness",children:[r.jsx("mask",{id:"mask0_3696_4540",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"20",height:"20",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_3696_4540)",children:r.jsx("path",{id:"brand_awareness_2",d:"M15.577 10.625H13.8142C13.6368 10.625 13.4883 10.5652 13.3687 10.4455C13.249 10.3259 13.1892 10.1774 13.1892 10C13.1892 9.82269 13.249 9.67419 13.3687 9.55454C13.4883 9.43489 13.6368 9.37506 13.8142 9.37506H15.577C15.7543 9.37506 15.9028 9.43489 16.0225 9.55454C16.1421 9.67419 16.202 9.82269 16.202 10C16.202 10.1774 16.1421 10.3259 16.0225 10.4455C15.9028 10.5652 15.7543 10.625 15.577 10.625ZM12.1106 13.9279C12.2175 13.7816 12.354 13.6972 12.5201 13.6747C12.6862 13.6523 12.8425 13.6945 12.9888 13.8013L14.3943 14.8574C14.5406 14.9642 14.625 15.1007 14.6475 15.2669C14.6699 15.433 14.6277 15.5892 14.5209 15.7356C14.4141 15.882 14.2776 15.9664 14.1114 15.9888C13.9453 16.0112 13.7891 15.969 13.6427 15.8622L12.2372 14.8061C12.0909 14.6993 12.0065 14.5628 11.9841 14.3967C11.9616 14.2305 12.0038 14.0743 12.1106 13.9279ZM14.3622 5.1106L12.9568 6.16671C12.8104 6.27354 12.6542 6.31574 12.488 6.29331C12.3219 6.27087 12.1854 6.18646 12.0786 6.0401C11.9718 5.89374 11.9296 5.7375 11.952 5.57137C11.9744 5.40525 12.0588 5.26876 12.2052 5.16192L13.6106 4.10583C13.757 3.999 13.9133 3.9568 14.0794 3.97923C14.2455 4.00166 14.382 4.08606 14.4888 4.23244C14.5957 4.3788 14.6379 4.53504 14.6154 4.70116C14.593 4.86729 14.5086 5.00377 14.3622 5.1106ZM6.05778 12.0834H3.71805C3.5033 12.0834 3.32408 12.0115 3.18039 11.8678C3.03669 11.7241 2.96484 11.5449 2.96484 11.3301V8.66994C2.96484 8.4552 3.03669 8.27599 3.18039 8.13229C3.32408 7.98858 3.5033 7.91673 3.71805 7.91673H6.05778L8.55134 5.42317C8.75114 5.22339 8.9811 5.17771 9.24124 5.28614C9.50138 5.39459 9.63145 5.5909 9.63145 5.87508V14.125C9.63145 14.4092 9.50138 14.6055 9.24124 14.7139C8.9811 14.8224 8.75114 14.7767 8.55134 14.5769L6.05778 12.0834Z",fill:"currentColor"})})]})}),m7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("g",{id:"Menu icons",children:r.jsx("path",{id:"Subtract",d:"M9.56745 16.1438C9.44134 16.1438 9.31606 16.1269 9.19162 16.0931C9.06718 16.0595 8.95315 16.0133 8.84954 15.9546C8.2587 15.602 7.64141 15.3367 6.99766 15.159C6.35405 14.981 5.68822 14.8921 5.00016 14.8921C4.49169 14.8921 3.99225 14.9484 3.50183 15.061C3.01141 15.1738 2.53863 15.3397 2.0835 15.5588C1.78655 15.6954 1.50398 15.6751 1.23579 15.4977C0.967593 15.3205 0.833496 15.0695 0.833496 14.7446V5.71272C0.833496 5.53313 0.881066 5.36723 0.976204 5.21501C1.0712 5.06279 1.20315 4.95195 1.37204 4.88251C1.93607 4.60792 2.52391 4.40202 3.13558 4.2648C3.74725 4.12744 4.36877 4.05876 5.00016 4.05876C5.811 4.05876 6.60051 4.17362 7.3687 4.40334C8.1369 4.63306 8.87516 4.95626 9.5835 5.37292V14.9433C10.2866 14.4989 11.0283 14.1709 11.8087 13.9594C12.5891 13.7479 13.3752 13.6421 14.1668 13.6421C14.6454 13.6421 15.0816 13.6717 15.4754 13.731C15.869 13.7904 16.3249 13.9006 16.8431 14.0619C16.9018 14.078 16.9566 14.0794 17.0075 14.066C17.0581 14.0526 17.0835 14.0085 17.0835 13.9338V4.5748C17.2277 4.61758 17.3684 4.66515 17.5058 4.71751C17.643 4.76987 17.7768 4.83556 17.9072 4.91459C18.0493 4.98404 18.1559 5.08549 18.2268 5.21897C18.2979 5.35258 18.3335 5.49577 18.3335 5.64855V14.7285C18.3335 15.0534 18.1954 15.3031 17.9191 15.4777C17.643 15.6524 17.3484 15.6741 17.0354 15.5427C16.5856 15.329 16.1196 15.1671 15.6372 15.0571C15.1549 14.9471 14.6647 14.8921 14.1668 14.8921C13.4735 14.8921 12.7996 14.981 12.1452 15.159C11.4909 15.3367 10.8683 15.602 10.2775 15.9546C10.1738 16.0133 10.0611 16.0595 9.93933 16.0931C9.81752 16.1269 9.69357 16.1438 9.56745 16.1438ZM11.8895 12.2319C11.7613 12.3462 11.6227 12.3692 11.4737 12.3008C11.3247 12.2324 11.2502 12.1132 11.2502 11.9433V5.46751C11.2502 5.41723 11.2606 5.36778 11.2814 5.31917C11.3022 5.27056 11.3309 5.22813 11.3672 5.19188L14.7645 1.79438C14.8927 1.66619 15.0335 1.63549 15.1868 1.7023C15.3402 1.76897 15.4168 1.89153 15.4168 2.07001V8.8873C15.4168 8.95133 15.4043 9.00633 15.3791 9.0523C15.354 9.09827 15.3233 9.13945 15.287 9.17584L11.8895 12.2319Z",fill:"currentColor"})})}),w7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_1259_26",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1259_26)",children:r.jsx("path",{d:"M10.0577 18.7499C9.84521 18.7499 9.66708 18.678 9.52333 18.5342C9.3796 18.3904 9.30773 18.2122 9.30773 17.9996C9.30773 17.787 9.3796 17.609 9.52333 17.4654C9.66708 17.3218 9.84521 17.25 10.0577 17.25H19.75C19.9625 17.25 20.1406 17.3219 20.2844 17.4657C20.4281 17.6095 20.5 17.7877 20.5 18.0003C20.5 18.2129 20.4281 18.391 20.2844 18.5346C20.1406 18.6782 19.9625 18.7499 19.75 18.7499H10.0577ZM10.0577 12.7499C9.84521 12.7499 9.66708 12.678 9.52333 12.5342C9.3796 12.3904 9.30773 12.2122 9.30773 11.9996C9.30773 11.787 9.3796 11.609 9.52333 11.4654C9.66708 11.3218 9.84521 11.25 10.0577 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2844 11.4657C20.4281 11.6095 20.5 11.7877 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2844 12.5346C20.1406 12.6782 19.9625 12.7499 19.75 12.7499H10.0577ZM10.0577 6.74995C9.84521 6.74995 9.66708 6.67805 9.52333 6.53425C9.3796 6.39043 9.30773 6.21223 9.30773 5.99965C9.30773 5.78705 9.3796 5.60896 9.52333 5.46537C9.66708 5.32179 9.84521 5.25 10.0577 5.25H19.75C19.9625 5.25 20.1406 5.3219 20.2844 5.4657C20.4281 5.60951 20.5 5.78771 20.5 6.0003C20.5 6.2129 20.4281 6.39099 20.2844 6.53457C20.1406 6.67816 19.9625 6.74995 19.75 6.74995H10.0577ZM5.16348 19.6634C4.70603 19.6634 4.31443 19.5005 3.98868 19.1748C3.66291 18.849 3.50003 18.4574 3.50003 18C3.50003 17.5425 3.66291 17.1509 3.98868 16.8252C4.31443 16.4994 4.70603 16.3365 5.16348 16.3365C5.62093 16.3365 6.01253 16.4994 6.33828 16.8252C6.66403 17.1509 6.82691 17.5425 6.82691 18C6.82691 18.4574 6.66403 18.849 6.33828 19.1748C6.01253 19.5005 5.62093 19.6634 5.16348 19.6634ZM5.16348 13.6634C4.70603 13.6634 4.31443 13.5005 3.98868 13.1748C3.66291 12.849 3.50003 12.4574 3.50003 12C3.50003 11.5425 3.66291 11.1509 3.98868 10.8252C4.31443 10.4994 4.70603 10.3365 5.16348 10.3365C5.62093 10.3365 6.01253 10.4994 6.33828 10.8252C6.66403 11.1509 6.82691 11.5425 6.82691 12C6.82691 12.4574 6.66403 12.849 6.33828 13.1748C6.01253 13.5005 5.62093 13.6634 5.16348 13.6634ZM5.16348 7.6634C4.70603 7.6634 4.31443 7.50052 3.98868 7.17477C3.66291 6.84902 3.50003 6.45742 3.50003 5.99997C3.50003 5.54252 3.66291 5.15092 3.98868 4.82517C4.31443 4.49942 4.70603 4.33655 5.16348 4.33655C5.62093 4.33655 6.01253 4.49942 6.33828 4.82517C6.66403 5.15092 6.82691 5.54252 6.82691 5.99997C6.82691 6.45742 6.66403 6.84902 6.33828 7.17477C6.01253 7.50052 5.62093 7.6634 5.16348 7.6634Z",fill:"currentColor"})})]}),v7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"stacks",children:[r.jsx("mask",{id:"mask0_8417_33308",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_8417_33308)",children:r.jsx("path",{id:"stacks_2",d:"M11.9998 13.1877C11.8717 13.1877 11.7477 13.1701 11.6278 13.135C11.5078 13.0996 11.3857 13.0531 11.2613 12.9955L3.38833 8.91472C3.2435 8.82755 3.13675 8.7218 3.06808 8.59747C2.99958 8.47297 2.96533 8.3383 2.96533 8.19347C2.96533 8.04864 2.99958 7.91405 3.06808 7.78972C3.13675 7.66539 3.2435 7.55964 3.38833 7.47247L11.2613 3.39172C11.3857 3.33389 11.5078 3.28739 11.6278 3.25222C11.7477 3.21689 11.8717 3.19922 11.9998 3.19922C12.128 3.19922 12.252 3.21689 12.3718 3.25222C12.4918 3.28739 12.614 3.33389 12.7383 3.39172L20.6306 7.47247C20.7754 7.55964 20.8822 7.66539 20.9508 7.78972C21.0193 7.91405 21.0536 8.04864 21.0536 8.19347C21.0536 8.3383 21.0193 8.47297 20.9508 8.59747C20.8822 8.7218 20.7754 8.82755 20.6306 8.91472L12.7383 12.9955C12.614 13.0531 12.4918 13.0996 12.3718 13.135C12.252 13.1701 12.128 13.1877 11.9998 13.1877ZM11.9998 12.2455L19.9211 8.19347L11.9998 4.14172L4.09783 8.19347L11.9998 12.2455ZM11.9998 16.0532L20.1576 11.855C20.2038 11.8255 20.3172 11.8223 20.4978 11.8455C20.6145 11.8711 20.7046 11.9253 20.7681 12.008C20.8316 12.0906 20.8633 12.1903 20.8633 12.307C20.8633 12.4006 20.8441 12.484 20.8056 12.557C20.7671 12.6301 20.7011 12.6911 20.6076 12.7397L12.7383 16.8032C12.614 16.8609 12.4918 16.9073 12.3718 16.9425C12.252 16.9778 12.128 16.9955 11.9998 16.9955C11.8717 16.9955 11.7477 16.9778 11.6278 16.9425C11.5078 16.9073 11.3857 16.8609 11.2613 16.8032L3.41133 12.7397C3.31783 12.6911 3.24858 12.6301 3.20358 12.557C3.15875 12.484 3.13633 12.4006 3.13633 12.307C3.13633 12.1903 3.17125 12.0906 3.24108 12.008C3.31108 11.9253 3.40442 11.8711 3.52108 11.8455C3.57875 11.8198 3.63542 11.8066 3.69108 11.806C3.74692 11.8053 3.80367 11.8216 3.86133 11.855L11.9998 16.0532ZM11.9998 19.8607L20.1576 15.6627C20.2038 15.6332 20.3172 15.6301 20.4978 15.6532C20.6145 15.6789 20.7046 15.7331 20.7681 15.8157C20.8316 15.8984 20.8633 15.9981 20.8633 16.1147C20.8633 16.2082 20.8441 16.2916 20.8056 16.3647C20.7671 16.4377 20.7011 16.4986 20.6076 16.5475L12.7383 20.6107C12.614 20.6686 12.4918 20.7151 12.3718 20.7502C12.252 20.7856 12.128 20.8032 11.9998 20.8032C11.8717 20.8032 11.7477 20.7856 11.6278 20.7502C11.5078 20.7151 11.3857 20.6686 11.2613 20.6107L3.41133 16.5475C3.31783 16.4986 3.24858 16.4377 3.20358 16.3647C3.15875 16.2916 3.13633 16.2082 3.13633 16.1147C3.13633 15.9981 3.17125 15.8984 3.24108 15.8157C3.31108 15.7331 3.40442 15.6789 3.52108 15.6532C3.57875 15.6276 3.63542 15.6144 3.69108 15.6137C3.74692 15.6131 3.80367 15.6294 3.86133 15.6627L11.9998 19.8607Z",fill:"currentColor"})})]})}),_7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_9529_33",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"14",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_9529_33)",children:r.jsx("path",{d:"M4.05992 11.7788C3.80539 11.7788 3.5794 11.6954 3.38194 11.5287C3.18448 11.3621 3.06383 11.1515 3.01998 10.8971L2.19982 5.98194C2.17298 5.82084 2.21036 5.67725 2.31196 5.55115C2.41346 5.42515 2.54811 5.36215 2.71592 5.36215H11.2842C11.452 5.36215 11.5867 5.42515 11.6882 5.55115C11.7898 5.67725 11.8271 5.82084 11.8003 5.98194L10.9801 10.8971C10.9363 11.1515 10.8156 11.3621 10.6182 11.5287C10.4207 11.6954 10.1947 11.7788 9.94021 11.7788H4.05992ZM5.8334 8.42465H8.16673C8.29069 8.42465 8.39457 8.3827 8.47838 8.2988C8.56228 8.21489 8.60423 8.11096 8.60423 7.987C8.60423 7.86295 8.56228 7.75907 8.47838 7.67536C8.39457 7.59155 8.29069 7.54965 8.16673 7.54965H5.8334C5.70944 7.54965 5.60556 7.5916 5.52175 7.6755C5.43785 7.75941 5.3959 7.86334 5.3959 7.9873C5.3959 8.11135 5.43785 8.21528 5.52175 8.29909C5.60556 8.38279 5.70944 8.42465 5.8334 8.42465ZM3.50007 4.66667C3.37611 4.66667 3.27223 4.62472 3.18842 4.54082C3.10452 4.45691 3.06257 4.35298 3.06257 4.22902C3.06257 4.10497 3.10452 4.00109 3.18842 3.91738C3.27223 3.83357 3.37611 3.79167 3.50007 3.79167H10.5001C10.624 3.79167 10.7279 3.83362 10.8117 3.91752C10.8956 4.00143 10.9376 4.10536 10.9376 4.22932C10.9376 4.35337 10.8956 4.45725 10.8117 4.54096C10.7279 4.62477 10.624 4.66667 10.5001 4.66667H3.50007ZM4.66673 3.09619C4.54277 3.09619 4.43889 3.05424 4.35509 2.97034C4.27118 2.88643 4.22923 2.7825 4.22923 2.65855C4.22923 2.53449 4.27118 2.43061 4.35509 2.3469C4.43889 2.26309 4.54277 2.22119 4.66673 2.22119H9.3334C9.45736 2.22119 9.56124 2.26314 9.64505 2.34705C9.72895 2.43095 9.7709 2.53488 9.7709 2.65884C9.7709 2.78289 9.72895 2.88677 9.64505 2.97048C9.56124 3.05429 9.45736 3.09619 9.3334 3.09619H4.66673Z",fill:"currentColor"})})]}),k7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 50 40",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M39.6982 23.8981C38.314 33.2849 30.2251 40.4893 20.4536 40.4893C17.5648 40.4893 14.8231 39.8596 12.3582 38.7301L1.90313 41.3438C1.44763 41.4577 1.03503 41.0451 1.14891 40.5896L3.60474 30.7663C1.94817 27.904 1 24.5806 1 21.0357C1 10.2917 9.70969 1.58203 20.4536 1.58203C22.4575 1.58203 24.3907 1.88502 26.2097 2.44769C24.8111 4.62659 24 7.21857 24 10C24 12.0989 24.4619 14.0899 25.2895 15.877H13.2863C12.1553 15.877 11.2385 16.7938 11.2385 17.9247C11.2385 19.0556 12.1553 19.9725 13.2863 19.9725H27.6205C27.7906 19.9725 27.9557 19.9517 28.1137 19.9127C30.6462 22.4384 34.1407 24 38 24C38.5748 24 39.1415 23.9654 39.6982 23.8981ZM13.2863 24.0664C12.1553 24.0664 11.2385 24.9832 11.2385 26.1142C11.2385 27.2451 12.1553 28.1619 13.2863 28.1619H21.4773C22.6082 28.1619 23.525 27.2451 23.525 26.1142C23.525 24.9832 22.6082 24.0664 21.4773 24.0664H13.2863Z",fill:"currentColor"}),r.jsx("circle",{cx:"38",cy:"10",r:"10",fill:"currentColor"}),r.jsx("path",{d:"M34 9.5L37 12.5L42.5 7",stroke:"#23252F","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"})]}),y7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 14 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_7541_22378",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"14",height:"15",children:r.jsx("rect",{y:"0.25",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_7541_22378)",children:r.jsx("path",{d:"M7.46552 7.25L3.91958 3.8184C3.87622 3.77503 3.84409 3.72778 3.82319 3.67665C3.80219 3.6256 3.79169 3.57281 3.79169 3.51827V3.28319C3.79169 3.1674 3.83092 3.07042 3.90937 2.99225C3.98793 2.91408 4.0852 2.875 4.20119 2.875H9.59133C9.76274 2.875 9.90842 2.93503 10.0284 3.0551C10.1484 3.17527 10.2084 3.3211 10.2084 3.4926C10.2084 3.6642 10.1484 3.81076 10.0284 3.93229C9.90842 4.05382 9.76274 4.11458 9.59133 4.11458H5.79748L8.61542 6.872C8.72304 6.97593 8.77685 7.10154 8.77685 7.24883C8.77685 7.39622 8.72304 7.52261 8.61542 7.628L5.79748 10.3911H9.59133C9.76274 10.3911 9.90842 10.4511 10.0284 10.5712C10.1484 10.6913 10.2084 10.8371 10.2084 11.0087C10.2084 11.1802 10.1484 11.3258 10.0284 11.4455C9.90842 11.5652 9.76274 11.625 9.59133 11.625H4.08554C4.00455 11.625 3.93533 11.5963 3.87787 11.5388C3.82042 11.4814 3.79169 11.4121 3.79169 11.3311V10.932C3.79169 10.8899 3.79849 10.8512 3.8121 10.8158C3.82571 10.7803 3.84958 10.7464 3.88371 10.7141L7.46552 7.25Z",fill:"currentColor"})})]}),j7=e=>r.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 22 22",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("mask",{id:"mask0_5577_416",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"22",height:"22",children:r.jsx("rect",{width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_5577_416)",children:r.jsx("path",{d:"M11 17.6634C10.6219 17.6634 10.2982 17.5287 10.0289 17.2595C9.75964 16.9902 9.625 16.6665 9.625 16.2884C9.625 15.9103 9.75964 15.5866 10.0289 15.3173C10.2982 15.0481 10.6219 14.9134 11 14.9134C11.3781 14.9134 11.7018 15.0481 11.971 15.3173C12.2403 15.5866 12.375 15.9103 12.375 16.2884C12.375 16.6665 12.2403 16.9902 11.971 17.2595C11.7018 17.5287 11.3781 17.6634 11 17.6634ZM11 12.3749C10.6219 12.3749 10.2982 12.2403 10.0289 11.971C9.75964 11.7018 9.625 11.3781 9.625 11C9.625 10.6218 9.75964 10.2982 10.0289 10.0289C10.2982 9.75962 10.6219 9.62498 11 9.62498C11.3781 9.62498 11.7018 9.75962 11.971 10.0289C12.2403 10.2982 12.375 10.6218 12.375 11C12.375 11.3781 12.2403 11.7018 11.971 11.971C11.7018 12.2403 11.3781 12.3749 11 12.3749ZM11 7.08648C10.6219 7.08648 10.2982 6.95184 10.0289 6.68257C9.75964 6.41332 9.625 6.08963 9.625 5.7115C9.625 5.33339 9.75964 5.0097 10.0289 4.74043C10.2982 4.47118 10.6219 4.33655 11 4.33655C11.3781 4.33655 11.7018 4.47118 11.971 4.74043C12.2403 5.0097 12.375 5.33339 12.375 5.7115C12.375 6.08963 12.2403 6.41332 11.971 6.68257C11.7018 6.95184 11.3781 7.08648 11 7.08648Z",fill:"currentColor"})})]}),L7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Twitter",children:[r.jsx("mask",{id:"mask0_1506_167",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_167)",children:r.jsx("g",{id:"X",children:r.jsx("path",{id:"path1009",d:"M2.0317 2L7.05085 8.71109L2 14.1675H3.13674L7.55875 9.39033L11.1316 14.1675H15L9.69845 7.07891L14.3997 2H13.263L9.19054 6.39967L5.90008 2H2.0317ZM3.70336 2.83733H5.48051L13.3281 13.33H11.5509L3.70336 2.83733Z",fill:"currentColor"})})})]})}),H7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"Video",children:[r.jsx("mask",{id:"mask0_1506_153",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",height:"16",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1506_153)",children:r.jsx("path",{id:"Subtract","fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.3782 3.03719C15.0725 3.22309 15.6201 3.76987 15.8053 4.46427C16.1429 5.72367 16.1429 8.35001 16.1429 8.35001C16.1429 8.35001 16.1429 10.9773 15.8053 12.2358C15.6201 12.9302 15.0725 13.4769 14.3782 13.6628C13.1197 14 8.07143 14 8.07143 14C8.07143 14 3.02403 14 1.76471 13.6628C1.07038 13.4769 0.522808 12.9302 0.337533 12.2358C0 10.9764 0 8.35001 0 8.35001C0 8.35001 0 5.72367 0.337533 4.46427C0.522808 3.76987 1.07038 3.22309 1.76471 3.03719C3.02312 2.70001 8.07143 2.70001 8.07143 2.70001C8.07143 2.70001 13.1197 2.70001 14.3782 3.03719ZM10.4931 8.35003L6.45735 5.9286V10.7715L10.4931 8.35003Z",fill:"currentColor"})})]})}),M7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M14.0716 15L10.8994 11.7764C10.437 11.9597 9.96181 12.0919 9.47381 12.1732C8.98581 12.2545 8.49002 12.2952 7.98643 12.2952C6.33597 12.2952 4.82448 11.8457 3.45194 10.9466C2.07941 10.0476 0.991584 8.86271 0.188459 7.39193C0.123124 7.27666 0.0753836 7.15933 0.045238 7.03994C0.0150793 6.92055 0 6.7991 0 6.67559C0 6.55208 0.0163338 6.42935 0.0490013 6.30739C0.0816688 6.18543 0.13067 6.06938 0.196005 5.95925C0.508607 5.42714 0.84081 4.91226 1.19261 4.41462C1.54443 3.91699 1.95353 3.47673 2.41992 3.09386L0.24877 0.846015L1.07501 0L14.8978 14.154L14.0716 15ZM7.98643 9.94854C8.16032 9.94854 8.32642 9.93799 8.48473 9.91689C8.64305 9.89579 8.7976 9.84973 8.94838 9.77871L4.95591 5.69059C4.89158 5.84498 4.84786 6.00324 4.82475 6.16535C4.80162 6.32745 4.79005 6.49753 4.79005 6.67559C4.79005 7.58645 5.10039 8.35966 5.72108 8.99521C6.34176 9.63076 7.09688 9.94854 7.98643 9.94854ZM13.4384 10.3561L10.9792 7.85816C11.0456 7.66673 11.0961 7.47375 11.1308 7.27922C11.1655 7.0847 11.1828 6.88349 11.1828 6.67559C11.1828 5.76473 10.8725 4.99152 10.2518 4.35597C9.63109 3.72042 8.87598 3.40264 7.98643 3.40264C7.78339 3.40264 7.58689 3.42168 7.39692 3.45976C7.20694 3.49784 7.02099 3.56011 6.83907 3.64657L4.87751 1.64575C5.37606 1.44402 5.88441 1.29529 6.40257 1.19957C6.92071 1.10385 7.44867 1.05599 7.98643 1.05599C9.64191 1.05599 11.1604 1.50756 12.542 2.41072C13.9236 3.31387 15.0134 4.50598 15.8115 5.98705C15.8718 6.08894 15.9183 6.19829 15.951 6.31511C15.9837 6.43192 16 6.55208 16 6.67559C16 6.7991 15.9857 6.91926 15.957 7.03607C15.9284 7.15289 15.8839 7.26225 15.8236 7.36414C15.52 7.94669 15.1738 8.49038 14.7848 8.99521C14.3958 9.50005 13.947 9.95369 13.4384 10.3561ZM10.0912 6.95657L7.73162 4.54816C8.06131 4.48126 8.38246 4.50545 8.69506 4.62072C9.00767 4.736 9.27754 4.9156 9.5047 5.15952C9.7369 5.40036 9.90451 5.67723 10.0075 5.99012C10.1106 6.30301 10.1385 6.62516 10.0912 6.95657Z",fill:"currentColor"})}),V7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 18 13",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M9.00204 9.98073C9.94628 9.98073 10.7483 9.65024 11.408 8.98927C12.0677 8.32829 12.3976 7.52567 12.3976 6.58142C12.3976 5.63718 12.0671 4.8352 11.4061 4.17548C10.7451 3.51576 9.9425 3.1859 8.99825 3.1859C8.05401 3.1859 7.25203 3.51638 6.59231 4.17735C5.93259 4.83834 5.60273 5.64096 5.60273 6.58521C5.60273 7.52944 5.93321 8.33142 6.59419 8.99115C7.25517 9.65087 8.05779 9.98073 9.00204 9.98073ZM9.00014 8.83331C8.37514 8.83331 7.84389 8.61456 7.40639 8.17706C6.96889 7.73956 6.75014 7.20831 6.75014 6.58331C6.75014 5.95831 6.96889 5.42706 7.40639 4.98956C7.84389 4.55206 8.37514 4.33331 9.00014 4.33331C9.62514 4.33331 10.1564 4.55206 10.5939 4.98956C11.0314 5.42706 11.2501 5.95831 11.2501 6.58331C11.2501 7.20831 11.0314 7.73956 10.5939 8.17706C10.1564 8.61456 9.62514 8.83331 9.00014 8.83331ZM9.00129 12.4166C7.08494 12.4166 5.33884 11.888 3.76298 10.8309C2.18713 9.77374 1.02688 8.35788 0.282227 6.58331C1.02688 4.80874 2.18675 3.39288 3.76185 2.33573C5.33694 1.27858 7.08265 0.75 8.999 0.75C10.9153 0.75 12.6614 1.27858 14.2373 2.33573C15.8132 3.39288 16.9734 4.80874 17.7181 6.58331C16.9734 8.35788 15.8135 9.77374 14.2384 10.8309C12.6634 11.888 10.9176 12.4166 9.00129 12.4166Z",fill:"currentColor"})}),b7=e=>r.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:r.jsxs("g",{id:"volume_up",children:[r.jsx("mask",{id:"mask0_1483_75386",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"24",height:"24",children:r.jsx("rect",{id:"Bounding box",width:"1em",height:"1em",fill:"currentColor"})}),r.jsx("g",{mask:"url(#mask0_1483_75386)",children:r.jsx("path",{id:"volume_up_2",d:"M14.0384 20.1095V18.5595C15.4807 18.1005 16.6425 17.2672 17.5239 16.0595C18.4053 14.8518 18.8461 13.4903 18.8461 11.9749C18.8461 10.4595 18.4053 9.09799 17.5239 7.89031C16.6425 6.68261 15.4807 5.84927 14.0384 5.39031V3.84033C15.8999 4.33905 17.4165 5.33841 18.5883 6.83841C19.7601 8.33839 20.346 10.0506 20.346 11.9749C20.346 13.8993 19.7601 15.6114 18.5883 17.1114C17.4165 18.6114 15.8999 19.6108 14.0384 20.1095ZM3.65381 14.4999V9.49993H7.36531L11.6537 5.21153V18.7883L7.36531 14.4999H3.65381ZM14.0384 15.6537V8.29608C14.7127 8.66275 15.2339 9.17909 15.6018 9.84511C15.9698 10.5111 16.1537 11.2294 16.1537 11.9999C16.1537 12.7602 15.9682 13.4675 15.597 14.122C15.2259 14.7765 14.7063 15.2871 14.0384 15.6537Z",fill:"currentColor"})})]})}),B7={AddCircleIcon:P6,AddContentIcon:B6,AddLinkIcon:T6,AddSourceIcon:N6,AiPauseIcon:R6,AiPlayIcon:U6,AiSummaryIcon:O6,AndroidIcon:$6,ArrowBackIcon:A6,ArrowForwardIcon:z6,ArrowRight:F6,AudioIcon:D6,BitcoinIcon:q6,BoostIcon:G6,BrowseGalleryIcon:W6,BubbleChartIcon:z5,BudgetIcon:S6,BuildIcon:X6,CalendarIcon:Y6,CameraCenterIcon:f3,CancelIcon:K6,CheckIcon:Q6,CheckedIcon:J6,ChevronDownIcon:e9,ChevronLeftIcon:t9,ChevronRightIcon:n9,ChevronUpIcon:r9,ChipIcon:i9,ClearIcon:C2,CloseIcon:s9,ColorPickerIcon:o9,CommunitiesIcon:F5,CompassIcon:l9,ConstructionIcon:C9,ContentIcon:a9,CopyIcon:c9,CorporationIcon:h9,CreateEdgeIcon:u9,DefaultShowIcon:d9,DeleteIcon:f9,DeleteNodeIcon:p9,DesignServicesIcon:x9,DocumentIcon:g9,DownloadIcon:m9,EditIcon:w9,EditNodeIcon:v9,EditTopicIcon:_9,EpisodeIcon:k9,EventIcon:y9,ExitFullScreen:j9,ExploreIcon:L9,FamilyHistoryIcon:H9,FeedbackIcon:M9,FilterOffIcon:V9,FingerprintIcon:b9,FlipIcon:Z9,FortIcon:E9,FullScreenIcon:S9,FunctionIcon:I9,GlobeIcon:P9,GrainIcon:D5,HandymanIcon:B9,HardwareIcon:T9,HashTag:N9,HashtagIcon:R9,HelpIcon:U9,HomeIcon:O9,InfoIcon:L3,JoystickIcon:$9,LinkIcon:A9,MenuIcon:z9,MergeIcon:F9,MoneyIcon:D9,MuteVolumeIcon:q9,NodeCircleIcon:G9,NodesIcon:I6,NotesIcon:W9,OrganizationIcon:X9,PauseIcon:x3,PersonAdd:Y9,PersonIcon:K9,PhoneIcon:Q9,PlaceIcon:J9,PlayIcon:g3,PlusIcon:e7,PropertyHide:t7,PropertyShow:n7,PublicIcon:q5,QrCodeIcon:r7,ReloadIcon:i7,RobotIcon:s7,SaveIcon:o7,ScheduleIcon:l7,SchoolIcon:C7,SearchFilterCloseIcon:a7,SearchFilterIcon:c7,SearchIcon:h7,SensorsIcon:u7,SentimentDataIcon:d7,SettingsIcon:f7,ShieldPersonIcon:p7,SortFilterIcon:x7,SoundIcon:g7,SourcesIcon:m7,SourcesTableIcon:w7,StackIcon:v7,StorageIcon:_7,SucessFeedBackIcon:k7,SumFunctionIcon:y7,ThreeDotsIcons:j7,TwitterIcon:L7,VideoIcon:H7,VisibilityOff:M7,VisibilityOn:V7,VolumeIcon:b7};export{A9 as $,V6 as A,S6 as B,F5 as C,g9 as D,L9 as E,M9 as F,Q2 as G,U9 as H,B7 as I,M3 as J,J2 as K,D1 as L,q9 as M,I6 as N,I7 as O,E7 as P,t3 as Q,s7 as R,w7 as S,d6 as T,q1 as U,b7 as V,E5 as W,F3 as X,h7 as Y,v7 as Z,G6 as _,P7 as a,P9 as a0,R9 as a1,m7 as a2,r9 as a3,e9 as a4,O6 as a5,R6 as a6,U6 as a7,A6 as a8,Q6 as a9,x7 as aA,_9 as aB,v9 as aC,p9 as aD,z0 as aE,D2 as aF,P2 as aG,n2 as aH,i6 as aI,H9 as aJ,u9 as aK,k7 as aL,V3 as aM,R5 as aN,n5 as aO,g7 as aP,z5 as aQ,W6 as aa,m9 as ab,i7 as ac,d7 as ad,N9 as ae,a7 as af,c7 as ag,W9 as ah,c9 as ai,l7 as aj,S9 as ak,j9 as al,t9 as am,n9 as an,a9 as ao,V9 as ap,T3 as aq,f9 as ar,G9 as as,Z9 as at,F6 as au,n7 as av,t7 as aw,j7 as ax,V7 as ay,M7 as az,g6 as b,m6 as c,x3 as d,g3 as e,e3 as f,e7 as g,j1 as h,z9 as i,N6 as j,B6 as k,f7 as l,z6 as m,d3 as n,S7 as o,F9 as p,P6 as q,C9 as r,w9 as s,A5 as t,C6 as u,s9 as v,H3 as w,s1 as x,n3 as y,B1 as z}; diff --git a/build/assets/index-d9032019.js b/build/assets/index-30313f81.js similarity index 99% rename from build/assets/index-d9032019.js rename to build/assets/index-30313f81.js index 7f18b730f..e54577fcf 100644 --- a/build/assets/index-d9032019.js +++ b/build/assets/index-30313f81.js @@ -1,4 +1,4 @@ -import{r as u,j as f,bZ as kt,b_ as Rt,a2 as xo,a0 as Ot,x as a,L as ye,M as $e,O as w,Y as L,S as Pe,H as ae,U as ne,V as Ie,P as Re,Z as lo,X as Uo,b$ as Lt,c0 as wt,$ as st,c1 as it,bw as ct,bx as dt,aj as Xe,c2 as To,a3 as Mt,am as Ft,s as Tt,a as je,F as At}from"./index-8f1177e3.js";import{T as Nt}from"./index-26468b48.js";import{a as Ao,u as fo,b as so,f as io,i as ut,c as zt,P as No,F as Dt,S as Et}from"./Stack-55a7903f.js";import{Q as Ho,f as pt,aq as ft,aM as Bt,x as Fo,P as jt,aN as Wt,U as Vo}from"./index-9e906cde.js";import{c as zo}from"./createSvgIcon-9333dda0.js";import{T as _t}from"./TextareaAutosize-ba1f6749.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function wo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Qt(e){const{unstable_isActiveElementInListbox:o=Yt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Zt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Q,onClose:G,onHighlightChange:se,onInputChange:J,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Y=u.useRef(null),be=u.useRef(null),[Me,Z]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ze?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Y.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Y.current.value=_;else{const ge=ee(j[pe]);Y.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Y.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ye=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{Ot(be,l),l&&Ye()});u.useEffect(()=>{Ye()},[Ye]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Q&&Q(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=wo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Y.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),J&&J(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Y.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),J&&J(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Y.current.focus(),we&&We.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:Lo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Z,focusedTag:H,groupedOptions:ao}}function Jt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Jt,o)},tn=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return Ie(p,an,o)},dn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Q=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Q),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let J=null;R&&(J=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Q},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Q,children:$}),J]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Lt,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${L(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${L($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Q,placeholder:G,readOnly:se,renderSuffix:J,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,hn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Y=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Z=so(),H=io({props:s,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Z?Z.focused:be,u.useEffect(()=>{!Z&&$&&be&&(Me(!1),q&&q())},[Z,$,be,q]);const ze=Z&&Z.onFilled,_e=Z&&Z.onEmpty,te=u.useCallback(z=>{ut(z)?ze&&ze():_e&&_e()},[ze,_e]);st(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Z&&Z.onFocus?Z.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Z&&Z.onBlur?Z.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(it(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{Z&&Z.setAdornedStart(!!ie)},[Z,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Z,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Ze=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Ze,a({},De,!Ho(Ze)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(zt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Q,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Y,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,J?J(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Je=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),Le=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Zo;const Ln=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],wn=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${L(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${L(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Je.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Je.root}.${Oe.sizeSmall}`]:{[`& .${Je.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=w(pt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=w(pt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=w(ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=w(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Q=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:J,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Y="Open",PaperComponent:be=ft,PopperComponent:Me=No,popupIcon:Z=Zo||(Zo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,Ln),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ze,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ye,inputValue:Po,groupedOptions:Ne}=Qt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Q||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,wn),ko=lo(mo,eo),ro=J||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),Lo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return Lo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ye,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Ze(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Y,title:y?k:Y,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Z})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Q&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,we,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Yo,Qo,Jo,et;const Qe=44,Gn=ct(Yo||(Yo=So` +import{r as u,j as f,bZ as kt,b_ as Rt,a2 as xo,a0 as Ot,x as a,L as ye,M as $e,O as w,Y as L,S as Pe,H as ae,U as ne,V as Ie,P as Re,Z as lo,X as Uo,b$ as Lt,c0 as wt,$ as st,c1 as it,bw as ct,bx as dt,aj as Xe,c2 as To,a3 as Mt,am as Ft,s as Tt,a as je,F as At}from"./index-04f9e7e6.js";import{T as Nt}from"./index-782ff866.js";import{a as Ao,u as fo,b as so,f as io,i as ut,c as zt,P as No,F as Dt,S as Et}from"./Stack-9bdcdce4.js";import{Q as Ho,f as pt,aq as ft,aM as Bt,x as Fo,P as jt,aN as Wt,U as Vo}from"./index-292d93f3.js";import{c as zo}from"./createSvgIcon-a3d1c07a.js";import{T as _t}from"./TextareaAutosize-6a1de228.js";const Ut=e=>{const o=u.useRef({});return u.useEffect(()=>{o.current=e}),o.current},Ht=Ut;function Vt(e){return e==null||Object.keys(e).length===0}function Kt(e){const{styles:o,defaultTheme:t={}}=e,r=typeof o=="function"?s=>o(Vt(s)?t:s):o;return f.jsx(kt,{styles:r})}function qt({styles:e,themeId:o,defaultTheme:t={}}){const r=Rt(t),s=typeof e=="function"?e(o&&r[o]||r):e;return f.jsx(Kt,{styles:s})}const Gt=zo(f.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");function Ko(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Xt(e={}){const{ignoreAccents:o=!0,ignoreCase:t=!0,limit:r,matchFrom:s="any",stringify:c,trim:d=!1}=e;return(i,{inputValue:b,getOptionLabel:p})=>{let m=d?b.trim():b;t&&(m=m.toLowerCase()),o&&(m=Ko(m));const h=m?i.filter($=>{let v=(c||p)($);return t&&(v=v.toLowerCase()),o&&(v=Ko(v)),s==="start"?v.indexOf(m)===0:v.indexOf(m)>-1}):i;return typeof r=="number"?h.slice(0,r):h}}function wo(e,o){for(let t=0;t{var o;return e.current!==null&&((o=e.current.parentElement)==null?void 0:o.contains(document.activeElement))};function Qt(e){const{unstable_isActiveElementInListbox:o=Yt,unstable_classNamePrefix:t="Mui",autoComplete:r=!1,autoHighlight:s=!1,autoSelect:c=!1,blurOnSelect:d=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:b=!1,componentName:p="useAutocomplete",defaultValue:m=e.multiple?[]:null,disableClearable:h=!1,disableCloseOnSelect:$=!1,disabled:v,disabledItemsFocusable:R=!1,disableListWrap:M=!1,filterOptions:P=Zt,filterSelectedOptions:O=!1,freeSolo:k=!1,getOptionDisabled:C,getOptionKey:I,getOptionLabel:E=l=>{var n;return(n=l.label)!=null?n:l},groupBy:N,handleHomeEndKeys:F=!e.freeSolo,id:q,includeInputInList:le=!1,inputValue:de,isOptionEqualToValue:oe=(l,n)=>l===n,multiple:T=!1,onChange:Q,onClose:G,onHighlightChange:se,onInputChange:J,onOpen:re,open:U,openOnFocus:A=!1,options:ie,readOnly:Se=!1,selectOnFocus:we=!e.freeSolo,value:ue}=e,W=Ao(q);let ee=E;ee=l=>{const n=E(l);return typeof n!="string"?String(n):n};const fe=u.useRef(!1),We=u.useRef(!0),Y=u.useRef(null),be=u.useRef(null),[Me,Z]=u.useState(null),[H,ze]=u.useState(-1),_e=s?0:-1,te=u.useRef(_e),[S,to]=fo({controlled:ue,default:m,name:p}),[_,xe]=fo({controlled:de,default:"",name:p,state:"inputValue"}),[Fe,ce]=u.useState(!1),Te=u.useCallback((l,n)=>{if(!(T?S.length!(O&&(T?S:[S]).some(n=>n!==null&&oe(l,n)))),{inputValue:Ee&&Ze?"":_,getOptionLabel:ee}):[],he=Ht({filteredOptions:j,value:S,inputValue:_});u.useEffect(()=>{const l=S!==he.value;Fe&&!l||k&&!l||Te(null,S)},[S,Te,Fe,he.value,k]);const Ke=me&&j.length>0&&!Se,qe=xo(l=>{l===-1?Y.current.focus():Me.querySelector(`[data-tag-index="${l}"]`).focus()});u.useEffect(()=>{T&&H>S.length-1&&(ze(-1),qe(-1))},[S,T,H,qe]);function y(l,n){if(!be.current||l<0||l>=j.length)return-1;let g=l;for(;;){const x=be.current.querySelector(`[data-option-index="${g}"]`),K=R?!1:!x||x.disabled||x.getAttribute("aria-disabled")==="true";if(x&&x.hasAttribute("tabindex")&&!K)return g;if(n==="next"?g=(g+1)%j.length:g=(g-1+j.length)%j.length,g===l)return-1}}const B=xo(({event:l,index:n,reason:g="auto"})=>{if(te.current=n,n===-1?Y.current.removeAttribute("aria-activedescendant"):Y.current.setAttribute("aria-activedescendant",`${W}-option-${n}`),se&&se(l,n===-1?null:j[n],g),!be.current)return;const x=be.current.querySelector(`[role="option"].${t}-focused`);x&&(x.classList.remove(`${t}-focused`),x.classList.remove(`${t}-focusVisible`));let K=be.current;if(be.current.getAttribute("role")!=="listbox"&&(K=be.current.parentElement.querySelector('[role="listbox"]')),!K)return;if(n===-1){K.scrollTop=0;return}const pe=be.current.querySelector(`[data-option-index="${n}"]`);if(pe&&(pe.classList.add(`${t}-focused`),g==="keyboard"&&pe.classList.add(`${t}-focusVisible`),K.scrollHeight>K.clientHeight&&g!=="mouse"&&g!=="touch")){const ge=pe,He=K.clientHeight+K.scrollTop,_o=ge.offsetTop+ge.offsetHeight;_o>He?K.scrollTop=_o-K.clientHeight:ge.offsetTop-ge.offsetHeight*(N?1.3:0){if(!z)return;const pe=y((()=>{const ge=j.length-1;if(n==="reset")return _e;if(n==="start")return 0;if(n==="end")return ge;const He=te.current+n;return He<0?He===-1&&le?-1:M&&te.current!==-1||Math.abs(n)>1?0:ge:He>ge?He===ge+1&&le?-1:M||Math.abs(n)>1?ge:0:He})(),g);if(B({index:pe,reason:x,event:l}),r&&n!=="reset")if(pe===-1)Y.current.value=_;else{const ge=ee(j[pe]);Y.current.value=ge,ge.toLowerCase().indexOf(_.toLowerCase())===0&&_.length>0&&Y.current.setSelectionRange(_.length,ge.length)}}),ke=()=>{const l=(n,g)=>{const x=n?ee(n):"",K=g?ee(g):"";return x===K};if(te.current!==-1&&he.filteredOptions&&he.filteredOptions.length!==j.length&&he.inputValue===_&&(T?S.length===he.value.length&&he.value.every((n,g)=>ee(S[g])===ee(n)):l(he.value,S))){const n=he.filteredOptions[te.current];if(n&&j.some(x=>ee(x)===ee(n)))return!0}return!1},Ye=u.useCallback(()=>{if(!z||ke())return;const l=T?S[0]:S;if(j.length===0||l==null){X({diff:"reset"});return}if(be.current){if(l!=null){const n=j[te.current];if(T&&n&&wo(S,x=>oe(n,x))!==-1)return;const g=wo(j,x=>oe(x,l));g===-1?X({diff:"reset"}):B({index:g});return}if(te.current>=j.length-1){B({index:j.length-1});return}B({index:te.current})}},[j.length,T?!1:S,O,X,B,z,_,T]),Po=xo(l=>{Ot(be,l),l&&Ye()});u.useEffect(()=>{Ye()},[Ye]);const Ne=l=>{me||(Ae(!0),De(!0),re&&re(l))},Ge=(l,n)=>{me&&(Ae(!1),G&&G(l,n))},Ue=(l,n,g,x)=>{if(T){if(S.length===n.length&&S.every((K,pe)=>K===n[pe]))return}else if(S===n)return;Q&&Q(l,n,g,x),to(n)},no=u.useRef(!1),eo=(l,n,g="selectOption",x="options")=>{let K=g,pe=n;if(T){pe=Array.isArray(S)?S.slice():[];const ge=wo(pe,He=>oe(n,He));ge===-1?pe.push(n):x!=="freeSolo"&&(pe.splice(ge,1),K="removeOption")}Te(l,pe),Ue(l,pe,K,{option:n}),!$&&(!l||!l.ctrlKey&&!l.metaKey)&&Ge(l,K),(d===!0||d==="touch"&&no.current||d==="mouse"&&!no.current)&&Y.current.blur()};function go(l,n){if(l===-1)return-1;let g=l;for(;;){if(n==="next"&&g===S.length||n==="previous"&&g===-1)return-1;const x=Me.querySelector(`[data-tag-index="${g}"]`);if(!x||!x.hasAttribute("tabindex")||x.disabled||x.getAttribute("aria-disabled")==="true")g+=n==="next"?1:-1;else return g}}const mo=(l,n)=>{if(!T)return;_===""&&Ge(l,"toggleInput");let g=H;H===-1?_===""&&n==="previous"&&(g=S.length-1):(g+=n==="next"?1:-1,g<0&&(g=0),g===S.length&&(g=-1)),g=go(g,n),ze(g),qe(g)},ho=l=>{fe.current=!0,xe(""),J&&J(l,"","clear"),Ue(l,T?[]:null,"clear")},ko=l=>n=>{if(l.onKeyDown&&l.onKeyDown(n),!n.defaultMuiPrevented&&(H!==-1&&["ArrowLeft","ArrowRight"].indexOf(n.key)===-1&&(ze(-1),qe(-1)),n.which!==229))switch(n.key){case"Home":z&&F&&(n.preventDefault(),X({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":z&&F&&(n.preventDefault(),X({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),X({diff:-qo,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"PageDown":n.preventDefault(),X({diff:qo,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowDown":n.preventDefault(),X({diff:1,direction:"next",reason:"keyboard",event:n}),Ne(n);break;case"ArrowUp":n.preventDefault(),X({diff:-1,direction:"previous",reason:"keyboard",event:n}),Ne(n);break;case"ArrowLeft":mo(n,"previous");break;case"ArrowRight":mo(n,"next");break;case"Enter":if(te.current!==-1&&z){const g=j[te.current],x=C?C(g):!1;if(n.preventDefault(),x)return;eo(n,g,"selectOption"),r&&Y.current.setSelectionRange(Y.current.value.length,Y.current.value.length)}else k&&_!==""&&Ee===!1&&(T&&n.preventDefault(),eo(n,_,"createOption","freeSolo"));break;case"Escape":z?(n.preventDefault(),n.stopPropagation(),Ge(n,"escape")):b&&(_!==""||T&&S.length>0)&&(n.preventDefault(),n.stopPropagation(),ho(n));break;case"Backspace":if(T&&!Se&&_===""&&S.length>0){const g=H===-1?S.length-1:H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break;case"Delete":if(T&&!Se&&_===""&&S.length>0&&H!==-1){const g=H,x=S.slice();x.splice(g,1),Ue(n,x,"removeOption",{option:S[g]})}break}},jo=l=>{ce(!0),A&&!fe.current&&Ne(l)},ro=l=>{if(o(be)){Y.current.focus();return}ce(!1),We.current=!0,fe.current=!1,c&&te.current!==-1&&z?eo(l,j[te.current],"blur"):c&&k&&_!==""?eo(l,_,"blur","freeSolo"):i&&Te(l,S),Ge(l,"blur")},Ce=l=>{const n=l.target.value;_!==n&&(xe(n),De(!1),J&&J(l,n,"input")),n===""?!h&&!T&&Ue(l,null,"clear"):Ne(l)},ve=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));te.current!==n&&B({event:l,index:n,reason:"mouse"})},Be=l=>{B({event:l,index:Number(l.currentTarget.getAttribute("data-option-index")),reason:"touch"}),no.current=!0},Wo=l=>{const n=Number(l.currentTarget.getAttribute("data-option-index"));eo(l,j[n],"selectOption"),no.current=!1},Ro=l=>n=>{const g=S.slice();g.splice(l,1),Ue(n,g,"removeOption",{option:S[l]})},Oo=l=>{me?Ge(l,"toggleInput"):Ne(l)},Lo=l=>{l.currentTarget.contains(l.target)&&l.target.getAttribute("id")!==W&&l.preventDefault()},vo=l=>{l.currentTarget.contains(l.target)&&(Y.current.focus(),we&&We.current&&Y.current.selectionEnd-Y.current.selectionStart===0&&Y.current.select(),We.current=!1)},co=l=>{!v&&(_===""||!me)&&Oo(l)};let oo=k&&_.length>0;oo=oo||(T?S.length>0:S!==null);let ao=j;return N&&(ao=j.reduce((l,n,g)=>{const x=N(n);return l.length>0&&l[l.length-1].group===x?l[l.length-1].options.push(n):l.push({key:g,index:g,group:x,options:[n]}),l},[])),v&&Fe&&ro(),{getRootProps:(l={})=>a({"aria-owns":Ke?`${W}-listbox`:null},l,{onKeyDown:ko(l),onMouseDown:Lo,onClick:vo}),getInputLabelProps:()=>({id:`${W}-label`,htmlFor:W}),getInputProps:()=>({id:W,value:_,onBlur:ro,onFocus:jo,onChange:Ce,onMouseDown:co,"aria-activedescendant":z?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ke?`${W}-listbox`:void 0,"aria-expanded":Ke,autoComplete:"off",ref:Y,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:v}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ho}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Oo}),getTagProps:({index:l})=>a({key:l,"data-tag-index":l,tabIndex:-1},!Se&&{onDelete:Ro(l)}),getListboxProps:()=>({role:"listbox",id:`${W}-listbox`,"aria-labelledby":`${W}-label`,ref:Po,onMouseDown:l=>{l.preventDefault()}}),getOptionProps:({index:l,option:n})=>{var g;const x=(T?S:[S]).some(pe=>pe!=null&&oe(n,pe)),K=C?C(n):!1;return{key:(g=I==null?void 0:I(n))!=null?g:ee(n),tabIndex:-1,role:"option",id:`${W}-option-${l}`,onMouseMove:ve,onClick:Wo,onTouchStart:Be,"data-option-index":l,"aria-disabled":K,"aria-selected":x}},id:W,inputValue:_,value:S,dirty:oo,expanded:z&&Me,popupOpen:z,focused:Fe||H!==-1,anchorEl:Me,setAnchorEl:Z,focusedTag:H,groupedOptions:ao}}function Jt(e){return ye("MuiListSubheader",e)}$e("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const en=["className","color","component","disableGutters","disableSticky","inset"],on=e=>{const{classes:o,color:t,disableGutters:r,inset:s,disableSticky:c}=e,d={root:["root",t!=="default"&&`color${L(t)}`,!r&&"gutters",s&&"inset",!c&&"sticky"]};return Ie(d,Jt,o)},tn=w("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[o.root,t.color!=="default"&&o[`color${L(t.color)}`],!t.disableGutters&&o.gutters,t.inset&&o.inset,!t.disableSticky&&o.sticky]}})(({theme:e,ownerState:o})=>a({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},o.color==="primary"&&{color:(e.vars||e).palette.primary.main},o.color==="inherit"&&{color:"inherit"},!o.disableGutters&&{paddingLeft:16,paddingRight:16},o.inset&&{paddingLeft:72},!o.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bt=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiListSubheader"}),{className:s,color:c="default",component:d="li",disableGutters:i=!1,disableSticky:b=!1,inset:p=!1}=r,m=ae(r,en),h=a({},r,{color:c,component:d,disableGutters:i,disableSticky:b,inset:p}),$=on(h);return f.jsx(tn,a({as:d,className:ne($.root,s),ref:t,ownerState:h},m))});bt.muiSkipListHighlight=!0;const nn=bt,rn=zo(f.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function an(e){return ye("MuiChip",e)}const ln=$e("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),V=ln,sn=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],cn=e=>{const{classes:o,disabled:t,size:r,color:s,iconColor:c,onDelete:d,clickable:i,variant:b}=e,p={root:["root",b,t&&"disabled",`size${L(r)}`,`color${L(s)}`,i&&"clickable",i&&`clickableColor${L(s)}`,d&&"deletable",d&&`deletableColor${L(s)}`,`${b}${L(s)}`],label:["label",`label${L(r)}`],avatar:["avatar",`avatar${L(r)}`,`avatarColor${L(s)}`],icon:["icon",`icon${L(r)}`,`iconColor${L(c)}`],deleteIcon:["deleteIcon",`deleteIcon${L(r)}`,`deleteIconColor${L(s)}`,`deleteIcon${L(b)}Color${L(s)}`]};return Ie(p,an,o)},dn=w("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{color:r,iconColor:s,clickable:c,onDelete:d,size:i,variant:b}=t;return[{[`& .${V.avatar}`]:o.avatar},{[`& .${V.avatar}`]:o[`avatar${L(i)}`]},{[`& .${V.avatar}`]:o[`avatarColor${L(r)}`]},{[`& .${V.icon}`]:o.icon},{[`& .${V.icon}`]:o[`icon${L(i)}`]},{[`& .${V.icon}`]:o[`iconColor${L(s)}`]},{[`& .${V.deleteIcon}`]:o.deleteIcon},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(i)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIconColor${L(r)}`]},{[`& .${V.deleteIcon}`]:o[`deleteIcon${L(b)}Color${L(r)}`]},o.root,o[`size${L(i)}`],o[`color${L(r)}`],c&&o.clickable,c&&r!=="default"&&o[`clickableColor${L(r)})`],d&&o.deletable,d&&r!=="default"&&o[`deletableColor${L(r)}`],o[b],o[`${b}${L(r)}`]]}})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return a({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${V.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${V.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${V.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${V.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${V.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${V.icon}`]:a({marginLeft:5,marginRight:-6},o.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},o.iconColor===o.color&&a({color:e.vars?e.vars.palette.Chip.defaultIconColor:t},o.color!=="default"&&{color:"inherit"})),[`& .${V.deleteIcon}`]:a({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Re(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Re(e.palette.text.primary,.4)}},o.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},o.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[o.color].contrastTextChannel} / 0.7)`:Re(e.palette[o.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].contrastText}})},o.size==="small"&&{height:24},o.color!=="default"&&{backgroundColor:(e.vars||e).palette[o.color].main,color:(e.vars||e).palette[o.color].contrastText},o.onDelete&&{[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},o.onDelete&&o.color!=="default"&&{[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}})},({theme:e,ownerState:o})=>a({},o.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},o.clickable&&o.color!=="default"&&{[`&:hover, &.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette[o.color].dark}}),({theme:e,ownerState:o})=>a({},o.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${V.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${V.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${V.avatar}`]:{marginLeft:4},[`& .${V.avatarSmall}`]:{marginLeft:2},[`& .${V.icon}`]:{marginLeft:4},[`& .${V.iconSmall}`]:{marginLeft:2},[`& .${V.deleteIcon}`]:{marginRight:5},[`& .${V.deleteIconSmall}`]:{marginRight:3}},o.variant==="outlined"&&o.color!=="default"&&{color:(e.vars||e).palette[o.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7)}`,[`&.${V.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Re(e.palette[o.color].main,e.palette.action.hoverOpacity)},[`&.${V.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Re(e.palette[o.color].main,e.palette.action.focusOpacity)},[`& .${V.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[o.color].mainChannel} / 0.7)`:Re(e.palette[o.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[o.color].main}}})),un=w("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,o)=>{const{ownerState:t}=e,{size:r}=t;return[o.label,o[`label${L(r)}`]]}})(({ownerState:e})=>a({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function Go(e){return e.key==="Backspace"||e.key==="Delete"}const pn=u.forwardRef(function(o,t){const r=Pe({props:o,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:i="default",component:b,deleteIcon:p,disabled:m=!1,icon:h,label:$,onClick:v,onDelete:R,onKeyDown:M,onKeyUp:P,size:O="medium",variant:k="filled",tabIndex:C,skipFocusWhenDisabled:I=!1}=r,E=ae(r,sn),N=u.useRef(null),F=lo(N,t),q=A=>{A.stopPropagation(),R&&R(A)},le=A=>{A.currentTarget===A.target&&Go(A)&&A.preventDefault(),M&&M(A)},de=A=>{A.currentTarget===A.target&&(R&&Go(A)?R(A):A.key==="Escape"&&N.current&&N.current.blur()),P&&P(A)},oe=d!==!1&&v?!0:d,T=oe||R?Uo:b||"div",Q=a({},r,{component:T,disabled:m,size:O,color:i,iconColor:u.isValidElement(h)&&h.props.color||i,onDelete:!!R,clickable:oe,variant:k}),G=cn(Q),se=T===Uo?a({component:b||"div",focusVisibleClassName:G.focusVisible},R&&{disableRipple:!0}):{};let J=null;R&&(J=p&&u.isValidElement(p)?u.cloneElement(p,{className:ne(p.props.className,G.deleteIcon),onClick:q}):f.jsx(rn,{className:ne(G.deleteIcon),onClick:q}));let re=null;s&&u.isValidElement(s)&&(re=u.cloneElement(s,{className:ne(G.avatar,s.props.className)}));let U=null;return h&&u.isValidElement(h)&&(U=u.cloneElement(h,{className:ne(G.icon,h.props.className)})),f.jsxs(dn,a({as:T,className:ne(G.root,c),disabled:oe&&m?!0:void 0,onClick:v,onKeyDown:le,onKeyUp:de,ref:F,tabIndex:I&&m?-1:C,ownerState:Q},se,E,{children:[re||U,f.jsx(un,{className:ne(G.label),ownerState:Q,children:$}),J]}))}),fn=pn;function bn(e){return f.jsx(qt,a({},e,{defaultTheme:Lt,themeId:wt}))}function gn(e){return ye("MuiInputBase",e)}const mn=$e("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Oe=mn,hn=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Co=(e,o)=>{const{ownerState:t}=e;return[o.root,t.formControl&&o.formControl,t.startAdornment&&o.adornedStart,t.endAdornment&&o.adornedEnd,t.error&&o.error,t.size==="small"&&o.sizeSmall,t.multiline&&o.multiline,t.color&&o[`color${L(t.color)}`],t.fullWidth&&o.fullWidth,t.hiddenLabel&&o.hiddenLabel]},yo=(e,o)=>{const{ownerState:t}=e;return[o.input,t.size==="small"&&o.inputSizeSmall,t.multiline&&o.inputMultiline,t.type==="search"&&o.inputTypeSearch,t.startAdornment&&o.inputAdornedStart,t.endAdornment&&o.inputAdornedEnd,t.hiddenLabel&&o.inputHiddenLabel]},vn=e=>{const{classes:o,color:t,disabled:r,error:s,endAdornment:c,focused:d,formControl:i,fullWidth:b,hiddenLabel:p,multiline:m,readOnly:h,size:$,startAdornment:v,type:R}=e,M={root:["root",`color${L(t)}`,r&&"disabled",s&&"error",b&&"fullWidth",d&&"focused",i&&"formControl",$&&$!=="medium"&&`size${L($)}`,m&&"multiline",v&&"adornedStart",c&&"adornedEnd",p&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",R==="search"&&"inputTypeSearch",m&&"inputMultiline",$==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",v&&"inputAdornedStart",c&&"inputAdornedEnd",h&&"readOnly"]};return Ie(M,gn,o)},$o=w("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Co})(({theme:e,ownerState:o})=>a({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Oe.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},o.multiline&&a({padding:"4px 0 5px"},o.size==="small"&&{paddingTop:1}),o.fullWidth&&{width:"100%"})),Io=w("input",{name:"MuiInputBase",slot:"Input",overridesResolver:yo})(({theme:e,ownerState:o})=>{const t=e.palette.mode==="light",r=a({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),s={opacity:"0 !important"},c=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return a({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Oe.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&:-ms-input-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":c,"&:focus::-moz-placeholder":c,"&:focus:-ms-input-placeholder":c,"&:focus::-ms-input-placeholder":c},[`&.${Oe.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},o.size==="small"&&{paddingTop:1},o.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},o.type==="search"&&{MozAppearance:"textfield"})}),xn=f.jsx(bn,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Cn=u.forwardRef(function(o,t){var r;const s=Pe({props:o,name:"MuiInputBase"}),{"aria-describedby":c,autoComplete:d,autoFocus:i,className:b,components:p={},componentsProps:m={},defaultValue:h,disabled:$,disableInjectingGlobalStyles:v,endAdornment:R,fullWidth:M=!1,id:P,inputComponent:O="input",inputProps:k={},inputRef:C,maxRows:I,minRows:E,multiline:N=!1,name:F,onBlur:q,onChange:le,onClick:de,onFocus:oe,onKeyDown:T,onKeyUp:Q,placeholder:G,readOnly:se,renderSuffix:J,rows:re,slotProps:U={},slots:A={},startAdornment:ie,type:Se="text",value:we}=s,ue=ae(s,hn),W=k.value!=null?k.value:we,{current:ee}=u.useRef(W!=null),fe=u.useRef(),We=u.useCallback(z=>{},[]),Y=lo(fe,C,k.ref,We),[be,Me]=u.useState(!1),Z=so(),H=io({props:s,muiFormControl:Z,states:["color","disabled","error","hiddenLabel","size","required","filled"]});H.focused=Z?Z.focused:be,u.useEffect(()=>{!Z&&$&&be&&(Me(!1),q&&q())},[Z,$,be,q]);const ze=Z&&Z.onFilled,_e=Z&&Z.onEmpty,te=u.useCallback(z=>{ut(z)?ze&&ze():_e&&_e()},[ze,_e]);st(()=>{ee&&te({value:W})},[W,te,ee]);const S=z=>{if(H.disabled){z.stopPropagation();return}oe&&oe(z),k.onFocus&&k.onFocus(z),Z&&Z.onFocus?Z.onFocus(z):Me(!0)},to=z=>{q&&q(z),k.onBlur&&k.onBlur(z),Z&&Z.onBlur?Z.onBlur(z):Me(!1)},_=(z,...j)=>{if(!ee){const he=z.target||fe.current;if(he==null)throw new Error(it(1));te({value:he.value})}k.onChange&&k.onChange(z,...j),le&&le(z,...j)};u.useEffect(()=>{te(fe.current)},[]);const xe=z=>{fe.current&&z.currentTarget===z.target&&fe.current.focus(),de&&de(z)};let Fe=O,ce=k;N&&Fe==="input"&&(re?ce=a({type:void 0,minRows:re,maxRows:re},ce):ce=a({type:void 0,maxRows:I,minRows:E},ce),Fe=_t);const Te=z=>{te(z.animationName==="mui-auto-fill-cancel"?fe.current:{value:"x"})};u.useEffect(()=>{Z&&Z.setAdornedStart(!!ie)},[Z,ie]);const me=a({},s,{color:H.color||"primary",disabled:H.disabled,endAdornment:R,error:H.error,focused:H.focused,formControl:Z,fullWidth:M,hiddenLabel:H.hiddenLabel,multiline:N,size:H.size,startAdornment:ie,type:Se}),Ae=vn(me),Ze=A.root||p.Root||$o,De=U.root||m.root||{},Ee=A.input||p.Input||Io;return ce=a({},ce,(r=U.input)!=null?r:m.input),f.jsxs(u.Fragment,{children:[!v&&xn,f.jsxs(Ze,a({},De,!Ho(Ze)&&{ownerState:a({},me,De.ownerState)},{ref:t,onClick:xe},ue,{className:ne(Ae.root,De.className,b,se&&"MuiInputBase-readOnly"),children:[ie,f.jsx(zt.Provider,{value:null,children:f.jsx(Ee,a({ownerState:me,"aria-invalid":H.error,"aria-describedby":c,autoComplete:d,autoFocus:i,defaultValue:h,disabled:H.disabled,id:P,onAnimationStart:Te,name:F,placeholder:G,readOnly:se,required:H.required,rows:re,value:W,onKeyDown:T,onKeyUp:Q,type:Se},ce,!Ho(Ee)&&{as:Fe,ownerState:a({},me,ce.ownerState)},{ref:Y,className:ne(Ae.input,ce.className,se&&"MuiInputBase-readOnly"),onBlur:to,onChange:_,onFocus:S}))}),R,J?J(a({},H,{startAdornment:ie})):null]}))]})}),Do=Cn;function yn(e){return ye("MuiInput",e)}const $n=a({},Oe,$e("MuiInput",["root","underline","input"])),Je=$n;function In(e){return ye("MuiOutlinedInput",e)}const Sn=a({},Oe,$e("MuiOutlinedInput",["root","notchedOutline","input"])),Ve=Sn;function Pn(e){return ye("MuiFilledInput",e)}const kn=a({},Oe,$e("MuiFilledInput",["root","underline","input"])),Le=kn,gt=zo(f.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function Rn(e){return ye("MuiAutocomplete",e)}const On=$e("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),D=On;var Xo,Zo;const Ln=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],wn=["ref"],Mn=["key"],Fn=e=>{const{classes:o,disablePortal:t,expanded:r,focused:s,fullWidth:c,hasClearIcon:d,hasPopupIcon:i,inputFocused:b,popupOpen:p,size:m}=e,h={root:["root",r&&"expanded",s&&"focused",c&&"fullWidth",d&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",b&&"inputFocused"],tag:["tag",`tagSize${L(m)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",p&&"popupIndicatorOpen"],popper:["popper",t&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ie(h,Rn,o)},Tn=w("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,o)=>{const{ownerState:t}=e,{fullWidth:r,hasClearIcon:s,hasPopupIcon:c,inputFocused:d,size:i}=t;return[{[`& .${D.tag}`]:o.tag},{[`& .${D.tag}`]:o[`tagSize${L(i)}`]},{[`& .${D.inputRoot}`]:o.inputRoot},{[`& .${D.input}`]:o.input},{[`& .${D.input}`]:d&&o.inputFocused},o.root,r&&o.fullWidth,c&&o.hasPopupIcon,s&&o.hasClearIcon]}})(({ownerState:e})=>a({[`&.${D.focused} .${D.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${D.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${D.tag}`]:a({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${D.inputRoot}`]:{flexWrap:"wrap",[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4},[`& .${D.input}`]:{width:0,minWidth:30}},[`& .${Je.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Je.root}.${Oe.sizeSmall}`]:{[`& .${Je.input}`]:{padding:"2px 4px 3px 0"}},[`& .${Ve.root}`]:{padding:9,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${D.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Ve.root}.${Oe.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${D.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Le.root}`]:{paddingTop:19,paddingLeft:8,[`.${D.hasPopupIcon}&, .${D.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${D.hasPopupIcon}.${D.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${Le.input}`]:{padding:"7px 4px"},[`& .${D.endAdornment}`]:{right:9}},[`& .${Le.root}.${Oe.sizeSmall}`]:{paddingBottom:1,[`& .${Le.input}`]:{padding:"2.5px 4px"}},[`& .${Oe.hiddenLabel}`]:{paddingTop:8},[`& .${Le.root}.${Oe.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${D.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Le.root}.${Oe.hiddenLabel}.${Oe.sizeSmall}`]:{[`& .${D.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${D.input}`]:a({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),An=w("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,o)=>o.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),Nn=w(pt,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,o)=>o.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zn=w(pt,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},o)=>a({},o.popupIndicator,e.popupOpen&&o.popupIndicatorOpen)})(({ownerState:e})=>a({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),Dn=w(No,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,o)=>{const{ownerState:t}=e;return[{[`& .${D.option}`]:o.option},o.popper,t.disablePortal&&o.popperDisablePortal]}})(({theme:e,ownerState:o})=>a({zIndex:(e.vars||e).zIndex.modal},o.disablePortal&&{position:"absolute"})),En=w(ft,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,o)=>o.paper})(({theme:e})=>a({},e.typography.body1,{overflow:"auto"})),Bn=w("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,o)=>o.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),jn=w("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,o)=>o.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),Wn=w("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,o)=>o.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${D.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${D.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${D.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Re(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${D.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${D.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Re(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),_n=w(nn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,o)=>o.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),Un=w("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,o)=>o.groupUl})({padding:0,[`& .${D.option}`]:{paddingLeft:24}}),Hn=u.forwardRef(function(o,t){var r,s,c,d;const i=Pe({props:o,name:"MuiAutocomplete"}),{autoComplete:b=!1,autoHighlight:p=!1,autoSelect:m=!1,blurOnSelect:h=!1,ChipProps:$,className:v,clearIcon:R=Xo||(Xo=f.jsx(Gt,{fontSize:"small"})),clearOnBlur:M=!i.freeSolo,clearOnEscape:P=!1,clearText:O="Clear",closeText:k="Close",componentsProps:C={},defaultValue:I=i.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:N=!1,disabled:F=!1,disabledItemsFocusable:q=!1,disableListWrap:le=!1,disablePortal:de=!1,filterSelectedOptions:oe=!1,forcePopupIcon:T="auto",freeSolo:Q=!1,fullWidth:G=!1,getLimitTagsText:se=n=>`+${n}`,getOptionLabel:J,groupBy:re,handleHomeEndKeys:U=!i.freeSolo,includeInputInList:A=!1,limitTags:ie=-1,ListboxComponent:Se="ul",ListboxProps:we,loading:ue=!1,loadingText:W="Loading…",multiple:ee=!1,noOptionsText:fe="No options",openOnFocus:We=!1,openText:Y="Open",PaperComponent:be=ft,PopperComponent:Me=No,popupIcon:Z=Zo||(Zo=f.jsx(gt,{})),readOnly:H=!1,renderGroup:ze,renderInput:_e,renderOption:te,renderTags:S,selectOnFocus:to=!i.freeSolo,size:_="medium",slotProps:xe={}}=i,Fe=ae(i,Ln),{getRootProps:ce,getInputProps:Te,getInputLabelProps:me,getPopupIndicatorProps:Ae,getClearProps:Ze,getTagProps:De,getListboxProps:Ee,getOptionProps:z,value:j,dirty:he,expanded:Ke,id:qe,popupOpen:y,focused:B,focusedTag:X,anchorEl:ke,setAnchorEl:Ye,inputValue:Po,groupedOptions:Ne}=Qt(a({},i,{componentName:"Autocomplete"})),Ge=!E&&!F&&he&&!H,Ue=(!Q||T===!0)&&T!==!1,{onMouseDown:no}=Te(),{ref:eo}=we??{},go=Ee(),{ref:mo}=go,ho=ae(go,wn),ko=lo(mo,eo),ro=J||(n=>{var g;return(g=n.label)!=null?g:n}),Ce=a({},i,{disablePortal:de,expanded:Ke,focused:B,fullWidth:G,getOptionLabel:ro,hasClearIcon:Ge,hasPopupIcon:Ue,inputFocused:X===-1,popupOpen:y,size:_}),ve=Fn(Ce);let Be;if(ee&&j.length>0){const n=g=>a({className:ve.tag,disabled:F},De(g));S?Be=S(j,n,Ce):Be=j.map((g,x)=>f.jsx(fn,a({label:ro(g),size:_},n({index:x}),$)))}if(ie>-1&&Array.isArray(Be)){const n=Be.length-ie;!B&&n>0&&(Be=Be.splice(0,ie),Be.push(f.jsx("span",{className:ve.tag,children:se(n)},Be.length)))}const Ro=ze||(n=>f.jsxs("li",{children:[f.jsx(_n,{className:ve.groupLabel,ownerState:Ce,component:"div",children:n.group}),f.jsx(Un,{className:ve.groupUl,ownerState:Ce,children:n.children})]},n.key)),Lo=te||((n,g)=>{const{key:x}=n,K=ae(n,Mn);return f.jsx("li",a({},K,{children:ro(g)}),x)}),vo=(n,g)=>{const x=z({option:n,index:g});return Lo(a({},x,{className:ve.option}),n,{selected:x["aria-selected"],index:g,inputValue:Po},Ce)},co=(r=xe.clearIndicator)!=null?r:C.clearIndicator,oo=(s=xe.paper)!=null?s:C.paper,ao=(c=xe.popper)!=null?c:C.popper,l=(d=xe.popupIndicator)!=null?d:C.popupIndicator;return f.jsxs(u.Fragment,{children:[f.jsx(Tn,a({ref:t,className:ne(ve.root,v),ownerState:Ce},ce(Fe),{children:_e({id:qe,disabled:F,fullWidth:!0,size:_==="small"?"small":void 0,InputLabelProps:me(),InputProps:a({ref:Ye,className:ve.inputRoot,startAdornment:Be,onClick:n=>{n.target===n.currentTarget&&no(n)}},(Ge||Ue)&&{endAdornment:f.jsxs(An,{className:ve.endAdornment,ownerState:Ce,children:[Ge?f.jsx(Nn,a({},Ze(),{"aria-label":O,title:O,ownerState:Ce},co,{className:ne(ve.clearIndicator,co==null?void 0:co.className),children:R})):null,Ue?f.jsx(zn,a({},Ae(),{disabled:F,"aria-label":y?k:Y,title:y?k:Y,ownerState:Ce},l,{className:ne(ve.popupIndicator,l==null?void 0:l.className),children:Z})):null]})}),inputProps:a({className:ve.input,disabled:F,readOnly:H},Te())})})),ke?f.jsx(Dn,a({as:Me,disablePortal:de,style:{width:ke?ke.clientWidth:null},ownerState:Ce,role:"presentation",anchorEl:ke,open:y},ao,{className:ne(ve.popper,ao==null?void 0:ao.className),children:f.jsxs(En,a({ownerState:Ce,as:be},oo,{className:ne(ve.paper,oo==null?void 0:oo.className),children:[ue&&Ne.length===0?f.jsx(Bn,{className:ve.loading,ownerState:Ce,children:W}):null,Ne.length===0&&!Q&&!ue?f.jsx(jn,{className:ve.noOptions,ownerState:Ce,role:"presentation",onMouseDown:n=>{n.preventDefault()},children:fe}):null,Ne.length>0?f.jsx(Wn,a({as:Se,className:ve.listbox,ownerState:Ce},ho,we,{ref:ko,children:Ne.map((n,g)=>re?Ro({key:n.key,group:n.group,children:n.options.map((x,K)=>vo(x,n.index+K))}):vo(n,g))})):null]}))})):null]})}),Vn=Hn;function Kn(e){return ye("MuiCircularProgress",e)}$e("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const qn=["className","color","disableShrink","size","style","thickness","value","variant"];let So=e=>e,Yo,Qo,Jo,et;const Qe=44,Gn=ct(Yo||(Yo=So` 0% { transform: rotate(0deg); } diff --git a/build/assets/index-0b5a2f2c.js b/build/assets/index-3d9e69a5.js similarity index 96% rename from build/assets/index-0b5a2f2c.js rename to build/assets/index-3d9e69a5.js index ea80c59d9..5ffd73b46 100644 --- a/build/assets/index-0b5a2f2c.js +++ b/build/assets/index-3d9e69a5.js @@ -1,4 +1,4 @@ -import{e as a,o as B,n as M,u as T,k as z,q as G,b as L,a7 as N,j as e,T as t,s as c,a as n,F as l}from"./index-8f1177e3.js";import{i as O,j as D,k as E,S as R,C as U,l as W,F as Y}from"./index-9e906cde.js";const K=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=B(),{resetAiSummaryAnswer:j,setNewLoading:m}=M(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` +import{e as a,o as B,n as M,u as T,k as z,q as G,b as L,a7 as N,j as e,T as t,s as c,a as n,F as l}from"./index-04f9e7e6.js";import{i as O,j as D,k as E,S as R,C as U,l as W,F as Y}from"./index-292d93f3.js";const K=()=>{const{open:r}=a("sourcesTable"),{open:p}=a("addItem"),{open:u}=a("addContent"),{open:h}=a("settings"),{open:x}=a("blueprintGraph"),{open:b}=a("feedback"),g=B(),{resetAiSummaryAnswer:j,setNewLoading:m}=M(),{abortFetchData:k,resetGraph:f}=T(o=>o),{setUniverseQuestionIsOpen:y,setSidebarOpen:w,setShowCollapseButton:S}=z(o=>o),{customSchemaFeatureFlag:C,userFeedbackFeatureFlag:F,chatInterfaceFeatureFlag:I}=G(o=>o),{isAdmin:d}=L(o=>o),v=N(),A=()=>{m(null),k(),j(),f(),g("/")},$=()=>{y(),w(!0),S(!0)};return e.jsxs(q,{children:[e.jsx(Q,{onClick:A,children:e.jsx("img",{alt:"Second brain",src:"logo.svg"})}),I?e.jsxs(i,{onClick:$,children:[e.jsx(s,{children:e.jsx(O,{})}),e.jsx(t,{children:"New Chat"})]}):null,d?e.jsxs(i,{"data-testid":"add-item-modal",onClick:p,children:[e.jsx(s,{children:e.jsx(D,{})}),e.jsx(t,{children:"Add Item"})]}):null,e.jsxs(i,{"data-testid":"add-content-modal",onClick:u,children:[e.jsx(s,{children:e.jsx(E,{})}),e.jsx(t,{children:"Add Content"})]}),e.jsxs(i,{id:"cy-open-soure-table",onClick:r,children:[e.jsx(s,{children:e.jsx(R,{})}),e.jsx(t,{children:"Source Table"})]}),C&&d?e.jsxs(i,{"data-testid":"add-blueprint-modal",id:"cy-open-soure-table",onClick:x,children:[e.jsx(s,{children:e.jsx(U,{})}),e.jsx(t,{children:"Blueprint"})]}):null,e.jsxs(i,{"data-testid":"settings-modal",onClick:h,children:[e.jsx(s,{children:e.jsx(W,{})}),e.jsx(t,{children:"Settings"})]}),F&&v?e.jsxs(X,{"data-testid":"feedback-modal",onClick:b,children:[e.jsx(s,{children:e.jsx(Y,{})}),e.jsx(t,{children:"Send Feedback"})]}):null]})},q=c(l).attrs({align:"flex-start",direction:"column",justify:"flex-start"})` flex: 0 0 64px; z-index: 31; transition: opacity 1s; diff --git a/build/assets/index-dbb72407.js b/build/assets/index-50fe1111.js similarity index 99% rename from build/assets/index-dbb72407.js rename to build/assets/index-50fe1111.js index b09d2cc36..841b07922 100644 --- a/build/assets/index-dbb72407.js +++ b/build/assets/index-50fe1111.js @@ -1,4 +1,4 @@ -import{r as y,L as _o,M as jo,O as Wt,x as oe,S as Oo,a3 as Ei,H as Po,j as p,U as To,bz as En,bA as gr,V as $o,Y as bt,P as Zr,ak as Ci,al as Si,s as O,a as j,t as br,bd as _i,bc as xr,T as _e,F as $,aV as hn,aW as gn,ba as ji,B as Cn,bB as Oi,bC as Hn,v as Ao,bD as Pi,C as mr,bE as Ti,J as c,k as vr,ad as Jr,bF as $i,an as Ai,bG as Qr,bH as Mo,bb as ko,e as Ro,bI as Mi,N as gt,z as ar,d as yr,af as ki,y as ea,aY as Ri}from"./index-8f1177e3.js";import{A as Dt}from"./index-d9032019.js";import{C as Ie}from"./ClipLoader-5d1618f3.js";import{I as or,f as Bi,ar as Fi,g as Bo,aE as ta,aF as na,aG as ra,aH as aa,aI as Ni,aJ as Ii,aK as Di}from"./index-9e906cde.js";import{S as Hi,j as zi,p as Li,q as Gi,r as Wi,m as Ui,F as Vi}from"./isPlainObject-2fea37bb.js";import{P as E}from"./index-8fe66f52.js";import{T as Yi,a as Xi}from"./Tabs-daec6b20.js";import{p as ir,c as Ki,g as qi}from"./index-efc984a3.js";import{e as Zi}from"./Stack-55a7903f.js";import{h as Ji,m as Qi,u as me,a as Sn,t as sr,T as Fo,f as No,g as es,o as ts,H as ns,j as oa,C as rs,l as as,k as os}from"./index-ca6739d4.js";import{R as is,x as ss,y as ls,V as G,z as qe,A as Ze,Q as ia,I as ln,O as cn,J as sa,e as de,K as cs,r as us,C as ps}from"./three.module-ba6167ce.js";import"./index-26468b48.js";import"./createSvgIcon-9333dda0.js";import"./TextareaAutosize-ba1f6749.js";import"./Typography-429e0f96.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function ys({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ws({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Ss=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Cs(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>oe({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),ys,ws,Es,vs);function _s(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,fs,e)},Os=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Zi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,ms),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=oe({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=oe({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=js(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Ss,oe({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Q=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${Q.thumb}`]:{width:16,height:16},[`& .${Q.switchBase}`]:{padding:4,[`&.${Q.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(Hi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Q.input}`]:e.input},n.color!=="default"&&e[`color${bt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Q.checked}`]:{transform:"translateX(20px)"},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Q.checked} + .${Q.track}`]:{opacity:.5},[`&.${Q.disabled} + .${Q.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Q.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>oe({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Q.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${Q.checked} + .${Q.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),Rs=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Bs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Fs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Jt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Qt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Qt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Qt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):J(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function J(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Jt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:Qi([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await xr()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` +import{r as y,L as _o,M as jo,O as Wt,x as oe,S as Oo,a3 as Ei,H as Po,j as p,U as To,bz as En,bA as gr,V as $o,Y as bt,P as Zr,ak as Ci,al as Si,s as O,a as j,t as br,bd as _i,bc as xr,T as _e,F as $,aV as hn,aW as gn,ba as ji,B as Cn,bB as Oi,bC as Hn,v as Ao,bD as Pi,C as mr,bE as Ti,J as c,k as vr,ad as Jr,bF as $i,an as Ai,bG as Qr,bH as Mo,bb as ko,e as Ro,bI as Mi,N as gt,z as ar,d as yr,af as ki,y as ea,aY as Ri}from"./index-04f9e7e6.js";import{A as Dt}from"./index-30313f81.js";import{C as Ie}from"./ClipLoader-c5e3f404.js";import{I as or,f as Bi,ar as Fi,g as Bo,aE as ta,aF as na,aG as ra,aH as aa,aI as Ni,aJ as Ii,aK as Di}from"./index-292d93f3.js";import{S as Hi,j as zi,p as Li,q as Gi,r as Wi,m as Ui,F as Vi}from"./isPlainObject-0689f20b.js";import{P as E}from"./index-0f3ae51e.js";import{T as Yi,a as Xi}from"./Tabs-bdc00dfa.js";import{p as ir,c as Ki,g as qi}from"./index-efc984a3.js";import{e as Zi}from"./Stack-9bdcdce4.js";import{h as Ji,m as Qi,u as me,a as Sn,t as sr,T as Fo,f as No,g as es,o as ts,H as ns,j as oa,C as rs,l as as,k as os}from"./index-dfd22792.js";import{R as is,x as ss,y as ls,V as G,z as qe,A as Ze,Q as ia,I as ln,O as cn,J as sa,e as de,K as cs,r as us,C as ps}from"./three.module-ba6167ce.js";import"./index-782ff866.js";import"./createSvgIcon-a3d1c07a.js";import"./TextareaAutosize-6a1de228.js";import"./Typography-1878e488.js";const ds=y.createContext(),la=ds;function fs(t){return _o("MuiGrid",t)}const hs=[0,1,2,3,4,5,6,7,8,9,10],gs=["column-reverse","column","row-reverse","row"],bs=["nowrap","wrap-reverse","wrap"],Mt=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],xs=jo("MuiGrid",["root","container","item","zeroMinWidth",...hs.map(t=>`spacing-xs-${t}`),...gs.map(t=>`direction-xs-${t}`),...bs.map(t=>`wrap-xs-${t}`),...Mt.map(t=>`grid-xs-${t}`),...Mt.map(t=>`grid-sm-${t}`),...Mt.map(t=>`grid-md-${t}`),...Mt.map(t=>`grid-lg-${t}`),...Mt.map(t=>`grid-xl-${t}`)]),zt=xs,ms=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function xt(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function vs({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((r,a)=>{let o={};if(e[a]&&(n=e[a]),!n)return r;if(n===!0)o={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=En({values:e.columns,breakpoints:t.breakpoints.values}),i=typeof s=="object"?s[a]:s;if(i==null)return r;const l=`${Math.round(n/i*1e8)/1e6}%`;let u={};if(e.container&&e.item&&e.columnSpacing!==0){const d=t.spacing(e.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${xt(d)})`;u={flexBasis:f,maxWidth:f}}}o=oe({flexBasis:l,flexGrow:0,maxWidth:l},u)}return t.breakpoints.values[a]===0?Object.assign(r,o):r[t.breakpoints.up(a)]=o,r},{})}function ys({theme:t,ownerState:e}){const n=En({values:e.direction,breakpoints:t.breakpoints.values});return gr({theme:t},n,r=>{const a={flexDirection:r};return r.indexOf("column")===0&&(a[`& > .${zt.item}`]={maxWidth:"none"}),a})}function Io({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(a=>{n===""&&e[a]!==0&&(n=a)});const r=Object.keys(t).sort((a,o)=>t[a]-t[o]);return r.slice(0,r.indexOf(n))}function ws({theme:t,ownerState:e}){const{container:n,rowSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{marginTop:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingTop:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${zt.item}`]:{paddingTop:0}}})}return a}function Es({theme:t,ownerState:e}){const{container:n,columnSpacing:r}=e;let a={};if(n&&r!==0){const o=En({values:r,breakpoints:t.breakpoints.values});let s;typeof o=="object"&&(s=Io({breakpoints:t.breakpoints.values,values:o})),a=gr({theme:t},o,(i,l)=>{var u;const d=t.spacing(i);return d!=="0px"?{width:`calc(100% + ${xt(d)})`,marginLeft:`-${xt(d)}`,[`& > .${zt.item}`]:{paddingLeft:xt(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${zt.item}`]:{paddingLeft:0}}})}return a}function Cs(t,e,n={}){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[n[`spacing-xs-${String(t)}`]];const r=[];return e.forEach(a=>{const o=t[a];Number(o)>0&&r.push(n[`spacing-${a}-${String(o)}`])}),r}const Ss=Wt("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:r,direction:a,item:o,spacing:s,wrap:i,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=Cs(s,u,e));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(e[`grid-${h}-${String(g)}`])}),[e.root,r&&e.container,o&&e.item,l&&e.zeroMinWidth,...d,a!=="row"&&e[`direction-xs-${String(a)}`],i!=="wrap"&&e[`wrap-xs-${String(i)}`],...f]}})(({ownerState:t})=>oe({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},t.wrap!=="wrap"&&{flexWrap:t.wrap}),ys,ws,Es,vs);function _s(t,e){if(!t||t<=0)return[];if(typeof t=="string"&&!Number.isNaN(Number(t))||typeof t=="number")return[`spacing-xs-${String(t)}`];const n=[];return e.forEach(r=>{const a=t[r];if(Number(a)>0){const o=`spacing-${r}-${String(a)}`;n.push(o)}}),n}const js=t=>{const{classes:e,container:n,direction:r,item:a,spacing:o,wrap:s,zeroMinWidth:i,breakpoints:l}=t;let u=[];n&&(u=_s(o,l));const d=[];l.forEach(h=>{const g=t[h];g&&d.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",a&&"item",i&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return $o(f,fs,e)},Os=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiGrid"}),{breakpoints:a}=Ei(),o=Zi(r),{className:s,columns:i,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:x=0,wrap:m="wrap",zeroMinWidth:v=!1}=o,w=Po(o,ms),_=g||x,B=l||x,P=y.useContext(la),T=d?i||12:P,M={},L=oe({},w);a.keys.forEach(S=>{w[S]!=null&&(M[S]=w[S],delete L[S])});const H=oe({},o,{columns:T,container:d,direction:f,item:h,rowSpacing:_,columnSpacing:B,wrap:m,zeroMinWidth:v,spacing:x},M,{breakpoints:a.keys}),V=js(H);return p.jsx(la.Provider,{value:T,children:p.jsx(Ss,oe({ownerState:H,className:To(V.root,s),as:u,ref:n},L))})}),je=Os;function Ps(t){return _o("MuiSwitch",t)}const Ts=jo("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Q=Ts,$s=["className","color","edge","size","sx"],As=t=>{const{classes:e,edge:n,size:r,color:a,checked:o,disabled:s}=t,i={root:["root",n&&`edge${bt(n)}`,`size${bt(r)}`],switchBase:["switchBase",`color${bt(a)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=$o(i,Ps,e);return oe({},e,l)},Ms=Wt("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e[`edge${bt(n.edge)}`],e[`size${bt(n.size)}`]]}})(({ownerState:t})=>oe({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},t.edge==="start"&&{marginLeft:-8},t.edge==="end"&&{marginRight:-8},t.size==="small"&&{width:40,height:24,padding:7,[`& .${Q.thumb}`]:{width:16,height:16},[`& .${Q.switchBase}`]:{padding:4,[`&.${Q.checked}`]:{transform:"translateX(16px)"}}})),ks=Wt(Hi,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{[`& .${Q.input}`]:e.input},n.color!=="default"&&e[`color${bt(n.color)}`]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:`${t.palette.mode==="light"?t.palette.common.white:t.palette.grey[300]}`,transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),[`&.${Q.checked}`]:{transform:"translateX(20px)"},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:`${t.palette.mode==="light"?t.palette.grey[100]:t.palette.grey[600]}`},[`&.${Q.checked} + .${Q.track}`]:{opacity:.5},[`&.${Q.disabled} + .${Q.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:`${t.palette.mode==="light"?.12:.2}`},[`& .${Q.input}`]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>oe({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},e.color!=="default"&&{[`&.${Q.checked}`]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Zr(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Q.disabled}`]:{color:t.vars?t.vars.palette.Switch[`${e.color}DisabledColor`]:`${t.palette.mode==="light"?Ci(t.palette[e.color].main,.62):Si(t.palette[e.color].main,.55)}`}},[`&.${Q.checked} + .${Q.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),Rs=Wt("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:`${t.palette.mode==="light"?t.palette.common.black:t.palette.common.white}`,opacity:t.vars?t.vars.opacity.switchTrack:`${t.palette.mode==="light"?.38:.3}`})),Bs=Wt("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Fs=y.forwardRef(function(e,n){const r=Oo({props:e,name:"MuiSwitch"}),{className:a,color:o="primary",edge:s=!1,size:i="medium",sx:l}=r,u=Po(r,$s),d=oe({},r,{color:o,edge:s,size:i}),f=As(d),h=p.jsx(Bs,{className:f.thumb,ownerState:d});return p.jsxs(Ms,{className:To(f.root,a),sx:l,ownerState:d,children:[p.jsx(ks,oe({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:d},u,{classes:oe({},f,{root:f.switchBase})})),p.jsx(Rs,{className:f.track,ownerState:d})]})}),Do=Fs;var Ns=Object.defineProperty,Is=(t,e,n)=>e in t?Ns(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e,n)=>(Is(t,typeof e!="symbol"?e+"":e,n),n);const un=new is,ca=new ss,Ds=Math.cos(70*(Math.PI/180)),ua=(t,e)=>(t%e+e)%e;let Hs=class extends ls{constructor(e,n){super(),R(this,"object"),R(this,"domElement"),R(this,"enabled",!0),R(this,"target",new G),R(this,"minDistance",0),R(this,"maxDistance",1/0),R(this,"minZoom",0),R(this,"maxZoom",1/0),R(this,"minPolarAngle",0),R(this,"maxPolarAngle",Math.PI),R(this,"minAzimuthAngle",-1/0),R(this,"maxAzimuthAngle",1/0),R(this,"enableDamping",!1),R(this,"dampingFactor",.05),R(this,"enableZoom",!0),R(this,"zoomSpeed",1),R(this,"enableRotate",!0),R(this,"rotateSpeed",1),R(this,"enablePan",!0),R(this,"panSpeed",1),R(this,"screenSpacePanning",!0),R(this,"keyPanSpeed",7),R(this,"zoomToCursor",!1),R(this,"autoRotate",!1),R(this,"autoRotateSpeed",2),R(this,"reverseOrbit",!1),R(this,"reverseHorizontalOrbit",!1),R(this,"reverseVerticalOrbit",!1),R(this,"keys",{LEFT:"ArrowLeft",UP:"ArrowUp",RIGHT:"ArrowRight",BOTTOM:"ArrowDown"}),R(this,"mouseButtons",{LEFT:qe.ROTATE,MIDDLE:qe.DOLLY,RIGHT:qe.PAN}),R(this,"touches",{ONE:Ze.ROTATE,TWO:Ze.DOLLY_PAN}),R(this,"target0"),R(this,"position0"),R(this,"zoom0"),R(this,"_domElementKeyEvents",null),R(this,"getPolarAngle"),R(this,"getAzimuthalAngle"),R(this,"setPolarAngle"),R(this,"setAzimuthalAngle"),R(this,"getDistance"),R(this,"listenToKeyEvents"),R(this,"stopListenToKeyEvents"),R(this,"saveState"),R(this,"reset"),R(this,"update"),R(this,"connect"),R(this,"dispose"),this.object=e,this.domElement=n,this.target0=this.target.clone(),this.position0=this.object.position.clone(),this.zoom0=this.object.zoom,this.getPolarAngle=()=>d.phi,this.getAzimuthalAngle=()=>d.theta,this.setPolarAngle=b=>{let C=ua(b,2*Math.PI),F=d.phi;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-U{let C=ua(b,2*Math.PI),F=d.theta;F<0&&(F+=2*Math.PI),C<0&&(C+=2*Math.PI);let U=Math.abs(C-F);2*Math.PI-Ur.object.position.distanceTo(r.target),this.listenToKeyEvents=b=>{b.addEventListener("keydown",jt),this._domElementKeyEvents=b},this.stopListenToKeyEvents=()=>{this._domElementKeyEvents.removeEventListener("keydown",jt),this._domElementKeyEvents=null},this.saveState=()=>{r.target0.copy(r.target),r.position0.copy(r.object.position),r.zoom0=r.object.zoom},this.reset=()=>{r.target.copy(r.target0),r.object.position.copy(r.position0),r.object.zoom=r.zoom0,r.object.updateProjectionMatrix(),r.dispatchEvent(a),r.update(),l=i.NONE},this.update=(()=>{const b=new G,C=new G(0,1,0),F=new ia().setFromUnitVectors(e.up,C),U=F.clone().invert(),Z=new G,we=new ia,Me=2*Math.PI;return function(){const qr=r.object.position;F.setFromUnitVectors(e.up,C),U.copy(F).invert(),b.copy(qr).sub(r.target),b.applyQuaternion(F),d.setFromVector3(b),r.autoRotate&&l===i.NONE&&K(X()),r.enableDamping?(d.theta+=f.theta*r.dampingFactor,d.phi+=f.phi*r.dampingFactor):(d.theta+=f.theta,d.phi+=f.phi);let Ee=r.minAzimuthAngle,Ce=r.maxAzimuthAngle;isFinite(Ee)&&isFinite(Ce)&&(Ee<-Math.PI?Ee+=Me:Ee>Math.PI&&(Ee-=Me),Ce<-Math.PI?Ce+=Me:Ce>Math.PI&&(Ce-=Me),Ee<=Ce?d.theta=Math.max(Ee,Math.min(Ce,d.theta)):d.theta=d.theta>(Ee+Ce)/2?Math.max(Ee,d.theta):Math.min(Ce,d.theta)),d.phi=Math.max(r.minPolarAngle,Math.min(r.maxPolarAngle,d.phi)),d.makeSafe(),r.enableDamping===!0?r.target.addScaledVector(g,r.dampingFactor):r.target.add(g),r.zoomToCursor&&V||r.object.isOrthographicCamera?d.radius=Fe(d.radius):d.radius=Fe(d.radius*h),b.setFromSpherical(d),b.applyQuaternion(U),qr.copy(r.target).add(b),r.object.matrixAutoUpdate||r.object.updateMatrix(),r.object.lookAt(r.target),r.enableDamping===!0?(f.theta*=1-r.dampingFactor,f.phi*=1-r.dampingFactor,g.multiplyScalar(1-r.dampingFactor)):(f.set(0,0,0),g.set(0,0,0));let on=!1;if(r.zoomToCursor&&V){let $t=null;if(r.object instanceof ln&&r.object.isPerspectiveCamera){const At=b.length();$t=Fe(At*h);const sn=At-$t;r.object.position.addScaledVector(L,sn),r.object.updateMatrixWorld()}else if(r.object.isOrthographicCamera){const At=new G(H.x,H.y,0);At.unproject(r.object),r.object.zoom=Math.max(r.minZoom,Math.min(r.maxZoom,r.object.zoom/h)),r.object.updateProjectionMatrix(),on=!0;const sn=new G(H.x,H.y,0);sn.unproject(r.object),r.object.position.sub(sn).add(At),r.object.updateMatrixWorld(),$t=b.length()}else console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."),r.zoomToCursor=!1;$t!==null&&(r.screenSpacePanning?r.target.set(0,0,-1).transformDirection(r.object.matrix).multiplyScalar($t).add(r.object.position):(un.origin.copy(r.object.position),un.direction.set(0,0,-1).transformDirection(r.object.matrix),Math.abs(r.object.up.dot(un.direction))u||8*(1-we.dot(r.object.quaternion))>u?(r.dispatchEvent(a),Z.copy(r.object.position),we.copy(r.object.quaternion),on=!1,!0):!1}})(),this.connect=b=>{b===document&&console.error('THREE.OrbitControls: "document" should not be used as the target "domElement". Please use "renderer.domElement" instead.'),r.domElement=b,r.domElement.style.touchAction="none",r.domElement.addEventListener("contextmenu",Ot),r.domElement.addEventListener("pointerdown",Xe),r.domElement.addEventListener("pointercancel",z),r.domElement.addEventListener("wheel",le)},this.dispose=()=>{var b,C,F,U,Z,we;(b=r.domElement)==null||b.removeEventListener("contextmenu",Ot),(C=r.domElement)==null||C.removeEventListener("pointerdown",Xe),(F=r.domElement)==null||F.removeEventListener("pointercancel",z),(U=r.domElement)==null||U.removeEventListener("wheel",le),(Z=r.domElement)==null||Z.ownerDocument.removeEventListener("pointermove",Ke),(we=r.domElement)==null||we.ownerDocument.removeEventListener("pointerup",k),r._domElementKeyEvents!==null&&r._domElementKeyEvents.removeEventListener("keydown",jt)};const r=this,a={type:"change"},o={type:"start"},s={type:"end"},i={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_PAN:4,TOUCH_DOLLY_PAN:5,TOUCH_DOLLY_ROTATE:6};let l=i.NONE;const u=1e-6,d=new sa,f=new sa;let h=1;const g=new G,x=new de,m=new de,v=new de,w=new de,_=new de,B=new de,P=new de,T=new de,M=new de,L=new G,H=new de;let V=!1;const S=[],D={};function X(){return 2*Math.PI/60/60*r.autoRotateSpeed}function I(){return Math.pow(.95,r.zoomSpeed)}function K(b){r.reverseOrbit||r.reverseHorizontalOrbit?f.theta+=b:f.theta-=b}function re(b){r.reverseOrbit||r.reverseVerticalOrbit?f.phi+=b:f.phi-=b}const xe=(()=>{const b=new G;return function(F,U){b.setFromMatrixColumn(U,0),b.multiplyScalar(-F),g.add(b)}})(),Te=(()=>{const b=new G;return function(F,U){r.screenSpacePanning===!0?b.setFromMatrixColumn(U,1):(b.setFromMatrixColumn(U,0),b.crossVectors(r.object.up,b)),b.multiplyScalar(F),g.add(b)}})(),pe=(()=>{const b=new G;return function(F,U){const Z=r.domElement;if(Z&&r.object instanceof ln&&r.object.isPerspectiveCamera){const we=r.object.position;b.copy(we).sub(r.target);let Me=b.length();Me*=Math.tan(r.object.fov/2*Math.PI/180),xe(2*F*Me/Z.clientHeight,r.object.matrix),Te(2*U*Me/Z.clientHeight,r.object.matrix)}else Z&&r.object instanceof cn&&r.object.isOrthographicCamera?(xe(F*(r.object.right-r.object.left)/r.object.zoom/Z.clientWidth,r.object.matrix),Te(U*(r.object.top-r.object.bottom)/r.object.zoom/Z.clientHeight,r.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),r.enablePan=!1)}})();function Et(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h/=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function Ue(b){r.object instanceof ln&&r.object.isPerspectiveCamera||r.object instanceof cn&&r.object.isOrthographicCamera?h*=b:(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),r.enableZoom=!1)}function $e(b){if(!r.zoomToCursor||!r.domElement)return;V=!0;const C=r.domElement.getBoundingClientRect(),F=b.clientX-C.left,U=b.clientY-C.top,Z=C.width,we=C.height;H.x=F/Z*2-1,H.y=-(U/we)*2+1,L.set(H.x,H.y,1).unproject(r.object).sub(r.object.position).normalize()}function Fe(b){return Math.max(r.minDistance,Math.min(r.maxDistance,b))}function ye(b){x.set(b.clientX,b.clientY)}function Ct(b){$e(b),P.set(b.clientX,b.clientY)}function St(b){w.set(b.clientX,b.clientY)}function kn(b){m.set(b.clientX,b.clientY),v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m),r.update()}function Jt(b){T.set(b.clientX,b.clientY),M.subVectors(T,P),M.y>0?Et(I()):M.y<0&&Ue(I()),P.copy(T),r.update()}function Rn(b){_.set(b.clientX,b.clientY),B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_),r.update()}function ee(b){$e(b),b.deltaY<0?Ue(I()):b.deltaY>0&&Et(I()),r.update()}function Bn(b){let C=!1;switch(b.code){case r.keys.UP:pe(0,r.keyPanSpeed),C=!0;break;case r.keys.BOTTOM:pe(0,-r.keyPanSpeed),C=!0;break;case r.keys.LEFT:pe(r.keyPanSpeed,0),C=!0;break;case r.keys.RIGHT:pe(-r.keyPanSpeed,0),C=!0;break}C&&(b.preventDefault(),r.update())}function Ve(){if(S.length==1)x.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);x.set(b,C)}}function Ae(){if(S.length==1)w.set(S[0].pageX,S[0].pageY);else{const b=.5*(S[0].pageX+S[1].pageX),C=.5*(S[0].pageY+S[1].pageY);w.set(b,C)}}function Qt(){const b=S[0].pageX-S[1].pageX,C=S[0].pageY-S[1].pageY,F=Math.sqrt(b*b+C*C);P.set(0,F)}function Fn(){r.enableZoom&&Qt(),r.enablePan&&Ae()}function Nn(){r.enableZoom&&Qt(),r.enableRotate&&Ve()}function _t(b){if(S.length==1)m.set(b.pageX,b.pageY);else{const F=Dn(b),U=.5*(b.pageX+F.x),Z=.5*(b.pageY+F.y);m.set(U,Z)}v.subVectors(m,x).multiplyScalar(r.rotateSpeed);const C=r.domElement;C&&(K(2*Math.PI*v.x/C.clientHeight),re(2*Math.PI*v.y/C.clientHeight)),x.copy(m)}function en(b){if(S.length==1)_.set(b.pageX,b.pageY);else{const C=Dn(b),F=.5*(b.pageX+C.x),U=.5*(b.pageY+C.y);_.set(F,U)}B.subVectors(_,w).multiplyScalar(r.panSpeed),pe(B.x,B.y),w.copy(_)}function tn(b){const C=Dn(b),F=b.pageX-C.x,U=b.pageY-C.y,Z=Math.sqrt(F*F+U*U);T.set(0,Z),M.set(0,Math.pow(T.y/P.y,r.zoomSpeed)),Et(M.y),P.copy(T)}function Ye(b){r.enableZoom&&tn(b),r.enablePan&&en(b)}function In(b){r.enableZoom&&tn(b),r.enableRotate&&_t(b)}function Xe(b){var C,F;r.enabled!==!1&&(S.length===0&&((C=r.domElement)==null||C.ownerDocument.addEventListener("pointermove",Ke),(F=r.domElement)==null||F.ownerDocument.addEventListener("pointerup",k)),an(b),b.pointerType==="touch"?nn(b):J(b))}function Ke(b){r.enabled!==!1&&(b.pointerType==="touch"?rn(b):se(b))}function k(b){var C,F,U;Pt(b),S.length===0&&((C=r.domElement)==null||C.releasePointerCapture(b.pointerId),(F=r.domElement)==null||F.ownerDocument.removeEventListener("pointermove",Ke),(U=r.domElement)==null||U.ownerDocument.removeEventListener("pointerup",k)),r.dispatchEvent(s),l=i.NONE}function z(b){Pt(b)}function J(b){let C;switch(b.button){case 0:C=r.mouseButtons.LEFT;break;case 1:C=r.mouseButtons.MIDDLE;break;case 2:C=r.mouseButtons.RIGHT;break;default:C=-1}switch(C){case qe.DOLLY:if(r.enableZoom===!1)return;Ct(b),l=i.DOLLY;break;case qe.ROTATE:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enablePan===!1)return;St(b),l=i.PAN}else{if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}break;case qe.PAN:if(b.ctrlKey||b.metaKey||b.shiftKey){if(r.enableRotate===!1)return;ye(b),l=i.ROTATE}else{if(r.enablePan===!1)return;St(b),l=i.PAN}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function se(b){if(r.enabled!==!1)switch(l){case i.ROTATE:if(r.enableRotate===!1)return;kn(b);break;case i.DOLLY:if(r.enableZoom===!1)return;Jt(b);break;case i.PAN:if(r.enablePan===!1)return;Rn(b);break}}function le(b){r.enabled===!1||r.enableZoom===!1||l!==i.NONE&&l!==i.ROTATE||(b.preventDefault(),r.dispatchEvent(o),ee(b),r.dispatchEvent(s))}function jt(b){r.enabled===!1||r.enablePan===!1||Bn(b)}function nn(b){switch(Tt(b),S.length){case 1:switch(r.touches.ONE){case Ze.ROTATE:if(r.enableRotate===!1)return;Ve(),l=i.TOUCH_ROTATE;break;case Ze.PAN:if(r.enablePan===!1)return;Ae(),l=i.TOUCH_PAN;break;default:l=i.NONE}break;case 2:switch(r.touches.TWO){case Ze.DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Fn(),l=i.TOUCH_DOLLY_PAN;break;case Ze.DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;Nn(),l=i.TOUCH_DOLLY_ROTATE;break;default:l=i.NONE}break;default:l=i.NONE}l!==i.NONE&&r.dispatchEvent(o)}function rn(b){switch(Tt(b),l){case i.TOUCH_ROTATE:if(r.enableRotate===!1)return;_t(b),r.update();break;case i.TOUCH_PAN:if(r.enablePan===!1)return;en(b),r.update();break;case i.TOUCH_DOLLY_PAN:if(r.enableZoom===!1&&r.enablePan===!1)return;Ye(b),r.update();break;case i.TOUCH_DOLLY_ROTATE:if(r.enableZoom===!1&&r.enableRotate===!1)return;In(b),r.update();break;default:l=i.NONE}}function Ot(b){r.enabled!==!1&&b.preventDefault()}function an(b){S.push(b)}function Pt(b){delete D[b.pointerId];for(let C=0;Cnew cs(void 0,void 0,void 0)),u=y.useCallback((f,h,g,x=20)=>(f instanceof G?l.v0.copy(f):l.v0.set(...f),h instanceof G?l.v2.copy(h):l.v2.set(...h),g instanceof G?l.v1.copy(g):l.v1.copy(l.v0.clone().add(l.v2.clone().sub(l.v0)).add(zs.set(0,l.v0.y-l.v2.y,0))),l.getPoints(x)),[]);y.useLayoutEffect(()=>{i.current.setPoints=(f,h,g)=>{const x=u(f,h,g);i.current.geometry&&i.current.geometry.setPositions(x.map(m=>m.toArray()).flat())}},[]);const d=y.useMemo(()=>u(e,n,r,a),[e,n,r,a]);return y.createElement(Ji,oe({ref:Qi([i,s]),points:d},o))}),Ls=y.forwardRef(({makeDefault:t,camera:e,regress:n,domElement:r,enableDamping:a=!0,onChange:o,onStart:s,onEnd:i,...l},u)=>{const d=me(T=>T.invalidate),f=me(T=>T.camera),h=me(T=>T.gl),g=me(T=>T.events),x=me(T=>T.setEvents),m=me(T=>T.set),v=me(T=>T.get),w=me(T=>T.performance),_=e||f,B=r||g.connected||h.domElement,P=y.useMemo(()=>new Hs(_),[_]);return Sn(()=>{P.enabled&&P.update()},-1),y.useEffect(()=>(P.connect(B),()=>void P.dispose()),[B,n,P,d]),y.useEffect(()=>{const T=H=>{d(),n&&w.regress(),o&&o(H)},M=H=>{s&&s(H)},L=H=>{i&&i(H)};return P.addEventListener("change",T),P.addEventListener("start",M),P.addEventListener("end",L),()=>{P.removeEventListener("start",M),P.removeEventListener("end",L),P.removeEventListener("change",T)}},[o,s,i,P,d,x]),y.useEffect(()=>{if(t){const T=v().controls;return m({controls:P}),()=>m({controls:T})}},[t,P]),y.createElement("primitive",oe({ref:u,object:P,enableDamping:a},l))}),Gs={type:"",parent:""},da=({onSelect:t,dataTestId:e,edgeLink:n,hideSelectAll:r,placeholder:a})=>{const o=br({mode:"onChange",defaultValues:Gs}),{watch:s,setValue:i}=o,[l,u]=y.useState([]),[d,f]=y.useState(!1),h=v=>{i("parent",(v==null?void 0:v.value)||""),t(v==null?void 0:v.value)},g=v=>v.charAt(0).toUpperCase()+v.slice(1);y.useEffect(()=>{(async()=>{f(!0);try{const _=(await xr()).schemas.filter(P=>!P.is_deleted&&P.type).map(P=>P.type==="thing"?{label:"No Parent",value:P.type}:{label:g(P.type),value:P.type}).filter((P,T,M)=>T===M.findIndex(L=>L.value===P.value));u(r?_:[{label:"Select all",value:"all"},..._]),n&&i("parent",n)}catch(w){console.warn(w)}finally{f(!1)}})()},[n,i,r]);const x=s("parent"),m=()=>{const v=l==null?void 0:l.find(w=>w.value===x);if(v)return v;if(n)return{label:n,value:n}};return p.jsx(Ws,{dataTestId:e,disabled:!!n,isLoading:d,onSelect:h,options:l||_i,placeholder:a,selectedValue:m()})},Ws=O(Dt)` .MuiInputBase-input { font-family: Barlow; font-size: 14px; diff --git a/build/assets/index-bdc490cb.js b/build/assets/index-51ac9e53.js similarity index 69% rename from build/assets/index-bdc490cb.js rename to build/assets/index-51ac9e53.js index cac79bec1..a12b66a96 100644 --- a/build/assets/index-bdc490cb.js +++ b/build/assets/index-51ac9e53.js @@ -1 +1 @@ -import"./index-8f1177e3.js";import{h as o}from"./index-9e906cde.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; +import"./index-04f9e7e6.js";import{h as o}from"./index-292d93f3.js";const a=()=>{const{simulation:s,simulationHelpers:e}=o(r=>r);return{nodes:(s==null?void 0:s.nodes())||[],links:e.getLinks()}};export{a as u}; diff --git a/build/assets/index-584de9aa.js b/build/assets/index-5597819c.js similarity index 93% rename from build/assets/index-584de9aa.js rename to build/assets/index-5597819c.js index 8723b9a76..3db116176 100644 --- a/build/assets/index-584de9aa.js +++ b/build/assets/index-5597819c.js @@ -1,4 +1,4 @@ -import{z as V,bW as k,bX as g,bY as z,s as B,T as C,F as d,an as M,r as x,b as E,j as n,aV as $,aW as K,B as S,e as _,t as U,v as R,aU as W,aY as A}from"./index-8f1177e3.js";import{n as G}from"./index-9e906cde.js";import{A as I}from"./index-d9032019.js";import"./index-26468b48.js";import"./Stack-55a7903f.js";import"./createSvgIcon-9333dda0.js";import"./TextareaAutosize-ba1f6749.js";const D="https://community.sphinx.chat",N=async e=>await V.post("/bounty",JSON.stringify(e)),O=async e=>await k(`${D}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await k(`${D}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=g.Buffer.from(e.toString(16),"hex"),s=g.Buffer.from(t).toString("base64"),o=await z.signMessage(s),a=v(o.signature),l=g.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function v(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),s=t.padEnd(t.length+(4-t.length%4)%4,"=");return g.Buffer.from(s,"base64")}function L(e){let t="";const s=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&F.test(t))},H=({errMessage:e,handleClose:t})=>{const{setValue:s,watch:o}=M(),[a,l]=x.useState([]),{pubKey:p}=E();x.useEffect(()=>{async function r(){try{const c=await O(p);if(!c.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const u=await P(c.id);if(u.length>0){const w=[];for(let b=0;b{const c=(r==null?void 0:r.label)||"SecondBrain",u=(r==null?void 0:r.value)||"ck9drb84nncjnaefo090";s("nodeType",c,{shouldValidate:!0}),s("workspaceUuid",u)},y=Y(i)&&!!m,h=r=>{r.key===" "&&r.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(J,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(I,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx($,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...K,pattern:{value:F,message:"Please enter a valid number"}},value:i})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(X,{children:e})]})},T=B(C)` +import{z as V,bW as k,bX as g,bY as z,s as B,T as C,F as d,an as M,r as x,b as E,j as n,aV as $,aW as K,B as S,e as _,t as U,v as R,aU as W,aY as A}from"./index-04f9e7e6.js";import{n as G}from"./index-292d93f3.js";import{A as I}from"./index-30313f81.js";import"./index-782ff866.js";import"./Stack-9bdcdce4.js";import"./createSvgIcon-a3d1c07a.js";import"./TextareaAutosize-6a1de228.js";const D="https://community.sphinx.chat",N=async e=>await V.post("/bounty",JSON.stringify(e)),O=async e=>await k(`${D}/person/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"}),P=async e=>await k(`${D}/workspaces/user/${e}`,{headers:{"Content-Type":"application/json"},method:"GET"});async function q(){try{const e=Math.floor(Date.now()/1e3),t=g.Buffer.from(e.toString(16),"hex"),s=g.Buffer.from(t).toString("base64"),o=await z.signMessage(s),a=v(o.signature),l=g.Buffer.concat([t,a],a.length+t.length);return L(l)}catch(e){return console.log("error from signing more message: ",e),""}}function v(e){const t=e.replace(/_/g,"/").replace(/-/g,"+"),s=t.padEnd(t.length+(4-t.length%4)%4,"=");return g.Buffer.from(s,"base64")}function L(e){let t="";const s=e.byteLength;for(let a=0;a{const t=e.trim();return!!(t&&F.test(t))},H=({errMessage:e,handleClose:t})=>{const{setValue:s,watch:o}=M(),[a,l]=x.useState([]),{pubKey:p}=E();x.useEffect(()=>{async function r(){try{const c=await O(p);if(!c.id){l([{label:"SecondBrain",value:"SecondBrain"}]);return}const u=await P(c.id);if(u.length>0){const w=[];for(let b=0;b{const c=(r==null?void 0:r.label)||"SecondBrain",u=(r==null?void 0:r.value)||"ck9drb84nncjnaefo090";s("nodeType",c,{shouldValidate:!0}),s("workspaceUuid",u)},y=Y(i)&&!!m,h=r=>{r.key===" "&&r.preventDefault()};return n.jsxs(d,{children:[n.jsx(d,{align:"center",direction:"row",justify:"space-between",mb:18,children:n.jsx(J,{children:"Create Bounty"})}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Select Workspace"}),n.jsx(I,{autoFocus:!0,onSelect:f,options:a})]}),n.jsxs(d,{mb:20,children:[n.jsx(T,{children:"Set Budget"}),n.jsx($,{id:"budget",name:"budget",onKeyDown:h,placeholder:"Enter budget",rules:{...K,pattern:{value:F,message:"Please enter a valid number"}},value:i})]}),n.jsxs(d,{direction:"row",children:[n.jsx(d,{grow:1,children:n.jsx(S,{color:"secondary",onClick:()=>t(),size:"large",variant:"contained",children:"Cancel"})}),n.jsx(d,{grow:1,ml:20,children:n.jsx(S,{color:"secondary",disabled:!y,size:"large",type:"submit",variant:"contained",children:"Confirm"})})]}),e&&n.jsx(X,{children:e})]})},T=B(C)` font-size: 14px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-c7f888ab.js b/build/assets/index-6d28c8a5.js similarity index 97% rename from build/assets/index-c7f888ab.js rename to build/assets/index-6d28c8a5.js index 7c3c90ae5..383993308 100644 --- a/build/assets/index-c7f888ab.js +++ b/build/assets/index-6d28c8a5.js @@ -1,4 +1,4 @@ -import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0,C as o0,l as m0,b as a0,d as n0,e as c0,g as l0,f as h0,h as p0,i as d0,m as f0,k as i0,n as t0,o as y0,T as N,B as G0,Q as b0,p as u0,q as E0,t as A0,v as B0,w as D0}from"./index-8f1177e3.js";import{P as V0,T as R,u as k0,B as S0,I as g0,N as F0,a as j0,O as w0,A as v0}from"./index-9e906cde.js";function P0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const _0=s0` +import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0,C as o0,l as m0,b as a0,d as n0,e as c0,g as l0,f as h0,h as p0,i as d0,m as f0,k as i0,n as t0,o as y0,T as N,B as G0,Q as b0,p as u0,q as E0,t as A0,v as B0,w as D0}from"./index-04f9e7e6.js";import{P as V0,T as R,u as k0,B as S0,I as g0,N as F0,a as j0,O as w0,A as v0}from"./index-292d93f3.js";function P0(i){return i===null?"?":i.toLocaleString("en-US").split(",").join(" ")}const _0=s0` html { box-sizing: border-box; } @@ -50,7 +50,7 @@ import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0, border-collapse: collapse; border-spacing: 0; } -`,M0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},C0=r0(i=>({...M0,setAskedQuestion:k=>i(e=>({askedQuestions:[...e.askedQuestions||[],k],hasQuestionInProgress:!0})),setAskedQuestionAnswer:k=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],k],hasQuestionInProgress:!1})),setHasQuestionInProgress:k=>i({hasQuestionInProgress:k}),setHasTeachingInProgress:k=>i({hasTeachingInProgress:k}),setHasInstagraphInProgress:k=>i({hasInstagraphInProgress:k}),setTeachMeAnswer:k=>i({hasTeachingInProgress:!1,teachMeAnswer:k}),setInstagraphAnswer:k=>{var e,n,o,y;(e=k==null?void 0:k.instagraph)!=null&&e.edges&&((n=k==null?void 0:k.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=k==null?void 0:k.instagraph)==null?void 0:o.edges,nodes:(y=k==null?void 0:k.instagraph)==null?void 0:y.nodes}})}})),T0="0.1.106",I0=x.lazy(()=>h(()=>import("./index-6dffcdfe.js"),["assets/index-6dffcdfe.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/ClipLoader-5d1618f3.js","assets/Tabs-daec6b20.js","assets/createSvgIcon-9333dda0.js"]).then(({SettingsModal:i})=>({default:i}))),z0=x.lazy(()=>h(()=>import("./index-782eeb55.js"),["assets/index-782eeb55.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/ClipLoader-5d1618f3.js"]).then(({AddContentModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-18ba9b8b.js"),["assets/index-18ba9b8b.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/ClipLoader-5d1618f3.js","assets/index-efc984a3.js","assets/three.module-ba6167ce.js","assets/index-d9032019.js","assets/index-26468b48.js","assets/Stack-55a7903f.js","assets/createSvgIcon-9333dda0.js","assets/TextareaAutosize-ba1f6749.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-971683ff.js"),["assets/index-971683ff.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/constants-0d6f6cd8.js","assets/ClipLoader-5d1618f3.js","assets/index-d9032019.js","assets/index-26468b48.js","assets/Stack-55a7903f.js","assets/createSvgIcon-9333dda0.js","assets/TextareaAutosize-ba1f6749.js","assets/index-2ee36238.js","assets/Typography-429e0f96.js","assets/Tabs-daec6b20.js"]).then(({SourcesTableModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-ea2443df.js"),["assets/index-ea2443df.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/index-26468b48.js","assets/Skeleton-0caad96e.js","assets/ClipLoader-5d1618f3.js"]).then(({EditNodeNameModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-bd265d78.js"),["assets/index-bd265d78.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/Skeleton-0caad96e.js","assets/ClipLoader-5d1618f3.js"]).then(({RemoveNodeModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-b5adeb0f.js"),["assets/index-b5adeb0f.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/index-d9032019.js","assets/index-26468b48.js","assets/Stack-55a7903f.js","assets/createSvgIcon-9333dda0.js","assets/TextareaAutosize-ba1f6749.js","assets/constants-0d6f6cd8.js","assets/ClipLoader-5d1618f3.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-48bbbe33.js"),["assets/index-48bbbe33.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/index-2ee36238.js","assets/constants-0d6f6cd8.js","assets/index-d9032019.js","assets/index-26468b48.js","assets/Stack-55a7903f.js","assets/createSvgIcon-9333dda0.js","assets/TextareaAutosize-ba1f6749.js","assets/ClipLoader-5d1618f3.js"]).then(({MergeNodeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-feca9a2a.js"),["assets/index-feca9a2a.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-efc984a3.js","assets/three.module-ba6167ce.js","assets/ClipLoader-5d1618f3.js","assets/index-9e906cde.js","assets/index-d9032019.js","assets/index-26468b48.js","assets/Stack-55a7903f.js","assets/createSvgIcon-9333dda0.js","assets/TextareaAutosize-ba1f6749.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-dbb72407.js"),["assets/index-dbb72407.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-d9032019.js","assets/index-26468b48.js","assets/Stack-55a7903f.js","assets/index-9e906cde.js","assets/createSvgIcon-9333dda0.js","assets/TextareaAutosize-ba1f6749.js","assets/ClipLoader-5d1618f3.js","assets/isPlainObject-2fea37bb.js","assets/Typography-429e0f96.js","assets/index-8fe66f52.js","assets/Tabs-daec6b20.js","assets/index-efc984a3.js","assets/three.module-ba6167ce.js","assets/index-ca6739d4.js"]).then(({BlueprintModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-d3279c0a.js"),["assets/index-d3279c0a.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js"]).then(({UserFeedBackModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-584de9aa.js"),["assets/index-584de9aa.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/index-d9032019.js","assets/index-26468b48.js","assets/Stack-55a7903f.js","assets/createSvgIcon-9333dda0.js","assets/TextareaAutosize-ba1f6749.js"]).then(({CreateBountyModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-8f1177e3.js").then(i=>i.cc),["assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-fff133ec.js"),["assets/index-fff133ec.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js"]).then(({BriefDescription:i})=>({default:i}))),K0=()=>a.jsxs(a.Fragment,{children:[a.jsx(L0,{}),a.jsx(z0,{}),a.jsx(I0,{}),a.jsx(R0,{}),a.jsx(O0,{}),a.jsx(N0,{}),a.jsx($0,{}),a.jsx(Q0,{}),a.jsx(U0,{}),a.jsx(q0,{}),a.jsx(W0,{}),a.jsx(H0,{}),a.jsx(Y0,{}),a.jsx(J0,{})]}),X0=()=>{const[i,k]=x.useState(null),{runningProjectMessages:e}=_(m=>m),n=m=>{k(m.currentTarget)},o=()=>{k(null)},y=!!i,u=y?"simple-popover":void 0;return e.length?a.jsxs(Z0,{ml:8,children:[a.jsx(ia,{onClick:n,children:a.jsxs(R,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(e0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ta,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:y,children:[a.jsx(x0,{onClick:o,children:a.jsx(o0,{})}),a.jsx(aa,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},Z0=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,aa=c(d)` +`,M0={askedQuestions:null,askedQuestionsAnswers:null,hasQuestionInProgress:!1,hasTeachingInProgress:!1,hasInstagraphInProgress:!1,teachMeAnswer:null,instgraphAnswser:null},C0=r0(i=>({...M0,setAskedQuestion:k=>i(e=>({askedQuestions:[...e.askedQuestions||[],k],hasQuestionInProgress:!0})),setAskedQuestionAnswer:k=>i(e=>({askedQuestionsAnswers:[...e.askedQuestionsAnswers||[],k],hasQuestionInProgress:!1})),setHasQuestionInProgress:k=>i({hasQuestionInProgress:k}),setHasTeachingInProgress:k=>i({hasTeachingInProgress:k}),setHasInstagraphInProgress:k=>i({hasInstagraphInProgress:k}),setTeachMeAnswer:k=>i({hasTeachingInProgress:!1,teachMeAnswer:k}),setInstagraphAnswer:k=>{var e,n,o,y;(e=k==null?void 0:k.instagraph)!=null&&e.edges&&((n=k==null?void 0:k.instagraph)!=null&&n.nodes)&&i({hasInstagraphInProgress:!1,instgraphAnswser:{edges:(o=k==null?void 0:k.instagraph)==null?void 0:o.edges,nodes:(y=k==null?void 0:k.instagraph)==null?void 0:y.nodes}})}})),T0="0.1.106",I0=x.lazy(()=>h(()=>import("./index-27a6e103.js"),["assets/index-27a6e103.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/ClipLoader-c5e3f404.js","assets/Tabs-bdc00dfa.js","assets/createSvgIcon-a3d1c07a.js"]).then(({SettingsModal:i})=>({default:i}))),z0=x.lazy(()=>h(()=>import("./index-25d86406.js"),["assets/index-25d86406.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/ClipLoader-c5e3f404.js"]).then(({AddContentModal:i})=>({default:i}))),L0=x.lazy(()=>h(()=>import("./index-e289962d.js"),["assets/index-e289962d.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/ClipLoader-c5e3f404.js","assets/index-efc984a3.js","assets/three.module-ba6167ce.js","assets/index-30313f81.js","assets/index-782ff866.js","assets/Stack-9bdcdce4.js","assets/createSvgIcon-a3d1c07a.js","assets/TextareaAutosize-6a1de228.js","assets/index-64f1c910.js"]).then(({AddItemModal:i})=>({default:i}))),N0=x.lazy(()=>h(()=>import("./index-16d81c1b.js"),["assets/index-16d81c1b.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/constants-2b0c7022.js","assets/ClipLoader-c5e3f404.js","assets/index-30313f81.js","assets/index-782ff866.js","assets/Stack-9bdcdce4.js","assets/createSvgIcon-a3d1c07a.js","assets/TextareaAutosize-6a1de228.js","assets/index-a5296771.js","assets/Typography-1878e488.js","assets/Tabs-bdc00dfa.js"]).then(({SourcesTableModal:i})=>({default:i}))),R0=x.lazy(()=>h(()=>import("./index-702ff85f.js"),["assets/index-702ff85f.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/index-782ff866.js","assets/Skeleton-38c1ef25.js","assets/ClipLoader-c5e3f404.js"]).then(({EditNodeNameModal:i})=>({default:i}))),O0=x.lazy(()=>h(()=>import("./index-a1075bd4.js"),["assets/index-a1075bd4.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/Skeleton-38c1ef25.js","assets/ClipLoader-c5e3f404.js"]).then(({RemoveNodeModal:i})=>({default:i}))),$0=x.lazy(()=>h(()=>import("./index-85bc38f1.js"),["assets/index-85bc38f1.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/index-30313f81.js","assets/index-782ff866.js","assets/Stack-9bdcdce4.js","assets/createSvgIcon-a3d1c07a.js","assets/TextareaAutosize-6a1de228.js","assets/constants-2b0c7022.js","assets/ClipLoader-c5e3f404.js"]).then(({AddNodeEdgeModal:i})=>({default:i}))),q0=x.lazy(()=>h(()=>import("./index-c4f1167d.js"),["assets/index-c4f1167d.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/index-a5296771.js","assets/constants-2b0c7022.js","assets/index-30313f81.js","assets/index-782ff866.js","assets/Stack-9bdcdce4.js","assets/createSvgIcon-a3d1c07a.js","assets/TextareaAutosize-6a1de228.js","assets/ClipLoader-c5e3f404.js"]).then(({MergeNodeModal:i})=>({default:i}))),Q0=x.lazy(()=>h(()=>import("./index-16a4de5c.js"),["assets/index-16a4de5c.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-efc984a3.js","assets/three.module-ba6167ce.js","assets/ClipLoader-c5e3f404.js","assets/index-292d93f3.js","assets/index-30313f81.js","assets/index-782ff866.js","assets/Stack-9bdcdce4.js","assets/createSvgIcon-a3d1c07a.js","assets/TextareaAutosize-6a1de228.js","assets/index-64f1c910.js"]).then(({ChangeNodeTypeModal:i})=>({default:i}))),U0=x.lazy(()=>h(()=>import("./index-50fe1111.js"),["assets/index-50fe1111.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-30313f81.js","assets/index-782ff866.js","assets/Stack-9bdcdce4.js","assets/index-292d93f3.js","assets/createSvgIcon-a3d1c07a.js","assets/TextareaAutosize-6a1de228.js","assets/ClipLoader-c5e3f404.js","assets/isPlainObject-0689f20b.js","assets/Typography-1878e488.js","assets/index-0f3ae51e.js","assets/Tabs-bdc00dfa.js","assets/index-efc984a3.js","assets/three.module-ba6167ce.js","assets/index-dfd22792.js"]).then(({BlueprintModal:i})=>({default:i}))),W0=x.lazy(()=>h(()=>import("./index-0bfd4f43.js"),["assets/index-0bfd4f43.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js"]).then(({UserFeedBackModal:i})=>({default:i}))),H0=x.lazy(()=>h(()=>import("./index-5597819c.js"),["assets/index-5597819c.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/index-30313f81.js","assets/index-782ff866.js","assets/Stack-9bdcdce4.js","assets/createSvgIcon-a3d1c07a.js","assets/TextareaAutosize-6a1de228.js"]).then(({CreateBountyModal:i})=>({default:i}))),Y0=x.lazy(()=>h(()=>import("./index-04f9e7e6.js").then(i=>i.cc),["assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]).then(({OnboardingModal:i})=>({default:i}))),J0=x.lazy(()=>h(()=>import("./index-734a9b6e.js"),["assets/index-734a9b6e.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js"]).then(({BriefDescription:i})=>({default:i}))),K0=()=>a.jsxs(a.Fragment,{children:[a.jsx(L0,{}),a.jsx(z0,{}),a.jsx(I0,{}),a.jsx(R0,{}),a.jsx(O0,{}),a.jsx(N0,{}),a.jsx($0,{}),a.jsx(Q0,{}),a.jsx(U0,{}),a.jsx(q0,{}),a.jsx(W0,{}),a.jsx(H0,{}),a.jsx(Y0,{}),a.jsx(J0,{})]}),X0=()=>{const[i,k]=x.useState(null),{runningProjectMessages:e}=_(m=>m),n=m=>{k(m.currentTarget)},o=()=>{k(null)},y=!!i,u=y?"simple-popover":void 0;return e.length?a.jsxs(Z0,{ml:8,children:[a.jsx(ia,{onClick:n,children:a.jsxs(R,{content:"Messages",margin:"18px",children:[a.jsx("div",{className:"icon",children:a.jsx(e0,{})}),a.jsx("div",{className:"text",children:a.jsx("p",{children:e.length})})]})}),a.jsxs(ta,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:u,onClose:o,open:y,children:[a.jsx(x0,{onClick:o,children:a.jsx(o0,{})}),a.jsx(aa,{p:16,children:e.map(m=>a.jsx("p",{className:"item",children:m},m))})]})]}):null},Z0=c(d).attrs({align:"center",direction:"row",grow:0,justify:"flex-start"})``,aa=c(d)` max-height: 50vh; max-width: 30vw; background: transparent; @@ -360,4 +360,4 @@ import{W as s0,c as r0,r as x,_ as h,j as a,s as c,a as r,F as d,u as _,I as e0, color: ${r.white}; font-size: 12px; opacity: 0.5; -`,_a=x.lazy(()=>h(()=>import("./index-0b5a2f2c.js"),["assets/index-0b5a2f2c.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js"]).then(({MainToolbar:i})=>({default:i}))),Ma=x.lazy(()=>h(()=>import("./index-9a560549.js"),["assets/index-9a560549.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-ca6739d4.js","assets/three.module-ba6167ce.js","assets/index-8fe66f52.js","assets/index-9e906cde.js","assets/TextareaAutosize-ba1f6749.js","assets/index-26468b48.js","assets/index-bdc490cb.js","assets/ClipLoader-5d1618f3.js"]).then(({Universe:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-c0d858f0.js").then(i=>i.i),["assets/index-c0d858f0.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css","assets/index-9e906cde.js","assets/ClipLoader-5d1618f3.js","assets/Skeleton-0caad96e.js","assets/Stack-55a7903f.js","assets/index-26468b48.js","assets/isPlainObject-2fea37bb.js","assets/Typography-429e0f96.js","assets/createSvgIcon-9333dda0.js","assets/index-fff133ec.js","assets/index-8fe66f52.js","assets/index-bdc490cb.js"]).then(({SideBar:i})=>({default:i}))),Ta=()=>{const[i]=u0(),k=i.get("q"),{setBudget:e,setNodeCount:n}=a0(t=>t),o=x.useRef(null),y=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:M,setTranscriptOpen:C,universeQuestionIsOpen:T,setUniverseQuestionIsOpen:g}=i0(t=>t),I=C0(t=>t.setTeachMeAnswer),{fetchData:F,setCategoryFilter:j,setAbortRequests:w,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D,resetData:S}=_(t=>t),{setAiSummaryAnswer:G,getKeyExist:O,aiRefId:z}=t0(t=>t),v=k0(),[$,E]=E0(t=>[t.realtimeGraphFeatureFlag,t.chatInterfaceFeatureFlag]),l=j0(),q=A0({mode:"onChange"}),{setValue:Q}=q;x.useEffect(()=>{Q("search",k??""),C(!1),v(null),M(!1),V(k??""),I(""),j(null)},[k,j,V,M,v,I,C,Q]),x.useEffect(()=>{const t=async()=>{await F(e,w),u(!0),m?await D0(e):v(null)};S(),t()},[m,F,e,w,u,v,S]);const U=x.useCallback(()=>{n("INCREMENT")},[n]),W=x.useCallback(t=>{D||(o.current||(o.current={nodes:[],edges:[]}),t.edges&&o.current.edges.push(...t.edges),t.nodes&&o.current.nodes.push(...t.nodes),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,P={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(P)}},3e3))},[s,D]),H=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{answer:t.answer,answerLoading:!1})},[G]),Y=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{audio_en:t.audio_EN})},[G]),J=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{questions:t.relevant_questions.map(b=>b.question),questionsLoading:!1})},[G]),K=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{sources:t.sources.map(b=>b.ref_id),sourcesLoading:!1})},[G]),X=x.useCallback(t=>{t.question&&O(z)&&G(z,{answerLoading:!1,entities:t.entities})},[G,O,z]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",t=>{console.error("Socket connection error:",t)}),l.on("newnode",U),E&&l.on("extractedentitieshook",X),E&&l.on("askquestionhook",H),E&&l.on("relevantquestionshook",J),E&&l.on("answersourceshook",K),$&&l.on("new_node_created",W),E&&l.on("answeraudiohook",Y)),()=>{l&&l.off()}),[l,U,W,$,H,E,J,K,X,Y]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(t){console.error(t)}},[f,l]),x.useEffect(()=>{p||E&&g()},[g,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(_0,{}),a.jsx(Fa,{}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(va,{direction:"row",children:[a.jsxs(B0,{...q,children:[a.jsx(_a,{}),!T&&a.jsx(Ca,{}),a.jsx(Ma,{}),a.jsx(w0,{}),a.jsx(Ba,{}),a.jsxs(Pa,{children:["v",T0]}),a.jsx(v0,{})]}),a.jsx(K0,{}),a.jsx(wa,{})]})})]})},La=Object.freeze(Object.defineProperty({__proto__:null,App:Ta},Symbol.toStringTag,{value:"Module"}));export{P0 as f,La as i}; +`,_a=x.lazy(()=>h(()=>import("./index-3d9e69a5.js"),["assets/index-3d9e69a5.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js"]).then(({MainToolbar:i})=>({default:i}))),Ma=x.lazy(()=>h(()=>import("./index-971cba7b.js"),["assets/index-971cba7b.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-dfd22792.js","assets/three.module-ba6167ce.js","assets/index-0f3ae51e.js","assets/index-292d93f3.js","assets/TextareaAutosize-6a1de228.js","assets/index-782ff866.js","assets/index-51ac9e53.js","assets/ClipLoader-c5e3f404.js"]).then(({Universe:i})=>({default:i}))),Ca=x.lazy(()=>h(()=>import("./index-e6c92504.js").then(i=>i.i),["assets/index-e6c92504.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css","assets/index-292d93f3.js","assets/ClipLoader-c5e3f404.js","assets/Skeleton-38c1ef25.js","assets/Stack-9bdcdce4.js","assets/index-782ff866.js","assets/isPlainObject-0689f20b.js","assets/Typography-1878e488.js","assets/createSvgIcon-a3d1c07a.js","assets/index-734a9b6e.js","assets/index-0f3ae51e.js","assets/index-51ac9e53.js"]).then(({SideBar:i})=>({default:i}))),Ta=()=>{const[i]=u0(),k=i.get("q"),{setBudget:e,setNodeCount:n}=a0(t=>t),o=x.useRef(null),y=x.useRef(null),{setSidebarOpen:u,currentSearch:m,setCurrentSearch:V,setRelevanceSelected:M,setTranscriptOpen:C,universeQuestionIsOpen:T,setUniverseQuestionIsOpen:g}=i0(t=>t),I=C0(t=>t.setTeachMeAnswer),{fetchData:F,setCategoryFilter:j,setAbortRequests:w,addNewNode:s,splashDataLoading:p,runningProjectId:f,setRunningProjectMessages:B,isFetching:D,resetData:S}=_(t=>t),{setAiSummaryAnswer:G,getKeyExist:O,aiRefId:z}=t0(t=>t),v=k0(),[$,E]=E0(t=>[t.realtimeGraphFeatureFlag,t.chatInterfaceFeatureFlag]),l=j0(),q=A0({mode:"onChange"}),{setValue:Q}=q;x.useEffect(()=>{Q("search",k??""),C(!1),v(null),M(!1),V(k??""),I(""),j(null)},[k,j,V,M,v,I,C,Q]),x.useEffect(()=>{const t=async()=>{await F(e,w),u(!0),m?await D0(e):v(null)};S(),t()},[m,F,e,w,u,v,S]);const U=x.useCallback(()=>{n("INCREMENT")},[n]),W=x.useCallback(t=>{D||(o.current||(o.current={nodes:[],edges:[]}),t.edges&&o.current.edges.push(...t.edges),t.nodes&&o.current.nodes.push(...t.nodes),y.current&&clearTimeout(y.current),y.current=setTimeout(()=>{if(o.current){const{nodes:b,edges:A}=o.current,P={nodes:b,edges:A};o.current={nodes:[],edges:[]},s(P)}},3e3))},[s,D]),H=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{answer:t.answer,answerLoading:!1})},[G]),Y=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{audio_en:t.audio_EN})},[G]),J=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{questions:t.relevant_questions.map(b=>b.question),questionsLoading:!1})},[G]),K=x.useCallback(t=>{t.ref_id&&G(t.ref_id,{sources:t.sources.map(b=>b.ref_id),sourcesLoading:!1})},[G]),X=x.useCallback(t=>{t.question&&O(z)&&G(z,{answerLoading:!1,entities:t.entities})},[G,O,z]);return x.useEffect(()=>(l&&(l.connect(),l.on("connect_error",t=>{console.error("Socket connection error:",t)}),l.on("newnode",U),E&&l.on("extractedentitieshook",X),E&&l.on("askquestionhook",H),E&&l.on("relevantquestionshook",J),E&&l.on("answersourceshook",K),$&&l.on("new_node_created",W),E&&l.on("answeraudiohook",Y)),()=>{l&&l.off()}),[l,U,W,$,H,E,J,K,X,Y]),x.useEffect(()=>{},[f,B]),x.useEffect(()=>{if(f)try{l==null||l.emit("update_project_id",{id:f})}catch(t){console.error(t)}},[f,l]),x.useEffect(()=>{p||E&&g()},[g,p,E]),a.jsxs(a.Fragment,{children:[a.jsx(_0,{}),a.jsx(Fa,{}),a.jsx(x.Suspense,{fallback:a.jsx("div",{children:"Loading..."}),children:p?null:a.jsxs(va,{direction:"row",children:[a.jsxs(B0,{...q,children:[a.jsx(_a,{}),!T&&a.jsx(Ca,{}),a.jsx(Ma,{}),a.jsx(w0,{}),a.jsx(Ba,{}),a.jsxs(Pa,{children:["v",T0]}),a.jsx(v0,{})]}),a.jsx(K0,{}),a.jsx(wa,{})]})})]})},La=Object.freeze(Object.defineProperty({__proto__:null,App:Ta},Symbol.toStringTag,{value:"Module"}));export{P0 as f,La as i}; diff --git a/build/assets/index-ea2443df.js b/build/assets/index-702ff85f.js similarity index 93% rename from build/assets/index-ea2443df.js rename to build/assets/index-702ff85f.js index df1e2831c..c55c177a4 100644 --- a/build/assets/index-ea2443df.js +++ b/build/assets/index-702ff85f.js @@ -1,4 +1,4 @@ -import{s as c,a as N,T as _,F as r,e as x,q as O,r as d,j as e,aV as V,aW as P,t as k,u as q,v as G,B as F,bt as Y,bu as H,aY as J}from"./index-8f1177e3.js";import{n as I,aC as K}from"./index-9e906cde.js";import{T as Q}from"./index-26468b48.js";import{S as X}from"./Skeleton-0caad96e.js";import{C as Z}from"./ClipLoader-5d1618f3.js";const ee=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(i){return!!ee.test(i)}function ae(i){return i.split("_").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join(" ")}const oe=()=>{const{open:i}=x("changeNodeType"),{close:p}=x("editNodeName"),{changeNodeTypeFeatureFlag:y}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,g]=d.useState({});d.useEffect(()=>{a!=null&&a.properties&&g(a.properties)},[a]);const b=()=>{p(),i()},h=(o,n)=>{g(C=>({...C,[o]:n}))};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(r,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(re,{children:[e.jsx(Q,{type:j}),y&&e.jsx(ie,{onClick:b,children:e.jsx(K,{})})]})]})}),e.jsx(ce,{children:Object.keys(m).map(o=>e.jsxs(r,{mb:18,children:[e.jsx(se,{style:{marginBottom:8},children:ae(o)}),e.jsx(V,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>h(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...P}:{}})]},o))})]})},ne=c(_)` +import{s as c,a as N,T as _,F as r,e as x,q as O,r as d,j as e,aV as V,aW as P,t as k,u as q,v as G,B as F,bt as Y,bu as H,aY as J}from"./index-04f9e7e6.js";import{n as I,aC as K}from"./index-292d93f3.js";import{T as Q}from"./index-782ff866.js";import{S as X}from"./Skeleton-38c1ef25.js";import{C as Z}from"./ClipLoader-c5e3f404.js";const ee=/^https:\/\/\S+\.(png|jpe?g|svg)$/;function te(i){return!!ee.test(i)}function ae(i){return i.split("_").map(p=>p.charAt(0).toUpperCase()+p.slice(1)).join(" ")}const oe=()=>{const{open:i}=x("changeNodeType"),{close:p}=x("editNodeName"),{changeNodeTypeFeatureFlag:y}=O(o=>({changeNodeTypeFeatureFlag:o.changeNodeTypeFeatureFlag})),a=I(),j=a==null?void 0:a.node_type,[m,g]=d.useState({});d.useEffect(()=>{a!=null&&a.properties&&g(a.properties)},[a]);const b=()=>{p(),i()},h=(o,n)=>{g(C=>({...C,[o]:n}))};return e.jsxs(r,{children:[e.jsx(r,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsxs(r,{align:"center",direction:"row",children:[e.jsx(ne,{children:"Edit Node"}),e.jsxs(re,{children:[e.jsx(Q,{type:j}),y&&e.jsx(ie,{onClick:b,children:e.jsx(K,{})})]})]})}),e.jsx(ce,{children:Object.keys(m).map(o=>e.jsxs(r,{mb:18,children:[e.jsx(se,{style:{marginBottom:8},children:ae(o)}),e.jsx(V,{id:`cy-${o}`,maxLength:50,name:`properties.${o}`,onChange:n=>h(o,n),placeholder:`Please Enter the ${o}`,rules:o==="name"?{...P}:{}})]},o))})]})},ne=c(_)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-fff133ec.js b/build/assets/index-734a9b6e.js similarity index 99% rename from build/assets/index-fff133ec.js rename to build/assets/index-734a9b6e.js index 6c1e1e4a8..bff737a9b 100644 --- a/build/assets/index-fff133ec.js +++ b/build/assets/index-734a9b6e.js @@ -1,4 +1,4 @@ -import{ar as He,a9 as Tr,j as V,s as zn,a as Bn,r as Un,e as vt,k as zr,b as Lr,u as Or,A as Dr,F as fe,T as Ft,B as vr,c as Fr,aY as Rr}from"./index-8f1177e3.js";import{d as Br,aP as Nr,aQ as Mr}from"./index-9e906cde.js";function _r(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur={};function Ue(n,e){return((e||Ur).jsx?Hr:jr).test(n)}const Vr=/[ \t\n\f\r]/g;function qr(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(Vr,"")===""}class jn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function Rt(n,e){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` +import{ar as He,a9 as Tr,j as V,s as zn,a as Bn,r as Un,e as vt,k as zr,b as Lr,u as Or,A as Dr,F as fe,T as Ft,B as vr,c as Fr,aY as Rr}from"./index-04f9e7e6.js";import{d as Br,aP as Nr,aQ as Mr}from"./index-292d93f3.js";function _r(n,e){const t=e||{};return(n[n.length-1]===""?[...n,""]:n).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const jr=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ur={};function Ue(n,e){return((e||Ur).jsx?Hr:jr).test(n)}const Vr=/[ \t\n\f\r]/g;function qr(n){return typeof n=="object"?n.type==="text"?Ve(n.value):!1:Ve(n)}function Ve(n){return n.replace(Vr,"")===""}class jn{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}}jn.prototype.property={};jn.prototype.normal={};jn.prototype.space=null;function Rt(n,e){const t={},r={};let i=-1;for(;++i4&&t.slice(0,4)==="data"&&Yr.test(e)){if(e.charAt(4)==="-"){const l=e.slice(5).replace($e,Zr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=e.slice(4);if(!$e.test(l)){let o=l.replace(Kr,Jr);o.charAt(0)!=="-"&&(o="-"+o),e="data"+o}}i=Se}return new i(r,e)}function Jr(n){return"-"+n.toLowerCase()}function Zr(n){return n.charAt(1).toUpperCase()}const ni={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ei=Rt([Mt,Nt,Ht,Ut,Qr],"html"),Ce=Rt([Mt,Nt,Ht,Ut,Xr],"svg");function ti(n){return n.join(" ").trim()}var Vt={},We=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,ri=/\n/g,ii=/^\s*/,li=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,oi=/^:\s*/,ai=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ui=/^[;\s]*/,si=/^\s+|\s+$/g,ci=` `,Qe="/",Xe="*",Sn="",pi="comment",fi="declaration",hi=function(n,e){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];e=e||{};var t=1,r=1;function i(y){var k=y.match(ri);k&&(t+=k.length);var I=y.lastIndexOf(ci);r=~I?y.length-I:r+y.length}function l(){var y={line:t,column:r};return function(k){return k.position=new o(y),s(),k}}function o(y){this.start=y,this.end={line:t,column:r},this.source=e.source}o.prototype.content=n;function a(y){var k=new Error(e.source+":"+t+":"+r+": "+y);if(k.reason=y,k.filename=e.source,k.line=t,k.column=r,k.source=n,!e.silent)throw k}function u(y){var k=y.exec(n);if(k){var I=k[0];return i(I),n=n.slice(I.length),k}}function s(){u(ii)}function c(y){var k;for(y=y||[];k=f();)k!==!1&&y.push(k);return y}function f(){var y=l();if(!(Qe!=n.charAt(0)||Xe!=n.charAt(1))){for(var k=2;Sn!=n.charAt(k)&&(Xe!=n.charAt(k)||Qe!=n.charAt(k+1));)++k;if(k+=2,Sn===n.charAt(k-1))return a("End of comment missing");var I=n.slice(2,k-2);return r+=2,i(I),n=n.slice(k),r+=2,y({type:pi,comment:I})}}function d(){var y=l(),k=u(li);if(k){if(f(),!u(oi))return a("property missing ':'");var I=u(ai),w=y({type:fi,property:Ye(k[0].replace(We,Sn)),value:I?Ye(I[0].replace(We,Sn)):Sn});return u(ui),w}}function p(){var y=[];c(y);for(var k;k=d();)k!==!1&&(y.push(k),c(y));return y}return s(),p()};function Ye(n){return n?n.replace(si,Sn):Sn}var mi=He&&He.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Vt,"__esModule",{value:!0});var di=mi(hi);function gi(n,e){var t=null;if(!n||typeof n!="string")return t;var r=(0,di.default)(n),i=typeof e=="function";return r.forEach(function(l){if(l.type==="declaration"){var o=l.property,a=l.value;i?e(o,a,l):a&&(t=t||{},t[o]=a)}}),t}var Ke=Vt.default=gi;const yi=Ke.default||Ke,qt=$t("end"),Ee=$t("start");function $t(n){return e;function e(t){const r=t&&t.position&&t.position[n]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function xi(n){const e=Ee(n),t=qt(n);if(e&&t)return{start:e,end:t}}function Nn(n){return!n||typeof n!="object"?"":"position"in n||"type"in n?Ge(n.position):"start"in n||"end"in n?Ge(n):"line"in n||"column"in n?de(n):""}function de(n){return Je(n&&n.line)+":"+Je(n&&n.column)}function Ge(n){return de(n&&n.start)+"-"+de(n&&n.end)}function Je(n){return n&&typeof n=="number"?n:1}class K extends Error{constructor(e,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof e=="string"?i=e:!l.cause&&e&&(o=!0,i=e.message,l.cause=e),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=a?a.line:void 0,this.name=Nn(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual,this.expected,this.note,this.url}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const Ie={}.hasOwnProperty,ki=new Map,bi=/[A-Z]/g,wi=/-([a-z])/g,Si=new Set(["table","tbody","thead","tfoot","tr"]),Ci=new Set(["td","th"]),Wt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ei(n,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=e.filePath||void 0;let r;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Di(t,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Oi(t,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:r,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?Ce:ei,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},l=Qt(i,n,void 0);return l&&typeof l!="string"?l:i.create(n,i.Fragment,{children:l||void 0},void 0)}function Qt(n,e,t){if(e.type==="element")return Ii(n,e,t);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return Ai(n,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return Ti(n,e,t);if(e.type==="mdxjsEsm")return Pi(n,e);if(e.type==="root")return zi(n,e,t);if(e.type==="text")return Li(n,e)}function Ii(n,e,t){const r=n.schema;let i=r;e.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=Yt(n,e.tagName,!1),o=vi(n,e);let a=Pe(n,e);return Si.has(e.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!qr(u):!0})),Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function Ai(n,e){if(e.data&&e.data.estree&&n.evaluater){const r=e.data.estree.body[0];return r.type,n.evaluater.evaluateExpression(r.expression)}_n(n,e.position)}function Pi(n,e){if(e.data&&e.data.estree&&n.evaluater)return n.evaluater.evaluateProgram(e.data.estree);_n(n,e.position)}function Ti(n,e,t){const r=n.schema;let i=r;e.name==="svg"&&r.space==="html"&&(i=Ce,n.schema=i),n.ancestors.push(e);const l=e.name===null?n.Fragment:Yt(n,e.name,!0),o=Fi(n,e),a=Pe(n,e);return Xt(n,o,l,e),Ae(o,a),n.ancestors.pop(),n.schema=r,n.create(e,l,o,t)}function zi(n,e,t){const r={};return Ae(r,Pe(n,e)),n.create(e,n.Fragment,r,t)}function Li(n,e){return e.value}function Xt(n,e,t,r){typeof t!="string"&&t!==n.Fragment&&n.passNode&&(e.node=r)}function Ae(n,e){if(e.length>0){const t=e.length>1?e:e[0];t&&(n.children=t)}}function Oi(n,e,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:e;return a?s(l,o,a):s(l,o)}}function Di(n,e){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=Ee(r);return e(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:n,lineNumber:u?u.line:void 0},void 0)}}function vi(n,e){const t={};let r,i;for(i in e.properties)if(i!=="children"&&Ie.call(e.properties,i)){const l=Ri(n,i,e.properties[i]);if(l){const[o,a]=l;n.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ci.has(e.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[n.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Fi(n,e){const t={};for(const r of e.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&n.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,n.evaluater.evaluateExpression(a.argument))}else _n(n,e.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&n.evaluater){const a=r.value.data.estree.body[0];a.type,l=n.evaluater.evaluateExpression(a.expression)}else _n(n,e.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Pe(n,e){const t=[];let r=-1;const i=n.passKeys?new Map:ki;for(;++ri?0:i+e:e=e>i?i:e,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(e,t),n.splice(...o);else for(t&&n.splice(e,t);l0?(pn(n,n.length,0,e),n):e}const et={}.hasOwnProperty;function qi(n){const e={};let t=-1;for(;++t13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Tn(n){return n.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Qi=xn(/\p{P}/u),cn=xn(/[A-Za-z]/),en=xn(/[\dA-Za-z]/),Xi=xn(/[#-'*+\--9=?A-Z^-~]/);function ge(n){return n!==null&&(n<32||n===127)}const ye=xn(/\d/),Yi=xn(/[\dA-Fa-f]/),Jt=xn(/[!-/:-@[-`{-~]/);function T(n){return n!==null&&n<-2}function J(n){return n!==null&&(n<0||n===32)}function B(n){return n===-2||n===-1||n===32}function Ki(n){return Jt(n)||Qi(n)}const Gi=xn(/\s/);function xn(n){return e;function e(t){return t!==null&&t>-1&&n.test(String.fromCharCode(t))}}function On(n){const e=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const a=n.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(e.push(n.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return e.join("")+n.slice(r)}function j(n,e,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return B(u)?(n.enter(t),a(u)):e(u)}function a(u){return B(u)&&l++o))return;const R=e.events.length;let q=R,M,H;for(;q--;)if(e.events[q][0]==="exit"&&e.events[q][1].type==="chunkFlow"){if(M){H=e.events[q][1].end;break}M=!0}for(w(r),x=R;xC;){const O=t[D];e.containerState=O[1],O[0].exit.call(e,n)}t.length=C}function E(){i.write([null]),l=void 0,i=void 0,e.containerState._closeFlow=void 0}}function tl(n,e,t){return j(n,n.attempt(this.parser.constructs.document,e,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rt(n){if(n===null||J(n)||Gi(n))return 1;if(Ki(n))return 2}function ze(n,e,t){const r=[];let i=-1;for(;++i1&&n[t][1].end.offset-n[t][1].start.offset>1?2:1;const f=Object.assign({},n[r][1].end),d=Object.assign({},n[t][1].start);it(f,-u),it(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},n[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},n[t][1].start),end:d},l={type:u>1?"strongText":"emphasisText",start:Object.assign({},n[r][1].end),end:Object.assign({},n[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},n[r][1].end=Object.assign({},o.start),n[t][1].start=Object.assign({},a.end),s=[],n[r][1].end.offset-n[r][1].start.offset&&(s=tn(s,[["enter",n[r][1],e],["exit",n[r][1],e]])),s=tn(s,[["enter",i,e],["enter",o,e],["exit",o,e],["enter",l,e]]),s=tn(s,ze(e.parser.constructs.insideSpan.null,n.slice(r+1,t),e)),s=tn(s,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",i,e]]),n[t][1].end.offset-n[t][1].start.offset?(c=2,s=tn(s,[["enter",n[t][1],e],["exit",n[t][1],e]])):c=0,pn(n,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&B(x)?j(n,E,"linePrefix",l+1)(x):E(x)}function E(x){return x===null||T(x)?n.check(lt,k,D)(x):(n.enter("codeFlowValue"),C(x))}function C(x){return x===null||T(x)?(n.exit("codeFlowValue"),E(x)):(n.consume(x),C)}function D(x){return n.exit("codeFenced"),e(x)}function O(x,R,q){let M=0;return H;function H(F){return x.enter("lineEnding"),x.consume(F),x.exit("lineEnding"),P}function P(F){return x.enter("codeFencedFence"),B(F)?j(x,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):A(F)}function A(F){return F===a?(x.enter("codeFencedFenceSequence"),U(F)):q(F)}function U(F){return F===a?(M++,x.consume(F),U):M>=o?(x.exit("codeFencedFenceSequence"),B(F)?j(x,$,"whitespace")(F):$(F)):q(F)}function $(F){return F===null||T(F)?(x.exit("codeFencedFence"),R(F)):q(F)}}}function ml(n,e,t){const r=this;return i;function i(o){return o===null?t(o):(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}const re={name:"codeIndented",tokenize:gl},dl={tokenize:yl,partial:!0};function gl(n,e,t){const r=this;return i;function i(s){return n.enter("codeIndented"),j(n,l,"linePrefix",4+1)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?n.attempt(dl,o,u)(s):(n.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(n.exit("codeFlowValue"),o(s)):(n.consume(s),a)}function u(s){return n.exit("codeIndented"),e(s)}}function yl(n,e,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),i):j(n,l,"linePrefix",4+1)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(o):T(o)?i(o):t(o)}}const xl={name:"codeText",tokenize:wl,resolve:kl,previous:bl};function kl(n){let e=n.length-4,t=3,r,i;if((n[t][1].type==="lineEnding"||n[t][1].type==="space")&&(n[e][1].type==="lineEnding"||n[e][1].type==="space")){for(r=t;++r=4?e(o):n.interrupt(r.parser.constructs.flow,t,e)(o)}}function rr(n,e,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(w){return w===60?(n.enter(r),n.enter(i),n.enter(l),n.consume(w),n.exit(l),d):w===null||w===32||w===41||ge(w)?t(w):(n.enter(r),n.enter(o),n.enter(a),n.enter("chunkString",{contentType:"string"}),k(w))}function d(w){return w===62?(n.enter(l),n.consume(w),n.exit(l),n.exit(i),n.exit(r),e):(n.enter(a),n.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(n.exit("chunkString"),n.exit(a),d(w)):w===null||w===60||T(w)?t(w):(n.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(n.consume(w),p):p(w)}function k(w){return!c&&(w===null||w===41||J(w))?(n.exit("chunkString"),n.exit(a),n.exit(o),n.exit(r),e(w)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(n.exit(l),n.enter(i),n.consume(p),n.exit(i),n.exit(r),e):T(p)?(n.enter("lineEnding"),n.consume(p),n.exit("lineEnding"),c):(n.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(n.exit("chunkString"),c(p)):(n.consume(p),u||(u=!B(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(n.consume(p),a++,f):f(p)}}function lr(n,e,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(n.enter(r),n.enter(i),n.consume(d),n.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(n.enter(i),n.consume(d),n.exit(i),n.exit(r),e):(n.enter(l),s(d))}function s(d){return d===o?(n.exit(l),u(o)):d===null?t(d):T(d)?(n.enter("lineEnding"),n.consume(d),n.exit("lineEnding"),j(n,s,"linePrefix")):(n.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(n.exit("chunkString"),s(d)):(n.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(n.consume(d),c):c(d)}}function Mn(n,e){let t;return r;function r(i){return T(i)?(n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),t=!0,r):B(i)?j(n,r,t?"linePrefix":"lineSuffix")(i):e(i)}}const Tl={name:"definition",tokenize:Ll},zl={tokenize:Ol,partial:!0};function Ll(n,e,t){const r=this;let i;return l;function l(p){return n.enter("definition"),o(p)}function o(p){return ir.call(r,n,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Tn(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(n.enter("definitionMarker"),n.consume(p),n.exit("definitionMarker"),u):t(p)}function u(p){return J(p)?Mn(n,s)(p):s(p)}function s(p){return rr(n,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return n.attempt(zl,f,f)(p)}function f(p){return B(p)?j(n,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(n.exit("definition"),r.parser.defined.push(i),e(p)):t(p)}}function Ol(n,e,t){return r;function r(a){return J(a)?Mn(n,i)(a):t(a)}function i(a){return lr(n,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return B(a)?j(n,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?e(a):t(a)}}const Dl={name:"hardBreakEscape",tokenize:vl};function vl(n,e,t){return r;function r(l){return n.enter("hardBreakEscape"),n.consume(l),i}function i(l){return T(l)?(n.exit("hardBreakEscape"),e(l)):t(l)}}const Fl={name:"headingAtx",tokenize:Bl,resolve:Rl};function Rl(n,e){let t=n.length-2,r=3,i,l;return n[r][1].type==="whitespace"&&(r+=2),t-2>r&&n[t][1].type==="whitespace"&&(t-=2),n[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&n[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:n[r][1].start,end:n[t][1].end},l={type:"chunkText",start:n[r][1].start,end:n[t][1].end,contentType:"text"},pn(n,r,t-r+1,[["enter",i,e],["enter",l,e],["exit",l,e],["exit",i,e]])),n}function Bl(n,e,t){let r=0;return i;function i(c){return n.enter("atxHeading"),l(c)}function l(c){return n.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(n.consume(c),o):c===null||J(c)?(n.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(n.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(n.exit("atxHeading"),e(c)):B(c)?j(n,a,"whitespace")(c):(n.enter("atxHeadingText"),s(c))}function u(c){return c===35?(n.consume(c),u):(n.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||J(c)?(n.exit("atxHeadingText"),a(c)):(n.consume(c),s)}}const Nl=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],at=["pre","script","style","textarea"],Ml={name:"htmlFlow",tokenize:Ul,resolveTo:Hl,concrete:!0},_l={tokenize:ql,partial:!0},jl={tokenize:Vl,partial:!0};function Hl(n){let e=n.length;for(;e--&&!(n[e][0]==="enter"&&n[e][1].type==="htmlFlow"););return e>1&&n[e-2][1].type==="linePrefix"&&(n[e][1].start=n[e-2][1].start,n[e+1][1].start=n[e-2][1].start,n.splice(e-2,2)),n}function Ul(n,e,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return n.enter("htmlFlow"),n.enter("htmlFlowData"),n.consume(m),f}function f(m){return m===33?(n.consume(m),d):m===47?(n.consume(m),l=!0,k):m===63?(n.consume(m),i=3,r.interrupt?e:h):cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function d(m){return m===45?(n.consume(m),i=2,p):m===91?(n.consume(m),i=5,a=0,y):cn(m)?(n.consume(m),i=4,r.interrupt?e:h):t(m)}function p(m){return m===45?(n.consume(m),r.interrupt?e:h):t(m)}function y(m){const an="CDATA[";return m===an.charCodeAt(a++)?(n.consume(m),a===an.length?r.interrupt?e:A:y):t(m)}function k(m){return cn(m)?(n.consume(m),o=String.fromCharCode(m),I):t(m)}function I(m){if(m===null||m===47||m===62||J(m)){const an=m===47,kn=o.toLowerCase();return!an&&!l&&at.includes(kn)?(i=1,r.interrupt?e(m):A(m)):Nl.includes(o.toLowerCase())?(i=6,an?(n.consume(m),w):r.interrupt?e(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?E(m):C(m))}return m===45||en(m)?(n.consume(m),o+=String.fromCharCode(m),I):t(m)}function w(m){return m===62?(n.consume(m),r.interrupt?e:A):t(m)}function E(m){return B(m)?(n.consume(m),E):H(m)}function C(m){return m===47?(n.consume(m),H):m===58||m===95||cn(m)?(n.consume(m),D):B(m)?(n.consume(m),C):H(m)}function D(m){return m===45||m===46||m===58||m===95||en(m)?(n.consume(m),D):O(m)}function O(m){return m===61?(n.consume(m),x):B(m)?(n.consume(m),O):C(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(n.consume(m),u=m,R):B(m)?(n.consume(m),x):q(m)}function R(m){return m===u?(n.consume(m),u=null,M):m===null||T(m)?t(m):(n.consume(m),R)}function q(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||J(m)?O(m):(n.consume(m),q)}function M(m){return m===47||m===62||B(m)?C(m):t(m)}function H(m){return m===62?(n.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):B(m)?(n.consume(m),P):t(m)}function A(m){return m===45&&i===2?(n.consume(m),Y):m===60&&i===1?(n.consume(m),Q):m===62&&i===4?(n.consume(m),on):m===63&&i===3?(n.consume(m),h):m===93&&i===5?(n.consume(m),fn):T(m)&&(i===6||i===7)?(n.exit("htmlFlowData"),n.check(_l,hn,U)(m)):m===null||T(m)?(n.exit("htmlFlowData"),U(m)):(n.consume(m),A)}function U(m){return n.check(jl,$,hn)(m)}function $(m){return n.enter("lineEnding"),n.consume(m),n.exit("lineEnding"),F}function F(m){return m===null||T(m)?U(m):(n.enter("htmlFlowData"),A(m))}function Y(m){return m===45?(n.consume(m),h):A(m)}function Q(m){return m===47?(n.consume(m),o="",ln):A(m)}function ln(m){if(m===62){const an=o.toLowerCase();return at.includes(an)?(n.consume(m),on):A(m)}return cn(m)&&o.length<8?(n.consume(m),o+=String.fromCharCode(m),ln):A(m)}function fn(m){return m===93?(n.consume(m),h):A(m)}function h(m){return m===62?(n.consume(m),on):m===45&&i===2?(n.consume(m),h):A(m)}function on(m){return m===null||T(m)?(n.exit("htmlFlowData"),hn(m)):(n.consume(m),on)}function hn(m){return n.exit("htmlFlow"),e(m)}}function Vl(n,e,t){const r=this;return i;function i(o){return T(o)?(n.enter("lineEnding"),n.consume(o),n.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):e(o)}}function ql(n,e,t){return r;function r(i){return n.enter("lineEnding"),n.consume(i),n.exit("lineEnding"),n.attempt(Gn,e,t)}}const $l={name:"htmlText",tokenize:Wl};function Wl(n,e,t){const r=this;let i,l,o;return a;function a(h){return n.enter("htmlText"),n.enter("htmlTextData"),n.consume(h),u}function u(h){return h===33?(n.consume(h),s):h===47?(n.consume(h),O):h===63?(n.consume(h),C):cn(h)?(n.consume(h),q):t(h)}function s(h){return h===45?(n.consume(h),c):h===91?(n.consume(h),l=0,y):cn(h)?(n.consume(h),E):t(h)}function c(h){return h===45?(n.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(n.consume(h),d):T(h)?(o=f,Q(h)):(n.consume(h),f)}function d(h){return h===45?(n.consume(h),p):f(h)}function p(h){return h===62?Y(h):h===45?d(h):f(h)}function y(h){const on="CDATA[";return h===on.charCodeAt(l++)?(n.consume(h),l===on.length?k:y):t(h)}function k(h){return h===null?t(h):h===93?(n.consume(h),I):T(h)?(o=k,Q(h)):(n.consume(h),k)}function I(h){return h===93?(n.consume(h),w):k(h)}function w(h){return h===62?Y(h):h===93?(n.consume(h),w):k(h)}function E(h){return h===null||h===62?Y(h):T(h)?(o=E,Q(h)):(n.consume(h),E)}function C(h){return h===null?t(h):h===63?(n.consume(h),D):T(h)?(o=C,Q(h)):(n.consume(h),C)}function D(h){return h===62?Y(h):C(h)}function O(h){return cn(h)?(n.consume(h),x):t(h)}function x(h){return h===45||en(h)?(n.consume(h),x):R(h)}function R(h){return T(h)?(o=R,Q(h)):B(h)?(n.consume(h),R):Y(h)}function q(h){return h===45||en(h)?(n.consume(h),q):h===47||h===62||J(h)?M(h):t(h)}function M(h){return h===47?(n.consume(h),Y):h===58||h===95||cn(h)?(n.consume(h),H):T(h)?(o=M,Q(h)):B(h)?(n.consume(h),M):Y(h)}function H(h){return h===45||h===46||h===58||h===95||en(h)?(n.consume(h),H):P(h)}function P(h){return h===61?(n.consume(h),A):T(h)?(o=P,Q(h)):B(h)?(n.consume(h),P):M(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(n.consume(h),i=h,U):T(h)?(o=A,Q(h)):B(h)?(n.consume(h),A):(n.consume(h),$)}function U(h){return h===i?(n.consume(h),i=void 0,F):h===null?t(h):T(h)?(o=U,Q(h)):(n.consume(h),U)}function $(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||J(h)?M(h):(n.consume(h),$)}function F(h){return h===47||h===62||J(h)?M(h):t(h)}function Y(h){return h===62?(n.consume(h),n.exit("htmlTextData"),n.exit("htmlText"),e):t(h)}function Q(h){return n.exit("htmlTextData"),n.enter("lineEnding"),n.consume(h),n.exit("lineEnding"),ln}function ln(h){return B(h)?j(n,fn,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):fn(h)}function fn(h){return n.enter("htmlTextData"),o(h)}}const Le={name:"labelEnd",tokenize:Jl,resolveTo:Gl,resolveAll:Kl},Ql={tokenize:Zl},Xl={tokenize:no},Yl={tokenize:eo};function Kl(n){let e=-1;for(;++e=3&&(s===null||T(s))?(n.exit("thematicBreak"),e(s)):t(s)}function u(s){return s===i?(n.consume(s),r++,u):(n.exit("thematicBreakSequence"),B(s)?j(n,a,"whitespace")(s):a(s))}}const G={name:"list",tokenize:co,continuation:{tokenize:po},exit:ho},uo={tokenize:mo,partial:!0},so={tokenize:fo,partial:!0};function co(n,e,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:ye(p)){if(r.containerState.type||(r.containerState.type=y,n.enter(y,{_container:!0})),y==="listUnordered")return n.enter("listItemPrefix"),p===42||p===45?n.check(Wn,t,s)(p):s(p);if(!r.interrupt||p===49)return n.enter("listItemPrefix"),n.enter("listItemValue"),u(p)}return t(p)}function u(p){return ye(p)&&++o<10?(n.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(n.exit("listItemValue"),s(p)):t(p)}function s(p){return n.enter("listItemMarker"),n.consume(p),n.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,n.check(Gn,r.interrupt?t:c,n.attempt(uo,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return B(p)?(n.enter("listItemPrefixWhitespace"),n.consume(p),n.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(n.exit("listItemPrefix"),!0).length,e(p)}}function po(n,e,t){const r=this;return r.containerState._closeFlow=void 0,n.check(Gn,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,j(n,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!B(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,n.attempt(so,e,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,j(n,n.attempt(G,e,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function fo(n,e,t){const r=this;return j(n,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?e(l):t(l)}}function ho(n){n.exit(this.containerState.type)}function mo(n,e,t){const r=this;return j(n,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(l){const o=r.events[r.events.length-1];return!B(l)&&o&&o[1].type==="listItemPrefixWhitespace"?e(l):t(l)}}const ut={name:"setextUnderline",tokenize:yo,resolveTo:go};function go(n,e){let t=n.length,r,i,l;for(;t--;)if(n[t][0]==="enter"){if(n[t][1].type==="content"){r=t;break}n[t][1].type==="paragraph"&&(i=t)}else n[t][1].type==="content"&&n.splice(t,1),!l&&n[t][1].type==="definition"&&(l=t);const o={type:"setextHeading",start:Object.assign({},n[i][1].start),end:Object.assign({},n[n.length-1][1].end)};return n[i][1].type="setextHeadingText",l?(n.splice(i,0,["enter",o,e]),n.splice(l+1,0,["exit",n[r][1],e]),n[r][1].end=Object.assign({},n[l][1].end)):n[r][1]=o,n.push(["exit",o,e]),n}function yo(n,e,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(n.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return n.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(n.consume(s),a):(n.exit("setextHeadingLineSequence"),B(s)?j(n,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(n.exit("setextHeadingLine"),e(s)):t(s)}}const xo={tokenize:ko};function ko(n){const e=this,t=n.attempt(Gn,r,n.attempt(this.parser.constructs.flowInitial,i,j(n,n.attempt(this.parser.constructs.flow,i,n.attempt(Cl,i)),"linePrefix")));return t;function r(l){if(l===null){n.consume(l);return}return n.enter("lineEndingBlank"),n.consume(l),n.exit("lineEndingBlank"),e.currentConstruct=void 0,t}function i(l){if(l===null){n.consume(l);return}return n.enter("lineEnding"),n.consume(l),n.exit("lineEnding"),e.currentConstruct=void 0,t}}const bo={resolveAll:ar()},wo=or("string"),So=or("text");function or(n){return{tokenize:e,resolveAll:ar(n==="text"?Co:void 0)};function e(t){const r=this,i=this.parser.constructs[n],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(n[i].slice(0,l))}return o}function Ao(n,e){let t=-1;const r=[];let i;for(;++t0){const un=z.tokenStack[z.tokenStack.length-1];(un[1]||ct).call(z,void 0,un[0])}for(S.position={start:yn(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:yn(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},N=-1;++N{var n,g;let e;const[r]=m(l=>[l.normalizedSchemasByType]),d=s,o=(n=r[s])==null?void 0:n.primary_color,i=(g=r[s])==null?void 0:g.icon,t=i?`svg-icons/${i}.svg`:null;switch(d){case"video":case"twitter_space":case"podcast":case"clip":e={iconStart:t??"video_badge.svg",color:o??a.CLIP};break;case"show":e={iconStart:t??"show_badge.svg",color:o??a.SHOW};break;case"tweet":e={iconStart:t??"twitter_badge.svg",color:o??a.TWEET};break;case"episode":e={iconStart:t??"audio_badge.svg",color:o??a.EPISODE};break;case"document":e={iconStart:t??"notes_badge.svg",color:o??a.TEXT};break;case(i??"organization"):e={iconStart:t??"organization_badge.svg",color:o??a.ORGANIZATION};break;case"person":case"guest":case"host":e={iconStart:t??"person_badge.svg",color:o??a.PERSON};break;case"event":e={iconStart:t??"event_badge.svg",color:o??a.EVENT};break;default:e={iconStart:t??"thing_badge.svg",color:o??a.THING};break}return c.jsx(h,{...e,label:s})},h=({iconStart:s,color:e,label:r})=>c.jsxs(x,{color:e,children:[c.jsx("img",{alt:r,className:"badge__img",src:s}),c.jsx("div",{className:"badge__label",children:r})]}),x=p(b).attrs({direction:"row"})` +import{s as p,a,F as b,d as m,j as c}from"./index-04f9e7e6.js";const v=({type:s})=>{var n,g;let e;const[r]=m(l=>[l.normalizedSchemasByType]),d=s,o=(n=r[s])==null?void 0:n.primary_color,i=(g=r[s])==null?void 0:g.icon,t=i?`svg-icons/${i}.svg`:null;switch(d){case"video":case"twitter_space":case"podcast":case"clip":e={iconStart:t??"video_badge.svg",color:o??a.CLIP};break;case"show":e={iconStart:t??"show_badge.svg",color:o??a.SHOW};break;case"tweet":e={iconStart:t??"twitter_badge.svg",color:o??a.TWEET};break;case"episode":e={iconStart:t??"audio_badge.svg",color:o??a.EPISODE};break;case"document":e={iconStart:t??"notes_badge.svg",color:o??a.TEXT};break;case(i??"organization"):e={iconStart:t??"organization_badge.svg",color:o??a.ORGANIZATION};break;case"person":case"guest":case"host":e={iconStart:t??"person_badge.svg",color:o??a.PERSON};break;case"event":e={iconStart:t??"event_badge.svg",color:o??a.EVENT};break;default:e={iconStart:t??"thing_badge.svg",color:o??a.THING};break}return c.jsx(h,{...e,label:s})},h=({iconStart:s,color:e,label:r})=>c.jsxs(x,{color:e,children:[c.jsx("img",{alt:r,className:"badge__img",src:s}),c.jsx("div",{className:"badge__label",children:r})]}),x=p(b).attrs({direction:"row"})` cursor: pointer; background: ${({color:s})=>s}; border-radius: 3px; diff --git a/build/assets/index-143cd8e7.js b/build/assets/index-79f6d834.js similarity index 97% rename from build/assets/index-143cd8e7.js rename to build/assets/index-79f6d834.js index 20b4fecdd..1acf73128 100644 --- a/build/assets/index-143cd8e7.js +++ b/build/assets/index-79f6d834.js @@ -1,4 +1,4 @@ -import{r as l,x as xe,c as he,j as e,s as m,a as C,F as _,T as ge,u as N,d as se,y as me,N as X,z as ye,A as we,D as be,E as V}from"./index-8f1177e3.js";import{Universe as je}from"./index-9a560549.js";import{b as oe,c as $,M as Ce,V as ve,d as _e,e as Se,f as Ee,g as Te,h as ne,a as Ie}from"./index-9e906cde.js";import{S as Re,R as Pe,s as Y,M as $e}from"./index-c0d858f0.js";import{u as W,a as ie,m as ke,T as ze,f as Me,H as Ae,C as We}from"./index-ca6739d4.js";import{W as Le,L as ee,H as Fe,D as He,F as De,V as z,S as Be}from"./three.module-ba6167ce.js";import{T as Ge}from"./index-26468b48.js";import"./index-8fe66f52.js";import"./TextareaAutosize-ba1f6749.js";import"./index-bdc490cb.js";import"./ClipLoader-5d1618f3.js";import"./Skeleton-0caad96e.js";import"./Stack-55a7903f.js";import"./isPlainObject-2fea37bb.js";import"./Typography-429e0f96.js";import"./createSvgIcon-9333dda0.js";import"./index-fff133ec.js";function Ne(t,s,r){const{gl:o,size:i,viewport:d}=W(),y=typeof t=="number"?t:i.width*d.dpr,u=typeof s=="number"?s:i.height*d.dpr,a=(typeof t=="number"?r:t)||{},{samples:c=0,depth:g,...w}=a,p=l.useMemo(()=>{let f;return f=new Le(y,u,{minFilter:ee,magFilter:ee,encoding:o.outputEncoding,type:Fe,...w}),g&&(f.depthTexture=new He(y,u,De)),f.samples=c,f},[]);return l.useLayoutEffect(()=>{p.setSize(y,u),c&&(p.samples=c)},[c,p,y,u]),l.useEffect(()=>()=>p.dispose(),[]),p}const Ze=t=>typeof t=="function",Oe=l.forwardRef(({envMap:t,resolution:s=256,frames:r=1/0,children:o,makeDefault:i,...d},y)=>{const u=W(({set:h})=>h),a=W(({camera:h})=>h),c=W(({size:h})=>h),g=l.useRef(null),w=l.useRef(null),p=Ne(s);l.useLayoutEffect(()=>{d.manual||g.current.updateProjectionMatrix()},[c,d]),l.useLayoutEffect(()=>{g.current.updateProjectionMatrix()}),l.useLayoutEffect(()=>{if(i){const h=a;return u(()=>({camera:g.current})),()=>u(()=>({camera:h}))}},[g,i,u]);let f=0,n=null;const x=Ze(o);return ie(h=>{x&&(r===1/0||f({...Ve,setSelectedEpisodeId:s=>t({selectedEpisodeId:s}),setSelectedEpisodeLink:s=>t({selectedEpisodeLink:s}),setSelectedEpisode:s=>t({selectedEpisode:s}),setClips:s=>t({clips:s})})),Ye=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),e.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),qe=()=>e.jsxs(Ue,{children:[e.jsx(Je,{children:e.jsx(Ke,{children:e.jsx(Ye,{})})}),e.jsx(Qe,{children:"Graph Mindset"})]}),Ue=m(_).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +import{r as l,x as xe,c as he,j as e,s as m,a as C,F as _,T as ge,u as N,d as se,y as me,N as X,z as ye,A as we,D as be,E as V}from"./index-04f9e7e6.js";import{Universe as je}from"./index-971cba7b.js";import{b as oe,c as $,M as Ce,V as ve,d as _e,e as Se,f as Ee,g as Te,h as ne,a as Ie}from"./index-292d93f3.js";import{S as Re,R as Pe,s as Y,M as $e}from"./index-e6c92504.js";import{u as W,a as ie,m as ke,T as ze,f as Me,H as Ae,C as We}from"./index-dfd22792.js";import{W as Le,L as ee,H as Fe,D as He,F as De,V as z,S as Be}from"./three.module-ba6167ce.js";import{T as Ge}from"./index-782ff866.js";import"./index-0f3ae51e.js";import"./TextareaAutosize-6a1de228.js";import"./index-51ac9e53.js";import"./ClipLoader-c5e3f404.js";import"./Skeleton-38c1ef25.js";import"./Stack-9bdcdce4.js";import"./isPlainObject-0689f20b.js";import"./Typography-1878e488.js";import"./createSvgIcon-a3d1c07a.js";import"./index-734a9b6e.js";function Ne(t,s,r){const{gl:o,size:i,viewport:d}=W(),y=typeof t=="number"?t:i.width*d.dpr,u=typeof s=="number"?s:i.height*d.dpr,a=(typeof t=="number"?r:t)||{},{samples:c=0,depth:g,...w}=a,p=l.useMemo(()=>{let f;return f=new Le(y,u,{minFilter:ee,magFilter:ee,encoding:o.outputEncoding,type:Fe,...w}),g&&(f.depthTexture=new He(y,u,De)),f.samples=c,f},[]);return l.useLayoutEffect(()=>{p.setSize(y,u),c&&(p.samples=c)},[c,p,y,u]),l.useEffect(()=>()=>p.dispose(),[]),p}const Ze=t=>typeof t=="function",Oe=l.forwardRef(({envMap:t,resolution:s=256,frames:r=1/0,children:o,makeDefault:i,...d},y)=>{const u=W(({set:h})=>h),a=W(({camera:h})=>h),c=W(({size:h})=>h),g=l.useRef(null),w=l.useRef(null),p=Ne(s);l.useLayoutEffect(()=>{d.manual||g.current.updateProjectionMatrix()},[c,d]),l.useLayoutEffect(()=>{g.current.updateProjectionMatrix()}),l.useLayoutEffect(()=>{if(i){const h=a;return u(()=>({camera:g.current})),()=>u(()=>({camera:h}))}},[g,i,u]);let f=0,n=null;const x=Ze(o);return ie(h=>{x&&(r===1/0||f({...Ve,setSelectedEpisodeId:s=>t({selectedEpisodeId:s}),setSelectedEpisodeLink:s=>t({selectedEpisodeLink:s}),setSelectedEpisode:s=>t({selectedEpisode:s}),setClips:s=>t({clips:s})})),Ye=t=>e.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 30 28",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[e.jsx("path",{d:"M7.2998 2.55199C7.2998 1.51094 8.11675 0.666992 9.1245 0.666992H12.1299C13.1376 0.666992 13.9546 1.51094 13.9546 2.55199C13.9546 3.59305 13.1376 4.43699 12.1299 4.43699H9.1245C8.11675 4.43699 7.2998 3.59305 7.2998 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M7.2998 25.449C7.2998 26.49 8.11675 27.334 9.1245 27.334H12.1299C13.1376 27.334 13.9546 26.49 13.9546 25.449C13.9546 24.4079 13.1376 23.564 12.1299 23.564H9.1245C8.11675 23.564 7.2998 24.4079 7.2998 25.449Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 8.29613C2.79102 7.25508 3.60796 6.41113 4.61571 6.41113H12.1292C13.1369 6.41113 13.9539 7.25508 13.9539 8.29613C13.9539 9.33719 13.1369 10.1811 12.1292 10.1811H4.61571C3.60796 10.1811 2.79102 9.33719 2.79102 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M2.79102 19.7039C2.79102 20.7449 3.60796 21.5889 4.61571 21.5889H12.1292C13.1369 21.5889 13.9539 20.7449 13.9539 19.7039C13.9539 18.6628 13.1369 17.8189 12.1292 17.8189H4.61571C3.60796 17.8189 2.79102 18.6628 2.79102 19.7039Z",fill:"currentColor"}),e.jsx("path",{d:"M0 14.094C0 13.0529 0.816945 12.209 1.8247 12.209H12.1289C13.1366 12.209 13.9536 13.0529 13.9536 14.094C13.9536 15.135 13.1366 15.979 12.1289 15.979H1.8247C0.816946 15.979 0 15.135 0 14.094Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 25.448C22.7002 26.4891 21.8833 27.333 20.8755 27.333H17.8701C16.8624 27.333 16.0454 26.4891 16.0454 25.448C16.0454 24.407 16.8624 23.563 17.8701 23.563H20.8755C21.8832 23.563 22.7002 24.407 22.7002 25.448Z",fill:"currentColor"}),e.jsx("path",{d:"M22.7002 2.55199C22.7002 1.51094 21.8833 0.666992 20.8755 0.666992H17.8701C16.8624 0.666992 16.0454 1.51094 16.0454 2.55199C16.0454 3.59305 16.8624 4.43699 17.8701 4.43699H20.8755C21.8832 4.43699 22.7002 3.59305 22.7002 2.55199Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 19.7029C27.209 20.7439 26.392 21.5879 25.3843 21.5879H17.8708C16.8631 21.5879 16.0461 20.7439 16.0461 19.7029C16.0461 18.6618 16.8631 17.8179 17.8708 17.8179H25.3843C26.392 17.8179 27.209 18.6618 27.209 19.7029Z",fill:"currentColor"}),e.jsx("path",{d:"M27.209 8.29613C27.209 7.25508 26.392 6.41113 25.3843 6.41113H17.8708C16.8631 6.41113 16.0461 7.25508 16.0461 8.29613C16.0461 9.33719 16.8631 10.1811 17.8708 10.1811H25.3843C26.392 10.1811 27.209 9.33719 27.209 8.29613Z",fill:"currentColor"}),e.jsx("path",{d:"M30 14.093C30 13.052 29.1831 12.208 28.1753 12.208H17.8711C16.8634 12.208 16.0464 13.052 16.0464 14.093C16.0464 15.1341 16.8634 15.978 17.8711 15.978H28.1753C29.1831 15.978 30 15.1341 30 14.093Z",fill:"currentColor"})]}),qe=()=>e.jsxs(Ue,{children:[e.jsx(Je,{children:e.jsx(Ke,{children:e.jsx(Ye,{})})}),e.jsx(Qe,{children:"Graph Mindset"})]}),Ue=m(_).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` height: 64px; box-sizing: border-box; padding: 20px 23px; diff --git a/build/assets/index-b5adeb0f.js b/build/assets/index-85bc38f1.js similarity index 93% rename from build/assets/index-b5adeb0f.js rename to build/assets/index-85bc38f1.js index e87860e35..c20d33bda 100644 --- a/build/assets/index-b5adeb0f.js +++ b/build/assets/index-85bc38f1.js @@ -1,4 +1,4 @@ -import{r,j as e,bo as k,i as A,F as h,C as F,bd as O,bp as _,s as l,T as z,e as E,t as N,v as D,a as C,B as M,bq as Y,aY as P}from"./index-8f1177e3.js";import{as as X,at as G,au as H,n as R}from"./index-9e906cde.js";import{A as I,T as q}from"./index-d9032019.js";import{S as V,A as W}from"./constants-0d6f6cd8.js";import{C as T}from"./ClipLoader-5d1618f3.js";import"./index-26468b48.js";import"./Stack-55a7903f.js";import"./createSvgIcon-9333dda0.js";import"./TextareaAutosize-ba1f6749.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await k();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:W,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(w)}catch{n([])}finally{o(!1)}};return A.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(V,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(X,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},Q=l.div` +import{r,j as e,bo as k,i as A,F as h,C as F,bd as O,bp as _,s as l,T as z,e as E,t as N,v as D,a as C,B as M,bq as Y,aY as P}from"./index-04f9e7e6.js";import{as as X,at as G,au as H,n as R}from"./index-292d93f3.js";import{A as I,T as q}from"./index-30313f81.js";import{S as V,A as W}from"./constants-2b0c7022.js";import{C as T}from"./ClipLoader-c5e3f404.js";import"./index-782ff866.js";import"./Stack-9bdcdce4.js";import"./createSvgIcon-a3d1c07a.js";import"./TextareaAutosize-6a1de228.js";const $=({selectedType:t,setSelectedType:c})=>{const[p,d]=r.useState([]);r.useEffect(()=>{(async()=>{try{const{data:x}=await k();d(x.edge_types)}catch(x){console.warn(x)}})()},[d]);const n=o=>({label:o,value:o}),f=o=>{c((o==null?void 0:o.value)||"")};return e.jsx(I,{onSelect:f,options:p.map(n),selectedValue:t?n(t):null})},J=({onSelect:t,selectedValue:c,topicId:p})=>{const[d,n]=r.useState([]),[f,o]=r.useState(!1),x=r.useMemo(()=>{const s=async u=>{const i={is_muted:"False",sort_by:W,search:u,skip:"0",limit:"1000"};o(!0);try{const w=(await _(i.search)).data.filter(b=>(b==null?void 0:b.ref_id)!==p);n(w)}catch{n([])}finally{o(!1)}};return A.debounce(s,300)},[p]),m=s=>{const u=s.trim();if(!u){n([]);return}u.length>2&&x(s)},j=s=>{const u=s?d.find(i=>i.ref_id===s.value):null;t(u||null)},a=s=>({label:s.search_value,value:s.ref_id,type:s.node_type}),v=s=>s.map(a);return c?e.jsxs(h,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:c.search_value}),e.jsx(V,{onClick:()=>t(null),size:"medium",children:e.jsx(F,{})})]}):e.jsx(I,{handleInputChange:m,isLoading:f,onSelect:j,options:v(d)||O,selectedValue:c?a(c):null})},K=({from:t,onSelect:c,selectedType:p,setSelectedType:d,selectedToNode:n,setIsSwapped:f,isSwapped:o})=>{const x=()=>{f()},m=t&&("search_value"in t?t.search_value:t.name);return e.jsxs(h,{mb:20,children:[e.jsx(h,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(h,{align:"center",direction:"row",children:e.jsx(U,{children:"Add Edge"})})}),e.jsxs(Z,{swap:o,children:[e.jsx(h,{children:e.jsx(ee,{disabled:!0,label:o?"To":"From",swap:o,value:m})}),e.jsxs(h,{my:16,children:[e.jsx(oe,{children:"Type"}),e.jsx($,{selectedType:p,setSelectedType:d})]}),e.jsx(h,{children:e.jsxs(te,{children:[e.jsx(se,{children:o?"From":"To"}),e.jsx(J,{onSelect:c,selectedValue:n,topicId:t==null?void 0:t.ref_id})]})}),e.jsxs(Q,{children:[e.jsx(ne,{children:e.jsx(X,{})}),e.jsx(ae,{onClick:x,children:e.jsx(G,{})}),e.jsx(ie,{children:e.jsx(H,{})})]})]})]})},Q=l.div` position: absolute; top: 26px; bottom: 26px; diff --git a/build/assets/index-9a560549.js b/build/assets/index-971cba7b.js similarity index 63% rename from build/assets/index-9a560549.js rename to build/assets/index-971cba7b.js index 746c24868..2c1f59519 100644 --- a/build/assets/index-9a560549.js +++ b/build/assets/index-971cba7b.js @@ -1,62 +1,62 @@ -import{r as b,a1 as gu,x as Se,j as P,R as pp,a8 as V_,J as N,a9 as U_,c as mp,s as ye,a as oe,F as Me,B as gp,u as Jt,b as _u,k as bo,n as B_,T as _p,d as Hn,aa as yu,l as W_,e as Ai,E as yp,ab as q_,ac as H_,i as Y_,A as Fr,ad as G_,C as X_,ae as Z_,af as jh}from"./index-8f1177e3.js";import{u as Ye,a as qt,m as lc,b as uc,e as vu,L as bu,c as K_,d as Q_,q as J_,g as ey,h as vp,T as xu,f as wu,t as _a,H as xo,P as ty,i as ny,j as sy,k as bp,C as zh,l as Vh,n as ry}from"./index-ca6739d4.js";import{P as Ee}from"./index-8fe66f52.js";import{m as Uh,H as iy,E as oy,n as As,h as Ue,o as xp,N as Vi,I as hc,p as ay,q as Bh,D as cy,r as ly,R as uy,g as hy,s as wp,P as dy,t as kp,v as fy,O as py}from"./index-9e906cde.js";import{T as my}from"./TextareaAutosize-ba1f6749.js";import{a as zo,b as gy,V as _e,c as _y,d as yy,M as fr,e as Te,f as vy,B as by,S as Tp,P as Bc,g as xy,h as ua,i as Ms,T as dc,j as ya,k as wy,l as Wh,G as ky,C as va,m as Ty,n as wo,Q as Ey,o as Ep,p as Cy,q as Sy,r as Oy,E as Ay,s as Ry,t as fc,u as qh,v as Cp,w as Sp}from"./three.module-ba6167ce.js";import{T as Dy}from"./index-26468b48.js";import{u as Py}from"./index-bdc490cb.js";import{C as My}from"./ClipLoader-5d1618f3.js";const Ny=["top","right","bottom","left"],ys=Math.min,Lt=Math.max,ba=Math.round,Vo=Math.floor,vs=n=>({x:n,y:n}),Iy={left:"right",right:"left",bottom:"top",top:"bottom"},$y={start:"end",end:"start"};function xl(n,e,t){return Lt(n,ys(e,t))}function Yn(n,e){return typeof n=="function"?n(e):n}function Gn(n){return n.split("-")[0]}function Jr(n){return n.split("-")[1]}function ku(n){return n==="x"?"y":"x"}function Tu(n){return n==="y"?"height":"width"}function ei(n){return["top","bottom"].includes(Gn(n))?"y":"x"}function Eu(n){return ku(ei(n))}function Fy(n,e,t){t===void 0&&(t=!1);const s=Jr(n),r=Eu(n),i=Tu(r);let o=r==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=xa(o)),[o,xa(o)]}function Ly(n){const e=xa(n);return[wl(n),e,wl(e)]}function wl(n){return n.replace(/start|end/g,e=>$y[e])}function jy(n,e,t){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return t?e?r:s:e?s:r;case"left":case"right":return e?i:o;default:return[]}}function zy(n,e,t,s){const r=Jr(n);let i=jy(Gn(n),t==="start",s);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(wl)))),i}function xa(n){return n.replace(/left|right|bottom|top/g,e=>Iy[e])}function Vy(n){return{top:0,right:0,bottom:0,left:0,...n}}function Op(n){return typeof n!="number"?Vy(n):{top:n,right:n,bottom:n,left:n}}function wa(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function Hh(n,e,t){let{reference:s,floating:r}=n;const i=ei(e),o=Eu(e),a=Tu(o),c=Gn(e),l=i==="y",u=s.x+s.width/2-r.width/2,h=s.y+s.height/2-r.height/2,d=s[a]/2-r[a]/2;let f;switch(c){case"top":f={x:u,y:s.y-r.height};break;case"bottom":f={x:u,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:h};break;case"left":f={x:s.x-r.width,y:h};break;default:f={x:s.x,y:s.y}}switch(Jr(e)){case"start":f[o]-=d*(t&&l?-1:1);break;case"end":f[o]+=d*(t&&l?-1:1);break}return f}const Uy=async(n,e,t)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=t,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:n,floating:e,strategy:r}),{x:u,y:h}=Hh(l,s,c),d=s,f={},g=0;for(let p=0;p({name:"arrow",options:n,async fn(e){const{x:t,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=Yn(n,e)||{};if(l==null)return{};const h=Op(u),d={x:t,y:s},f=Eu(r),g=Tu(f),p=await o.getDimensions(l),m=f==="y",_=m?"top":"left",T=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=i.reference[g]+i.reference[f]-d[f]-i.floating[g],v=d[f]-i.reference[f],k=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=k?k[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(k)))&&(E=a.floating[w]||i.floating[g]);const x=y/2-v/2,C=E/2-p[g]/2-1,S=ys(h[_],C),R=ys(h[T],C),O=S,L=E-p[g]-R,z=E/2-p[g]/2+x,W=xl(O,z,L),B=!c.arrow&&Jr(r)!=null&&z!=W&&i.reference[g]/2-(zO<=0)){var C,S;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,L=v[O];if(L)return{data:{index:O,overflows:x},reset:{placement:L}};let z=(S=x.filter(W=>W.overflows[0]<=0).sort((W,B)=>W.overflows[1]-B.overflows[1])[0])==null?void 0:S.placement;if(!z)switch(f){case"bestFit":{var R;const W=(R=x.map(B=>[B.placement,B.overflows.filter(V=>V>0).reduce((V,U)=>V+U,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:R[0];W&&(z=W);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Gh(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function Xh(n){return Ny.some(e=>n[e]>=0)}const Wy=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t}=e,{strategy:s="referenceHidden",...r}=Yn(n,e);switch(s){case"referenceHidden":{const i=await Ui(e,{...r,elementContext:"reference"}),o=Gh(i,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Xh(o)}}}case"escaped":{const i=await Ui(e,{...r,altBoundary:!0}),o=Gh(i,t.floating);return{data:{escapedOffsets:o,escaped:Xh(o)}}}default:return{}}}}};async function qy(n,e){const{placement:t,platform:s,elements:r}=n,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=Gn(t),a=Jr(t),c=ei(t)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,h=Yn(e,n);let{mainAxis:d,crossAxis:f,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&typeof g=="number"&&(f=a==="end"?g*-1:g),c?{x:f*u,y:d*l}:{x:d*l,y:f*u}}const Hy=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,s;const{x:r,y:i,placement:o,middlewareData:a}=e,c=await qy(e,n);return o===((t=a.offset)==null?void 0:t.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},Yy=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:s,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:m=>{let{x:_,y:T}=m;return{x:_,y:T}}},...c}=Yn(n,e),l={x:t,y:s},u=await Ui(e,c),h=ei(Gn(r)),d=ku(h);let f=l[d],g=l[h];if(i){const m=d==="y"?"top":"left",_=d==="y"?"bottom":"right",T=f+u[m],w=f-u[_];f=xl(T,f,w)}if(o){const m=h==="y"?"top":"left",_=h==="y"?"bottom":"right",T=g+u[m],w=g-u[_];g=xl(T,g,w)}const p=a.fn({...e,[d]:f,[h]:g});return{...p,data:{x:p.x-t,y:p.y-s}}}}},Gy=function(n){return n===void 0&&(n={}),{options:n,fn(e){const{x:t,y:s,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Yn(n,e),u={x:t,y:s},h=ei(r),d=ku(h);let f=u[d],g=u[h];const p=Yn(a,e),m=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=d==="y"?"height":"width",y=i.reference[d]-i.floating[w]+m.mainAxis,v=i.reference[d]+i.reference[w]-m.mainAxis;fv&&(f=v)}if(l){var _,T;const w=d==="y"?"width":"height",y=["top","left"].includes(Gn(r)),v=i.reference[h]-i.floating[w]+(y&&((_=o.offset)==null?void 0:_[h])||0)+(y?0:m.crossAxis),k=i.reference[h]+i.reference[w]+(y?0:((T=o.offset)==null?void 0:T[h])||0)-(y?m.crossAxis:0);gk&&(g=k)}return{[d]:f,[h]:g}}}},Xy=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:s,platform:r,elements:i}=e,{apply:o=()=>{},...a}=Yn(n,e),c=await Ui(e,a),l=Gn(t),u=Jr(t),h=ei(t)==="y",{width:d,height:f}=s.floating;let g,p;l==="top"||l==="bottom"?(g=l,p=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,g=u==="end"?"top":"bottom");const m=f-c[g],_=d-c[p],T=!e.middlewareData.shift;let w=m,y=_;if(h){const k=d-c.left-c.right;y=u||T?ys(_,k):k}else{const k=f-c.top-c.bottom;w=u||T?ys(m,k):k}if(T&&!u){const k=Lt(c.left,0),E=Lt(c.right,0),x=Lt(c.top,0),C=Lt(c.bottom,0);h?y=d-2*(k!==0||E!==0?k+E:Lt(c.left,c.right)):w=f-2*(x!==0||C!==0?x+C:Lt(c.top,c.bottom))}await o({...e,availableWidth:y,availableHeight:w});const v=await r.getDimensions(i.floating);return d!==v.width||f!==v.height?{reset:{rects:!0}}:{}}}};function bs(n){return Ap(n)?(n.nodeName||"").toLowerCase():"#document"}function Vt(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function ts(n){var e;return(e=(Ap(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function Ap(n){return n instanceof Node||n instanceof Vt(n).Node}function Xn(n){return n instanceof Element||n instanceof Vt(n).Element}function Sn(n){return n instanceof HTMLElement||n instanceof Vt(n).HTMLElement}function Zh(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Vt(n).ShadowRoot}function ko(n){const{overflow:e,overflowX:t,overflowY:s,display:r}=en(n);return/auto|scroll|overlay|hidden|clip/.test(e+s+t)&&!["inline","contents"].includes(r)}function Zy(n){return["table","td","th"].includes(bs(n))}function Cu(n){const e=Su(),t=en(n);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function Ky(n){let e=Lr(n);for(;Sn(e)&&!pc(e);){if(Cu(e))return e;e=Lr(e)}return null}function Su(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pc(n){return["html","body","#document"].includes(bs(n))}function en(n){return Vt(n).getComputedStyle(n)}function mc(n){return Xn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Lr(n){if(bs(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Zh(n)&&n.host||ts(n);return Zh(e)?e.host:e}function Rp(n){const e=Lr(n);return pc(e)?n.ownerDocument?n.ownerDocument.body:n.body:Sn(e)&&ko(e)?e:Rp(e)}function Bi(n,e,t){var s;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Rp(n),i=r===((s=n.ownerDocument)==null?void 0:s.body),o=Vt(r);return i?e.concat(o,o.visualViewport||[],ko(r)?r:[],o.frameElement&&t?Bi(o.frameElement):[]):e.concat(r,Bi(r,[],t))}function Dp(n){const e=en(n);let t=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=Sn(n),i=r?n.offsetWidth:t,o=r?n.offsetHeight:s,a=ba(t)!==i||ba(s)!==o;return a&&(t=i,s=o),{width:t,height:s,$:a}}function Ou(n){return Xn(n)?n:n.contextElement}function Rr(n){const e=Ou(n);if(!Sn(e))return vs(1);const t=e.getBoundingClientRect(),{width:s,height:r,$:i}=Dp(e);let o=(i?ba(t.width):t.width)/s,a=(i?ba(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Qy=vs(0);function Pp(n){const e=Vt(n);return!Su()||!e.visualViewport?Qy:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Jy(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Vt(n)?!1:e}function Qs(n,e,t,s){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),i=Ou(n);let o=vs(1);e&&(s?Xn(s)&&(o=Rr(s)):o=Rr(n));const a=Jy(i,t,s)?Pp(i):vs(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,h=r.height/o.y;if(i){const d=Vt(i),f=s&&Xn(s)?Vt(s):s;let g=d.frameElement;for(;g&&s&&f!==d;){const p=Rr(g),m=g.getBoundingClientRect(),_=en(g),T=m.left+(g.clientLeft+parseFloat(_.paddingLeft))*p.x,w=m.top+(g.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,l*=p.y,u*=p.x,h*=p.y,c+=T,l+=w,g=Vt(g).frameElement}}return wa({width:u,height:h,x:c,y:l})}function e1(n){let{rect:e,offsetParent:t,strategy:s}=n;const r=Sn(t),i=ts(t);if(t===i)return e;let o={scrollLeft:0,scrollTop:0},a=vs(1);const c=vs(0);if((r||!r&&s!=="fixed")&&((bs(t)!=="body"||ko(i))&&(o=mc(t)),Sn(t))){const l=Qs(t);a=Rr(t),c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+c.x,y:e.y*a.y-o.scrollTop*a.y+c.y}}function t1(n){return Array.from(n.getClientRects())}function Mp(n){return Qs(ts(n)).left+mc(n).scrollLeft}function n1(n){const e=ts(n),t=mc(n),s=n.ownerDocument.body,r=Lt(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),i=Lt(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let o=-t.scrollLeft+Mp(n);const a=-t.scrollTop;return en(s).direction==="rtl"&&(o+=Lt(e.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function s1(n,e){const t=Vt(n),s=ts(n),r=t.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=Su();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function r1(n,e){const t=Qs(n,!0,e==="fixed"),s=t.top+n.clientTop,r=t.left+n.clientLeft,i=Sn(n)?Rr(n):vs(1),o=n.clientWidth*i.x,a=n.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function Kh(n,e,t){let s;if(e==="viewport")s=s1(n,t);else if(e==="document")s=n1(ts(n));else if(Xn(e))s=r1(e,t);else{const r=Pp(n);s={...e,x:e.x-r.x,y:e.y-r.y}}return wa(s)}function Np(n,e){const t=Lr(n);return t===e||!Xn(t)||pc(t)?!1:en(t).position==="fixed"||Np(t,e)}function i1(n,e){const t=e.get(n);if(t)return t;let s=Bi(n,[],!1).filter(a=>Xn(a)&&bs(a)!=="body"),r=null;const i=en(n).position==="fixed";let o=i?Lr(n):n;for(;Xn(o)&&!pc(o);){const a=en(o),c=Cu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ko(o)&&!c&&Np(n,o))?s=s.filter(u=>u!==o):r=a,o=Lr(o)}return e.set(n,s),s}function o1(n){let{element:e,boundary:t,rootBoundary:s,strategy:r}=n;const o=[...t==="clippingAncestors"?i1(e,this._c):[].concat(t),s],a=o[0],c=o.reduce((l,u)=>{const h=Kh(e,u,r);return l.top=Lt(h.top,l.top),l.right=ys(h.right,l.right),l.bottom=ys(h.bottom,l.bottom),l.left=Lt(h.left,l.left),l},Kh(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function a1(n){return Dp(n)}function c1(n,e,t){const s=Sn(e),r=ts(e),i=t==="fixed",o=Qs(n,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=vs(0);if(s||!s&&!i)if((bs(e)!=="body"||ko(r))&&(a=mc(e)),s){const l=Qs(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else r&&(c.x=Mp(r));return{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function Qh(n,e){return!Sn(n)||en(n).position==="fixed"?null:e?e(n):n.offsetParent}function Ip(n,e){const t=Vt(n);if(!Sn(n))return t;let s=Qh(n,e);for(;s&&Zy(s)&&en(s).position==="static";)s=Qh(s,e);return s&&(bs(s)==="html"||bs(s)==="body"&&en(s).position==="static"&&!Cu(s))?t:s||Ky(n)||t}const l1=async function(n){let{reference:e,floating:t,strategy:s}=n;const r=this.getOffsetParent||Ip,i=this.getDimensions;return{reference:c1(e,await r(t),s),floating:{x:0,y:0,...await i(t)}}};function u1(n){return en(n).direction==="rtl"}const h1={convertOffsetParentRelativeRectToViewportRelativeRect:e1,getDocumentElement:ts,getClippingRect:o1,getOffsetParent:Ip,getElementRects:l1,getClientRects:t1,getDimensions:a1,getScale:Rr,isElement:Xn,isRTL:u1};function d1(n,e){let t=null,s;const r=ts(n);function i(){clearTimeout(s),t&&t.disconnect(),t=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:h,height:d}=n.getBoundingClientRect();if(a||e(),!h||!d)return;const f=Vo(u),g=Vo(r.clientWidth-(l+h)),p=Vo(r.clientHeight-(u+d)),m=Vo(l),T={rootMargin:-f+"px "+-g+"px "+-p+"px "+-m+"px",threshold:Lt(0,ys(1,c))||1};let w=!0;function y(v){const k=v[0].intersectionRatio;if(k!==c){if(!w)return o();k?o(!1,k):s=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{t=new IntersectionObserver(y,{...T,root:r.ownerDocument})}catch{t=new IntersectionObserver(y,T)}t.observe(n)}return o(!0),i}function f1(n,e,t,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=Ou(n),u=r||i?[...l?Bi(l):[],...Bi(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});const h=l&&a?d1(l,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(_=>{let[T]=_;T&&T.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(e)})),t()}),l&&!c&&f.observe(l),f.observe(e));let g,p=c?Qs(n):null;c&&m();function m(){const _=Qs(n);p&&(_.x!==p.x||_.y!==p.y||_.width!==p.width||_.height!==p.height)&&t(),p=_,g=requestAnimationFrame(m)}return t(),()=>{u.forEach(_=>{r&&_.removeEventListener("scroll",t),i&&_.removeEventListener("resize",t)}),h&&h(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(g)}}const p1=(n,e,t)=>{const s=new Map,r={platform:h1,...t},i={...r.platform,_c:s};return Uy(n,e,{...r,platform:i})},m1=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:s,padding:r}=typeof n=="function"?n(t):n;return s&&e(s)?s.current!=null?Yh({element:s.current,padding:r}).fn(t):{}:s?Yh({element:s,padding:r}).fn(t):{}}}};var ha=typeof document<"u"?b.useLayoutEffect:b.useEffect;function ka(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,s,r;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(s=t;s--!==0;)if(!ka(n[s],e[s]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(s=t;s--!==0;)if(!{}.hasOwnProperty.call(e,r[s]))return!1;for(s=t;s--!==0;){const i=r[s];if(!(i==="_owner"&&n.$$typeof)&&!ka(n[i],e[i]))return!1}return!0}return n!==n&&e!==e}function $p(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Jh(n,e){const t=$p(n);return Math.round(e*t)/t}function ed(n){const e=b.useRef(n);return ha(()=>{e.current=n}),e}function g1(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=n,[u,h]=b.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=b.useState(s);ka(d,s)||f(s);const[g,p]=b.useState(null),[m,_]=b.useState(null),T=b.useCallback(B=>{B!=k.current&&(k.current=B,p(B))},[p]),w=b.useCallback(B=>{B!==E.current&&(E.current=B,_(B))},[_]),y=i||g,v=o||m,k=b.useRef(null),E=b.useRef(null),x=b.useRef(u),C=ed(c),S=ed(r),R=b.useCallback(()=>{if(!k.current||!E.current)return;const B={placement:e,strategy:t,middleware:d};S.current&&(B.platform=S.current),p1(k.current,E.current,B).then(V=>{const U={...V,isPositioned:!0};O.current&&!ka(x.current,U)&&(x.current=U,gu.flushSync(()=>{h(U)}))})},[d,e,t,S]);ha(()=>{l===!1&&x.current.isPositioned&&(x.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[l]);const O=b.useRef(!1);ha(()=>(O.current=!0,()=>{O.current=!1}),[]),ha(()=>{if(y&&(k.current=y),v&&(E.current=v),y&&v){if(C.current)return C.current(y,v,R);R()}},[y,v,R,C]);const L=b.useMemo(()=>({reference:k,floating:E,setReference:T,setFloating:w}),[T,w]),z=b.useMemo(()=>({reference:y,floating:v}),[y,v]),W=b.useMemo(()=>{const B={position:t,left:0,top:0};if(!z.floating)return B;const V=Jh(z.floating,u.x),U=Jh(z.floating,u.y);return a?{...B,transform:"translate("+V+"px, "+U+"px)",...$p(z.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:V,top:U}},[t,a,z.floating,u.x,u.y]);return b.useMemo(()=>({...u,update:R,refs:L,elements:z,floatingStyles:W}),[u,R,L,z,W])}function _1(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const g=u(e);if(!h(d,g)){const p=d;l(d=g,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const y1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),td=y1?b.useEffect:b.useLayoutEffect;function v1(n){const e=typeof n=="function"?_1(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=b.useReducer(m=>m+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(r),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),td(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const g=b.useRef(o);td(()=>{const m=()=>{try{const T=e.getState(),w=c.current(T);l.current(h.current,w)||(a.current=T,h.current=w,i())}catch{u.current=!0,i()}},_=e.subscribe(m);return e.getState()!==g.current&&m(),_},[]);const p=f?d:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}let ui=0;const b1=v1(n=>(zo.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-ui)/(s-ui)*100})},zo.onLoad=()=>{n({active:!1})},zo.onError=e=>n(t=>({errors:[...t.errors,e]})),zo.onProgress=(e,t,s)=>{t===s&&(ui=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-ui)/(s-ui)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),x1=n=>`Loading ${n.toFixed(2)}%`;function w1({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:r=x1,initialState:i=o=>o}){const{active:o,progress:a}=b1(),c=b.useRef(0),l=b.useRef(0),u=b.useRef(null),[h,d]=b.useState(i(o));b.useEffect(()=>{let g;return o!==h&&(g=setTimeout(()=>d(o),300)),()=>clearTimeout(g)},[h,o]);const f=b.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=r(c.current),c.current(f(),()=>cancelAnimationFrame(l.current)),[f]),h?b.createElement("div",{style:{...Uo.container,opacity:o?1:0,...n}},b.createElement("div",null,b.createElement("div",{style:{...Uo.inner,...e}},b.createElement("div",{style:{...Uo.bar,transform:`scaleX(${a/100})`,...t}}),b.createElement("span",{ref:u,style:{...Uo.data,...s}})))):null}const Uo={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}},Wc=new gy,qc=new _e,pr=new _e,rn=new _e,Nn=new _e,vn=new _e,In=new _e,$n=new _e,hi=new _e,di=new _e,fi=new _e,Bo=new _e,pi=new _e,mi=new _e,gi=new _e;class k1{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new _e,this.endPoint=new _e,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Wc,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){pr.copy(e),pr.x=Math.min(e.x,t.x),pr.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),rn.setFromMatrixPosition(this.camera.matrixWorld),Nn.copy(pr),vn.set(t.x,pr.y,0),In.copy(t),$n.set(pr.x,t.y,0),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),pi.copy(Nn).sub(rn),mi.copy(vn).sub(rn),gi.copy(In).sub(rn),pi.normalize(),mi.normalize(),gi.normalize(),pi.multiplyScalar(this.deep),mi.multiplyScalar(this.deep),gi.multiplyScalar(this.deep),pi.add(rn),mi.add(rn),gi.add(rn);var s=Wc.planes;s[0].setFromCoplanarPoints(rn,Nn,vn),s[1].setFromCoplanarPoints(rn,vn,In),s[2].setFromCoplanarPoints(In,$n,rn),s[3].setFromCoplanarPoints($n,Nn,rn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(gi,mi,pi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const r=Math.min(e.x,t.x),i=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);Nn.set(r,i,-1),vn.set(o,i,-1),In.set(o,a,-1),$n.set(r,a,-1),hi.set(r,i,1),di.set(o,i,1),fi.set(o,a,1),Bo.set(r,a,1),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),hi.unproject(this.camera),di.unproject(this.camera),fi.unproject(this.camera),Bo.unproject(this.camera);var s=Wc.planes;s[0].setFromCoplanarPoints(Nn,hi,di),s[1].setFromCoplanarPoints(vn,di,fi),s[2].setFromCoplanarPoints(fi,Bo,$n),s[3].setFromCoplanarPoints(Bo,hi,Nn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(fi,di,hi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),qc.copy(t.geometry.boundingSphere.center),qc.applyMatrix4(t.matrixWorld),e.containsPoint(qc)&&this.collection.push(t)),t.children.length>0)for(let s=0;s0?X.copy(O[O.length-1]):X.identity())}function r(F){const j=new Ms,A=new Te,I=new Te,Y=new Te;let $=!0,q=!1;const re=F.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let ie=0,ne=re.length;ie0&&(A.copy(Y),j.currentPath.currentPoint.copy(A),$=!0);break;default:console.warn(ge)}q=!1}return j}function i(F){if(!(!F.sheet||!F.sheet.cssRules||!F.sheet.cssRules.length))for(let j=0;jY.trim());for(let Y=0;Y1){const os=Math.sqrt(J);j=os*j,A=os*A,te=j*j,H=A*A}const se=te*D+H*M,le=(te*H-se)/se;let be=Math.sqrt(Math.max(0,le));Y===$&&(be=-be);const et=be*j*ge/A,ee=-be*A*ne/j,fe=Math.cos(I)*et-Math.sin(I)*ee+(q.x+ae.x)/2,tt=Math.sin(I)*et+Math.cos(I)*ee+(q.y+ae.y)/2,at=a(1,0,(ne-et)/j,(ge-ee)/A),$t=a((ne-et)/j,(ge-ee)/A,(-ne-et)/j,(-ge-ee)/A)%(Math.PI*2);F.currentPath.absellipse(fe,tt,j,A,at,at+$t,$===0,I)}function a(F,j,A,I){const Y=F*A+j*I,$=Math.sqrt(F*F+j*j)*Math.sqrt(A*A+I*I);let q=Math.acos(Math.max(-1,Math.min(1,Y/$)));return F*I-j*A<0&&(q=-q),q}function c(F){const j=w(F.getAttribute("x")||0),A=w(F.getAttribute("y")||0),I=w(F.getAttribute("rx")||F.getAttribute("ry")||0),Y=w(F.getAttribute("ry")||F.getAttribute("rx")||0),$=w(F.getAttribute("width")),q=w(F.getAttribute("height")),ae=1-.551915024494,re=new Ms;return re.moveTo(j+I,A),re.lineTo(j+$-I,A),(I!==0||Y!==0)&&re.bezierCurveTo(j+$-I*ae,A,j+$,A+Y*ae,j+$,A+Y),re.lineTo(j+$,A+q-Y),(I!==0||Y!==0)&&re.bezierCurveTo(j+$,A+q-Y*ae,j+$-I*ae,A+q,j+$-I,A+q),re.lineTo(j+I,A+q),(I!==0||Y!==0)&&re.bezierCurveTo(j+I*ae,A+q,j,A+q-Y*ae,j,A+q-Y),re.lineTo(j,A+Y),(I!==0||Y!==0)&&re.bezierCurveTo(j,A+Y*ae,j+I*ae,A,j+I,A),re}function l(F){function j($,q,ae){const re=w(q),ie=w(ae);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(A,j),I.currentPath.autoClose=!0,I}function u(F){function j($,q,ae){const re=w(q),ie=w(ae);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(A,j),I.currentPath.autoClose=!1,I}function h(F){const j=w(F.getAttribute("cx")||0),A=w(F.getAttribute("cy")||0),I=w(F.getAttribute("r")||0),Y=new Bc;Y.absarc(j,A,I,0,Math.PI*2);const $=new Ms;return $.subPaths.push(Y),$}function d(F){const j=w(F.getAttribute("cx")||0),A=w(F.getAttribute("cy")||0),I=w(F.getAttribute("rx")||0),Y=w(F.getAttribute("ry")||0),$=new Bc;$.absellipse(j,A,I,Y,0,Math.PI*2);const q=new Ms;return q.subPaths.push($),q}function f(F){const j=w(F.getAttribute("x1")||0),A=w(F.getAttribute("y1")||0),I=w(F.getAttribute("x2")||0),Y=w(F.getAttribute("y2")||0),$=new Ms;return $.moveTo(j,A),$.lineTo(I,Y),$.currentPath.autoClose=!1,$}function g(F,j){j=Object.assign({},j);let A={};if(F.hasAttribute("class")){const q=F.getAttribute("class").split(/\s/).filter(Boolean).map(ae=>ae.trim());for(let ae=0;ae0&&j.premultiply(O[O.length-1]),X.copy(j),O.push(j),j}function v(F){const j=new fr,A=L;if(F.nodeName==="use"&&(F.hasAttribute("x")||F.hasAttribute("y"))){const I=w(F.getAttribute("x")),Y=w(F.getAttribute("y"));j.translate(I,Y)}if(F.hasAttribute("transform")){const I=F.getAttribute("transform").split(")");for(let Y=I.length-1;Y>=0;Y--){const $=I[Y].trim();if($==="")continue;const q=$.indexOf("("),ae=$.length;if(q>0&&q=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),A.translate(ne,ge)}break;case"rotate":if(ie.length>=1){let ne=0,ge=0,te=0;ne=-ie[0]*Math.PI/180,ie.length>=3&&(ge=ie[1],te=ie[2]),z.identity().translate(-ge,-te),W.identity().rotate(ne),B.multiplyMatrices(W,z),z.identity().translate(ge,te),A.multiplyMatrices(z,B)}break;case"scale":if(ie.length>=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),A.scale(ne,ge)}break;case"skewX":ie.length===1&&A.set(1,Math.tan(ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":ie.length===1&&A.set(1,0,0,Math.tan(ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":ie.length===6&&A.set(ie[0],ie[2],ie[4],ie[1],ie[3],ie[5],0,0,1);break}}j.premultiply(A)}}return j}function k(F,j){function A($){U.set($.x,$.y,1).applyMatrix3(j),$.set(U.x,U.y)}const I=E(j),Y=F.subPaths;for(let $=0,q=Y.length;$=1||B<0||B>1)return null;if(O===0&&z===0){for(let V=0;V<2;V++)if(o(V===0?T:w,m,_),r.loc==s.ORIGIN){const U=V===0?T:w;return{x:U.x,y:U.y,t:r.t}}else if(r.loc==s.BETWEEN){const U=+(y+r.t*(v-y)).toPrecision(10),X=+(x+r.t*(C-x)).toPrecision(10);return{x:U,y:X,t:r.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?T:w,m,_),r.loc==s.ORIGIN){const K=X===0?T:w;return{x:K.x,y:K.y,t:r.t}}const V=+(y+W*(v-y)).toPrecision(10),U=+(x+W*(C-x)).toPrecision(10);return{x:V,y:U,t:W}}}function o(m,_,T){const w=T.x-_.x,y=T.y-_.y,v=m.x-_.x,k=m.y-_.y,E=w*k-v*y;if(m.x===_.x&&m.y===_.y){r.loc=s.ORIGIN,r.t=0;return}if(m.x===T.x&&m.y===T.y){r.loc=s.DESTINATION,r.t=1;return}if(E<-Number.EPSILON){r.loc=s.LEFT;return}if(E>Number.EPSILON){r.loc=s.RIGHT;return}if(w*v<0||y*k<0){r.loc=s.BEHIND;return}if(Math.sqrt(w*w+y*y)R.t<=S.t+Number.EPSILON&&R.t>=S.t-Number.EPSILON)===void 0&&(T.push(S),w.push(new Te(S.x,S.y)))}}return w}function c(m,_,T){const w=new Te;_.getCenter(w);const y=[];return T.forEach(v=>{v.boundingBox.containsPoint(w)&&a(m,v.points).forEach(E=>{y.push({identifier:v.identifier,isCW:v.isCW,point:E})})}),y.sort((v,k)=>v.point.x-k.point.x),y}function l(m,_,T,w,y){(y==null||y==="")&&(y="nonzero");const v=new Te;m.boundingBox.getCenter(v);const k=[new Te(T,v.y),new Te(w,v.y)],E=c(k,m.boundingBox,_);E.sort((L,z)=>L.point.x-z.point.x);const x=[],C=[];E.forEach(L=>{L.identifier===m.identifier?x.push(L):C.push(L)});const S=x[0].point.x,R=[];let O=0;for(;O0&&R[R.length-1]===C[O].identifier?R.pop():R.push(C[O].identifier),O++;if(R.push(m.identifier),y==="evenodd"){const L=R.length%2===0,z=R[R.length-2];return{identifier:m.identifier,isHole:L,for:z}}else if(y==="nonzero"){let L=!0,z=null,W=null;for(let B=0;B{const _=m.getPoints();let T=-999999999,w=999999999,y=-999999999,v=999999999;for(let k=0;k<_.length;k++){const E=_[k];E.y>T&&(T=E.y),E.yy&&(y=E.x),E.x=v&&(h=v-1),{curves:m.curves,points:_,isCW:vy.isClockWise(_),identifier:u++,boundingBox:new by(new Te(v,w),new Te(y,T))}});f=f.filter(m=>m.points.length>1);const g=f.map(m=>l(m,f,h,d,e.userData.style.fillRule)),p=[];return f.forEach(m=>{if(!g[m.identifier].isHole){const T=new Tp;T.curves=m.curves,g.filter(y=>y.isHole&&y.for===m.identifier).forEach(y=>{const v=f[y.identifier],k=new Bc;k.curves=v.curves,T.holes.push(k)}),p.push(T)}}),p}static getStrokeStyle(e,t,s,r,i){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",s=s!==void 0?s:"miter",r=r!==void 0?r:"butt",i=i!==void 0?i:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:s,strokeLineCap:r,strokeMiterLimit:i}}static pointsToStroke(e,t,s,r){const i=[],o=[],a=[];if(Pi.pointsToStrokeWithBuffers(e,t,s,r,i,o,a)===0)return null;const c=new xy;return c.setAttribute("position",new ua(i,3)),c.setAttribute("normal",new ua(o,3)),c.setAttribute("uv",new ua(a,2)),c}static pointsToStrokeWithBuffers(e,t,s,r,i,o,a,c){const l=new Te,u=new Te,h=new Te,d=new Te,f=new Te,g=new Te,p=new Te,m=new Te,_=new Te,T=new Te,w=new Te,y=new Te,v=new Te,k=new Te,E=new Te,x=new Te,C=new Te;s=s!==void 0?s:12,r=r!==void 0?r:.001,c=c!==void 0?c:0,e=ge(e);const S=e.length;if(S<2)return 0;const R=e[0].equals(e[S-1]);let O,L=e[0],z;const W=t.strokeWidth/2,B=1/(S-1);let V=0,U,X,K,Q,F=!1,j=0,A=c*3,I=c*2;Y(e[0],e[1],l).multiplyScalar(W),m.copy(e[0]).sub(l),_.copy(e[0]).add(l),T.copy(m),w.copy(_);for(let te=1;te=r&&M.push(te[D]);return M.push(te[te.length-1]),M}}}function T1(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:g}=Ye(),[p,m]=b.useState(!1),[_,T]=b.useReducer((k,{object:E,shift:x})=>E===void 0?[]:Array.isArray(E)?E:x?k.includes(E)?k.filter(C=>C!==E):[E,...k]:k[0]===E?[]:[E],[]);b.useEffect(()=>void(s==null?void 0:s(_)),[_]);const w=b.useCallback(k=>{k.stopPropagation(),T({object:o([k.object])[0],shift:e&&k.shiftKey})},[]),y=b.useCallback(k=>!p&&T({}),[p]),v=b.useRef(null);return b.useEffect(()=>{if(!n||!e)return;const k=new k1(l,v.current),E=document.createElement("div");E.style.pointerEvents="none",E.style.border=r,E.style.backgroundColor=i,E.style.position="fixed";const x=new Te,C=new Te,S=new Te,R=g().events.enabled,O=d==null?void 0:d.enabled;let L=!1;function z(F,j){const{offsetX:A,offsetY:I}=F,{width:Y,height:$}=f;j.set(A/Y*2-1,-(I/$)*2+1)}function W(F){var j;d&&(d.enabled=!1),c({enabled:!1}),L=!0,(j=h.domElement.parentElement)==null||j.appendChild(E),E.style.left=`${F.clientX}px`,E.style.top=`${F.clientY}px`,E.style.width="0px",E.style.height="0px",x.x=F.clientX,x.y=F.clientY}function B(F){S.x=Math.max(x.x,F.clientX),S.y=Math.max(x.y,F.clientY),C.x=Math.min(x.x,F.clientX),C.y=Math.min(x.y,F.clientY),E.style.left=`${C.x}px`,E.style.top=`${C.y}px`,E.style.width=`${S.x-C.x}px`,E.style.height=`${S.y-C.y}px`}function V(){if(L){var F;d&&(d.enabled=O),c({enabled:R}),L=!1,(F=E.parentElement)==null||F.removeChild(E)}}function U(F){F.shiftKey&&(W(F),z(F,k.startPoint))}let X=[];function K(F){if(L){B(F),z(F,k.endPoint);const j=k.select().sort(A=>A.uuid).filter(A=>A.isMesh);T1(j,X)||(X=j,T({object:o(j)}))}}function Q(F){L&&V()}return document.addEventListener("pointerdown",U,{passive:!0}),document.addEventListener("pointermove",K,{passive:!0,capture:!0}),document.addEventListener("pointerup",Q,{passive:!0}),()=>{document.removeEventListener("pointerdown",U),document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",Q)}},[f.width,f.height,u,l,d,h]),b.createElement("group",Se({ref:v,onClick:w,onPointerOver:()=>m(!0),onPointerOut:()=>m(!1),onPointerMissed:y},a),b.createElement(E1.Provider,{value:_},t))}const Au=b.forwardRef(function({follow:e=!0,lockX:t=!1,lockY:s=!1,lockZ:r=!1,...i},o){const a=b.useRef();return qt(({camera:c})=>{if(!e||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),t&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),r&&(a.current.rotation.z=l.z)}),b.createElement("group",Se({ref:lc([a,o])},i))}),nd=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function Bs(n,e){const t=Ye(r=>r.gl),s=uc(dc,nd(n)?Object.values(n):n);if(b.useLayoutEffect(()=>{e==null||e(s)},[e]),b.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),nd(n)){const r=Object.keys(n),i={};return r.forEach(o=>Object.assign(i,{[o]:s[r.indexOf(o)]})),i}else return s}Bs.preload=n=>uc.preload(dc,n);Bs.clear=n=>uc.clear(dc,n);const S1=b.forwardRef(function({src:e,skipFill:t,skipStrokes:s,fillMaterial:r,strokeMaterial:i,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=uc(Pi,e.startsWith("s?[]:u.paths.map(d=>{var f;return((f=d.userData)==null?void 0:f.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(g=>Pi.pointsToStroke(g.getPoints(),d.userData.style))}),[u,s]);return b.useEffect(()=>()=>h.forEach(d=>d&&d.map(f=>f.dispose())),[h]),b.createElement("object3D",Se({ref:l},c),b.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,f)=>{var g,p;return b.createElement(b.Fragment,{key:f},!t&&((g=d.userData)==null?void 0:g.style.fill)!==void 0&&d.userData.style.fill!=="none"&&Pi.createShapes(d).map((m,_)=>b.createElement("mesh",Se({key:_},o),b.createElement("shapeGeometry",{args:[m]}),b.createElement("meshBasicMaterial",Se({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ya,depthWrite:!1},r)))),!s&&((p=d.userData)==null?void 0:p.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((m,_)=>b.createElement("mesh",Se({key:_,geometry:h[f][_]},a),b.createElement("meshBasicMaterial",Se({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ya,depthWrite:!1},i)))))})))});/*! +import{r as v,a1 as gu,x as Se,j as P,R as mp,a8 as B_,J as N,a9 as W_,c as gp,s as ye,a as oe,F as Me,B as _p,u as Nt,b as _u,k as bo,n as jh,T as yp,d as Hn,aa as yu,l as q_,e as Ai,E as vp,ab as H_,ac as Y_,i as G_,A as Fr,ad as X_,C as Z_,ae as K_,af as zh}from"./index-04f9e7e6.js";import{u as Ye,a as Ht,m as lc,b as uc,e as vu,L as bu,c as Q_,d as J_,q as ey,g as ty,h as bp,T as xu,f as wu,t as _a,H as xo,P as ny,i as sy,j as ry,k as xp,C as Vh,l as Uh,n as iy}from"./index-dfd22792.js";import{P as Ee}from"./index-0f3ae51e.js";import{m as Bh,H as oy,E as ay,n as As,h as ze,o as wp,N as Vi,I as hc,p as cy,q as Wh,D as ly,r as uy,R as hy,g as dy,s as kp,P as fy,t as Tp,v as py,O as my}from"./index-292d93f3.js";import{T as gy}from"./TextareaAutosize-6a1de228.js";import{a as zo,b as _y,V as _e,c as yy,d as vy,M as fr,e as Te,f as by,B as xy,S as Ep,P as Bc,g as wy,h as ua,i as Ms,T as dc,j as ya,k as ky,l as qh,G as Ty,C as va,m as Ey,n as wo,Q as Cy,o as Cp,p as Sy,q as Oy,r as Ay,E as Ry,s as Dy,t as fc,u as Hh,v as Sp,w as Op}from"./three.module-ba6167ce.js";import{T as Py}from"./index-782ff866.js";import{u as My}from"./index-51ac9e53.js";import{C as Ny}from"./ClipLoader-c5e3f404.js";const Iy=["top","right","bottom","left"],ys=Math.min,jt=Math.max,ba=Math.round,Vo=Math.floor,vs=n=>({x:n,y:n}),$y={left:"right",right:"left",bottom:"top",top:"bottom"},Fy={start:"end",end:"start"};function xl(n,e,t){return jt(n,ys(e,t))}function Yn(n,e){return typeof n=="function"?n(e):n}function Gn(n){return n.split("-")[0]}function Jr(n){return n.split("-")[1]}function ku(n){return n==="x"?"y":"x"}function Tu(n){return n==="y"?"height":"width"}function ei(n){return["top","bottom"].includes(Gn(n))?"y":"x"}function Eu(n){return ku(ei(n))}function Ly(n,e,t){t===void 0&&(t=!1);const s=Jr(n),r=Eu(n),i=Tu(r);let o=r==="x"?s===(t?"end":"start")?"right":"left":s==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(o=xa(o)),[o,xa(o)]}function jy(n){const e=xa(n);return[wl(n),e,wl(e)]}function wl(n){return n.replace(/start|end/g,e=>Fy[e])}function zy(n,e,t){const s=["left","right"],r=["right","left"],i=["top","bottom"],o=["bottom","top"];switch(n){case"top":case"bottom":return t?e?r:s:e?s:r;case"left":case"right":return e?i:o;default:return[]}}function Vy(n,e,t,s){const r=Jr(n);let i=zy(Gn(n),t==="start",s);return r&&(i=i.map(o=>o+"-"+r),e&&(i=i.concat(i.map(wl)))),i}function xa(n){return n.replace(/left|right|bottom|top/g,e=>$y[e])}function Uy(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ap(n){return typeof n!="number"?Uy(n):{top:n,right:n,bottom:n,left:n}}function wa(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function Yh(n,e,t){let{reference:s,floating:r}=n;const i=ei(e),o=Eu(e),a=Tu(o),c=Gn(e),l=i==="y",u=s.x+s.width/2-r.width/2,h=s.y+s.height/2-r.height/2,d=s[a]/2-r[a]/2;let f;switch(c){case"top":f={x:u,y:s.y-r.height};break;case"bottom":f={x:u,y:s.y+s.height};break;case"right":f={x:s.x+s.width,y:h};break;case"left":f={x:s.x-r.width,y:h};break;default:f={x:s.x,y:s.y}}switch(Jr(e)){case"start":f[o]-=d*(t&&l?-1:1);break;case"end":f[o]+=d*(t&&l?-1:1);break}return f}const By=async(n,e,t)=>{const{placement:s="bottom",strategy:r="absolute",middleware:i=[],platform:o}=t,a=i.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(e));let l=await o.getElementRects({reference:n,floating:e,strategy:r}),{x:u,y:h}=Yh(l,s,c),d=s,f={},m=0;for(let p=0;p({name:"arrow",options:n,async fn(e){const{x:t,y:s,placement:r,rects:i,platform:o,elements:a,middlewareData:c}=e,{element:l,padding:u=0}=Yn(n,e)||{};if(l==null)return{};const h=Ap(u),d={x:t,y:s},f=Eu(r),m=Tu(f),p=await o.getDimensions(l),g=f==="y",_=g?"top":"left",T=g?"bottom":"right",w=g?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[f]-d[f]-i.floating[m],y=d[f]-i.reference[f],x=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l));let E=x?x[w]:0;(!E||!await(o.isElement==null?void 0:o.isElement(x)))&&(E=a.floating[w]||i.floating[m]);const k=b/2-y/2,C=E/2-p[m]/2-1,S=ys(h[_],C),R=ys(h[T],C),O=S,L=E-p[m]-R,z=E/2-p[m]/2+k,W=xl(O,z,L),B=!c.arrow&&Jr(r)!=null&&z!=W&&i.reference[m]/2-(zO<=0)){var C,S;const O=(((C=i.flip)==null?void 0:C.index)||0)+1,L=y[O];if(L)return{data:{index:O,overflows:k},reset:{placement:L}};let z=(S=k.filter(W=>W.overflows[0]<=0).sort((W,B)=>W.overflows[1]-B.overflows[1])[0])==null?void 0:S.placement;if(!z)switch(f){case"bestFit":{var R;const W=(R=k.map(B=>[B.placement,B.overflows.filter(V=>V>0).reduce((V,U)=>V+U,0)]).sort((B,V)=>B[1]-V[1])[0])==null?void 0:R[0];W&&(z=W);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Xh(n,e){return{top:n.top-e.height,right:n.right-e.width,bottom:n.bottom-e.height,left:n.left-e.width}}function Zh(n){return Iy.some(e=>n[e]>=0)}const qy=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(e){const{rects:t}=e,{strategy:s="referenceHidden",...r}=Yn(n,e);switch(s){case"referenceHidden":{const i=await Ui(e,{...r,elementContext:"reference"}),o=Xh(i,t.reference);return{data:{referenceHiddenOffsets:o,referenceHidden:Zh(o)}}}case"escaped":{const i=await Ui(e,{...r,altBoundary:!0}),o=Xh(i,t.floating);return{data:{escapedOffsets:o,escaped:Zh(o)}}}default:return{}}}}};async function Hy(n,e){const{placement:t,platform:s,elements:r}=n,i=await(s.isRTL==null?void 0:s.isRTL(r.floating)),o=Gn(t),a=Jr(t),c=ei(t)==="y",l=["left","top"].includes(o)?-1:1,u=i&&c?-1:1,h=Yn(e,n);let{mainAxis:d,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return a&&typeof m=="number"&&(f=a==="end"?m*-1:m),c?{x:f*u,y:d*l}:{x:d*l,y:f*u}}const Yy=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){var t,s;const{x:r,y:i,placement:o,middlewareData:a}=e,c=await Hy(e,n);return o===((t=a.offset)==null?void 0:t.placement)&&(s=a.arrow)!=null&&s.alignmentOffset?{}:{x:r+c.x,y:i+c.y,data:{...c,placement:o}}}}},Gy=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:s,placement:r}=e,{mainAxis:i=!0,crossAxis:o=!1,limiter:a={fn:g=>{let{x:_,y:T}=g;return{x:_,y:T}}},...c}=Yn(n,e),l={x:t,y:s},u=await Ui(e,c),h=ei(Gn(r)),d=ku(h);let f=l[d],m=l[h];if(i){const g=d==="y"?"top":"left",_=d==="y"?"bottom":"right",T=f+u[g],w=f-u[_];f=xl(T,f,w)}if(o){const g=h==="y"?"top":"left",_=h==="y"?"bottom":"right",T=m+u[g],w=m-u[_];m=xl(T,m,w)}const p=a.fn({...e,[d]:f,[h]:m});return{...p,data:{x:p.x-t,y:p.y-s}}}}},Xy=function(n){return n===void 0&&(n={}),{options:n,fn(e){const{x:t,y:s,placement:r,rects:i,middlewareData:o}=e,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Yn(n,e),u={x:t,y:s},h=ei(r),d=ku(h);let f=u[d],m=u[h];const p=Yn(a,e),g=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(c){const w=d==="y"?"height":"width",b=i.reference[d]-i.floating[w]+g.mainAxis,y=i.reference[d]+i.reference[w]-g.mainAxis;fy&&(f=y)}if(l){var _,T;const w=d==="y"?"width":"height",b=["top","left"].includes(Gn(r)),y=i.reference[h]-i.floating[w]+(b&&((_=o.offset)==null?void 0:_[h])||0)+(b?0:g.crossAxis),x=i.reference[h]+i.reference[w]+(b?0:((T=o.offset)==null?void 0:T[h])||0)-(b?g.crossAxis:0);mx&&(m=x)}return{[d]:f,[h]:m}}}},Zy=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:s,platform:r,elements:i}=e,{apply:o=()=>{},...a}=Yn(n,e),c=await Ui(e,a),l=Gn(t),u=Jr(t),h=ei(t)==="y",{width:d,height:f}=s.floating;let m,p;l==="top"||l==="bottom"?(m=l,p=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(p=l,m=u==="end"?"top":"bottom");const g=f-c[m],_=d-c[p],T=!e.middlewareData.shift;let w=g,b=_;if(h){const x=d-c.left-c.right;b=u||T?ys(_,x):x}else{const x=f-c.top-c.bottom;w=u||T?ys(g,x):x}if(T&&!u){const x=jt(c.left,0),E=jt(c.right,0),k=jt(c.top,0),C=jt(c.bottom,0);h?b=d-2*(x!==0||E!==0?x+E:jt(c.left,c.right)):w=f-2*(k!==0||C!==0?k+C:jt(c.top,c.bottom))}await o({...e,availableWidth:b,availableHeight:w});const y=await r.getDimensions(i.floating);return d!==y.width||f!==y.height?{reset:{rects:!0}}:{}}}};function bs(n){return Rp(n)?(n.nodeName||"").toLowerCase():"#document"}function Ut(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function ts(n){var e;return(e=(Rp(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function Rp(n){return n instanceof Node||n instanceof Ut(n).Node}function Xn(n){return n instanceof Element||n instanceof Ut(n).Element}function Sn(n){return n instanceof HTMLElement||n instanceof Ut(n).HTMLElement}function Kh(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Ut(n).ShadowRoot}function ko(n){const{overflow:e,overflowX:t,overflowY:s,display:r}=en(n);return/auto|scroll|overlay|hidden|clip/.test(e+s+t)&&!["inline","contents"].includes(r)}function Ky(n){return["table","td","th"].includes(bs(n))}function Cu(n){const e=Su(),t=en(n);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(s=>(t.willChange||"").includes(s))||["paint","layout","strict","content"].some(s=>(t.contain||"").includes(s))}function Qy(n){let e=Lr(n);for(;Sn(e)&&!pc(e);){if(Cu(e))return e;e=Lr(e)}return null}function Su(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function pc(n){return["html","body","#document"].includes(bs(n))}function en(n){return Ut(n).getComputedStyle(n)}function mc(n){return Xn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function Lr(n){if(bs(n)==="html")return n;const e=n.assignedSlot||n.parentNode||Kh(n)&&n.host||ts(n);return Kh(e)?e.host:e}function Dp(n){const e=Lr(n);return pc(e)?n.ownerDocument?n.ownerDocument.body:n.body:Sn(e)&&ko(e)?e:Dp(e)}function Bi(n,e,t){var s;e===void 0&&(e=[]),t===void 0&&(t=!0);const r=Dp(n),i=r===((s=n.ownerDocument)==null?void 0:s.body),o=Ut(r);return i?e.concat(o,o.visualViewport||[],ko(r)?r:[],o.frameElement&&t?Bi(o.frameElement):[]):e.concat(r,Bi(r,[],t))}function Pp(n){const e=en(n);let t=parseFloat(e.width)||0,s=parseFloat(e.height)||0;const r=Sn(n),i=r?n.offsetWidth:t,o=r?n.offsetHeight:s,a=ba(t)!==i||ba(s)!==o;return a&&(t=i,s=o),{width:t,height:s,$:a}}function Ou(n){return Xn(n)?n:n.contextElement}function Rr(n){const e=Ou(n);if(!Sn(e))return vs(1);const t=e.getBoundingClientRect(),{width:s,height:r,$:i}=Pp(e);let o=(i?ba(t.width):t.width)/s,a=(i?ba(t.height):t.height)/r;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}const Jy=vs(0);function Mp(n){const e=Ut(n);return!Su()||!e.visualViewport?Jy:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function e1(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Ut(n)?!1:e}function Qs(n,e,t,s){e===void 0&&(e=!1),t===void 0&&(t=!1);const r=n.getBoundingClientRect(),i=Ou(n);let o=vs(1);e&&(s?Xn(s)&&(o=Rr(s)):o=Rr(n));const a=e1(i,t,s)?Mp(i):vs(0);let c=(r.left+a.x)/o.x,l=(r.top+a.y)/o.y,u=r.width/o.x,h=r.height/o.y;if(i){const d=Ut(i),f=s&&Xn(s)?Ut(s):s;let m=d.frameElement;for(;m&&s&&f!==d;){const p=Rr(m),g=m.getBoundingClientRect(),_=en(m),T=g.left+(m.clientLeft+parseFloat(_.paddingLeft))*p.x,w=g.top+(m.clientTop+parseFloat(_.paddingTop))*p.y;c*=p.x,l*=p.y,u*=p.x,h*=p.y,c+=T,l+=w,m=Ut(m).frameElement}}return wa({width:u,height:h,x:c,y:l})}function t1(n){let{rect:e,offsetParent:t,strategy:s}=n;const r=Sn(t),i=ts(t);if(t===i)return e;let o={scrollLeft:0,scrollTop:0},a=vs(1);const c=vs(0);if((r||!r&&s!=="fixed")&&((bs(t)!=="body"||ko(i))&&(o=mc(t)),Sn(t))){const l=Qs(t);a=Rr(t),c.x=l.x+t.clientLeft,c.y=l.y+t.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+c.x,y:e.y*a.y-o.scrollTop*a.y+c.y}}function n1(n){return Array.from(n.getClientRects())}function Np(n){return Qs(ts(n)).left+mc(n).scrollLeft}function s1(n){const e=ts(n),t=mc(n),s=n.ownerDocument.body,r=jt(e.scrollWidth,e.clientWidth,s.scrollWidth,s.clientWidth),i=jt(e.scrollHeight,e.clientHeight,s.scrollHeight,s.clientHeight);let o=-t.scrollLeft+Np(n);const a=-t.scrollTop;return en(s).direction==="rtl"&&(o+=jt(e.clientWidth,s.clientWidth)-r),{width:r,height:i,x:o,y:a}}function r1(n,e){const t=Ut(n),s=ts(n),r=t.visualViewport;let i=s.clientWidth,o=s.clientHeight,a=0,c=0;if(r){i=r.width,o=r.height;const l=Su();(!l||l&&e==="fixed")&&(a=r.offsetLeft,c=r.offsetTop)}return{width:i,height:o,x:a,y:c}}function i1(n,e){const t=Qs(n,!0,e==="fixed"),s=t.top+n.clientTop,r=t.left+n.clientLeft,i=Sn(n)?Rr(n):vs(1),o=n.clientWidth*i.x,a=n.clientHeight*i.y,c=r*i.x,l=s*i.y;return{width:o,height:a,x:c,y:l}}function Qh(n,e,t){let s;if(e==="viewport")s=r1(n,t);else if(e==="document")s=s1(ts(n));else if(Xn(e))s=i1(e,t);else{const r=Mp(n);s={...e,x:e.x-r.x,y:e.y-r.y}}return wa(s)}function Ip(n,e){const t=Lr(n);return t===e||!Xn(t)||pc(t)?!1:en(t).position==="fixed"||Ip(t,e)}function o1(n,e){const t=e.get(n);if(t)return t;let s=Bi(n,[],!1).filter(a=>Xn(a)&&bs(a)!=="body"),r=null;const i=en(n).position==="fixed";let o=i?Lr(n):n;for(;Xn(o)&&!pc(o);){const a=en(o),c=Cu(o);!c&&a.position==="fixed"&&(r=null),(i?!c&&!r:!c&&a.position==="static"&&!!r&&["absolute","fixed"].includes(r.position)||ko(o)&&!c&&Ip(n,o))?s=s.filter(u=>u!==o):r=a,o=Lr(o)}return e.set(n,s),s}function a1(n){let{element:e,boundary:t,rootBoundary:s,strategy:r}=n;const o=[...t==="clippingAncestors"?o1(e,this._c):[].concat(t),s],a=o[0],c=o.reduce((l,u)=>{const h=Qh(e,u,r);return l.top=jt(h.top,l.top),l.right=ys(h.right,l.right),l.bottom=ys(h.bottom,l.bottom),l.left=jt(h.left,l.left),l},Qh(e,a,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function c1(n){return Pp(n)}function l1(n,e,t){const s=Sn(e),r=ts(e),i=t==="fixed",o=Qs(n,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=vs(0);if(s||!s&&!i)if((bs(e)!=="body"||ko(r))&&(a=mc(e)),s){const l=Qs(e,!0,i,e);c.x=l.x+e.clientLeft,c.y=l.y+e.clientTop}else r&&(c.x=Np(r));return{x:o.left+a.scrollLeft-c.x,y:o.top+a.scrollTop-c.y,width:o.width,height:o.height}}function Jh(n,e){return!Sn(n)||en(n).position==="fixed"?null:e?e(n):n.offsetParent}function $p(n,e){const t=Ut(n);if(!Sn(n))return t;let s=Jh(n,e);for(;s&&Ky(s)&&en(s).position==="static";)s=Jh(s,e);return s&&(bs(s)==="html"||bs(s)==="body"&&en(s).position==="static"&&!Cu(s))?t:s||Qy(n)||t}const u1=async function(n){let{reference:e,floating:t,strategy:s}=n;const r=this.getOffsetParent||$p,i=this.getDimensions;return{reference:l1(e,await r(t),s),floating:{x:0,y:0,...await i(t)}}};function h1(n){return en(n).direction==="rtl"}const d1={convertOffsetParentRelativeRectToViewportRelativeRect:t1,getDocumentElement:ts,getClippingRect:a1,getOffsetParent:$p,getElementRects:u1,getClientRects:n1,getDimensions:c1,getScale:Rr,isElement:Xn,isRTL:h1};function f1(n,e){let t=null,s;const r=ts(n);function i(){clearTimeout(s),t&&t.disconnect(),t=null}function o(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const{left:l,top:u,width:h,height:d}=n.getBoundingClientRect();if(a||e(),!h||!d)return;const f=Vo(u),m=Vo(r.clientWidth-(l+h)),p=Vo(r.clientHeight-(u+d)),g=Vo(l),T={rootMargin:-f+"px "+-m+"px "+-p+"px "+-g+"px",threshold:jt(0,ys(1,c))||1};let w=!0;function b(y){const x=y[0].intersectionRatio;if(x!==c){if(!w)return o();x?o(!1,x):s=setTimeout(()=>{o(!1,1e-7)},100)}w=!1}try{t=new IntersectionObserver(b,{...T,root:r.ownerDocument})}catch{t=new IntersectionObserver(b,T)}t.observe(n)}return o(!0),i}function p1(n,e,t,s){s===void 0&&(s={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=s,l=Ou(n),u=r||i?[...l?Bi(l):[],...Bi(e)]:[];u.forEach(_=>{r&&_.addEventListener("scroll",t,{passive:!0}),i&&_.addEventListener("resize",t)});const h=l&&a?f1(l,t):null;let d=-1,f=null;o&&(f=new ResizeObserver(_=>{let[T]=_;T&&T.target===l&&f&&(f.unobserve(e),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{f&&f.observe(e)})),t()}),l&&!c&&f.observe(l),f.observe(e));let m,p=c?Qs(n):null;c&&g();function g(){const _=Qs(n);p&&(_.x!==p.x||_.y!==p.y||_.width!==p.width||_.height!==p.height)&&t(),p=_,m=requestAnimationFrame(g)}return t(),()=>{u.forEach(_=>{r&&_.removeEventListener("scroll",t),i&&_.removeEventListener("resize",t)}),h&&h(),f&&f.disconnect(),f=null,c&&cancelAnimationFrame(m)}}const m1=(n,e,t)=>{const s=new Map,r={platform:d1,...t},i={...r.platform,_c:s};return By(n,e,{...r,platform:i})},g1=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:s,padding:r}=typeof n=="function"?n(t):n;return s&&e(s)?s.current!=null?Gh({element:s.current,padding:r}).fn(t):{}:s?Gh({element:s,padding:r}).fn(t):{}}}};var ha=typeof document<"u"?v.useLayoutEffect:v.useEffect;function ka(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,s,r;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(s=t;s--!==0;)if(!ka(n[s],e[s]))return!1;return!0}if(r=Object.keys(n),t=r.length,t!==Object.keys(e).length)return!1;for(s=t;s--!==0;)if(!{}.hasOwnProperty.call(e,r[s]))return!1;for(s=t;s--!==0;){const i=r[s];if(!(i==="_owner"&&n.$$typeof)&&!ka(n[i],e[i]))return!1}return!0}return n!==n&&e!==e}function Fp(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function ed(n,e){const t=Fp(n);return Math.round(e*t)/t}function td(n){const e=v.useRef(n);return ha(()=>{e.current=n}),e}function _1(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:s=[],platform:r,elements:{reference:i,floating:o}={},transform:a=!0,whileElementsMounted:c,open:l}=n,[u,h]=v.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[d,f]=v.useState(s);ka(d,s)||f(s);const[m,p]=v.useState(null),[g,_]=v.useState(null),T=v.useCallback(B=>{B!=x.current&&(x.current=B,p(B))},[p]),w=v.useCallback(B=>{B!==E.current&&(E.current=B,_(B))},[_]),b=i||m,y=o||g,x=v.useRef(null),E=v.useRef(null),k=v.useRef(u),C=td(c),S=td(r),R=v.useCallback(()=>{if(!x.current||!E.current)return;const B={placement:e,strategy:t,middleware:d};S.current&&(B.platform=S.current),m1(x.current,E.current,B).then(V=>{const U={...V,isPositioned:!0};O.current&&!ka(k.current,U)&&(k.current=U,gu.flushSync(()=>{h(U)}))})},[d,e,t,S]);ha(()=>{l===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,h(B=>({...B,isPositioned:!1})))},[l]);const O=v.useRef(!1);ha(()=>(O.current=!0,()=>{O.current=!1}),[]),ha(()=>{if(b&&(x.current=b),y&&(E.current=y),b&&y){if(C.current)return C.current(b,y,R);R()}},[b,y,R,C]);const L=v.useMemo(()=>({reference:x,floating:E,setReference:T,setFloating:w}),[T,w]),z=v.useMemo(()=>({reference:b,floating:y}),[b,y]),W=v.useMemo(()=>{const B={position:t,left:0,top:0};if(!z.floating)return B;const V=ed(z.floating,u.x),U=ed(z.floating,u.y);return a?{...B,transform:"translate("+V+"px, "+U+"px)",...Fp(z.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:V,top:U}},[t,a,z.floating,u.x,u.y]);return v.useMemo(()=>({...u,update:R,refs:L,elements:z,floatingStyles:W}),[u,R,L,z,W])}function y1(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const v1=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),nd=v1?v.useEffect:v.useLayoutEffect;function b1(n){const e=typeof n=="function"?y1(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(s),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),nd(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=v.useRef(o);nd(()=>{const g=()=>{try{const T=e.getState(),w=c.current(T);l.current(h.current,w)||(a.current=T,h.current=w,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return v.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}let ui=0;const x1=b1(n=>(zo.onStart=(e,t,s)=>{n({active:!0,item:e,loaded:t,total:s,progress:(t-ui)/(s-ui)*100})},zo.onLoad=()=>{n({active:!1})},zo.onError=e=>n(t=>({errors:[...t.errors,e]})),zo.onProgress=(e,t,s)=>{t===s&&(ui=s),n({active:!0,item:e,loaded:t,total:s,progress:(t-ui)/(s-ui)*100||100})},{errors:[],active:!1,progress:0,item:"",loaded:0,total:0})),w1=n=>`Loading ${n.toFixed(2)}%`;function k1({containerStyles:n,innerStyles:e,barStyles:t,dataStyles:s,dataInterpolation:r=w1,initialState:i=o=>o}){const{active:o,progress:a}=x1(),c=v.useRef(0),l=v.useRef(0),u=v.useRef(null),[h,d]=v.useState(i(o));v.useEffect(()=>{let m;return o!==h&&(m=setTimeout(()=>d(o),300)),()=>clearTimeout(m)},[h,o]);const f=v.useCallback(()=>{u.current&&(c.current+=(a-c.current)/2,(c.current>.95*a||a===100)&&(c.current=a),u.current.innerText=r(c.current),c.current(f(),()=>cancelAnimationFrame(l.current)),[f]),h?v.createElement("div",{style:{...Uo.container,opacity:o?1:0,...n}},v.createElement("div",null,v.createElement("div",{style:{...Uo.inner,...e}},v.createElement("div",{style:{...Uo.bar,transform:`scaleX(${a/100})`,...t}}),v.createElement("span",{ref:u,style:{...Uo.data,...s}})))):null}const Uo={container:{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"#171717",display:"flex",alignItems:"center",justifyContent:"center",transition:"opacity 300ms ease",zIndex:1e3},inner:{width:100,height:3,background:"#272727",textAlign:"center"},bar:{height:3,width:"100%",background:"white",transition:"transform 200ms",transformOrigin:"left center"},data:{display:"inline-block",position:"relative",fontVariantNumeric:"tabular-nums",marginTop:"0.8em",color:"#f0f0f0",fontSize:"0.6em",fontFamily:'-apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Helvetica, Arial, Roboto, Ubuntu, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',whiteSpace:"nowrap"}},Wc=new _y,qc=new _e,pr=new _e,rn=new _e,Nn=new _e,vn=new _e,In=new _e,$n=new _e,hi=new _e,di=new _e,fi=new _e,Bo=new _e,pi=new _e,mi=new _e,gi=new _e;class T1{constructor(e,t,s){this.camera=e,this.scene=t,this.startPoint=new _e,this.endPoint=new _e,this.collection=[],this.deep=s||Number.MAX_VALUE}select(e,t){return this.startPoint=e||this.startPoint,this.endPoint=t||this.endPoint,this.collection=[],this.updateFrustum(this.startPoint,this.endPoint),this.searchChildInFrustum(Wc,this.scene),this.collection}updateFrustum(e,t){if(e=e||this.startPoint,t=t||this.endPoint,e.x===t.x&&(t.x+=Number.EPSILON),e.y===t.y&&(t.y+=Number.EPSILON),this.camera.updateProjectionMatrix(),this.camera.updateMatrixWorld(),this.camera.isPerspectiveCamera){pr.copy(e),pr.x=Math.min(e.x,t.x),pr.y=Math.max(e.y,t.y),t.x=Math.max(e.x,t.x),t.y=Math.min(e.y,t.y),rn.setFromMatrixPosition(this.camera.matrixWorld),Nn.copy(pr),vn.set(t.x,pr.y,0),In.copy(t),$n.set(pr.x,t.y,0),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),pi.copy(Nn).sub(rn),mi.copy(vn).sub(rn),gi.copy(In).sub(rn),pi.normalize(),mi.normalize(),gi.normalize(),pi.multiplyScalar(this.deep),mi.multiplyScalar(this.deep),gi.multiplyScalar(this.deep),pi.add(rn),mi.add(rn),gi.add(rn);var s=Wc.planes;s[0].setFromCoplanarPoints(rn,Nn,vn),s[1].setFromCoplanarPoints(rn,vn,In),s[2].setFromCoplanarPoints(In,$n,rn),s[3].setFromCoplanarPoints($n,Nn,rn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(gi,mi,pi),s[5].normal.multiplyScalar(-1)}else if(this.camera.isOrthographicCamera){const r=Math.min(e.x,t.x),i=Math.max(e.y,t.y),o=Math.max(e.x,t.x),a=Math.min(e.y,t.y);Nn.set(r,i,-1),vn.set(o,i,-1),In.set(o,a,-1),$n.set(r,a,-1),hi.set(r,i,1),di.set(o,i,1),fi.set(o,a,1),Bo.set(r,a,1),Nn.unproject(this.camera),vn.unproject(this.camera),In.unproject(this.camera),$n.unproject(this.camera),hi.unproject(this.camera),di.unproject(this.camera),fi.unproject(this.camera),Bo.unproject(this.camera);var s=Wc.planes;s[0].setFromCoplanarPoints(Nn,hi,di),s[1].setFromCoplanarPoints(vn,di,fi),s[2].setFromCoplanarPoints(fi,Bo,$n),s[3].setFromCoplanarPoints(Bo,hi,Nn),s[4].setFromCoplanarPoints(vn,In,$n),s[5].setFromCoplanarPoints(fi,di,hi),s[5].normal.multiplyScalar(-1)}else console.error("THREE.SelectionBox: Unsupported camera type.")}searchChildInFrustum(e,t){if((t.isMesh||t.isLine||t.isPoints)&&t.material!==void 0&&(t.geometry.boundingSphere===null&&t.geometry.computeBoundingSphere(),qc.copy(t.geometry.boundingSphere.center),qc.applyMatrix4(t.matrixWorld),e.containsPoint(qc)&&this.collection.push(t)),t.children.length>0)for(let s=0;s0?X.copy(O[O.length-1]):X.identity())}function r(F){const j=new Ms,A=new Te,I=new Te,Y=new Te;let $=!0,q=!1;const re=F.getAttribute("d").match(/[a-df-z][^a-df-z]*/gi);for(let ie=0,ne=re.length;ie0&&(A.copy(Y),j.currentPath.currentPoint.copy(A),$=!0);break;default:console.warn(ge)}q=!1}return j}function i(F){if(!(!F.sheet||!F.sheet.cssRules||!F.sheet.cssRules.length))for(let j=0;jY.trim());for(let Y=0;Y1){const os=Math.sqrt(Q);j=os*j,A=os*A,te=j*j,H=A*A}const se=te*D+H*M,le=(te*H-se)/se;let be=Math.sqrt(Math.max(0,le));Y===$&&(be=-be);const et=be*j*ge/A,ee=-be*A*ne/j,fe=Math.cos(I)*et-Math.sin(I)*ee+(q.x+ae.x)/2,tt=Math.sin(I)*et+Math.cos(I)*ee+(q.y+ae.y)/2,at=a(1,0,(ne-et)/j,(ge-ee)/A),Ft=a((ne-et)/j,(ge-ee)/A,(-ne-et)/j,(-ge-ee)/A)%(Math.PI*2);F.currentPath.absellipse(fe,tt,j,A,at,at+Ft,$===0,I)}function a(F,j,A,I){const Y=F*A+j*I,$=Math.sqrt(F*F+j*j)*Math.sqrt(A*A+I*I);let q=Math.acos(Math.max(-1,Math.min(1,Y/$)));return F*I-j*A<0&&(q=-q),q}function c(F){const j=w(F.getAttribute("x")||0),A=w(F.getAttribute("y")||0),I=w(F.getAttribute("rx")||F.getAttribute("ry")||0),Y=w(F.getAttribute("ry")||F.getAttribute("rx")||0),$=w(F.getAttribute("width")),q=w(F.getAttribute("height")),ae=1-.551915024494,re=new Ms;return re.moveTo(j+I,A),re.lineTo(j+$-I,A),(I!==0||Y!==0)&&re.bezierCurveTo(j+$-I*ae,A,j+$,A+Y*ae,j+$,A+Y),re.lineTo(j+$,A+q-Y),(I!==0||Y!==0)&&re.bezierCurveTo(j+$,A+q-Y*ae,j+$-I*ae,A+q,j+$-I,A+q),re.lineTo(j+I,A+q),(I!==0||Y!==0)&&re.bezierCurveTo(j+I*ae,A+q,j,A+q-Y*ae,j,A+q-Y),re.lineTo(j,A+Y),(I!==0||Y!==0)&&re.bezierCurveTo(j,A+Y*ae,j+I*ae,A,j+I,A),re}function l(F){function j($,q,ae){const re=w(q),ie=w(ae);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(A,j),I.currentPath.autoClose=!0,I}function u(F){function j($,q,ae){const re=w(q),ie=w(ae);Y===0?I.moveTo(re,ie):I.lineTo(re,ie),Y++}const A=/(-?[\d\.?]+)[,|\s](-?[\d\.?]+)/g,I=new Ms;let Y=0;return F.getAttribute("points").replace(A,j),I.currentPath.autoClose=!1,I}function h(F){const j=w(F.getAttribute("cx")||0),A=w(F.getAttribute("cy")||0),I=w(F.getAttribute("r")||0),Y=new Bc;Y.absarc(j,A,I,0,Math.PI*2);const $=new Ms;return $.subPaths.push(Y),$}function d(F){const j=w(F.getAttribute("cx")||0),A=w(F.getAttribute("cy")||0),I=w(F.getAttribute("rx")||0),Y=w(F.getAttribute("ry")||0),$=new Bc;$.absellipse(j,A,I,Y,0,Math.PI*2);const q=new Ms;return q.subPaths.push($),q}function f(F){const j=w(F.getAttribute("x1")||0),A=w(F.getAttribute("y1")||0),I=w(F.getAttribute("x2")||0),Y=w(F.getAttribute("y2")||0),$=new Ms;return $.moveTo(j,A),$.lineTo(I,Y),$.currentPath.autoClose=!1,$}function m(F,j){j=Object.assign({},j);let A={};if(F.hasAttribute("class")){const q=F.getAttribute("class").split(/\s/).filter(Boolean).map(ae=>ae.trim());for(let ae=0;ae0&&j.premultiply(O[O.length-1]),X.copy(j),O.push(j),j}function y(F){const j=new fr,A=L;if(F.nodeName==="use"&&(F.hasAttribute("x")||F.hasAttribute("y"))){const I=w(F.getAttribute("x")),Y=w(F.getAttribute("y"));j.translate(I,Y)}if(F.hasAttribute("transform")){const I=F.getAttribute("transform").split(")");for(let Y=I.length-1;Y>=0;Y--){const $=I[Y].trim();if($==="")continue;const q=$.indexOf("("),ae=$.length;if(q>0&&q=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),A.translate(ne,ge)}break;case"rotate":if(ie.length>=1){let ne=0,ge=0,te=0;ne=-ie[0]*Math.PI/180,ie.length>=3&&(ge=ie[1],te=ie[2]),z.identity().translate(-ge,-te),W.identity().rotate(ne),B.multiplyMatrices(W,z),z.identity().translate(ge,te),A.multiplyMatrices(z,B)}break;case"scale":if(ie.length>=1){const ne=ie[0];let ge=ne;ie.length>=2&&(ge=ie[1]),A.scale(ne,ge)}break;case"skewX":ie.length===1&&A.set(1,Math.tan(ie[0]*Math.PI/180),0,0,1,0,0,0,1);break;case"skewY":ie.length===1&&A.set(1,0,0,Math.tan(ie[0]*Math.PI/180),1,0,0,0,1);break;case"matrix":ie.length===6&&A.set(ie[0],ie[2],ie[4],ie[1],ie[3],ie[5],0,0,1);break}}j.premultiply(A)}}return j}function x(F,j){function A($){U.set($.x,$.y,1).applyMatrix3(j),$.set(U.x,U.y)}const I=E(j),Y=F.subPaths;for(let $=0,q=Y.length;$=1||B<0||B>1)return null;if(O===0&&z===0){for(let V=0;V<2;V++)if(o(V===0?T:w,g,_),r.loc==s.ORIGIN){const U=V===0?T:w;return{x:U.x,y:U.y,t:r.t}}else if(r.loc==s.BETWEEN){const U=+(b+r.t*(y-b)).toPrecision(10),X=+(k+r.t*(C-k)).toPrecision(10);return{x:U,y:X,t:r.t}}return null}else{for(let X=0;X<2;X++)if(o(X===0?T:w,g,_),r.loc==s.ORIGIN){const K=X===0?T:w;return{x:K.x,y:K.y,t:r.t}}const V=+(b+W*(y-b)).toPrecision(10),U=+(k+W*(C-k)).toPrecision(10);return{x:V,y:U,t:W}}}function o(g,_,T){const w=T.x-_.x,b=T.y-_.y,y=g.x-_.x,x=g.y-_.y,E=w*x-y*b;if(g.x===_.x&&g.y===_.y){r.loc=s.ORIGIN,r.t=0;return}if(g.x===T.x&&g.y===T.y){r.loc=s.DESTINATION,r.t=1;return}if(E<-Number.EPSILON){r.loc=s.LEFT;return}if(E>Number.EPSILON){r.loc=s.RIGHT;return}if(w*y<0||b*x<0){r.loc=s.BEHIND;return}if(Math.sqrt(w*w+b*b)R.t<=S.t+Number.EPSILON&&R.t>=S.t-Number.EPSILON)===void 0&&(T.push(S),w.push(new Te(S.x,S.y)))}}return w}function c(g,_,T){const w=new Te;_.getCenter(w);const b=[];return T.forEach(y=>{y.boundingBox.containsPoint(w)&&a(g,y.points).forEach(E=>{b.push({identifier:y.identifier,isCW:y.isCW,point:E})})}),b.sort((y,x)=>y.point.x-x.point.x),b}function l(g,_,T,w,b){(b==null||b==="")&&(b="nonzero");const y=new Te;g.boundingBox.getCenter(y);const x=[new Te(T,y.y),new Te(w,y.y)],E=c(x,g.boundingBox,_);E.sort((L,z)=>L.point.x-z.point.x);const k=[],C=[];E.forEach(L=>{L.identifier===g.identifier?k.push(L):C.push(L)});const S=k[0].point.x,R=[];let O=0;for(;O0&&R[R.length-1]===C[O].identifier?R.pop():R.push(C[O].identifier),O++;if(R.push(g.identifier),b==="evenodd"){const L=R.length%2===0,z=R[R.length-2];return{identifier:g.identifier,isHole:L,for:z}}else if(b==="nonzero"){let L=!0,z=null,W=null;for(let B=0;B{const _=g.getPoints();let T=-999999999,w=999999999,b=-999999999,y=999999999;for(let x=0;x<_.length;x++){const E=_[x];E.y>T&&(T=E.y),E.yb&&(b=E.x),E.x=y&&(h=y-1),{curves:g.curves,points:_,isCW:by.isClockWise(_),identifier:u++,boundingBox:new xy(new Te(y,w),new Te(b,T))}});f=f.filter(g=>g.points.length>1);const m=f.map(g=>l(g,f,h,d,e.userData.style.fillRule)),p=[];return f.forEach(g=>{if(!m[g.identifier].isHole){const T=new Ep;T.curves=g.curves,m.filter(b=>b.isHole&&b.for===g.identifier).forEach(b=>{const y=f[b.identifier],x=new Bc;x.curves=y.curves,T.holes.push(x)}),p.push(T)}}),p}static getStrokeStyle(e,t,s,r,i){return e=e!==void 0?e:1,t=t!==void 0?t:"#000",s=s!==void 0?s:"miter",r=r!==void 0?r:"butt",i=i!==void 0?i:4,{strokeColor:t,strokeWidth:e,strokeLineJoin:s,strokeLineCap:r,strokeMiterLimit:i}}static pointsToStroke(e,t,s,r){const i=[],o=[],a=[];if(Pi.pointsToStrokeWithBuffers(e,t,s,r,i,o,a)===0)return null;const c=new wy;return c.setAttribute("position",new ua(i,3)),c.setAttribute("normal",new ua(o,3)),c.setAttribute("uv",new ua(a,2)),c}static pointsToStrokeWithBuffers(e,t,s,r,i,o,a,c){const l=new Te,u=new Te,h=new Te,d=new Te,f=new Te,m=new Te,p=new Te,g=new Te,_=new Te,T=new Te,w=new Te,b=new Te,y=new Te,x=new Te,E=new Te,k=new Te,C=new Te;s=s!==void 0?s:12,r=r!==void 0?r:.001,c=c!==void 0?c:0,e=ge(e);const S=e.length;if(S<2)return 0;const R=e[0].equals(e[S-1]);let O,L=e[0],z;const W=t.strokeWidth/2,B=1/(S-1);let V=0,U,X,K,J,F=!1,j=0,A=c*3,I=c*2;Y(e[0],e[1],l).multiplyScalar(W),g.copy(e[0]).sub(l),_.copy(e[0]).add(l),T.copy(g),w.copy(_);for(let te=1;te=r&&M.push(te[D]);return M.push(te[te.length-1]),M}}}function E1(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;sc,...a}){const{setEvents:c,camera:l,raycaster:u,gl:h,controls:d,size:f,get:m}=Ye(),[p,g]=v.useState(!1),[_,T]=v.useReducer((x,{object:E,shift:k})=>E===void 0?[]:Array.isArray(E)?E:k?x.includes(E)?x.filter(C=>C!==E):[E,...x]:x[0]===E?[]:[E],[]);v.useEffect(()=>void(s==null?void 0:s(_)),[_]);const w=v.useCallback(x=>{x.stopPropagation(),T({object:o([x.object])[0],shift:e&&x.shiftKey})},[]),b=v.useCallback(x=>!p&&T({}),[p]),y=v.useRef(null);return v.useEffect(()=>{if(!n||!e)return;const x=new T1(l,y.current),E=document.createElement("div");E.style.pointerEvents="none",E.style.border=r,E.style.backgroundColor=i,E.style.position="fixed";const k=new Te,C=new Te,S=new Te,R=m().events.enabled,O=d==null?void 0:d.enabled;let L=!1;function z(F,j){const{offsetX:A,offsetY:I}=F,{width:Y,height:$}=f;j.set(A/Y*2-1,-(I/$)*2+1)}function W(F){var j;d&&(d.enabled=!1),c({enabled:!1}),L=!0,(j=h.domElement.parentElement)==null||j.appendChild(E),E.style.left=`${F.clientX}px`,E.style.top=`${F.clientY}px`,E.style.width="0px",E.style.height="0px",k.x=F.clientX,k.y=F.clientY}function B(F){S.x=Math.max(k.x,F.clientX),S.y=Math.max(k.y,F.clientY),C.x=Math.min(k.x,F.clientX),C.y=Math.min(k.y,F.clientY),E.style.left=`${C.x}px`,E.style.top=`${C.y}px`,E.style.width=`${S.x-C.x}px`,E.style.height=`${S.y-C.y}px`}function V(){if(L){var F;d&&(d.enabled=O),c({enabled:R}),L=!1,(F=E.parentElement)==null||F.removeChild(E)}}function U(F){F.shiftKey&&(W(F),z(F,x.startPoint))}let X=[];function K(F){if(L){B(F),z(F,x.endPoint);const j=x.select().sort(A=>A.uuid).filter(A=>A.isMesh);E1(j,X)||(X=j,T({object:o(j)}))}}function J(F){L&&V()}return document.addEventListener("pointerdown",U,{passive:!0}),document.addEventListener("pointermove",K,{passive:!0,capture:!0}),document.addEventListener("pointerup",J,{passive:!0}),()=>{document.removeEventListener("pointerdown",U),document.removeEventListener("pointermove",K),document.removeEventListener("pointerup",J)}},[f.width,f.height,u,l,d,h]),v.createElement("group",Se({ref:y,onClick:w,onPointerOver:()=>g(!0),onPointerOut:()=>g(!1),onPointerMissed:b},a),v.createElement(C1.Provider,{value:_},t))}const Au=v.forwardRef(function({follow:e=!0,lockX:t=!1,lockY:s=!1,lockZ:r=!1,...i},o){const a=v.useRef();return Ht(({camera:c})=>{if(!e||!a.current)return;const l=a.current.rotation.clone();c.getWorldQuaternion(a.current.quaternion),t&&(a.current.rotation.x=l.x),s&&(a.current.rotation.y=l.y),r&&(a.current.rotation.z=l.z)}),v.createElement("group",Se({ref:lc([a,o])},i))}),sd=n=>n===Object(n)&&!Array.isArray(n)&&typeof n!="function";function Bs(n,e){const t=Ye(r=>r.gl),s=uc(dc,sd(n)?Object.values(n):n);if(v.useLayoutEffect(()=>{e==null||e(s)},[e]),v.useEffect(()=>{(Array.isArray(s)?s:[s]).forEach(t.initTexture)},[t,s]),sd(n)){const r=Object.keys(n),i={};return r.forEach(o=>Object.assign(i,{[o]:s[r.indexOf(o)]})),i}else return s}Bs.preload=n=>uc.preload(dc,n);Bs.clear=n=>uc.clear(dc,n);const O1=v.forwardRef(function({src:e,skipFill:t,skipStrokes:s,fillMaterial:r,strokeMaterial:i,fillMeshProps:o,strokeMeshProps:a,...c},l){const u=uc(Pi,e.startsWith("s?[]:u.paths.map(d=>{var f;return((f=d.userData)==null?void 0:f.style.stroke)===void 0||d.userData.style.stroke==="none"?null:d.subPaths.map(m=>Pi.pointsToStroke(m.getPoints(),d.userData.style))}),[u,s]);return v.useEffect(()=>()=>h.forEach(d=>d&&d.map(f=>f.dispose())),[h]),v.createElement("object3D",Se({ref:l},c),v.createElement("object3D",{scale:[1,-1,1]},u.paths.map((d,f)=>{var m,p;return v.createElement(v.Fragment,{key:f},!t&&((m=d.userData)==null?void 0:m.style.fill)!==void 0&&d.userData.style.fill!=="none"&&Pi.createShapes(d).map((g,_)=>v.createElement("mesh",Se({key:_},o),v.createElement("shapeGeometry",{args:[g]}),v.createElement("meshBasicMaterial",Se({color:d.userData.style.fill,opacity:d.userData.style.fillOpacity,transparent:!0,side:ya,depthWrite:!1},r)))),!s&&((p=d.userData)==null?void 0:p.style.stroke)!==void 0&&d.userData.style.stroke!=="none"&&d.subPaths.map((g,_)=>v.createElement("mesh",Se({key:_,geometry:h[f][_]},a),v.createElement("meshBasicMaterial",Se({color:d.userData.style.stroke,opacity:d.userData.style.strokeOpacity,transparent:!0,side:ya,depthWrite:!1},i)))))})))});/*! * camera-controls * https://github.com/yomotsu/camera-controls * (c) 2017 @yomotsu * Released under the MIT License. - */const pe={LEFT:1,RIGHT:2,MIDDLE:4},G=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),mr={NONE:0,IN:1,OUT:-1};function Ns(n){return n.isPerspectiveCamera}function cs(n){return n.isOrthographicCamera}const gr=Math.PI*2,sd=Math.PI/2,Fp=1e-5,_i=Math.PI/180;function on(n,e,t){return Math.max(e,Math.min(t,n))}function Le(n,e=Fp){return Math.abs(n)0==f>u&&(f=u,t.value=(f-u)/i),f}function id(n,e,t,s,r=1/0,i,o){s=Math.max(1e-4,s);const a=2/s,c=a*i,l=1/(1+c+.48*c*c+.235*c*c*c);let u=e.x,h=e.y,d=e.z,f=n.x-u,g=n.y-h,p=n.z-d;const m=u,_=h,T=d,w=r*s,y=w*w,v=f*f+g*g+p*p;if(v>y){const W=Math.sqrt(v);f=f/W*w,g=g/W*w,p=p/W*w}u=n.x-f,h=n.y-g,d=n.z-p;const k=(t.x+a*f)*i,E=(t.y+a*g)*i,x=(t.z+a*p)*i;t.x=(t.x-a*k)*l,t.y=(t.y-a*E)*l,t.z=(t.z-a*x)*l,o.x=u+(f+k)*l,o.y=h+(g+E)*l,o.z=d+(p+x)*l;const C=m-n.x,S=_-n.y,R=T-n.z,O=o.x-m,L=o.y-_,z=o.z-T;return C*O+S*L+R*z>0&&(o.x=m,o.y=_,o.z=T,t.x=(o.x-m)/i,t.y=(o.y-_)/i,t.z=(o.z-T)/i),o}function Hc(n,e){e.set(0,0),n.forEach(t=>{e.x+=t.clientX,e.y+=t.clientY}),e.x/=n.length,e.y/=n.length}function Yc(n,e){return cs(n)?(console.warn(`${e} is not supported in OrthographicCamera`),!0):!1}class O1{constructor(){this._listeners={}}addEventListener(e,t){const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}hasEventListener(e,t){const s=this._listeners;return s[e]!==void 0&&s[e].indexOf(t)!==-1}removeEventListener(e,t){const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}removeAllEventListeners(e){if(!e){this._listeners={};return}Array.isArray(this._listeners[e])&&(this._listeners[e].length=0)}dispatchEvent(e){const s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.slice(0);for(let i=0,o=r.length;i{},this._enabled=!0,this._state=G.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=mr.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new he.Vector3,this._focalOffsetVelocity=new he.Vector3,this._zoomVelocity={value:0},this._truckInternal=(y,v,k)=>{let E,x;if(Ns(this._camera)){const C=ve.copy(this._camera.position).sub(this._target),S=this._camera.getEffectiveFOV()*_i,R=C.length()*Math.tan(S*.5);E=this.truckSpeed*y*R/this._elementRect.height,x=this.truckSpeed*v*R/this._elementRect.height}else if(cs(this._camera)){const C=this._camera;E=y*(C.right-C.left)/C.zoom/this._elementRect.width,x=v*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(k?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(E,0,!0),this.forward(-x,!0)):k?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y+x,this._focalOffsetEnd.z,!0):this.truck(E,x,!0)},this._rotateInternal=(y,v)=>{const k=gr*this.azimuthRotateSpeed*y/this._elementRect.height,E=gr*this.polarRotateSpeed*v/this._elementRect.height;this.rotate(k,E,!0)},this._dollyInternal=(y,v,k)=>{const E=Math.pow(.95,-y*this.dollySpeed),x=this._sphericalEnd.radius,C=this._sphericalEnd.radius*E,S=on(C,this.minDistance,this.maxDistance),R=S-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(R,!0),this._dollyToNoClamp(S,!0)):this._dollyToNoClamp(S,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:S)-x,this._dollyControlCoord.set(v,k)),this._lastDollyDirection=Math.sign(-y)},this._zoomInternal=(y,v,k)=>{const E=Math.pow(.95,y*this.dollySpeed),x=this._zoom,C=this._zoom*E;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-x,this._dollyControlCoord.set(v,k))},typeof he>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=e,this._yAxisUpSpace=new he.Quaternion().setFromUnitVectors(this._camera.up,Ho),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=G.NONE,this._target=new he.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new he.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new he.Spherical().setFromVector3(ve.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new he.Vector3,new he.Vector3,new he.Vector3,new he.Vector3],this._updateNearPlaneCorners(),this._boundary=new he.Box3(new he.Vector3(-1/0,-1/0,-1/0),new he.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new he.Vector2,this.mouseButtons={left:G.ROTATE,middle:G.DOLLY,right:G.TRUCK,wheel:Ns(this._camera)?G.DOLLY:cs(this._camera)?G.ZOOM:G.NONE},this.touches={one:G.TOUCH_ROTATE,two:Ns(this._camera)?G.TOUCH_DOLLY_TRUCK:cs(this._camera)?G.TOUCH_ZOOM_TRUCK:G.NONE,three:G.TOUCH_TRUCK};const s=new he.Vector2,r=new he.Vector2,i=new he.Vector2,o=y=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),x=y.clientX/E.width,C=y.clientY/E.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const v=y.pointerType!=="mouse"?null:(y.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(y.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(y.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(v!==null){const E=this._findPointerByMouseButton(v);E&&this._disposePointer(E)}if((y.buttons&pe.LEFT)===pe.LEFT&&this._lockedPointer)return;const k={pointerId:y.pointerId,clientX:y.clientX,clientY:y.clientY,deltaX:0,deltaY:0,mouseButton:v};this._activePointers.push(k),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,p(y)},a=y=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),x=y.clientX/E.width,C=y.clientY/E.height;if(xthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const v=(y.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(y.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(y.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(v!==null){const E=this._findPointerByMouseButton(v);E&&this._disposePointer(E)}const k={pointerId:1,clientX:y.clientX,clientY:y.clientY,deltaX:0,deltaY:0,mouseButton:(y.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(y.buttons&pe.MIDDLE)===pe.LEFT?pe.MIDDLE:(y.buttons&pe.RIGHT)===pe.LEFT?pe.RIGHT:null};this._activePointers.push(k),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,p(y)},c=y=>{y.cancelable&&y.preventDefault();const v=y.pointerId,k=this._lockedPointer||this._findPointerById(v);if(k){if(k.clientX=y.clientX,k.clientY=y.clientY,k.deltaX=y.movementX,k.deltaY=y.movementY,this._state=0,y.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(y.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(y.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(y.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);m()}},l=y=>{const v=this._lockedPointer||this._findPointerById(1);v&&(v.clientX=y.clientX,v.clientY=y.clientY,v.deltaX=y.movementX,v.deltaY=y.movementY,this._state=0,(this._lockedPointer||(y.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),(y.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(y.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right),m())},u=y=>{const v=this._findPointerById(y.pointerId);if(!(v&&v===this._lockedPointer)){if(v&&this._disposePointer(v),y.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=G.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=G.NONE;_()}},h=()=>{const y=this._findPointerById(1);y&&y===this._lockedPointer||(y&&this._disposePointer(y),this._state=G.NONE,_())};let d=-1;const f=y=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===G.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),S=y.clientX/C.width,R=y.clientY/C.height;if(Sthis._interactiveArea.right||Rthis._interactiveArea.bottom)return}if(y.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===G.ROTATE||this.mouseButtons.wheel===G.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const v=R1?-1:-3,k=y.deltaMode===1?y.deltaY/v:y.deltaY/(v*10),E=this.dollyToCursor?(y.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,x=this.dollyToCursor?(y.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case G.ROTATE:{this._rotateInternal(y.deltaX,y.deltaY),this._isUserControllingRotate=!0;break}case G.TRUCK:{this._truckInternal(y.deltaX,y.deltaY,!1),this._isUserControllingTruck=!0;break}case G.OFFSET:{this._truckInternal(y.deltaX,y.deltaY,!0),this._isUserControllingOffset=!0;break}case G.DOLLY:{this._dollyInternal(-k,E,x),this._isUserControllingDolly=!0;break}case G.ZOOM:{this._zoomInternal(-k,E,x),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},g=y=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===kl.ACTION.NONE){const v=y instanceof PointerEvent?y.pointerId:(y instanceof MouseEvent,0),k=this._findPointerById(v);k&&this._disposePointer(k),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}y.preventDefault()}},p=y=>{if(!this._enabled)return;if(Hc(this._activePointers,Ct),this._getClientRect(this._elementRect),s.copy(Ct),r.copy(Ct),this._activePointers.length>=2){const k=Ct.x-this._activePointers[1].clientX,E=Ct.y-this._activePointers[1].clientY,x=Math.sqrt(k*k+E*E);i.set(0,x);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,S=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;r.set(C,S)}if(this._state=0,!y)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in y&&y.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(y.buttons&pe.LEFT)===pe.LEFT&&(this._state=this._state|this.mouseButtons.left),(y.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(y.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&G.DOLLY)===G.DOLLY||(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&G.ZOOM)===G.ZOOM||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},m=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Hc(this._activePointers,Ct);const v=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,k=v?-v.deltaX:r.x-Ct.x,E=v?-v.deltaY:r.y-Ct.y;if(r.copy(Ct),((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(k,E),this._isUserControllingRotate=!0),(this._state&G.DOLLY)===G.DOLLY||(this._state&G.ZOOM)===G.ZOOM){const x=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,S=this.dollyDragInverted?-1:1;(this._state&G.DOLLY)===G.DOLLY?(this._dollyInternal(S*E*qo,x,C),this._isUserControllingDolly=!0):(this._zoomInternal(S*E*qo,x,C),this._isUserControllingZoom=!0)}if((this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE){const x=Ct.x-this._activePointers[1].clientX,C=Ct.y-this._activePointers[1].clientY,S=Math.sqrt(x*x+C*C),R=i.y-S;i.set(0,S);const O=this.dollyToCursor?(r.x-this._elementRect.x)/this._elementRect.width*2-1:0,L=this.dollyToCursor?(r.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET?(this._dollyInternal(R*qo,O,L),this._isUserControllingDolly=!0):(this._zoomInternal(R*qo,O,L),this._isUserControllingZoom=!0)}((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(k,E,!1),this._isUserControllingTruck=!0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(k,E,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},_=()=>{Hc(this._activePointers,Ct),r.copy(Ct),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",T),this._domElement.ownerDocument.addEventListener("pointerlockerror",w),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),p())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",T),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))};const T=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},w=()=>{this.unlockPointer()};this._addAllEventListeners=y=>{this._domElement=y,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),D1&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",f,{passive:!1}),this._domElement.addEventListener("contextmenu",g)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",f,{passive:!1}),this._domElement.removeEventListener("contextmenu",g),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",T),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))},this.cancel=()=>{this._state!==G.NONE&&(this._state=G.NONE,this._activePointers.length=0,_())},t&&this.connect(t),this.update(0)}get camera(){return this._camera}set camera(e){this._camera=e,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._domElement&&(e?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(e){this._spherical.radius===e&&this._sphericalEnd.radius===e||(this._spherical.radius=e,this._sphericalEnd.radius=e,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(e){this._spherical.theta===e&&this._sphericalEnd.theta===e||(this._spherical.theta=e,this._sphericalEnd.theta=e,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(e){this._spherical.phi===e&&this._sphericalEnd.phi===e||(this._spherical.phi=e,this._sphericalEnd.phi=e,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(e){this._boundaryEnclosesCamera=e,this._needsUpdate=!0}set interactiveArea(e){this._interactiveArea.width=on(e.width,0,1),this._interactiveArea.height=on(e.height,0,1),this._interactiveArea.x=on(e.x,0,1-this._interactiveArea.width),this._interactiveArea.y=on(e.y,0,1-this._interactiveArea.height)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}rotate(e,t,s=!1){return this.rotateTo(this._sphericalEnd.theta+e,this._sphericalEnd.phi+t,s)}rotateAzimuthTo(e,t=!1){return this.rotateTo(e,this._sphericalEnd.phi,t)}rotatePolarTo(e,t=!1){return this.rotateTo(this._sphericalEnd.theta,e,t)}rotateTo(e,t,s=!1){this._isUserControllingRotate=!1;const r=on(e,this.minAzimuthAngle,this.maxAzimuthAngle),i=on(t,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(e,t=!1){return this.dollyTo(this._sphericalEnd.radius-e,t)}dollyTo(e,t=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0,this._dollyToNoClamp(on(e,this.minDistance,this.maxDistance),t)}_dollyToNoClamp(e,t=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=Ce(o,this._spherical.radius);if(!(s>e)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(e,o)}else this._sphericalEnd.radius=e;this._needsUpdate=!0,t||(this._spherical.radius=this._sphericalEnd.radius);const i=!t||Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}dollyInFixed(e,t=!1){this._targetEnd.add(this._getCameraDirection(bi).multiplyScalar(e)),t||this._target.copy(this._targetEnd);const s=!t||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(e,t=!1){return this.zoomTo(this._zoomEnd+e,t)}zoomTo(e,t=!1){this._isUserControllingZoom=!1,this._zoomEnd=on(e,this.minZoom,this.maxZoom),this._needsUpdate=!0,t||(this._zoom=this._zoomEnd);const s=!t||Ce(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(e,t,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(e,t,s)}truck(e,t,s=!1){this._camera.updateMatrix(),bn.setFromMatrixColumn(this._camera.matrix,0),xn.setFromMatrixColumn(this._camera.matrix,1),bn.multiplyScalar(e),xn.multiplyScalar(-t);const r=ve.copy(bn).add(xn),i=ke.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,s)}forward(e,t=!1){ve.setFromMatrixColumn(this._camera.matrix,0),ve.crossVectors(this._camera.up,ve),ve.multiplyScalar(e);const s=ke.copy(this._targetEnd).add(ve);return this.moveTo(s.x,s.y,s.z,t)}elevate(e,t=!1){return ve.copy(this._camera.up).multiplyScalar(e),this.moveTo(this._targetEnd.x+ve.x,this._targetEnd.y+ve.y,this._targetEnd.z+ve.z,t)}moveTo(e,t,s,r=!1){this._isUserControllingTruck=!1;const i=ve.set(e,t,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(e,t,s,r=!1){const a=ve.set(e,t,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,r)}fitToBox(e,t,{cover:s=!1,paddingLeft:r=0,paddingRight:i=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=e.isBox3?yr.copy(e):yr.setFromObject(e);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=rd(this._sphericalEnd.theta,sd),h=rd(this._sphericalEnd.phi,sd);c.push(this.rotateTo(u,h,t));const d=ve.setFromSpherical(this._sphericalEnd).normalize(),f=ud.setFromUnitVectors(d,Gc),g=Ce(Math.abs(d.y),1);g&&f.multiply(Zc.setFromAxisAngle(Ho,u)),f.multiply(this._yAxisUpSpaceInverse);const p=ld.makeEmpty();ke.copy(l.min).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.min).setX(l.max.x).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.min).setY(l.max.y).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).setZ(l.min.z).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.min).setZ(l.max.z).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).setY(l.min.y).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).setX(l.min.x).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).applyQuaternion(f),p.expandByPoint(ke),p.min.x-=r,p.min.y-=o,p.max.x+=i,p.max.y+=a,f.setFromUnitVectors(Gc,d),g&&f.premultiply(Zc.invert()),f.premultiply(this._yAxisUpSpace);const m=p.getSize(ve),_=p.getCenter(ke).applyQuaternion(f);if(Ns(this._camera)){const T=this.getDistanceToFitBox(m.x,m.y,m.z,s);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.dollyTo(T,t)),c.push(this.setFocalOffset(0,0,0,t))}else if(cs(this._camera)){const T=this._camera,w=T.right-T.left,y=T.top-T.bottom,v=s?Math.max(w/m.x,y/m.y):Math.min(w/m.x,y/m.y);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.zoomTo(v,t)),c.push(this.setFocalOffset(0,0,0,t))}return Promise.all(c)}fitToSphere(e,t){const s=[],i=e instanceof he.Sphere?Xc.copy(e):kl.createBoundingSphere(e,Xc);if(s.push(this.moveTo(i.center.x,i.center.y,i.center.z,t)),Ns(this._camera)){const o=this.getDistanceToFitSphere(i.radius);s.push(this.dollyTo(o,t))}else if(cs(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*i.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,t))}return s.push(this.setFocalOffset(0,0,0,t)),Promise.all(s)}setLookAt(e,t,s,r,i,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const c=ke.set(r,i,o),l=ve.set(e,t,s);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(e,t,s,r,i,o,a,c,l,u,h,d,f,g=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const p=ve.set(r,i,o),m=ke.set(e,t,s);Ht.setFromVector3(m.sub(p).applyQuaternion(this._yAxisUpSpace));const _=_r.set(u,h,d),T=ke.set(a,c,l);xi.setFromVector3(T.sub(_).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(p.lerp(_,f));const w=xi.theta-Ht.theta,y=xi.phi-Ht.phi,v=xi.radius-Ht.radius;this._sphericalEnd.set(Ht.radius+v*f,Ht.phi+y*f,Ht.theta+w*f),this.normalizeRotations(),this._needsUpdate=!0,g||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const k=!g||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(k)}setPosition(e,t,s,r=!1){return this.setLookAt(e,t,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,r)}setTarget(e,t,s,r=!1){const i=this.getPosition(ve),o=this.setLookAt(i.x,i.y,i.z,e,t,s,r);return this._sphericalEnd.phi=on(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(e,t,s,r=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(e,t,s),this._needsUpdate=!0,r||this._focalOffset.copy(this._focalOffsetEnd);const i=!r||Ce(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&&Ce(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&&Ce(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(i)}setOrbitPoint(e,t,s){this._camera.updateMatrixWorld(),bn.setFromMatrixColumn(this._camera.matrixWorldInverse,0),xn.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Is.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const r=ve.set(e,t,s),i=r.distanceTo(this._camera.position),o=r.sub(this._camera.position);bn.multiplyScalar(o.x),xn.multiplyScalar(o.y),Is.multiplyScalar(o.z),ve.copy(bn).add(xn).add(Is),ve.z=ve.z+i,this.dollyTo(i,!1),this.setFocalOffset(-ve.x,ve.y,-ve.z,!1),this.moveTo(e,t,s,!1)}setBoundary(e){if(!e){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(e),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(e,t,s,r){if(e===null){this._viewport=null;return}this._viewport=this._viewport||new he.Vector4,typeof e=="number"?this._viewport.set(e,t,s,r):this._viewport.copy(e)}getDistanceToFitBox(e,t,s,r=!1){if(Yc(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const i=e/t,o=this._camera.getEffectiveFOV()*_i,a=this._camera.aspect;return((r?i>a:it.pointerId===e)}_findPointerByMouseButton(e){return this._activePointers.find(t=>t.mouseButton===e)}_disposePointer(e){this._activePointers.splice(this._activePointers.indexOf(e),1)}_encloseToBoundary(e,t,s){const r=t.lengthSq();if(r===0)return e;const i=ke.copy(t).add(e),a=this._boundary.clampPoint(i,_r).sub(i),c=a.lengthSq();if(c===0)return e.add(t);if(c===r)return e;if(s===0)return e.add(t).add(a);{const l=1+s*c/t.dot(a);return e.add(ke.copy(t).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ns(this._camera)){const e=this._camera,t=e.near,s=e.getEffectiveFOV()*_i,r=Math.tan(s*.5)*t,i=r*e.aspect;this._nearPlaneCorners[0].set(-i,-r,0),this._nearPlaneCorners[1].set(i,-r,0),this._nearPlaneCorners[2].set(i,r,0),this._nearPlaneCorners[3].set(-i,r,0)}else if(cs(this._camera)){const e=this._camera,t=1/e.zoom,s=e.left*t,r=e.right*t,i=e.top*t,o=e.bottom*t;this._nearPlaneCorners[0].set(s,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let e=1/0;if(!(this.colliderMeshes.length>=1)||Yc(this._camera,"_collisionTest"))return e;const s=this._getTargetDirection(bi);Kc.lookAt(od,s,this._camera.up);for(let r=0;r<4;r++){const i=ke.copy(this._nearPlaneCorners[r]);i.applyMatrix4(Kc);const o=_r.addVectors(this._target,i);Yo.set(o,s),Yo.far=this._spherical.radius+1;const a=Yo.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),t()};this.addEventListener("rest",s)}))}_addAllEventListeners(e){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(e){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(e){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(e,t=new he.Sphere){const s=t,r=s.center;yr.makeEmpty(),e.traverseVisible(o=>{o.isMesh&&yr.expandByObject(o)}),yr.getCenter(r);let i=0;return e.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{b.useMemo(()=>{Qc.install({THREE:wy}),vu({CameraControlsImpl:Qc})},[]);const{camera:t,domElement:s,makeDefault:r,onStart:i,onEnd:o,onChange:a,regress:c,...l}=n,u=Ye(v=>v.camera),h=Ye(v=>v.gl),d=Ye(v=>v.invalidate),f=Ye(v=>v.events),g=Ye(v=>v.setEvents),p=Ye(v=>v.set),m=Ye(v=>v.get),_=Ye(v=>v.performance),T=t||u,w=s||f.connected||h.domElement,y=b.useMemo(()=>new Qc(T),[T]);return qt((v,k)=>{y.enabled&&y.update(k)},-1),b.useEffect(()=>(y.connect(w),()=>void y.disconnect()),[w,y]),b.useEffect(()=>{const v=x=>{d(),c&&_.regress(),a&&a(x)},k=x=>{i&&i(x)},E=x=>{o&&o(x)};return y.addEventListener("update",v),y.addEventListener("controlstart",k),y.addEventListener("controlend",E),()=>{y.removeEventListener("update",v),y.removeEventListener("controlstart",k),y.removeEventListener("controlend",E)}},[y,i,o,d,g,c,a]),b.useEffect(()=>{if(r){const v=m().controls;return p({controls:y}),()=>p({controls:v})}},[r,y]),b.createElement("primitive",Se({ref:e,object:y},l))});Ee.func.isRequired,Ee.arrayOf(Ee.oneOfType([Ee.element,Ee.func])).isRequired;const hd=new wo,dd=new wo,Go=[],wi=new Ep;class P1 extends ky{constructor(){super(),this.color=new va("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var e;return(e=this.instance.current)==null?void 0:e.geometry}raycast(e,t){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;wi.geometry=s.geometry;const r=s.matrixWorld,i=s.userData.instances.indexOf(this.instanceKey);if(!(i===-1||i>s.count)){s.getMatrixAt(i,hd),dd.multiplyMatrices(r,hd),wi.matrixWorld=dd,s.material instanceof Ty?wi.material.side=s.material.side:wi.material.side=s.material[0].side,wi.raycast(e,Go);for(let o=0,a=Go.length;o{b.useMemo(()=>vu({PositionMesh:P1}),[]);const r=b.useRef(),{subscribe:i,getParent:o}=b.useContext(n||zp);return b.useLayoutEffect(()=>i(r),[]),b.createElement("positionMesh",Se({instance:o(),instanceKey:r,ref:lc([s,r])},t),e)}),N1=b.forwardRef(({children:n,range:e,limit:t=1e3,frames:s=1/0,...r},i)=>{const[{context:o,instance:a}]=b.useState(()=>{const m=b.createContext(null);return{context:m,instance:b.forwardRef((_,T)=>b.createElement(Vp,Se({context:m},_,{ref:T})))}}),c=b.useRef(null),[l,u]=b.useState([]),[[h,d]]=b.useState(()=>{const m=new Float32Array(t*16);for(let _=0;_1))]});b.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let f=0,g=0;qt(()=>{if(s===1/0||f({getParent:()=>c,subscribe:m=>(u(_=>[..._,m]),()=>u(_=>_.filter(T=>T.current!==m.current)))}),[]);return b.createElement("instancedMesh",Se({userData:{instances:l},matrixAutoUpdate:!1,ref:lc([i,c]),args:[null,null,0],raycast:()=>null},r),b.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:Wh}),b.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:Wh}),typeof n=="function"?b.createElement(o.Provider,{value:p},n(a)):b.createElement(zp.Provider,{value:p},n))}),Up=b.createContext(null),I1=b.forwardRef((n,e)=>{b.useMemo(()=>vu({SegmentObject:$1}),[]);const{limit:t=1e3,lineWidth:s=1,children:r,...i}=n,[o,a]=b.useState([]),[c]=b.useState(()=>new bu),[l]=b.useState(()=>new K_),[u]=b.useState(()=>new Q_),[h]=b.useState(()=>new Te(512,512)),[d]=b.useState(()=>Array(t*6).fill(0)),[f]=b.useState(()=>Array(t*6).fill(0)),g=b.useMemo(()=>({subscribe:p=>(a(m=>[...m,p]),()=>a(m=>m.filter(_=>_.current!==p.current)))}),[]);return qt(()=>{for(let m=0;mn instanceof _e?n:new _e(...typeof n=="number"?[n,n,n]:n),F1=b.forwardRef(({color:n,start:e,end:t},s)=>{const r=b.useContext(Up);if(!r)throw"Segment must used inside Segments component.";const i=b.useRef(null);return b.useLayoutEffect(()=>r.subscribe(i),[]),b.createElement("segmentObject",{ref:lc([i,s]),color:n,start:yd(e),end:yd(t)})});function L1({all:n,scene:e,camera:t}){const s=Ye(({gl:o})=>o),r=Ye(({camera:o})=>o),i=Ye(({scene:o})=>o);return b.useLayoutEffect(()=>{const o=[];n&&(e||i).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(e||i,t||r);const a=new Cy(128);new Sy(.01,1e5,a).update(s,e||i),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function vd({pixelated:n}){const e=Ye(o=>o.gl),t=Ye(o=>o.internal.active),s=Ye(o=>o.performance.current),r=Ye(o=>o.viewport.initialDpr),i=Ye(o=>o.setDpr);return b.useEffect(()=>{const o=e.domElement;return()=>{t&&i(r),n&&o&&(o.style.imageRendering="auto")}},[]),b.useEffect(()=>{i(s*r),n&&e.domElement&&(e.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function bd(){const n=Ye(s=>s.get),e=Ye(s=>s.setEvents),t=Ye(s=>s.performance.current);return b.useEffect(()=>{const s=n().events.enabled;return()=>e({enabled:s})},[]),b.useEffect(()=>e({enabled:t===1}),[t]),null}const j1=b.createContext(null);function z1({children:n,enabled:e=!0}){const[t,s]=b.useState([]),r=b.useMemo(()=>({selected:t,select:s,enabled:e}),[t,s,e]);return P.jsx(j1.Provider,{value:r,children:n})}function V1(n,e){typeof n=="function"?n(e):n!=null&&(n.current=e)}function Bp(...n){return e=>n.forEach(t=>V1(t,e))}function ti(...n){return b.useCallback(Bp(...n),n)}const Wp=b.forwardRef((n,e)=>{const{children:t,...s}=n,r=b.Children.toArray(t),i=r.find(U1);if(i){const o=i.props.children,a=r.map(c=>c===i?b.Children.count(o)>1?b.Children.only(null):b.isValidElement(o)?o.props.children:null:c);return b.createElement(Tl,Se({},s,{ref:e}),b.isValidElement(o)?b.cloneElement(o,void 0,a):null)}return b.createElement(Tl,Se({},s,{ref:e}),t)});Wp.displayName="Slot";const Tl=b.forwardRef((n,e)=>{const{children:t,...s}=n;return b.isValidElement(t)?b.cloneElement(t,{...B1(s,t.props),ref:e?Bp(e,t.ref):t.ref}):b.Children.count(t)>1?b.Children.only(null):null});Tl.displayName="SlotClone";const qp=({children:n})=>b.createElement(b.Fragment,null,n);function U1(n){return b.isValidElement(n)&&n.type===qp}function B1(n,e){const t={...e};for(const s in e){const r=n[s],i=e[s];/^on[A-Z]/.test(s)?r&&i?t[s]=(...a)=>{i(...a),r(...a)}:r&&(t[s]=r):s==="style"?t[s]={...r,...i}:s==="className"&&(t[s]=[r,i].filter(Boolean).join(" "))}return{...n,...t}}const W1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ar=W1.reduce((n,e)=>{const t=b.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?Wp:e;return b.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),b.createElement(a,Se({},o,{ref:r}))});return t.displayName=`Primitive.${e}`,{...n,[e]:t}},{});function q1(n,e){n&&gu.flushSync(()=>n.dispatchEvent(e))}const H1=b.forwardRef((n,e)=>{var t;const{container:s=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=n;return s?pp.createPortal(b.createElement(ar.div,Se({},r,{ref:e})),s):null}),Y1=H1;var xd=Object.prototype.hasOwnProperty;function Wi(n,e){var t,s;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((s=n.length)===e.length)for(;s--&&Wi(n[s],e[s]););return s===-1}if(!t||typeof n=="object"){s=0;for(t in n)if(xd.call(n,t)&&++s&&!xd.call(e,t)||!(t in e)||!Wi(n[t],e[t]))return!1;return Object.keys(e).length===s}}return n!==n&&e!==e}function To(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s0;)o[a]=arguments[a+4];n.call(this,o),n.captureStackTrace&&n.captureStackTrace(this,e),this.rule=t,this.value=s,this.cause=r,this.target=i}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e}(Error),On=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=[]),this.chain=e,this.nextRuleModifiers=t};On.prototype._applyRule=function(e,t){var s=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return s.chain.push(new gc(t,e.apply(s,r),r,s.nextRuleModifiers)),s.nextRuleModifiers=[],s}};On.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new G1(t,e.simple,e.async)),this};On.prototype._clone=function(){return new On(this.chain.slice(),this.nextRuleModifiers.slice())};On.prototype.test=function(e){return this.chain.every(function(t){return t._test(e)})};On.prototype.testAll=function(e){var t=[];return this.chain.forEach(function(s){try{s._check(e)}catch(r){t.push(new Ru(s,e,r))}}),t};On.prototype.check=function(e){this.chain.forEach(function(t){try{t._check(e)}catch(s){throw new Ru(t,e,s)}})};On.prototype.testAsync=function(e){var t=this;return new Promise(function(s,r){Gp(e,t.chain.slice(),s,r)})};function Gp(n,e,t,s){if(e.length){var r=e.shift();r._testAsync(n).then(function(){Gp(n,e,t,s)},function(i){s(new Ru(r,n,i))})}else t(n)}var wd=function(n,e){return e&&typeof n=="string"&&n.trim().length===0?!0:n==null};function X1(n,e){return e===void 0&&(e=!1),{simple:function(t){return wd(t,e)||n.check(t)===void 0},async:function(t){return wd(t,e)||n.testAsync(t)}}}function Ot(){return typeof Proxy<"u"?Xp(new On):El(new On)}var qi={};Ot.extend=function(n){Object.assign(qi,n)};Ot.clearCustomRules=function(){qi={}};function Xp(n){return new Proxy(n,{get:function(t,s){if(s in t)return t[s];var r=Xp(n._clone());if(s in Ta)return r._applyModifier(Ta[s],s);if(s in qi)return r._applyRule(qi[s],s);if(s in Cl)return r._applyRule(Cl[s],s)}})}function El(n){var e=function(r,i){return Object.keys(r).forEach(function(o){i[o]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=El(i._clone()),u=l._applyRule(r[o],o).apply(void 0,a);return u}}),i},t=e(Cl,n),s=e(qi,t);return Object.keys(Ta).forEach(function(r){Object.defineProperty(s,r,{get:function(){var i=El(s._clone());return i._applyModifier(Ta[r],r)}})}),s}var Ta={not:{simple:function(n){return function(e){return!n(e)}},async:function(n){return function(e){return Promise.resolve(n(e)).then(function(t){return!t}).catch(function(){return!0})}}},some:{simple:function(n){return function(e){return Xo(e).some(function(t){try{return n(t)}catch{return!1}})}},async:function(n){return function(e){return Promise.all(Xo(e).map(function(t){try{return n(t).catch(function(){return!1})}catch{return!1}})).then(function(t){return t.some(Boolean)})}}},every:{simple:function(n){return function(e){return e!==!1&&Xo(e).every(n)}},async:function(n){return function(e){return Promise.all(Xo(e).map(n)).then(function(t){return t.every(Boolean)})}}},strict:{simple:function(n,e){return function(t){return kd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&n(t):n(t)}},async:function(n,e){return function(t){return Promise.resolve(n(t)).then(function(s){return kd(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&s:s}).catch(function(){return!1})}}}};function kd(n){return n&&n.name==="schema"&&n.args.length>0&&typeof n.args[0]=="object"}function Xo(n){return typeof n=="string"?n.split(""):n}var Cl={equal:function(n){return function(e){return e==n}},exact:function(n){return function(e){return e===n}},number:function(n){return n===void 0&&(n=!0),function(e){return typeof e=="number"&&(n||isFinite(e))}},integer:function(){return function(n){var e=Number.isInteger||Z1;return e(n)}},numeric:function(){return function(n){return!isNaN(parseFloat(n))&&isFinite(n)}},string:function(){return vr("string")},boolean:function(){return vr("boolean")},undefined:function(){return vr("undefined")},null:function(){return vr("null")},array:function(){return vr("array")},object:function(){return vr("object")},instanceOf:function(n){return function(e){return e instanceof n}},pattern:function(n){return function(e){return n.test(e)}},lowercase:function(){return function(n){return typeof n=="boolean"||n===n.toLowerCase()&&n.trim()!==""}},uppercase:function(){return function(n){return n===n.toUpperCase()&&n.trim()!==""}},vowel:function(){return function(n){return/^[aeiou]+$/i.test(n)}},consonant:function(){return function(n){return/^(?=[^aeiou])([a-z]+)$/i.test(n)}},first:function(n){return function(e){return e[0]==n}},last:function(n){return function(e){return e[e.length-1]==n}},empty:function(){return function(n){return n.length===0}},length:function(n,e){return function(t){return t.length>=n&&t.length<=(e||n)}},minLength:function(n){return function(e){return e.length>=n}},maxLength:function(n){return function(e){return e.length<=n}},negative:function(){return function(n){return n<0}},positive:function(){return function(n){return n>=0}},between:function(n,e){return function(t){return t>=n&&t<=e}},range:function(n,e){return function(t){return t>=n&&t<=e}},lessThan:function(n){return function(e){return en}},greaterThanOrEqual:function(n){return function(e){return e>=n}},even:function(){return function(n){return n%2===0}},odd:function(){return function(n){return n%2!==0}},includes:function(n){return function(e){return~e.indexOf(n)}},schema:function(n){return K1(n)},passesAnyOf:function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return function(t){return n.some(function(s){return s.test(t)})}},optional:X1};function vr(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function Z1(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function K1(n){return{simple:function(e){var t=[];if(Object.keys(n).forEach(function(s){var r=n[s];try{r.check((e||{})[s])}catch(i){i.target=s,t.push(i)}}),t.length>0)throw t;return!0},async:function(e){var t=[],s=Object.keys(n).map(function(r){var i=n[r];return i.testAsync((e||{})[r]).catch(function(o){o.target=r,t.push(o)})});return Promise.all(s).then(function(){if(t.length>0)throw t;return!0})}}}function Vn(n,e,{checkForDefaultPrevented:t=!0}={}){return function(r){if(n==null||n(r),t===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Zp(n,e=[]){let t=[];function s(i,o){const a=b.createContext(o),c=t.length;t=[...t,o];function l(h){const{scope:d,children:f,...g}=h,p=(d==null?void 0:d[n][c])||a,m=b.useMemo(()=>g,Object.values(g));return b.createElement(p.Provider,{value:m},f)}function u(h,d){const f=(d==null?void 0:d[n][c])||a,g=b.useContext(f);if(g)return g;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const r=()=>{const i=t.map(o=>b.createContext(o));return function(a){const c=(a==null?void 0:a[n])||i;return b.useMemo(()=>({[`__scope${n}`]:{...a,[n]:c}}),[a,c])}};return r.scopeName=n,[s,Q1(r,...e)]}function Q1(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const s=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const h=c(i)[`__scope${l}`];return{...a,...h}},{});return b.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function ni(n){const e=b.useRef(n);return b.useEffect(()=>{e.current=n}),b.useMemo(()=>(...t)=>{var s;return(s=e.current)===null||s===void 0?void 0:s.call(e,...t)},[])}function J1(n,e=globalThis==null?void 0:globalThis.document){const t=ni(n);b.useEffect(()=>{const s=r=>{r.key==="Escape"&&t(r)};return e.addEventListener("keydown",s),()=>e.removeEventListener("keydown",s)},[t,e])}const Sl="dismissableLayer.update",ev="dismissableLayer.pointerDownOutside",tv="dismissableLayer.focusOutside";let Td;const nv=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),sv=b.forwardRef((n,e)=>{var t;const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:c,...l}=n,u=b.useContext(nv),[h,d]=b.useState(null),f=(t=h==null?void 0:h.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,g]=b.useState({}),p=ti(e,x=>d(x)),m=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),T=m.indexOf(_),w=h?m.indexOf(h):-1,y=u.layersWithOutsidePointerEventsDisabled.size>0,v=w>=T,k=rv(x=>{const C=x.target,S=[...u.branches].some(R=>R.contains(C));!v||S||(i==null||i(x),a==null||a(x),x.defaultPrevented||c==null||c())},f),E=iv(x=>{const C=x.target;[...u.branches].some(R=>R.contains(C))||(o==null||o(x),a==null||a(x),x.defaultPrevented||c==null||c())},f);return J1(x=>{w===u.layers.size-1&&(r==null||r(x),!x.defaultPrevented&&c&&(x.preventDefault(),c()))},f),b.useEffect(()=>{if(h)return s&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Td=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Ed(),()=>{s&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Td)}},[h,f,s,u]),b.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Ed())},[h,u]),b.useEffect(()=>{const x=()=>g({});return document.addEventListener(Sl,x),()=>document.removeEventListener(Sl,x)},[]),b.createElement(ar.div,Se({},l,{ref:p,style:{pointerEvents:y?v?"auto":"none":void 0,...n.style},onFocusCapture:Vn(n.onFocusCapture,E.onFocusCapture),onBlurCapture:Vn(n.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Vn(n.onPointerDownCapture,k.onPointerDownCapture)}))});function rv(n,e=globalThis==null?void 0:globalThis.document){const t=ni(n),s=b.useRef(!1),r=b.useRef(()=>{});return b.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){Kp(ev,t,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=l,e.addEventListener("click",r.current,{once:!0})):l()}else e.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,t]),{onPointerDownCapture:()=>s.current=!0}}function iv(n,e=globalThis==null?void 0:globalThis.document){const t=ni(n),s=b.useRef(!1);return b.useEffect(()=>{const r=i=>{i.target&&!s.current&&Kp(tv,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,t]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Ed(){const n=new CustomEvent(Sl);document.dispatchEvent(n)}function Kp(n,e,t,{discrete:s}){const r=t.originalEvent.target,i=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&r.addEventListener(n,e,{once:!0}),s?q1(r,i):r.dispatchEvent(i)}const jr=globalThis!=null&&globalThis.document?b.useLayoutEffect:()=>{},ov=V_["useId".toString()]||(()=>{});let av=0;function cv(n){const[e,t]=b.useState(ov());return jr(()=>{n||t(s=>s??String(av++))},[n]),n||(e?`radix-${e}`:"")}const lv=b.forwardRef((n,e)=>{const{children:t,width:s=10,height:r=5,...i}=n;return b.createElement(ar.svg,Se({},i,{ref:e,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:b.createElement("polygon",{points:"0,0 30,0 15,10"}))}),uv=lv;function hv(n){const[e,t]=b.useState(void 0);return jr(()=>{if(n){t({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=n.offsetWidth,a=n.offsetHeight;t({width:o,height:a})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else t(void 0)},[n]),e}const Qp="Popper",[Jp,e0]=Zp(Qp),[dv,t0]=Jp(Qp),fv=n=>{const{__scopePopper:e,children:t}=n,[s,r]=b.useState(null);return b.createElement(dv,{scope:e,anchor:s,onAnchorChange:r},t)},pv="PopperAnchor",mv=b.forwardRef((n,e)=>{const{__scopePopper:t,virtualRef:s,...r}=n,i=t0(pv,t),o=b.useRef(null),a=ti(e,o);return b.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:b.createElement(ar.div,Se({},r,{ref:a}))}),n0="PopperContent",[gv,_v]=Jp(n0),yv=b.forwardRef((n,e)=>{var t,s,r,i,o,a,c,l;const{__scopePopper:u,side:h="bottom",sideOffset:d=0,align:f="center",alignOffset:g=0,arrowPadding:p=0,avoidCollisions:m=!0,collisionBoundary:_=[],collisionPadding:T=0,sticky:w="partial",hideWhenDetached:y=!1,updatePositionStrategy:v="optimized",onPlaced:k,...E}=n,x=t0(n0,u),[C,S]=b.useState(null),R=ti(e,H=>S(H)),[O,L]=b.useState(null),z=hv(O),W=(t=z==null?void 0:z.width)!==null&&t!==void 0?t:0,B=(s=z==null?void 0:z.height)!==null&&s!==void 0?s:0,V=h+(f!=="center"?"-"+f:""),U=typeof T=="number"?T:{top:0,right:0,bottom:0,left:0,...T},X=Array.isArray(_)?_:[_],K=X.length>0,Q={padding:U,boundary:X.filter(wv),altBoundary:K},{refs:F,floatingStyles:j,placement:A,isPositioned:I,middlewareData:Y}=g1({strategy:"fixed",placement:V,whileElementsMounted:(...H)=>f1(...H,{animationFrame:v==="always"}),elements:{reference:x.anchor},middleware:[Hy({mainAxis:d+B,alignmentAxis:g}),m&&Yy({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Gy():void 0,...Q}),m&&By({...Q}),Xy({...Q,apply:({elements:H,rects:M,availableWidth:D,availableHeight:J})=>{const{width:se,height:le}=M.reference,be=H.floating.style;be.setProperty("--radix-popper-available-width",`${D}px`),be.setProperty("--radix-popper-available-height",`${J}px`),be.setProperty("--radix-popper-anchor-width",`${se}px`),be.setProperty("--radix-popper-anchor-height",`${le}px`)}}),O&&m1({element:O,padding:p}),kv({arrowWidth:W,arrowHeight:B}),y&&Wy({strategy:"referenceHidden",...Q})]}),[$,q]=s0(A),ae=ni(k);jr(()=>{I&&(ae==null||ae())},[I,ae]);const re=(r=Y.arrow)===null||r===void 0?void 0:r.x,ie=(i=Y.arrow)===null||i===void 0?void 0:i.y,ne=((o=Y.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[ge,te]=b.useState();return jr(()=>{C&&te(window.getComputedStyle(C).zIndex)},[C]),b.createElement("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:I?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(a=Y.transformOrigin)===null||a===void 0?void 0:a.x,(c=Y.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:n.dir},b.createElement(gv,{scope:u,placedSide:$,onArrowChange:L,arrowX:re,arrowY:ie,shouldHideArrow:ne},b.createElement(ar.div,Se({"data-side":$,"data-align":q},E,{ref:R,style:{...E.style,animation:I?void 0:"none",opacity:(l=Y.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),vv="PopperArrow",bv={top:"bottom",right:"left",bottom:"top",left:"right"},xv=b.forwardRef(function(e,t){const{__scopePopper:s,...r}=e,i=_v(vv,s),o=bv[i.placedSide];return b.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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}},b.createElement(uv,Se({},r,{ref:t,style:{...r.style,display:"block"}})))});function wv(n){return n!==null}const kv=n=>({name:"transformOrigin",options:n,fn(e){var t,s,r,i,o;const{placement:a,rects:c,middlewareData:l}=e,h=((t=l.arrow)===null||t===void 0?void 0:t.centerOffset)!==0,d=h?0:n.arrowWidth,f=h?0:n.arrowHeight,[g,p]=s0(a),m={start:"0%",center:"50%",end:"100%"}[p],_=((s=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&s!==void 0?s:0)+d/2,T=((i=(o=l.arrow)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0)+f/2;let w="",y="";return g==="bottom"?(w=h?m:`${_}px`,y=`${-f}px`):g==="top"?(w=h?m:`${_}px`,y=`${c.floating.height+f}px`):g==="right"?(w=`${-f}px`,y=h?m:`${T}px`):g==="left"&&(w=`${c.floating.width+f}px`,y=h?m:`${T}px`),{data:{x:w,y}}}});function s0(n){const[e,t="center"]=n.split("-");return[e,t]}const Tv=fv,Ev=mv,Cv=yv,Sv=xv;function Ov(n,e){return b.useReducer((t,s)=>{const r=e[t][s];return r??t},n)}const r0=n=>{const{present:e,children:t}=n,s=Av(e),r=typeof t=="function"?t({present:s.isPresent}):b.Children.only(t),i=ti(s.ref,r.ref);return typeof t=="function"||s.isPresent?b.cloneElement(r,{ref:i}):null};r0.displayName="Presence";function Av(n){const[e,t]=b.useState(),s=b.useRef({}),r=b.useRef(n),i=b.useRef("none"),o=n?"mounted":"unmounted",[a,c]=Ov(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const l=Zo(s.current);i.current=a==="mounted"?l:"none"},[a]),jr(()=>{const l=s.current,u=r.current;if(u!==n){const d=i.current,f=Zo(l);n?c("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=n}},[n,c]),jr(()=>{if(e){const l=h=>{const f=Zo(s.current).includes(h.animationName);h.target===e&&f&&gu.flushSync(()=>c("ANIMATION_END"))},u=h=>{h.target===e&&(i.current=Zo(s.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:b.useCallback(l=>{l&&(s.current=getComputedStyle(l)),t(l)},[])}}function Zo(n){return(n==null?void 0:n.animationName)||"none"}function Rv({prop:n,defaultProp:e,onChange:t=()=>{}}){const[s,r]=Dv({defaultProp:e,onChange:t}),i=n!==void 0,o=i?n:s,a=ni(t),c=b.useCallback(l=>{if(i){const h=typeof l=="function"?l(n):l;h!==n&&a(h)}else r(l)},[i,n,r,a]);return[o,c]}function Dv({defaultProp:n,onChange:e}){const t=b.useState(n),[s]=t,r=b.useRef(s),i=ni(e);return b.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),t}const Pv=b.forwardRef((n,e)=>b.createElement(ar.span,Se({},n,{ref:e,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",...n.style}}))),Mv=Pv,[_c,EM]=Zp("Tooltip",[e0]),yc=e0(),Nv="TooltipProvider",Ol="tooltip.open",[CM,Du]=_c(Nv),Pu="Tooltip",[Iv,vc]=_c(Pu),$v=n=>{const{__scopeTooltip:e,children:t,open:s,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=n,c=Du(Pu,n.__scopeTooltip),l=yc(e),[u,h]=b.useState(null),d=cv(),f=b.useRef(0),g=o??c.disableHoverableContent,p=a??c.delayDuration,m=b.useRef(!1),[_=!1,T]=Rv({prop:s,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ol))):c.onClose(),i==null||i(E)}}),w=b.useMemo(()=>_?m.current?"delayed-open":"instant-open":"closed",[_]),y=b.useCallback(()=>{window.clearTimeout(f.current),m.current=!1,T(!0)},[T]),v=b.useCallback(()=>{window.clearTimeout(f.current),T(!1)},[T]),k=b.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{m.current=!0,T(!0)},p)},[p,T]);return b.useEffect(()=>()=>window.clearTimeout(f.current),[]),b.createElement(Tv,l,b.createElement(Iv,{scope:e,contentId:d,open:_,stateAttribute:w,trigger:u,onTriggerChange:h,onTriggerEnter:b.useCallback(()=>{c.isOpenDelayed?k():y()},[c.isOpenDelayed,k,y]),onTriggerLeave:b.useCallback(()=>{g?v():window.clearTimeout(f.current)},[v,g]),onOpen:y,onClose:v,disableHoverableContent:g},t))},Cd="TooltipTrigger",Fv=b.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=vc(Cd,t),i=Du(Cd,t),o=yc(t),a=b.useRef(null),c=ti(e,a,r.onTriggerChange),l=b.useRef(!1),u=b.useRef(!1),h=b.useCallback(()=>l.current=!1,[]);return b.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),b.createElement(Ev,Se({asChild:!0},o),b.createElement(ar.button,Se({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},s,{ref:c,onPointerMove:Vn(n.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:Vn(n.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:Vn(n.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Vn(n.onFocus,()=>{l.current||r.onOpen()}),onBlur:Vn(n.onBlur,r.onClose),onClick:Vn(n.onClick,r.onClose)})))}),Lv="TooltipPortal",[SM,jv]=_c(Lv,{forceMount:void 0}),Hi="TooltipContent",zv=b.forwardRef((n,e)=>{const t=jv(Hi,n.__scopeTooltip),{forceMount:s=t.forceMount,side:r="top",...i}=n,o=vc(Hi,n.__scopeTooltip);return b.createElement(r0,{present:s||o.open},o.disableHoverableContent?b.createElement(i0,Se({side:r},i,{ref:e})):b.createElement(Vv,Se({side:r},i,{ref:e})))}),Vv=b.forwardRef((n,e)=>{const t=vc(Hi,n.__scopeTooltip),s=Du(Hi,n.__scopeTooltip),r=b.useRef(null),i=ti(e,r),[o,a]=b.useState(null),{trigger:c,onClose:l}=t,u=r.current,{onPointerInTransitChange:h}=s,d=b.useCallback(()=>{a(null),h(!1)},[h]),f=b.useCallback((g,p)=>{const m=g.currentTarget,_={x:g.clientX,y:g.clientY},T=Hv(_,m.getBoundingClientRect()),w=Yv(_,T),y=Gv(p.getBoundingClientRect()),v=Zv([...w,...y]);a(v),h(!0)},[h]);return b.useEffect(()=>()=>d(),[d]),b.useEffect(()=>{if(c&&u){const g=m=>f(m,u),p=m=>f(m,c);return c.addEventListener("pointerleave",g),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",g),u.removeEventListener("pointerleave",p)}}},[c,u,f,d]),b.useEffect(()=>{if(o){const g=p=>{const m=p.target,_={x:p.clientX,y:p.clientY},T=(c==null?void 0:c.contains(m))||(u==null?void 0:u.contains(m)),w=!Xv(_,o);T?d():w&&(d(),l())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,u,o,l,d]),b.createElement(i0,Se({},n,{ref:i}))}),[Uv,Bv]=_c(Pu,{isInside:!1}),i0=b.forwardRef((n,e)=>{const{__scopeTooltip:t,children:s,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=n,c=vc(Hi,t),l=yc(t),{onClose:u}=c;return b.useEffect(()=>(document.addEventListener(Ol,u),()=>document.removeEventListener(Ol,u)),[u]),b.useEffect(()=>{if(c.trigger){const h=d=>{const f=d.target;f!=null&&f.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),b.createElement(sv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u},b.createElement(Cv,Se({"data-state":c.stateAttribute},l,a,{ref:e,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)"}}),b.createElement(qp,null,s),b.createElement(Uv,{scope:t,isInside:!0},b.createElement(Mv,{id:c.contentId,role:"tooltip"},r||s))))}),Wv="TooltipArrow",qv=b.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=yc(t);return Bv(Wv,t).isInside?null:b.createElement(Sv,Se({},r,s,{ref:e}))});function Hv(n,e){const t=Math.abs(e.top-n.y),s=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),i=Math.abs(e.left-n.x);switch(Math.min(t,s,r,i)){case i:return"left";case r:return"right";case t:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Yv(n,e,t=5){const s=[];switch(e){case"top":s.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":s.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":s.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":s.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return s}function Gv(n){const{top:e,right:t,bottom:s,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:s},{x:r,y:s}]}function Xv(n,e){const{x:t,y:s}=n;let r=!1;for(let i=0,o=e.length-1;is!=u>s&&t<(l-a)*(s-c)/(u-c)+a&&(r=!r)}return r}function Zv(n){const e=n.slice();return e.sort((t,s)=>t.xs.x?1:t.ys.y?1:0),Kv(e)}function Kv(n){if(n.length<=1)return n.slice();const e=[];for(let s=0;s=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let s=n.length-1;s>=0;s--){const r=n[s];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}const Qv=$v,Jv=Fv,eb=zv,tb=qv;function nb(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}function De(n,e){if(n==null)return{};var t=nb(n,e),s,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}let He;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(He||(He={}));const sb={[He.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[He.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[He.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[He.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[He.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[He.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[He.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[He.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[He.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[He.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[He.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function o0(n,e,...t){const[s,...r]=sb[e](...t);console[n]("LEVA: "+s,...r)}const Bn=o0.bind(null,"warn"),rb=o0.bind(null,"log"),ib=["value"],ob=["schema"],ab=["value"],a0=[],Js={};function Sd(n){let{value:e}=n,t=De(n,ib);for(let s of a0){const r=s(e,t);if(r)return r}}function ns(n,e){let{schema:t}=e,s=De(e,ob);if(n in Js){Bn(He.ALREADY_REGISTERED_TYPE,n);return}a0.push((r,i)=>t(r,i)&&n),Js[n]=s}function Jc(n,e,t,s){const{normalize:r}=Js[n];if(r)return r(e,t,s);if(typeof e!="object"||!("value"in e))return{value:e};const{value:i}=e,o=De(e,ab);return{value:i,settings:o}}function cb(n,e,t,s,r,i){const{sanitize:o}=Js[n];return o?o(e,t,s,r,i):e}function Od(n,e,t){const{format:s}=Js[n];return s?s(e,t):e}function lb(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Ad(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,s)}return t}function de(n){for(var e=1;en>t?t:n{if(n===""||typeof n=="number")return n;try{const e=ls(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},hb=Math.log(10);function Rd(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10===0;)e/=10;const t=Math.floor(Math.log(e)/hb)+1,s=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,s-t);return Math.max(r,.001)}const Ea=(n,e,t)=>t===e?0:(xs(n,e,t)-e)/(t-e),Ca=(n,e,t)=>n*(t-e)+e,db=()=>"_"+Math.random().toString(36).substr(2,9),Dd=/\(([0-9+\-*/^ .]+)\)/,Pd=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Md=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Nd=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,Id=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,$d=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function ls(n){if(isNaN(Number(n)))if(Dd.test(n)){const e=n.replace(Dd,(t,s)=>String(ls(s)));return ls(e)}else if(Pd.test(n)){const e=n.replace(Pd,(t,s,r)=>String(Math.pow(Number(s),Number(r))));return ls(e)}else if(Md.test(n)){const e=n.replace(Md,(t,s,r)=>String(Number(s)*Number(r)));return ls(e)}else if(Nd.test(n)){const e=n.replace(Nd,(t,s,r)=>{if(r!=0)return String(Number(s)/Number(r));throw new Error("Division by zero")});return ls(e)}else if(Id.test(n)){const e=n.replace(Id,(t,s,r)=>String(Number(s)+Number(r)));return ls(e)}else if($d.test(n)){const e=n.replace($d,(t,s,r)=>String(Number(s)-Number(r)));return ls(e)}else return Number(n);return Number(n)}function fb(n,e){return e.reduce((t,s)=>(n&&n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}function pb(n,e){const t=de({},n);return e.forEach(s=>s in n&&delete t[s]),t}function mb(n,e){return n.reduce((t,s,r)=>Object.assign(t,{[e[r]]:s}),{})}function c0(n){return Object.prototype.toString.call(n)==="[object Object]"}const gb=n=>c0(n)&&Object.keys(n).length===0;let un;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(un||(un={}));let dn;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(dn||(dn={}));const _b=["type","__customInput"],yb=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],vb=["type"];function l0(n,e,t={},s){var r,i;if(typeof n!="object"||Array.isArray(n))return{type:s,input:n,options:de({key:e,label:e,optional:!1,disabled:!1,order:0},t)};if("__customInput"in n){const{type:v,__customInput:k}=n,E=De(n,_b);return l0(k,e,E,v)}const{render:o,label:a,optional:c,order:l=0,disabled:u,hint:h,onChange:d,onEditStart:f,onEditEnd:g,transient:p}=n,m=De(n,yb),_=de({render:o,key:e,label:a??e,hint:h,transient:p??!!d,onEditStart:f,onEditEnd:g,disabled:u,optional:c,order:l},t);let{type:T}=m,w=De(m,vb);if(T=s??T,T in un)return{type:T,input:w,options:_};let y;return s&&c0(w)&&"value"in w?y=w.value:y=gb(w)?void 0:w,{type:T,input:y,options:de(de({},_),{},{onChange:d,optional:(r=_.optional)!==null&&r!==void 0?r:!1,disabled:(i=_.disabled)!==null&&i!==void 0?i:!1})}}function bb(n,e,t,s){const r=l0(n,e),{type:i,input:o,options:a}=r;if(i)return i in un?r:{type:i,input:Jc(i,o,t,s),options:a};let c=Sd(o);return c?{type:c,input:Jc(c,o,t,s),options:a}:(c=Sd({value:o}),c?{type:c,input:Jc(c,{value:o},t,s),options:a}:!1)}function Fd(n,e,t,s,r){const{value:i,type:o,settings:a}=n;n.value=u0({type:o,value:i,settings:a},e,t,s),n.fromPanel=r}const xb=function(e,t,s){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=s};function u0({type:n,value:e,settings:t},s,r,i){const o=n!=="SELECT"&&typeof s=="function"?s(e):s;let a;try{a=cb(n,o,t,e,r,i)}catch(c){throw new xb(`The value \`${s}\` did not result in a correct value.`,e,c)}return Wi(a,e)?e:a}const h0=(n,e,t=!1)=>{let s=0;return function(){const r=arguments,i=t&&!s,o=()=>n.apply(this,r);window.clearTimeout(s),s=window.setTimeout(o,e),i&&o()}},d0=n=>n.shiftKey?5:n.altKey?1/5:1;function wb(n,e){const t=console.error;console.error=()=>{},pp.render(n,e),console.error=t}const kb=["value"],Tb=["min","max"],Eb=n=>{if(typeof n=="number")return!0;if(typeof n=="string"){const e=parseFloat(n);return isNaN(e)?!1:n.substring((""+e).length).trim().length<4}return!1},f0=(n,{min:e=-1/0,max:t=1/0,suffix:s})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const i=xs(r,e,t);return s?i+s:i},Cb=(n,{pad:e=0,suffix:t})=>{const s=parseFloat(n).toFixed(e);return t?s+t:s},p0=n=>{let{value:e}=n,t=De(n,kb);const{min:s=-1/0,max:r=1/0}=t,i=De(t,Tb);let o=parseFloat(e);const a=typeof e=="string"?e.substring((""+o).length):void 0;o=xs(o,s,r);let c=t.step;c||(Number.isFinite(s)?Number.isFinite(r)?c=+(Math.abs(r-s)/100).toPrecision(1):c=+(Math.abs(o-s)/100).toPrecision(1):Number.isFinite(r)&&(c=+(Math.abs(r-o)/100).toPrecision(1)));const l=c?Rd(c)*10:Rd(o);c=c||l/10;const u=Math.round(xs(Math.log10(1/l),0,2));return{value:a?o+a:o,settings:de({initialValue:o,step:c,pad:u,min:s,max:r,suffix:a},i)}},m0=(n,{step:e,initialValue:t})=>{const s=Math.round((n-t)/e);return t+s*e};var g0=Object.freeze({__proto__:null,schema:Eb,sanitize:f0,format:Cb,normalize:p0,sanitizeStep:m0});function Je(){return Je=Object.assign?Object.assign.bind():function(n){for(var e=1;e({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 Ko(n,e){const[t,s]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),s&&(r.backgroundColor=s),r}const ki={$inputStyle:()=>n=>Ko(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>Ko(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>Ko(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>Ko(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ce,css:OM,createTheme:Ob,globalCss:Ab,keyframes:AM}=J_({prefix:"leva",theme:b0(),utils:de(de({},ki),{},{$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:n=>({"&:focus":ki.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":ki.$focusStyle()(n)}),$hover:n=>({"&:hover":ki.$hoverStyle()(n)}),$active:n=>({"&:active":ki.$activeStyle()(n)})})}),Rb=Ab({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function Db(n){const e=b0();if(!n)return{theme:e,className:""};Object.keys(n).forEach(s=>{Object.assign(e[s],n[s])});const t=Ob(e);return{theme:e,className:t.className}}function Wn(n,e){const{theme:t}=b.useContext(Mu);if(!(n in t)||!(e in t[n]))return Bn(He.THEME_ERROR,n,e),"";let s=e;for(;;){let r=t[n][s];if(typeof r=="string"&&r.charAt(0)==="$")s=r.substr(1);else return r}}const x0=ce("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),w0=ce("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${x0}`]:{paddingLeft:0}}),Pb=ce(w0,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Mb=ce("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),Nb=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],Ib=["onUpdate"];function Nu(n){let{innerLabel:e,value:t,onUpdate:s,onChange:r,onKeyDown:i,type:o,id:a,inputType:c="text",rows:l=0}=n,u=De(n,Nb);const{id:h,emitOnEditStart:d,emitOnEditEnd:f,disabled:g}=yt(),p=a||h,m=b.useRef(null),_=l>0,T=_?"textarea":"input",w=b.useCallback(k=>E=>{const x=E.currentTarget.value;k(x)},[]);N.useEffect(()=>{const k=m.current,E=w(x=>{s(x),f()});return k==null||k.addEventListener("blur",E),()=>k==null?void 0:k.removeEventListener("blur",E)},[w,s,f]);const y=b.useCallback(k=>{k.key==="Enter"&&w(s)(k)},[w,s]),v=Object.assign({as:T},_?{rows:l}:{},u);return N.createElement(Mb,{textArea:_},e&&typeof e=="string"?N.createElement(w0,null,e):e,N.createElement(x0,Je({levaType:o,ref:m,id:p,type:c,autoComplete:"off",spellCheck:"false",value:t,onChange:w(r),onFocus:()=>d(),onKeyPress:y,onKeyDown:i,disabled:g},v)))}function $b(n){let{onUpdate:e}=n,t=De(n,Ib);const s=b.useCallback(i=>e(ub(i)),[e]),r=b.useCallback(i=>{const o=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(o){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;e(c=>parseFloat(c)+o*a)}},[e]);return N.createElement(Nu,Je({},t,{onUpdate:s,onKeyDown:r,type:"number"}))}const Sa=ce("div",{}),Al=ce("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"}}]}),Fb=ce("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 + ${Al}::after`]:{opacity:.6},[`${Sa}:hover > & + ${Al}::after`]:{opacity:.6},[`${Sa}:hover > & > svg`]:{opacity:1}}),k0=ce("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"},[`> ${Sa}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),T0=ce("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${k0} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),E0=ce(T0,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),Lb=ce("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"}}}}),jb=ce("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"}}),Rl=ce("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),zb=ce("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Rl}`]:{pointerEvents:"auto"}}}}}),C0=ce("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Vb=ce("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Ub=ce(tb,{fill:"$toolTipBackground"});function Iu({children:n}){const{className:e}=b.useContext(Mu);return N.createElement(Y1,{className:e},n)}const Bb=["align"];function Wb(){const{id:n,disable:e,disabled:t}=yt();return N.createElement(N.Fragment,null,N.createElement(jb,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),N.createElement("label",{htmlFor:n+"__disable"}))}function qb(n){const{id:e,optional:t,hint:s}=yt(),r=n.htmlFor||(e?{htmlFor:e}:null),i=!s&&typeof n.children=="string"?{title:n.children}:null;return N.createElement(N.Fragment,null,t&&N.createElement(Wb,null),s!==void 0?N.createElement(Qv,null,N.createElement(Jv,{asChild:!0},N.createElement(Rl,Je({},r,n))),N.createElement(eb,{side:"top",sideOffset:2},N.createElement(Vb,null,s,N.createElement(Ub,null)))):N.createElement(Rl,Je({},r,i,n)))}function mn(n){let{align:e}=n,t=De(n,Bb);const{value:s,label:r,key:i,disabled:o}=yt(),{hideCopyButton:a}=Sb(),c=!a&&i!==void 0,[l,u]=b.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:s??""})),u(!0)}catch{Bn(He.CLIPBOARD_ERROR,{[i]:s})}};return N.createElement(Lb,{align:e,onPointerLeave:()=>u(!1)},N.createElement(qb,t),c&&!o&&N.createElement("div",{title:`Click to copy ${typeof r=="string"?r:i} value`},l?N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),N.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"})):N.createElement("svg",{onClick:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),N.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 Hb=["toggled"],Yb=ce("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function $u(n){let{toggled:e}=n,t=De(n,Hb);return N.createElement(Yb,Je({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),N.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 Gb=["input"];function sn(n){let{input:e}=n,t=De(n,Gb);return e?N.createElement(E0,t):N.createElement(T0,t)}function S0({value:n,type:e,settings:t,setValue:s}){const[r,i]=b.useState(Od(e,n,t)),o=b.useRef(n),a=b.useRef(t);a.current=t;const c=b.useCallback(u=>i(Od(e,u,a.current)),[e]),l=b.useCallback(u=>{try{s(u)}catch(h){const{type:d,previousValue:f}=h;if(d!=="LEVA_ERROR")throw h;c(f)}},[c,s]);return b.useEffect(()=>{Wi(n,o.current)||c(n),o.current=n},[n,c]),{displayValue:r,onChange:i,onUpdate:l}}function Co(n,e){const{emitOnEditStart:t,emitOnEditEnd:s}=yt();return ey(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),t==null||t());const i=n(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),s==null||s()),i},e)}function Xb(n){const e=b.useRef(null),t=b.useRef(null),s=b.useRef(!1);return b.useEffect(()=>{const r=h0(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),s.current||(r(),s.current=!0),()=>window.removeEventListener("resize",r)},[n]),b.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function O0(){const n=b.useRef(null),e=b.useRef({x:0,y:0}),t=b.useCallback(s=>{Object.assign(e.current,s),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const Zb=["__refCount"],el=(n,e)=>{if(!n[e])return null;const t=n[e];return De(t,Zb)};function Kb(n){const e=Eo(),[t,s]=b.useState(el(e.getData(),n)),r=b.useCallback(l=>e.setValueAtPath(n,l,!0),[n,e]),i=b.useCallback(l=>e.setSettingsAtPath(n,l),[n,e]),o=b.useCallback(l=>e.disableInputAtPath(n,l),[n,e]),a=b.useCallback(()=>e.emitOnEditStart(n),[n,e]),c=b.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return b.useEffect(()=>{s(el(e.getData(),n));const l=e.useStore.subscribe(u=>el(u.data,n),s,{equalityFn:To});return()=>l()},[e,n]),[t,{set:r,setSettings:i,disable:o,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Qb=ce("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),A0=ce("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Dl=ce("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)))"}}}}),R0=ce("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),D0=ce("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function Jb({value:n,min:e,max:t,onDrag:s,step:r,initialValue:i}){const o=b.useRef(null),a=b.useRef(null),c=b.useRef(0),l=Wn("sizes","scrubberWidth"),u=Co(({event:d,first:f,xy:[g],movement:[p],memo:m})=>{if(f){const{width:T,left:w}=o.current.getBoundingClientRect();c.current=T-parseFloat(l),m=(d==null?void 0:d.target)===a.current?n:Ca((g-w)/T,e,t)}const _=m+Ca(p/c.current,0,t-e);return s(m0(_,{step:r,initialValue:i})),m}),h=Ea(n,e,t);return N.createElement(R0,Je({ref:o},u()),N.createElement(A0,null,N.createElement(D0,{style:{left:0,right:`${(1-h)*100}%`}})),N.createElement(Dl,{ref:a,style:{left:`calc(${h} * (100% - ${l}))`}}))}const ex=N.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:s})=>{const[r,i]=b.useState(!1),o=Co(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(e(h=>parseFloat(h)+Math.floor(u)*t*d0(l)),u=0),u));return N.createElement(Pb,Je({dragging:r,title:n.length>1?n:""},o()),n.slice(0,s))});function P0({label:n,id:e,displayValue:t,onUpdate:s,onChange:r,settings:i,innerLabelTrim:o=1}){const a=o>0&&N.createElement(ex,{label:n,step:i.step,onUpdate:s,innerLabelTrim:o});return N.createElement($b,{id:e,value:String(t),onUpdate:s,onChange:r,innerLabel:a})}function tx(){const n=yt(),{label:e,value:t,onUpdate:s,settings:r,id:i}=n,{min:o,max:a}=r,c=a!==1/0&&o!==-1/0;return N.createElement(sn,{input:!0},N.createElement(mn,null,e),N.createElement(Qb,{hasRange:c},c&&N.createElement(Jb,Je({value:parseFloat(t),onDrag:s},r)),N.createElement(P0,Je({},n,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:nx}=g0,sx=De(g0,["sanitizeStep"]);var rx=de({component:tx},sx);const ix=(n,e)=>Ot().schema({options:Ot().passesAnyOf(Ot().object(),Ot().array())}).test(e),ox=(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},ax=(n,{values:e})=>e.indexOf(n),cx=n=>{let{value:e,options:t}=n,s,r;return Array.isArray(t)?(r=t,s=t.map(i=>String(i))):(r=Object.values(t),s=Object.keys(t)),"value"in n?r.includes(e)||(s.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:s,values:r}}};var lx=Object.freeze({__proto__:null,schema:ix,sanitize:ox,format:ax,normalize:cx});const ux=ce("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Pl=ce("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),hx=ce("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Pl}:focus + &`]:{$focusStyle:""},[`${Pl}:hover + &`]:{$hoverStyle:""}});function dx({displayValue:n,value:e,onUpdate:t,id:s,settings:r,disabled:i}){const{keys:o,values:a}=r,c=b.useRef();return e===a[n]&&(c.current=o[n]),N.createElement(ux,null,N.createElement(Pl,{id:s,value:n,onChange:l=>t(a[Number(l.currentTarget.value)]),disabled:i},o.map((l,u)=>N.createElement("option",{key:l,value:u},l))),N.createElement(hx,null,c.current),N.createElement($u,{toggled:!0}))}function fx(){const{label:n,value:e,displayValue:t,onUpdate:s,id:r,disabled:i,settings:o}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(dx,{id:r,value:e,displayValue:t,onUpdate:s,settings:o,disabled:i}))}var px=de({component:fx},lx);const mx=n=>Ot().string().test(n),gx=n=>{if(typeof n!="string")throw Error("Invalid string");return n},_x=({value:n,editable:e=!0,rows:t=!1})=>({value:n,settings:{editable:e,rows:typeof t=="number"?t:t?5:0}});var yx=Object.freeze({__proto__:null,schema:mx,sanitize:gx,normalize:_x});const vx=["displayValue","onUpdate","onChange","editable"],bx=ce("div",{whiteSpace:"pre-wrap"});function xx(n){let{displayValue:e,onUpdate:t,onChange:s,editable:r=!0}=n,i=De(n,vx);return r?N.createElement(Nu,Je({value:e,onUpdate:t,onChange:s},i)):N.createElement(bx,null,e)}function wx(){const{label:n,settings:e,displayValue:t,onUpdate:s,onChange:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(xx,Je({displayValue:t,onUpdate:s,onChange:r},e)))}var kx=de({component:wx},yx);const Tx=n=>Ot().boolean().test(n),Ex=n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n};var Cx=Object.freeze({__proto__:null,schema:Tx,sanitize:Ex});const Sx=ce("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 Ox({value:n,onUpdate:e,id:t,disabled:s}){return N.createElement(Sx,null,N.createElement("input",{id:t,type:"checkbox",checked:n,onChange:r=>e(r.currentTarget.checked),disabled:s}),N.createElement("label",{htmlFor:t},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function Ax(){const{label:n,value:e,onUpdate:t,disabled:s,id:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Ox,{value:e,onUpdate:t,id:r,disabled:s}))}var Rx=de({component:Ax},Cx);const Dx=["locked"];function Px({value:n,id:e,valueKey:t,settings:s,onUpdate:r,innerLabelTrim:i}){const o=b.useRef(n[t]);o.current=n[t];const a=b.useCallback(l=>r({[t]:u0({type:"NUMBER",value:o.current,settings:s},l)}),[r,s,t]),c=S0({type:"NUMBER",value:n[t],settings:s,setValue:a});return N.createElement(P0,{id:e,label:t,value:n[t],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:s,innerLabelTrim:i})}const Mx=ce("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function Nx(n){let{locked:e}=n,t=De(n,Dx);return N.createElement("svg",Je({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e?N.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"}):N.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 Fu({value:n,onUpdate:e,settings:t,innerLabelTrim:s}){const{id:r,setSettings:i}=yt(),{lock:o,locked:a}=t;return N.createElement(Mx,{withLock:o},o&&N.createElement(Nx,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(n).map((c,l)=>N.createElement(Px,{id:l===0?r:`${r}.${c}`,key:c,valueKey:c,value:n,settings:t[c],onUpdate:e,innerLabelTrim:s})))}const M0=(n,e)=>{const t={};let s=0,r=1/0;Object.entries(n).forEach(([i,o])=>{t[i]=p0(de({value:o},e[i])).settings,s=Math.max(s,t[i].step),r=Math.min(r,t[i].pad)});for(let i in t){const{step:o,min:a,max:c}=e[i]||{};!isFinite(o)&&(!isFinite(a)||!isFinite(c))&&(t[i].step=s,t[i].pad=r)}return t},Ix=["lock"],$x=["value"];function Fx(n){const e=Ot().array().length(n).every.number(),t=s=>{if(!s||typeof s!="object")return!1;const r=Object.values(s);return r.length===n&&r.every(i=>isFinite(i))};return s=>e.test(s)||t(s)}function Lx(n){return Array.isArray(n)?"array":"object"}function Mi(n,e,t){return Lx(n)===e?n:e==="array"?Object.values(n):mb(n,t)}const jx=(n,e,t)=>{const s=Mi(n,"object",e.keys);for(let o in s)s[o]=f0(s[o],e[o]);const r=Object.keys(s);let i={};if(r.length===e.keys.length)i=s;else{const o=Mi(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],c=s[a],l=o[a],u=l!==0?c/l:1;for(let h in o)h===a?i[a]=c:i[h]=o[h]*u}else i=de(de({},o),s)}return Mi(i,e.format,e.keys)},zx=(n,e)=>Mi(n,"object",e.keys),Vx=n=>!!n&&("step"in n||"min"in n||"max"in n);function Ux(n,e,t=[]){const{lock:s=!1}=e,r=De(e,Ix),i=Array.isArray(n)?"array":"object",o=i==="object"?Object.keys(n):t,a=Mi(n,"object",o),c=Vx(r)?o.reduce((u,h)=>Object.assign(u,{[h]:r}),{}):r,l=M0(a,c);return{value:i==="array"?n:a,settings:de(de({},l),{},{format:i,keys:o,lock:s,locked:!1})}}function N0(n){return{schema:Fx(n.length),normalize:e=>{let{value:t}=e,s=De(e,$x);return Ux(t,s,n)},format:(e,t)=>zx(e,t),sanitize:(e,t,s)=>jx(e,t,s)}}var Bx={grad:.9,turn:360,rad:360/(2*Math.PI)},Fn=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},lt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},Xt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},I0=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},Ld=function(n){return{r:Xt(n.r,0,255),g:Xt(n.g,0,255),b:Xt(n.b,0,255),a:Xt(n.a)}},tl=function(n){return{r:lt(n.r),g:lt(n.g),b:lt(n.b),a:lt(n.a,3)}},Wx=/^#([0-9a-f]{3,8})$/i,Qo=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},$0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:60*(a<0?a+6:a),s:i?o/i*100:0,v:i/255*100,a:r}},F0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:r}},jd=function(n){return{h:I0(n.h),s:Xt(n.s,0,100),l:Xt(n.l,0,100),a:Xt(n.a)}},zd=function(n){return{h:lt(n.h),s:lt(n.s),l:lt(n.l),a:lt(n.a,3)}},Vd=function(n){return F0((t=(e=n).s,{h:e.h,s:(t*=((s=e.l)<50?s:100-s)/100)>0?2*t/(s+t)*100:0,v:s+t,a:e.a}));var e,t,s},Ni=function(n){return{h:(e=$0(n)).h,s:(r=(200-(t=e.s))*(s=e.v)/100)>0&&r<200?t*s/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,s,r},qx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ml={string:[[function(n){var e=Wx.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?lt(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?lt(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=Yx.exec(n)||Gx.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:Ld({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(n){var e=qx.exec(n)||Hx.exec(n);if(!e)return null;var t,s,r=jd({h:(t=e[1],s=e[2],s===void 0&&(s="deg"),Number(t)*(Bx[s]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Vd(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=r===void 0?1:r;return Fn(e)&&Fn(t)&&Fn(s)?Ld({r:Number(e),g:Number(t),b:Number(s),a:Number(i)}):null},"rgb"],[function(n){var e=n.h,t=n.s,s=n.l,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=jd({h:Number(e),s:Number(t),l:Number(s),a:Number(i)});return Vd(o)},"hsl"],[function(n){var e=n.h,t=n.s,s=n.v,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=function(a){return{h:I0(a.h),s:Xt(a.s,0,100),v:Xt(a.v,0,100),a:Xt(a.a)}}({h:Number(e),s:Number(t),v:Number(s),a:Number(i)});return F0(o)},"hsv"]]},Ud=function(n,e){for(var t=0;t=.5},n.prototype.toHex=function(){return e=tl(this.rgba),t=e.r,s=e.g,r=e.b,o=(i=e.a)<1?Qo(lt(255*i)):"","#"+Qo(t)+Qo(s)+Qo(r)+o;var e,t,s,r,i,o},n.prototype.toRgb=function(){return tl(this.rgba)},n.prototype.toRgbString=function(){return e=tl(this.rgba),t=e.r,s=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+s+", "+r+", "+i+")":"rgb("+t+", "+s+", "+r+")";var e,t,s,r,i},n.prototype.toHsl=function(){return zd(Ni(this.rgba))},n.prototype.toHslString=function(){return e=zd(Ni(this.rgba)),t=e.h,s=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+s+"%, "+r+"%, "+i+")":"hsl("+t+", "+s+"%, "+r+"%)";var e,t,s,r,i},n.prototype.toHsv=function(){return e=$0(this.rgba),{h:lt(e.h),s:lt(e.s),v:lt(e.v),a:lt(e.a,3)};var e},n.prototype.invert=function(){return bt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),bt(nl(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),bt(nl(this.rgba,-e))},n.prototype.grayscale=function(){return bt(nl(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),bt(Bd(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),bt(Bd(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?bt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):lt(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=Ni(this.rgba);return typeof e=="number"?bt({h:e,s:t.s,l:t.l,a:t.a}):lt(t.h)},n.prototype.isEqual=function(e){return this.toHex()===bt(e).toHex()},n}(),bt=function(n){return n instanceof Nl?n:new Nl(n)},Wd=[],Zx=function(n){n.forEach(function(e){Wd.indexOf(e)<0&&(e(Nl,Ml),Wd.push(e))})};function Kx(n,e){var t={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"},s={};for(var r in t)s[t[r]]=r;var i={};n.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=s[this.toHex()];if(l)return l;if(o!=null&&o.closest){var u=this.toRgb(),h=1/0,d="black";if(!i.length)for(var f in t)i[f]=new n(t[f]).toRgb();for(var g in t){var p=(a=u,c=i[g],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));p=0||(r[t]=n[t]);return r}function Il(n){var e=b.useRef(n),t=b.useRef(function(s){e.current&&e.current(s)});return e.current=n,t.current}var zr=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n0:m.buttons>0)&&r.current?i(qd(r.current,m,a.current)):p(!1)},g=function(){return p(!1)};function p(m){var _=c.current,T=$l(r.current),w=m?T.addEventListener:T.removeEventListener;w(_?"touchmove":"mousemove",f),w(_?"touchend":"mouseup",g)}return[function(m){var _=m.nativeEvent,T=r.current;if(T&&(Hd(_),!function(y,v){return v&&!Ii(y)}(_,c.current)&&T)){if(Ii(_)){c.current=!0;var w=_.changedTouches||[];w.length&&(a.current=w[0].identifier)}T.focus(),i(qd(T,_,a.current)),p(!0)}},function(m){var _=m.which||m.keyCode;_<37||_>40||(m.preventDefault(),o({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},p]},[o,i]),u=l[0],h=l[1],d=l[2];return b.useEffect(function(){return d},[d]),N.createElement("div",si({},s,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))}),So=function(n){return n.filter(Boolean).join(" ")},zu=function(n){var e=n.color,t=n.left,s=n.top,r=s===void 0?.5:s,i=So(["react-colorful__pointer",n.className]);return N.createElement("div",{className:i,style:{top:100*r+"%",left:100*t+"%"}},N.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},kt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},j0=function(n){var e=n.s,t=n.v,s=n.a,r=(200-e)*t/100;return{h:kt(n.h),s:kt(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:kt(r/2),a:kt(s,2)}},Fl=function(n){var e=j0(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},rl=function(n){var e=j0(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},z0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:kt(255*[s,a,o,o,c,s][l]),g:kt(255*[c,s,s,a,o,o][l]),b:kt(255*[o,o,c,s,s,a][l]),a:kt(r,2)}},V0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:kt(60*(a<0?a+6:a)),s:kt(i?o/i*100:0),v:kt(i/255*100),a:r}},U0=N.memo(function(n){var e=n.hue,t=n.onChange,s=So(["react-colorful__hue",n.className]);return N.createElement("div",{className:s},N.createElement(ju,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:zr(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":kt(e),"aria-valuemax":"360","aria-valuemin":"0"},N.createElement(zu,{className:"react-colorful__hue-pointer",left:e/360,color:Fl({h:e,s:100,v:100,a:1})})))}),B0=N.memo(function(n){var e=n.hsva,t=n.onChange,s={backgroundColor:Fl({h:e.h,s:100,v:100,a:1})};return N.createElement("div",{className:"react-colorful__saturation",style:s},N.createElement(ju,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:zr(e.s+100*r.left,0,100),v:zr(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+kt(e.s)+"%, Brightness "+kt(e.v)+"%"},N.createElement(zu,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Fl(e)})))}),Vu=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function W0(n,e,t){var s=Il(t),r=b.useState(function(){return n.toHsva(e)}),i=r[0],o=r[1],a=b.useRef({color:e,hsva:i});b.useEffect(function(){if(!n.equal(e,a.current.color)){var l=n.toHsva(e);a.current={hsva:l,color:e},o(l)}},[e,n]),b.useEffect(function(){var l;Vu(i,a.current.hsva)||n.equal(l=n.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},s(l))},[i,n,s]);var c=b.useCallback(function(l){o(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Qx=typeof window<"u"?b.useLayoutEffect:b.useEffect,Jx=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Yd=new Map,q0=function(n){Qx(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!Yd.has(e)){var t=e.createElement("style");t.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}`,Yd.set(e,t);var s=Jx();s&&t.setAttribute("nonce",s),e.head.appendChild(t)}},[])},ew=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Lu(n,["className","colorModel","color","onChange"]),a=b.useRef(null);q0(a);var c=W0(t,r,i),l=c[0],u=c[1],h=So(["react-colorful",e]);return N.createElement("div",si({},o,{ref:a,className:h}),N.createElement(B0,{hsva:l,onChange:u}),N.createElement(U0,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},tw=function(n){var e=n.className,t=n.hsva,s=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+rl(Object.assign({},t,{a:0}))+", "+rl(Object.assign({},t,{a:1}))+")"},i=So(["react-colorful__alpha",e]),o=kt(100*t.a);return N.createElement("div",{className:i},N.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),N.createElement(ju,{onMove:function(a){s({a:a.left})},onKey:function(a){s({a:zr(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},N.createElement(zu,{className:"react-colorful__alpha-pointer",left:t.a,color:rl(t)})))},nw=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Lu(n,["className","colorModel","color","onChange"]),a=b.useRef(null);q0(a);var c=W0(t,r,i),l=c[0],u=c[1],h=So(["react-colorful",e]);return N.createElement("div",si({},o,{ref:a,className:h}),N.createElement(B0,{hsva:l,onChange:u}),N.createElement(U0,{hue:l.h,onChange:u}),N.createElement(tw,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},sw={defaultColor:{r:0,g:0,b:0,a:1},toHsva:V0,fromHsva:z0,equal:Vu},rw=function(n){return N.createElement(nw,si({},n,{colorModel:sw}))},iw={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return V0({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=z0(n)).r,g:e.g,b:e.b};var e},equal:Vu},ow=function(n){return N.createElement(ew,si({},n,{colorModel:iw}))};function gn(n,e,t,s){var r=arguments.length,i=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,s);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(i=(r<3?o(i):r>3?o(e,t,i):o(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function $e(n,e,t,s){function r(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((s=s.apply(n,e||[])).next())})}function ri(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,r,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return c([l,u])}}function c(l){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(s=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(r=s.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(o)throw o.error}}return i}function cw(){for(var n=[],e=0;e0?s:n.name,writable:!1,configurable:!1,enumerable:!0})}return t}function uw(n){var e=n.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!n.type){var s=e.split(".").pop().toLowerCase(),r=lw.get(s);r&&Object.defineProperty(n,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return n}var hw=[".DS_Store","Thumbs.db"];function dw(n){return $e(this,void 0,void 0,function(){return ri(this,function(e){return Oa(n)&&fw(n)?[2,_w(n.dataTransfer,n.type)]:pw(n)?[2,mw(n)]:Array.isArray(n)&&n.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,gw(n)]:[2,[]]})})}function fw(n){return Oa(n.dataTransfer)}function pw(n){return Oa(n)&&Oa(n.target)}function Oa(n){return typeof n=="object"&&n!==null}function mw(n){return Ll(n.target.files).map(function(e){return Oo(e)})}function gw(n){return $e(this,void 0,void 0,function(){var e;return ri(this,function(t){switch(t.label){case 0:return[4,Promise.all(n.map(function(s){return s.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(s){return Oo(s)})]}})})}function _w(n,e){return $e(this,void 0,void 0,function(){var t,s;return ri(this,function(r){switch(r.label){case 0:return n===null?[2,[]]:n.items?(t=Ll(n.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(yw))]):[3,2];case 1:return s=r.sent(),[2,Gd(H0(s))];case 2:return[2,Gd(Ll(n.files).map(function(i){return Oo(i)}))]}})})}function Gd(n){return n.filter(function(e){return hw.indexOf(e.name)===-1})}function Ll(n){if(n===null)return[];for(var e=[],t=0;tn.length)&&(e=n.length);for(var t=0,s=new Array(e);tt)return[!1,ef(t)];if(n.sizet)return[!1,ef(t)]}return[!0,null]}function Ti(n){return n!=null}function Pw(n){var e=n.files,t=n.accept,s=n.minSize,r=n.maxSize,i=n.multiple,o=n.maxFiles;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(a){var c=X0(a,t),l=Qd(c,1),u=l[0],h=Z0(a,s,r),d=Qd(h,1),f=d[0];return u&&f})}function Aa(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function Jo(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!n.target&&!!n.target.files}function nf(n){n.preventDefault()}function Mw(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function Nw(n){return n.indexOf("Edge/")!==-1}function Iw(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Mw(n)||Nw(n)}function wn(){for(var n=arguments.length,e=new Array(n),t=0;t1?r-1:0),o=1;on.length)&&(e=n.length);for(var t=0,s=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}function Kw(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}var Uu=b.forwardRef(function(n,e){var t=n.children,s=Ra(n,zw),r=J0(s),i=r.open,o=Ra(r,Vw);return b.useImperativeHandle(e,function(){return{open:i}},[i]),N.createElement(b.Fragment,null,t(qe(qe({},o),{},{open:i})))});Uu.displayName="Dropzone";var Q0={disabled:!1,getFilesFromEvent:dw,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Uu.defaultProps=Q0;Uu.propTypes={children:Ee.func,accept:Ee.oneOfType([Ee.string,Ee.arrayOf(Ee.string)]),multiple:Ee.bool,preventDropOnDocument:Ee.bool,noClick:Ee.bool,noKeyboard:Ee.bool,noDrag:Ee.bool,noDragEventsBubbling:Ee.bool,minSize:Ee.number,maxSize:Ee.number,maxFiles:Ee.number,disabled:Ee.bool,getFilesFromEvent:Ee.func,onFileDialogCancel:Ee.func,onFileDialogOpen:Ee.func,useFsAccessApi:Ee.bool,onDragEnter:Ee.func,onDragLeave:Ee.func,onDragOver:Ee.func,onDrop:Ee.func,onDropAccepted:Ee.func,onDropRejected:Ee.func,validator:Ee.func};var Vl={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function J0(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=qe(qe({},Q0),n),t=e.accept,s=e.disabled,r=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,a=e.multiple,c=e.maxFiles,l=e.onDragEnter,u=e.onDragLeave,h=e.onDragOver,d=e.onDrop,f=e.onDropAccepted,g=e.onDropRejected,p=e.onFileDialogCancel,m=e.onFileDialogOpen,_=e.useFsAccessApi,T=e.preventDropOnDocument,w=e.noClick,y=e.noKeyboard,v=e.noDrag,k=e.noDragEventsBubbling,E=e.validator,x=b.useMemo(function(){return typeof m=="function"?m:rf},[m]),C=b.useMemo(function(){return typeof p=="function"?p:rf},[p]),S=b.useRef(null),R=b.useRef(null),O=b.useReducer(Qw,Vl),L=il(O,2),z=L[0],W=L[1],B=z.isFocused,V=z.isFileDialogActive,U=z.draggedFiles,X=b.useRef(typeof window<"u"&&window.isSecureContext&&_&&$w()),K=function(){!X.current&&V&&setTimeout(function(){if(R.current){var fe=R.current.files;fe.length||(W({type:"closeDialog"}),C())}},300)};b.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[R,V,C,X]);var Q=b.useRef([]),F=function(fe){S.current&&S.current.contains(fe.target)||(fe.preventDefault(),Q.current=[])};b.useEffect(function(){return T&&(document.addEventListener("dragover",nf,!1),document.addEventListener("drop",F,!1)),function(){T&&(document.removeEventListener("dragover",nf),document.removeEventListener("drop",F))}},[S,T]);var j=b.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee),Q.current=[].concat(Ww(Q.current),[ee.target]),Jo(ee)&&Promise.resolve(r(ee)).then(function(fe){Aa(ee)&&!k||(W({draggedFiles:fe,isDragActive:!0,type:"setDraggedFiles"}),l&&l(ee))})},[r,l,k]),A=b.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee);var fe=Jo(ee);if(fe&&ee.dataTransfer)try{ee.dataTransfer.dropEffect="copy"}catch{}return fe&&h&&h(ee),!1},[h,k]),I=b.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee);var fe=Q.current.filter(function(at){return S.current&&S.current.contains(at)}),tt=fe.indexOf(ee.target);tt!==-1&&fe.splice(tt,1),Q.current=fe,!(fe.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Jo(ee)&&u&&u(ee))},[S,u,k]),Y=b.useCallback(function(ee,fe){var tt=[],at=[];ee.forEach(function($t){var os=X0($t,t),dr=il(os,2),$c=dr[0],Fc=dr[1],Lc=Z0($t,o,i),jo=il(Lc,2),jc=jo[0],zc=jo[1],Vc=E?E($t):null;if($c&&jc&&!Vc)tt.push($t);else{var Uc=[Fc,zc];Vc&&(Uc=Uc.concat(Vc)),at.push({file:$t,errors:Uc.filter(function(z_){return z_})})}}),(!a&&tt.length>1||a&&c>=1&&tt.length>c)&&(tt.forEach(function($t){at.push({file:$t,errors:[Dw]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:at,type:"setFiles"}),d&&d(tt,at,fe),at.length>0&&g&&g(at,fe),tt.length>0&&f&&f(tt,fe)},[W,a,t,o,i,c,d,f,g,E]),$=b.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee),Q.current=[],Jo(ee)&&Promise.resolve(r(ee)).then(function(fe){Aa(ee)&&!k||Y(fe,ee)}),W({type:"reset"})},[r,Y,k]),q=b.useCallback(function(){if(X.current){W({type:"openDialog"}),x();var ee={multiple:a,types:Fw(t)};window.showOpenFilePicker(ee).then(function(fe){return r(fe)}).then(function(fe){Y(fe,null),W({type:"closeDialog"})}).catch(function(fe){Lw(fe)?(C(fe),W({type:"closeDialog"})):jw(fe)&&(X.current=!1,R.current&&(R.current.value=null,R.current.click()))});return}R.current&&(W({type:"openDialog"}),x(),R.current.value=null,R.current.click())},[W,x,C,_,Y,t,a]),ae=b.useCallback(function(ee){!S.current||!S.current.isEqualNode(ee.target)||(ee.key===" "||ee.key==="Enter"||ee.keyCode===32||ee.keyCode===13)&&(ee.preventDefault(),q())},[S,q]),re=b.useCallback(function(){W({type:"focus"})},[]),ie=b.useCallback(function(){W({type:"blur"})},[]),ne=b.useCallback(function(){w||(Iw()?setTimeout(q,0):q())},[w,q]),ge=function(fe){return s?null:fe},te=function(fe){return y?null:ge(fe)},H=function(fe){return v?null:ge(fe)},M=function(fe){k&&fe.stopPropagation()},D=b.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.role,$t=ee.onKeyDown,os=ee.onFocus,dr=ee.onBlur,$c=ee.onClick,Fc=ee.onDragEnter,Lc=ee.onDragOver,jo=ee.onDragLeave,jc=ee.onDrop,zc=Ra(ee,Uw);return qe(qe(zl({onKeyDown:te(wn($t,ae)),onFocus:te(wn(os,re)),onBlur:te(wn(dr,ie)),onClick:ge(wn($c,ne)),onDragEnter:H(wn(Fc,j)),onDragOver:H(wn(Lc,A)),onDragLeave:H(wn(jo,I)),onDrop:H(wn(jc,$)),role:typeof at=="string"&&at!==""?at:"button"},tt,S),!s&&!y?{tabIndex:0}:{}),zc)}},[S,ae,re,ie,ne,j,A,I,$,y,v,s]),J=b.useCallback(function(ee){ee.stopPropagation()},[]),se=b.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.onChange,$t=ee.onClick,os=Ra(ee,Bw),dr=zl({accept:t,multiple:a,type:"file",style:{display:"none"},onChange:ge(wn(at,$)),onClick:ge(wn($t,J)),tabIndex:-1},tt,R);return qe(qe({},dr),os)}},[R,t,a,$,s]),le=U.length,be=le>0&&Pw({files:U,accept:t,minSize:o,maxSize:i,multiple:a,maxFiles:c}),et=le>0&&!be;return qe(qe({},z),{},{isDragAccept:be,isDragReject:et,isFocused:B&&!s,getRootProps:D,getInputProps:se,rootRef:S,inputRef:R,open:ge(q)})}function Qw(n,e){switch(e.type){case"focus":return qe(qe({},n),{},{isFocused:!0});case"blur":return qe(qe({},n),{},{isFocused:!1});case"openDialog":return qe(qe({},Vl),{},{isFileDialogActive:!0});case"closeDialog":return qe(qe({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=e.isDragActive,s=e.draggedFiles;return qe(qe({},n),{},{draggedFiles:s,isDragActive:t});case"setFiles":return qe(qe({},n),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return qe({},Vl);default:return n}}function rf(){}function Jw(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const g=u(e);if(!h(d,g)){const p=d;l(d=g,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const ek=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),of=ek?b.useEffect:b.useLayoutEffect;function tk(n){const e=typeof n=="function"?Jw(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=b.useReducer(m=>m+1,0),o=e.getState(),a=b.useRef(o),c=b.useRef(s),l=b.useRef(r),u=b.useRef(!1),h=b.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),of(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const g=b.useRef(o);of(()=>{const m=()=>{try{const T=e.getState(),w=c.current(T);l.current(h.current,w)||(a.current=T,h.current=w,i())}catch{u.current=!0,i()}},_=e.subscribe(m);return e.getState()!==g.current&&m(),_},[]);const p=f?d:h.current;return b.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}const nk=n=>(e,t,s)=>{const r=s.subscribe;return s.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=o(s.getState());l=d=>{const f=o(d);if(!u(h,f)){const g=h;a(h=f,g)}},c!=null&&c.fireImmediately&&a(h,h)}return r(l)},n(e,t,s)};/*! + */const pe={LEFT:1,RIGHT:2,MIDDLE:4},G=Object.freeze({NONE:0,ROTATE:1,TRUCK:2,OFFSET:4,DOLLY:8,ZOOM:16,TOUCH_ROTATE:32,TOUCH_TRUCK:64,TOUCH_OFFSET:128,TOUCH_DOLLY:256,TOUCH_ZOOM:512,TOUCH_DOLLY_TRUCK:1024,TOUCH_DOLLY_OFFSET:2048,TOUCH_DOLLY_ROTATE:4096,TOUCH_ZOOM_TRUCK:8192,TOUCH_ZOOM_OFFSET:16384,TOUCH_ZOOM_ROTATE:32768}),mr={NONE:0,IN:1,OUT:-1};function Ns(n){return n.isPerspectiveCamera}function cs(n){return n.isOrthographicCamera}const gr=Math.PI*2,rd=Math.PI/2,Lp=1e-5,_i=Math.PI/180;function on(n,e,t){return Math.max(e,Math.min(t,n))}function Le(n,e=Lp){return Math.abs(n)0==f>u&&(f=u,t.value=(f-u)/i),f}function od(n,e,t,s,r=1/0,i,o){s=Math.max(1e-4,s);const a=2/s,c=a*i,l=1/(1+c+.48*c*c+.235*c*c*c);let u=e.x,h=e.y,d=e.z,f=n.x-u,m=n.y-h,p=n.z-d;const g=u,_=h,T=d,w=r*s,b=w*w,y=f*f+m*m+p*p;if(y>b){const W=Math.sqrt(y);f=f/W*w,m=m/W*w,p=p/W*w}u=n.x-f,h=n.y-m,d=n.z-p;const x=(t.x+a*f)*i,E=(t.y+a*m)*i,k=(t.z+a*p)*i;t.x=(t.x-a*x)*l,t.y=(t.y-a*E)*l,t.z=(t.z-a*k)*l,o.x=u+(f+x)*l,o.y=h+(m+E)*l,o.z=d+(p+k)*l;const C=g-n.x,S=_-n.y,R=T-n.z,O=o.x-g,L=o.y-_,z=o.z-T;return C*O+S*L+R*z>0&&(o.x=g,o.y=_,o.z=T,t.x=(o.x-g)/i,t.y=(o.y-_)/i,t.z=(o.z-T)/i),o}function Hc(n,e){e.set(0,0),n.forEach(t=>{e.x+=t.clientX,e.y+=t.clientY}),e.x/=n.length,e.y/=n.length}function Yc(n,e){return cs(n)?(console.warn(`${e} is not supported in OrthographicCamera`),!0):!1}class A1{constructor(){this._listeners={}}addEventListener(e,t){const s=this._listeners;s[e]===void 0&&(s[e]=[]),s[e].indexOf(t)===-1&&s[e].push(t)}hasEventListener(e,t){const s=this._listeners;return s[e]!==void 0&&s[e].indexOf(t)!==-1}removeEventListener(e,t){const r=this._listeners[e];if(r!==void 0){const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}removeAllEventListeners(e){if(!e){this._listeners={};return}Array.isArray(this._listeners[e])&&(this._listeners[e].length=0)}dispatchEvent(e){const s=this._listeners[e.type];if(s!==void 0){e.target=this;const r=s.slice(0);for(let i=0,o=r.length;i{},this._enabled=!0,this._state=G.NONE,this._viewport=null,this._changedDolly=0,this._changedZoom=0,this._hasRested=!0,this._boundaryEnclosesCamera=!1,this._needsUpdate=!0,this._updatedLastTime=!1,this._elementRect=new DOMRect,this._isDragging=!1,this._dragNeedsUpdate=!0,this._activePointers=[],this._lockedPointer=null,this._interactiveArea=new DOMRect(0,0,1,1),this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._isUserControllingOffset=!1,this._isUserControllingZoom=!1,this._lastDollyDirection=mr.NONE,this._thetaVelocity={value:0},this._phiVelocity={value:0},this._radiusVelocity={value:0},this._targetVelocity=new he.Vector3,this._focalOffsetVelocity=new he.Vector3,this._zoomVelocity={value:0},this._truckInternal=(b,y,x)=>{let E,k;if(Ns(this._camera)){const C=ve.copy(this._camera.position).sub(this._target),S=this._camera.getEffectiveFOV()*_i,R=C.length()*Math.tan(S*.5);E=this.truckSpeed*b*R/this._elementRect.height,k=this.truckSpeed*y*R/this._elementRect.height}else if(cs(this._camera)){const C=this._camera;E=b*(C.right-C.left)/C.zoom/this._elementRect.width,k=y*(C.top-C.bottom)/C.zoom/this._elementRect.height}else return;this.verticalDragToForward?(x?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y,this._focalOffsetEnd.z,!0):this.truck(E,0,!0),this.forward(-k,!0)):x?this.setFocalOffset(this._focalOffsetEnd.x+E,this._focalOffsetEnd.y+k,this._focalOffsetEnd.z,!0):this.truck(E,k,!0)},this._rotateInternal=(b,y)=>{const x=gr*this.azimuthRotateSpeed*b/this._elementRect.height,E=gr*this.polarRotateSpeed*y/this._elementRect.height;this.rotate(x,E,!0)},this._dollyInternal=(b,y,x)=>{const E=Math.pow(.95,-b*this.dollySpeed),k=this._sphericalEnd.radius,C=this._sphericalEnd.radius*E,S=on(C,this.minDistance,this.maxDistance),R=S-C;this.infinityDolly&&this.dollyToCursor?this._dollyToNoClamp(C,!0):this.infinityDolly&&!this.dollyToCursor?(this.dollyInFixed(R,!0),this._dollyToNoClamp(S,!0)):this._dollyToNoClamp(S,!0),this.dollyToCursor&&(this._changedDolly+=(this.infinityDolly?C:S)-k,this._dollyControlCoord.set(y,x)),this._lastDollyDirection=Math.sign(-b)},this._zoomInternal=(b,y,x)=>{const E=Math.pow(.95,b*this.dollySpeed),k=this._zoom,C=this._zoom*E;this.zoomTo(C,!0),this.dollyToCursor&&(this._changedZoom+=C-k,this._dollyControlCoord.set(y,x))},typeof he>"u"&&console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."),this._camera=e,this._yAxisUpSpace=new he.Quaternion().setFromUnitVectors(this._camera.up,Ho),this._yAxisUpSpaceInverse=this._yAxisUpSpace.clone().invert(),this._state=G.NONE,this._target=new he.Vector3,this._targetEnd=this._target.clone(),this._focalOffset=new he.Vector3,this._focalOffsetEnd=this._focalOffset.clone(),this._spherical=new he.Spherical().setFromVector3(ve.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)),this._sphericalEnd=this._spherical.clone(),this._lastDistance=this._spherical.radius,this._zoom=this._camera.zoom,this._zoomEnd=this._zoom,this._lastZoom=this._zoom,this._nearPlaneCorners=[new he.Vector3,new he.Vector3,new he.Vector3,new he.Vector3],this._updateNearPlaneCorners(),this._boundary=new he.Box3(new he.Vector3(-1/0,-1/0,-1/0),new he.Vector3(1/0,1/0,1/0)),this._cameraUp0=this._camera.up.clone(),this._target0=this._target.clone(),this._position0=this._camera.position.clone(),this._zoom0=this._zoom,this._focalOffset0=this._focalOffset.clone(),this._dollyControlCoord=new he.Vector2,this.mouseButtons={left:G.ROTATE,middle:G.DOLLY,right:G.TRUCK,wheel:Ns(this._camera)?G.DOLLY:cs(this._camera)?G.ZOOM:G.NONE},this.touches={one:G.TOUCH_ROTATE,two:Ns(this._camera)?G.TOUCH_DOLLY_TRUCK:cs(this._camera)?G.TOUCH_ZOOM_TRUCK:G.NONE,three:G.TOUCH_TRUCK};const s=new he.Vector2,r=new he.Vector2,i=new he.Vector2,o=b=>{if(!this._enabled||!this._domElement)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),k=b.clientX/E.width,C=b.clientY/E.height;if(kthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=b.pointerType!=="mouse"?null:(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}if((b.buttons&pe.LEFT)===pe.LEFT&&this._lockedPointer)return;const x={pointerId:b.pointerId,clientX:b.clientX,clientY:b.clientY,deltaX:0,deltaY:0,mouseButton:y};this._activePointers.push(x),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),this._isDragging=!0,p(b)},a=b=>{if(!this._enabled||!this._domElement||this._lockedPointer)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const E=this._domElement.getBoundingClientRect(),k=b.clientX/E.width,C=b.clientY/E.height;if(kthis._interactiveArea.right||Cthis._interactiveArea.bottom)return}const y=(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.MIDDLE?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.RIGHT?pe.RIGHT:null;if(y!==null){const E=this._findPointerByMouseButton(y);E&&this._disposePointer(E)}const x={pointerId:1,clientX:b.clientX,clientY:b.clientY,deltaX:0,deltaY:0,mouseButton:(b.buttons&pe.LEFT)===pe.LEFT?pe.LEFT:(b.buttons&pe.MIDDLE)===pe.LEFT?pe.MIDDLE:(b.buttons&pe.RIGHT)===pe.LEFT?pe.RIGHT:null};this._activePointers.push(x),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.addEventListener("mousemove",l),this._domElement.ownerDocument.addEventListener("mouseup",h),this._isDragging=!0,p(b)},c=b=>{b.cancelable&&b.preventDefault();const y=b.pointerId,x=this._lockedPointer||this._findPointerById(y);if(x){if(x.clientX=b.clientX,x.clientY=b.clientY,x.deltaX=b.movementX,x.deltaY=b.movementY,this._state=0,b.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else(!this._isDragging&&this._lockedPointer||this._isDragging&&(b.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),this._isDragging&&(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),this._isDragging&&(b.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);g()}},l=b=>{const y=this._lockedPointer||this._findPointerById(1);y&&(y.clientX=b.clientX,y.clientY=b.clientY,y.deltaX=b.movementX,y.deltaY=b.movementY,this._state=0,(this._lockedPointer||(b.buttons&pe.LEFT)===pe.LEFT)&&(this._state=this._state|this.mouseButtons.left),(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(b.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right),g())},u=b=>{const y=this._findPointerById(b.pointerId);if(!(y&&y===this._lockedPointer)){if(y&&this._disposePointer(y),b.pointerType==="touch")switch(this._activePointers.length){case 0:this._state=G.NONE;break;case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else this._state=G.NONE;_()}},h=()=>{const b=this._findPointerById(1);b&&b===this._lockedPointer||(b&&this._disposePointer(b),this._state=G.NONE,_())};let d=-1;const f=b=>{if(!this._domElement||!this._enabled||this.mouseButtons.wheel===G.NONE)return;if(this._interactiveArea.left!==0||this._interactiveArea.top!==0||this._interactiveArea.width!==1||this._interactiveArea.height!==1){const C=this._domElement.getBoundingClientRect(),S=b.clientX/C.width,R=b.clientY/C.height;if(Sthis._interactiveArea.right||Rthis._interactiveArea.bottom)return}if(b.preventDefault(),this.dollyToCursor||this.mouseButtons.wheel===G.ROTATE||this.mouseButtons.wheel===G.TRUCK){const C=performance.now();d-C<1e3&&this._getClientRect(this._elementRect),d=C}const y=D1?-1:-3,x=b.deltaMode===1?b.deltaY/y:b.deltaY/(y*10),E=this.dollyToCursor?(b.clientX-this._elementRect.x)/this._elementRect.width*2-1:0,k=this.dollyToCursor?(b.clientY-this._elementRect.y)/this._elementRect.height*-2+1:0;switch(this.mouseButtons.wheel){case G.ROTATE:{this._rotateInternal(b.deltaX,b.deltaY),this._isUserControllingRotate=!0;break}case G.TRUCK:{this._truckInternal(b.deltaX,b.deltaY,!1),this._isUserControllingTruck=!0;break}case G.OFFSET:{this._truckInternal(b.deltaX,b.deltaY,!0),this._isUserControllingOffset=!0;break}case G.DOLLY:{this._dollyInternal(-x,E,k),this._isUserControllingDolly=!0;break}case G.ZOOM:{this._zoomInternal(-x,E,k),this._isUserControllingZoom=!0;break}}this.dispatchEvent({type:"control"})},m=b=>{if(!(!this._domElement||!this._enabled)){if(this.mouseButtons.right===kl.ACTION.NONE){const y=b instanceof PointerEvent?b.pointerId:(b instanceof MouseEvent,0),x=this._findPointerById(y);x&&this._disposePointer(x),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("mouseup",h);return}b.preventDefault()}},p=b=>{if(!this._enabled)return;if(Hc(this._activePointers,Ct),this._getClientRect(this._elementRect),s.copy(Ct),r.copy(Ct),this._activePointers.length>=2){const x=Ct.x-this._activePointers[1].clientX,E=Ct.y-this._activePointers[1].clientY,k=Math.sqrt(x*x+E*E);i.set(0,k);const C=(this._activePointers[0].clientX+this._activePointers[1].clientX)*.5,S=(this._activePointers[0].clientY+this._activePointers[1].clientY)*.5;r.set(C,S)}if(this._state=0,!b)this._lockedPointer&&(this._state=this._state|this.mouseButtons.left);else if("pointerType"in b&&b.pointerType==="touch")switch(this._activePointers.length){case 1:this._state=this.touches.one;break;case 2:this._state=this.touches.two;break;case 3:this._state=this.touches.three;break}else!this._lockedPointer&&(b.buttons&pe.LEFT)===pe.LEFT&&(this._state=this._state|this.mouseButtons.left),(b.buttons&pe.MIDDLE)===pe.MIDDLE&&(this._state=this._state|this.mouseButtons.middle),(b.buttons&pe.RIGHT)===pe.RIGHT&&(this._state=this._state|this.mouseButtons.right);((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._sphericalEnd.theta=this._spherical.theta,this._sphericalEnd.phi=this._spherical.phi,this._thetaVelocity.value=0,this._phiVelocity.value=0),((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._targetEnd.copy(this._target),this._targetVelocity.set(0,0,0)),((this._state&G.DOLLY)===G.DOLLY||(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE)&&(this._sphericalEnd.radius=this._spherical.radius,this._radiusVelocity.value=0),((this._state&G.ZOOM)===G.ZOOM||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._zoomEnd=this._zoom,this._zoomVelocity.value=0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._focalOffsetEnd.copy(this._focalOffset),this._focalOffsetVelocity.set(0,0,0)),this.dispatchEvent({type:"controlstart"})},g=()=>{if(!this._enabled||!this._dragNeedsUpdate)return;this._dragNeedsUpdate=!1,Hc(this._activePointers,Ct);const y=this._domElement&&document.pointerLockElement===this._domElement?this._lockedPointer||this._activePointers[0]:null,x=y?-y.deltaX:r.x-Ct.x,E=y?-y.deltaY:r.y-Ct.y;if(r.copy(Ct),((this._state&G.ROTATE)===G.ROTATE||(this._state&G.TOUCH_ROTATE)===G.TOUCH_ROTATE||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE)&&(this._rotateInternal(x,E),this._isUserControllingRotate=!0),(this._state&G.DOLLY)===G.DOLLY||(this._state&G.ZOOM)===G.ZOOM){const k=this.dollyToCursor?(s.x-this._elementRect.x)/this._elementRect.width*2-1:0,C=this.dollyToCursor?(s.y-this._elementRect.y)/this._elementRect.height*-2+1:0,S=this.dollyDragInverted?-1:1;(this._state&G.DOLLY)===G.DOLLY?(this._dollyInternal(S*E*qo,k,C),this._isUserControllingDolly=!0):(this._zoomInternal(S*E*qo,k,C),this._isUserControllingZoom=!0)}if((this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_ZOOM)===G.TOUCH_ZOOM||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_ZOOM_ROTATE)===G.TOUCH_ZOOM_ROTATE){const k=Ct.x-this._activePointers[1].clientX,C=Ct.y-this._activePointers[1].clientY,S=Math.sqrt(k*k+C*C),R=i.y-S;i.set(0,S);const O=this.dollyToCursor?(r.x-this._elementRect.x)/this._elementRect.width*2-1:0,L=this.dollyToCursor?(r.y-this._elementRect.y)/this._elementRect.height*-2+1:0;(this._state&G.TOUCH_DOLLY)===G.TOUCH_DOLLY||(this._state&G.TOUCH_DOLLY_ROTATE)===G.TOUCH_DOLLY_ROTATE||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET?(this._dollyInternal(R*qo,O,L),this._isUserControllingDolly=!0):(this._zoomInternal(R*qo,O,L),this._isUserControllingZoom=!0)}((this._state&G.TRUCK)===G.TRUCK||(this._state&G.TOUCH_TRUCK)===G.TOUCH_TRUCK||(this._state&G.TOUCH_DOLLY_TRUCK)===G.TOUCH_DOLLY_TRUCK||(this._state&G.TOUCH_ZOOM_TRUCK)===G.TOUCH_ZOOM_TRUCK)&&(this._truckInternal(x,E,!1),this._isUserControllingTruck=!0),((this._state&G.OFFSET)===G.OFFSET||(this._state&G.TOUCH_OFFSET)===G.TOUCH_OFFSET||(this._state&G.TOUCH_DOLLY_OFFSET)===G.TOUCH_DOLLY_OFFSET||(this._state&G.TOUCH_ZOOM_OFFSET)===G.TOUCH_ZOOM_OFFSET)&&(this._truckInternal(x,E,!0),this._isUserControllingOffset=!0),this.dispatchEvent({type:"control"})},_=()=>{Hc(this._activePointers,Ct),r.copy(Ct),this._dragNeedsUpdate=!1,(this._activePointers.length===0||this._activePointers.length===1&&this._activePointers[0]===this._lockedPointer)&&(this._isDragging=!1),this._activePointers.length===0&&this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this.dispatchEvent({type:"controlend"}))};this.lockPointer=()=>{!this._enabled||!this._domElement||(this.cancel(),this._lockedPointer={pointerId:-1,clientX:0,clientY:0,deltaX:0,deltaY:0,mouseButton:null},this._activePointers.push(this._lockedPointer),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.requestPointerLock(),this._domElement.ownerDocument.addEventListener("pointerlockchange",T),this._domElement.ownerDocument.addEventListener("pointerlockerror",w),this._domElement.ownerDocument.addEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.addEventListener("pointerup",u),p())},this.unlockPointer=()=>{this._lockedPointer!==null&&(this._disposePointer(this._lockedPointer),this._lockedPointer=null),document.exitPointerLock(),this.cancel(),this._domElement&&(this._domElement.ownerDocument.removeEventListener("pointerlockchange",T),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))};const T=()=>{this._domElement&&this._domElement.ownerDocument.pointerLockElement===this._domElement||this.unlockPointer()},w=()=>{this.unlockPointer()};this._addAllEventListeners=b=>{this._domElement=b,this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none",this._domElement.addEventListener("pointerdown",o),P1&&this._domElement.addEventListener("mousedown",a),this._domElement.addEventListener("pointercancel",u),this._domElement.addEventListener("wheel",f,{passive:!1}),this._domElement.addEventListener("contextmenu",m)},this._removeAllEventListeners=()=>{this._domElement&&(this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect="",this._domElement.removeEventListener("pointerdown",o),this._domElement.removeEventListener("mousedown",a),this._domElement.removeEventListener("pointercancel",u),this._domElement.removeEventListener("wheel",f,{passive:!1}),this._domElement.removeEventListener("contextmenu",m),this._domElement.ownerDocument.removeEventListener("pointermove",c,{passive:!1}),this._domElement.ownerDocument.removeEventListener("mousemove",l),this._domElement.ownerDocument.removeEventListener("pointerup",u),this._domElement.ownerDocument.removeEventListener("mouseup",h),this._domElement.ownerDocument.removeEventListener("pointerlockchange",T),this._domElement.ownerDocument.removeEventListener("pointerlockerror",w))},this.cancel=()=>{this._state!==G.NONE&&(this._state=G.NONE,this._activePointers.length=0,_())},t&&this.connect(t),this.update(0)}get camera(){return this._camera}set camera(e){this._camera=e,this.updateCameraUp(),this._camera.updateProjectionMatrix(),this._updateNearPlaneCorners(),this._needsUpdate=!0}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._domElement&&(e?(this._domElement.style.touchAction="none",this._domElement.style.userSelect="none",this._domElement.style.webkitUserSelect="none"):(this.cancel(),this._domElement.style.touchAction="",this._domElement.style.userSelect="",this._domElement.style.webkitUserSelect=""))}get active(){return!this._hasRested}get currentAction(){return this._state}get distance(){return this._spherical.radius}set distance(e){this._spherical.radius===e&&this._sphericalEnd.radius===e||(this._spherical.radius=e,this._sphericalEnd.radius=e,this._needsUpdate=!0)}get azimuthAngle(){return this._spherical.theta}set azimuthAngle(e){this._spherical.theta===e&&this._sphericalEnd.theta===e||(this._spherical.theta=e,this._sphericalEnd.theta=e,this._needsUpdate=!0)}get polarAngle(){return this._spherical.phi}set polarAngle(e){this._spherical.phi===e&&this._sphericalEnd.phi===e||(this._spherical.phi=e,this._sphericalEnd.phi=e,this._needsUpdate=!0)}get boundaryEnclosesCamera(){return this._boundaryEnclosesCamera}set boundaryEnclosesCamera(e){this._boundaryEnclosesCamera=e,this._needsUpdate=!0}set interactiveArea(e){this._interactiveArea.width=on(e.width,0,1),this._interactiveArea.height=on(e.height,0,1),this._interactiveArea.x=on(e.x,0,1-this._interactiveArea.width),this._interactiveArea.y=on(e.y,0,1-this._interactiveArea.height)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}rotate(e,t,s=!1){return this.rotateTo(this._sphericalEnd.theta+e,this._sphericalEnd.phi+t,s)}rotateAzimuthTo(e,t=!1){return this.rotateTo(e,this._sphericalEnd.phi,t)}rotatePolarTo(e,t=!1){return this.rotateTo(this._sphericalEnd.theta,e,t)}rotateTo(e,t,s=!1){this._isUserControllingRotate=!1;const r=on(e,this.minAzimuthAngle,this.maxAzimuthAngle),i=on(t,this.minPolarAngle,this.maxPolarAngle);this._sphericalEnd.theta=r,this._sphericalEnd.phi=i,this._sphericalEnd.makeSafe(),this._needsUpdate=!0,s||(this._spherical.theta=this._sphericalEnd.theta,this._spherical.phi=this._sphericalEnd.phi);const o=!s||Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold);return this._createOnRestPromise(o)}dolly(e,t=!1){return this.dollyTo(this._sphericalEnd.radius-e,t)}dollyTo(e,t=!1){return this._isUserControllingDolly=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0,this._dollyToNoClamp(on(e,this.minDistance,this.maxDistance),t)}_dollyToNoClamp(e,t=!1){const s=this._sphericalEnd.radius;if(this.colliderMeshes.length>=1){const o=this._collisionTest(),a=Ce(o,this._spherical.radius);if(!(s>e)&&a)return Promise.resolve();this._sphericalEnd.radius=Math.min(e,o)}else this._sphericalEnd.radius=e;this._needsUpdate=!0,t||(this._spherical.radius=this._sphericalEnd.radius);const i=!t||Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(i)}dollyInFixed(e,t=!1){this._targetEnd.add(this._getCameraDirection(bi).multiplyScalar(e)),t||this._target.copy(this._targetEnd);const s=!t||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(s)}zoom(e,t=!1){return this.zoomTo(this._zoomEnd+e,t)}zoomTo(e,t=!1){this._isUserControllingZoom=!1,this._zoomEnd=on(e,this.minZoom,this.maxZoom),this._needsUpdate=!0,t||(this._zoom=this._zoomEnd);const s=!t||Ce(this._zoom,this._zoomEnd,this.restThreshold);return this._changedZoom=0,this._createOnRestPromise(s)}pan(e,t,s=!1){return console.warn("`pan` has been renamed to `truck`"),this.truck(e,t,s)}truck(e,t,s=!1){this._camera.updateMatrix(),bn.setFromMatrixColumn(this._camera.matrix,0),xn.setFromMatrixColumn(this._camera.matrix,1),bn.multiplyScalar(e),xn.multiplyScalar(-t);const r=ve.copy(bn).add(xn),i=ke.copy(this._targetEnd).add(r);return this.moveTo(i.x,i.y,i.z,s)}forward(e,t=!1){ve.setFromMatrixColumn(this._camera.matrix,0),ve.crossVectors(this._camera.up,ve),ve.multiplyScalar(e);const s=ke.copy(this._targetEnd).add(ve);return this.moveTo(s.x,s.y,s.z,t)}elevate(e,t=!1){return ve.copy(this._camera.up).multiplyScalar(e),this.moveTo(this._targetEnd.x+ve.x,this._targetEnd.y+ve.y,this._targetEnd.z+ve.z,t)}moveTo(e,t,s,r=!1){this._isUserControllingTruck=!1;const i=ve.set(e,t,s).sub(this._targetEnd);this._encloseToBoundary(this._targetEnd,i,this.boundaryFriction),this._needsUpdate=!0,r||this._target.copy(this._targetEnd);const o=!r||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold);return this._createOnRestPromise(o)}lookInDirectionOf(e,t,s,r=!1){const a=ve.set(e,t,s).sub(this._targetEnd).normalize().multiplyScalar(-this._sphericalEnd.radius);return this.setPosition(a.x,a.y,a.z,r)}fitToBox(e,t,{cover:s=!1,paddingLeft:r=0,paddingRight:i=0,paddingBottom:o=0,paddingTop:a=0}={}){const c=[],l=e.isBox3?yr.copy(e):yr.setFromObject(e);l.isEmpty()&&(console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"),Promise.resolve());const u=id(this._sphericalEnd.theta,rd),h=id(this._sphericalEnd.phi,rd);c.push(this.rotateTo(u,h,t));const d=ve.setFromSpherical(this._sphericalEnd).normalize(),f=hd.setFromUnitVectors(d,Gc),m=Ce(Math.abs(d.y),1);m&&f.multiply(Zc.setFromAxisAngle(Ho,u)),f.multiply(this._yAxisUpSpaceInverse);const p=ud.makeEmpty();ke.copy(l.min).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.min).setX(l.max.x).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.min).setY(l.max.y).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).setZ(l.min.z).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.min).setZ(l.max.z).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).setY(l.min.y).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).setX(l.min.x).applyQuaternion(f),p.expandByPoint(ke),ke.copy(l.max).applyQuaternion(f),p.expandByPoint(ke),p.min.x-=r,p.min.y-=o,p.max.x+=i,p.max.y+=a,f.setFromUnitVectors(Gc,d),m&&f.premultiply(Zc.invert()),f.premultiply(this._yAxisUpSpace);const g=p.getSize(ve),_=p.getCenter(ke).applyQuaternion(f);if(Ns(this._camera)){const T=this.getDistanceToFitBox(g.x,g.y,g.z,s);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.dollyTo(T,t)),c.push(this.setFocalOffset(0,0,0,t))}else if(cs(this._camera)){const T=this._camera,w=T.right-T.left,b=T.top-T.bottom,y=s?Math.max(w/g.x,b/g.y):Math.min(w/g.x,b/g.y);c.push(this.moveTo(_.x,_.y,_.z,t)),c.push(this.zoomTo(y,t)),c.push(this.setFocalOffset(0,0,0,t))}return Promise.all(c)}fitToSphere(e,t){const s=[],i=e instanceof he.Sphere?Xc.copy(e):kl.createBoundingSphere(e,Xc);if(s.push(this.moveTo(i.center.x,i.center.y,i.center.z,t)),Ns(this._camera)){const o=this.getDistanceToFitSphere(i.radius);s.push(this.dollyTo(o,t))}else if(cs(this._camera)){const o=this._camera.right-this._camera.left,a=this._camera.top-this._camera.bottom,c=2*i.radius,l=Math.min(o/c,a/c);s.push(this.zoomTo(l,t))}return s.push(this.setFocalOffset(0,0,0,t)),Promise.all(s)}setLookAt(e,t,s,r,i,o,a=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const c=ke.set(r,i,o),l=ve.set(e,t,s);this._targetEnd.copy(c),this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)),this.normalizeRotations(),this._needsUpdate=!0,a||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const u=!a||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(u)}lerpLookAt(e,t,s,r,i,o,a,c,l,u,h,d,f,m=!1){this._isUserControllingRotate=!1,this._isUserControllingDolly=!1,this._isUserControllingTruck=!1,this._lastDollyDirection=mr.NONE,this._changedDolly=0;const p=ve.set(r,i,o),g=ke.set(e,t,s);Yt.setFromVector3(g.sub(p).applyQuaternion(this._yAxisUpSpace));const _=_r.set(u,h,d),T=ke.set(a,c,l);xi.setFromVector3(T.sub(_).applyQuaternion(this._yAxisUpSpace)),this._targetEnd.copy(p.lerp(_,f));const w=xi.theta-Yt.theta,b=xi.phi-Yt.phi,y=xi.radius-Yt.radius;this._sphericalEnd.set(Yt.radius+y*f,Yt.phi+b*f,Yt.theta+w*f),this.normalizeRotations(),this._needsUpdate=!0,m||(this._target.copy(this._targetEnd),this._spherical.copy(this._sphericalEnd));const x=!m||Ce(this._target.x,this._targetEnd.x,this.restThreshold)&&Ce(this._target.y,this._targetEnd.y,this.restThreshold)&&Ce(this._target.z,this._targetEnd.z,this.restThreshold)&&Ce(this._spherical.theta,this._sphericalEnd.theta,this.restThreshold)&&Ce(this._spherical.phi,this._sphericalEnd.phi,this.restThreshold)&&Ce(this._spherical.radius,this._sphericalEnd.radius,this.restThreshold);return this._createOnRestPromise(x)}setPosition(e,t,s,r=!1){return this.setLookAt(e,t,s,this._targetEnd.x,this._targetEnd.y,this._targetEnd.z,r)}setTarget(e,t,s,r=!1){const i=this.getPosition(ve),o=this.setLookAt(i.x,i.y,i.z,e,t,s,r);return this._sphericalEnd.phi=on(this._sphericalEnd.phi,this.minPolarAngle,this.maxPolarAngle),o}setFocalOffset(e,t,s,r=!1){this._isUserControllingOffset=!1,this._focalOffsetEnd.set(e,t,s),this._needsUpdate=!0,r||this._focalOffset.copy(this._focalOffsetEnd);const i=!r||Ce(this._focalOffset.x,this._focalOffsetEnd.x,this.restThreshold)&&Ce(this._focalOffset.y,this._focalOffsetEnd.y,this.restThreshold)&&Ce(this._focalOffset.z,this._focalOffsetEnd.z,this.restThreshold);return this._createOnRestPromise(i)}setOrbitPoint(e,t,s){this._camera.updateMatrixWorld(),bn.setFromMatrixColumn(this._camera.matrixWorldInverse,0),xn.setFromMatrixColumn(this._camera.matrixWorldInverse,1),Is.setFromMatrixColumn(this._camera.matrixWorldInverse,2);const r=ve.set(e,t,s),i=r.distanceTo(this._camera.position),o=r.sub(this._camera.position);bn.multiplyScalar(o.x),xn.multiplyScalar(o.y),Is.multiplyScalar(o.z),ve.copy(bn).add(xn).add(Is),ve.z=ve.z+i,this.dollyTo(i,!1),this.setFocalOffset(-ve.x,ve.y,-ve.z,!1),this.moveTo(e,t,s,!1)}setBoundary(e){if(!e){this._boundary.min.set(-1/0,-1/0,-1/0),this._boundary.max.set(1/0,1/0,1/0),this._needsUpdate=!0;return}this._boundary.copy(e),this._boundary.clampPoint(this._targetEnd,this._targetEnd),this._needsUpdate=!0}setViewport(e,t,s,r){if(e===null){this._viewport=null;return}this._viewport=this._viewport||new he.Vector4,typeof e=="number"?this._viewport.set(e,t,s,r):this._viewport.copy(e)}getDistanceToFitBox(e,t,s,r=!1){if(Yc(this._camera,"getDistanceToFitBox"))return this._spherical.radius;const i=e/t,o=this._camera.getEffectiveFOV()*_i,a=this._camera.aspect;return((r?i>a:it.pointerId===e)}_findPointerByMouseButton(e){return this._activePointers.find(t=>t.mouseButton===e)}_disposePointer(e){this._activePointers.splice(this._activePointers.indexOf(e),1)}_encloseToBoundary(e,t,s){const r=t.lengthSq();if(r===0)return e;const i=ke.copy(t).add(e),a=this._boundary.clampPoint(i,_r).sub(i),c=a.lengthSq();if(c===0)return e.add(t);if(c===r)return e;if(s===0)return e.add(t).add(a);{const l=1+s*c/t.dot(a);return e.add(ke.copy(t).multiplyScalar(l)).add(a.multiplyScalar(1-s))}}_updateNearPlaneCorners(){if(Ns(this._camera)){const e=this._camera,t=e.near,s=e.getEffectiveFOV()*_i,r=Math.tan(s*.5)*t,i=r*e.aspect;this._nearPlaneCorners[0].set(-i,-r,0),this._nearPlaneCorners[1].set(i,-r,0),this._nearPlaneCorners[2].set(i,r,0),this._nearPlaneCorners[3].set(-i,r,0)}else if(cs(this._camera)){const e=this._camera,t=1/e.zoom,s=e.left*t,r=e.right*t,i=e.top*t,o=e.bottom*t;this._nearPlaneCorners[0].set(s,i,0),this._nearPlaneCorners[1].set(r,i,0),this._nearPlaneCorners[2].set(r,o,0),this._nearPlaneCorners[3].set(s,o,0)}}_collisionTest(){let e=1/0;if(!(this.colliderMeshes.length>=1)||Yc(this._camera,"_collisionTest"))return e;const s=this._getTargetDirection(bi);Kc.lookAt(ad,s,this._camera.up);for(let r=0;r<4;r++){const i=ke.copy(this._nearPlaneCorners[r]);i.applyMatrix4(Kc);const o=_r.addVectors(this._target,i);Yo.set(o,s),Yo.far=this._spherical.radius+1;const a=Yo.intersectObjects(this.colliderMeshes);a.length!==0&&a[0].distance{const s=()=>{this.removeEventListener("rest",s),t()};this.addEventListener("rest",s)}))}_addAllEventListeners(e){}_removeAllEventListeners(){}get dampingFactor(){return console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead."),0}set dampingFactor(e){console.warn(".dampingFactor has been deprecated. use smoothTime (in seconds) instead.")}get draggingDampingFactor(){return console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead."),0}set draggingDampingFactor(e){console.warn(".draggingDampingFactor has been deprecated. use draggingSmoothTime (in seconds) instead.")}static createBoundingSphere(e,t=new he.Sphere){const s=t,r=s.center;yr.makeEmpty(),e.traverseVisible(o=>{o.isMesh&&yr.expandByObject(o)}),yr.getCenter(r);let i=0;return e.traverseVisible(o=>{if(!o.isMesh)return;const a=o,c=a.geometry.clone();c.applyMatrix4(a.matrixWorld);const u=c.attributes.position;for(let h=0,d=u.count;h{v.useMemo(()=>{Qc.install({THREE:ky}),vu({CameraControlsImpl:Qc})},[]);const{camera:t,domElement:s,makeDefault:r,onStart:i,onEnd:o,onChange:a,regress:c,...l}=n,u=Ye(y=>y.camera),h=Ye(y=>y.gl),d=Ye(y=>y.invalidate),f=Ye(y=>y.events),m=Ye(y=>y.setEvents),p=Ye(y=>y.set),g=Ye(y=>y.get),_=Ye(y=>y.performance),T=t||u,w=s||f.connected||h.domElement,b=v.useMemo(()=>new Qc(T),[T]);return Ht((y,x)=>{b.enabled&&b.update(x)},-1),v.useEffect(()=>(b.connect(w),()=>void b.disconnect()),[w,b]),v.useEffect(()=>{const y=k=>{d(),c&&_.regress(),a&&a(k)},x=k=>{i&&i(k)},E=k=>{o&&o(k)};return b.addEventListener("update",y),b.addEventListener("controlstart",x),b.addEventListener("controlend",E),()=>{b.removeEventListener("update",y),b.removeEventListener("controlstart",x),b.removeEventListener("controlend",E)}},[b,i,o,d,m,c,a]),v.useEffect(()=>{if(r){const y=g().controls;return p({controls:b}),()=>p({controls:y})}},[r,b]),v.createElement("primitive",Se({ref:e,object:b},l))});Ee.func.isRequired,Ee.arrayOf(Ee.oneOfType([Ee.element,Ee.func])).isRequired;const dd=new wo,fd=new wo,Go=[],wi=new Cp;class M1 extends Ty{constructor(){super(),this.color=new va("white"),this.instance={current:void 0},this.instanceKey={current:void 0}}get geometry(){var e;return(e=this.instance.current)==null?void 0:e.geometry}raycast(e,t){const s=this.instance.current;if(!s||!s.geometry||!s.material)return;wi.geometry=s.geometry;const r=s.matrixWorld,i=s.userData.instances.indexOf(this.instanceKey);if(!(i===-1||i>s.count)){s.getMatrixAt(i,dd),fd.multiplyMatrices(r,dd),wi.matrixWorld=fd,s.material instanceof Ey?wi.material.side=s.material.side:wi.material.side=s.material[0].side,wi.raycast(e,Go);for(let o=0,a=Go.length;o{v.useMemo(()=>vu({PositionMesh:M1}),[]);const r=v.useRef(),{subscribe:i,getParent:o}=v.useContext(n||Vp);return v.useLayoutEffect(()=>i(r),[]),v.createElement("positionMesh",Se({instance:o(),instanceKey:r,ref:lc([s,r])},t),e)}),I1=v.forwardRef(({children:n,range:e,limit:t=1e3,frames:s=1/0,...r},i)=>{const[{context:o,instance:a}]=v.useState(()=>{const g=v.createContext(null);return{context:g,instance:v.forwardRef((_,T)=>v.createElement(Up,Se({context:g},_,{ref:T})))}}),c=v.useRef(null),[l,u]=v.useState([]),[[h,d]]=v.useState(()=>{const g=new Float32Array(t*16);for(let _=0;_1))]});v.useEffect(()=>{c.current.instanceMatrix.needsUpdate=!0});let f=0,m=0;Ht(()=>{if(s===1/0||f({getParent:()=>c,subscribe:g=>(u(_=>[..._,g]),()=>u(_=>_.filter(T=>T.current!==g.current)))}),[]);return v.createElement("instancedMesh",Se({userData:{instances:l},matrixAutoUpdate:!1,ref:lc([i,c]),args:[null,null,0],raycast:()=>null},r),v.createElement("instancedBufferAttribute",{attach:"instanceMatrix",count:h.length/16,array:h,itemSize:16,usage:qh}),v.createElement("instancedBufferAttribute",{attach:"instanceColor",count:d.length/3,array:d,itemSize:3,usage:qh}),typeof n=="function"?v.createElement(o.Provider,{value:p},n(a)):v.createElement(Vp.Provider,{value:p},n))}),Bp=v.createContext(null),$1=v.forwardRef((n,e)=>{v.useMemo(()=>vu({SegmentObject:F1}),[]);const{limit:t=1e3,lineWidth:s=1,children:r,...i}=n,[o,a]=v.useState([]),[c]=v.useState(()=>new bu),[l]=v.useState(()=>new Q_),[u]=v.useState(()=>new J_),[h]=v.useState(()=>new Te(512,512)),[d]=v.useState(()=>Array(t*6).fill(0)),[f]=v.useState(()=>Array(t*6).fill(0)),m=v.useMemo(()=>({subscribe:p=>(a(g=>[...g,p]),()=>a(g=>g.filter(_=>_.current!==p.current)))}),[]);return Ht(()=>{for(let g=0;gn instanceof _e?n:new _e(...typeof n=="number"?[n,n,n]:n),L1=v.forwardRef(({color:n,start:e,end:t},s)=>{const r=v.useContext(Bp);if(!r)throw"Segment must used inside Segments component.";const i=v.useRef(null);return v.useLayoutEffect(()=>r.subscribe(i),[]),v.createElement("segmentObject",{ref:lc([i,s]),color:n,start:vd(e),end:vd(t)})});function j1({all:n,scene:e,camera:t}){const s=Ye(({gl:o})=>o),r=Ye(({camera:o})=>o),i=Ye(({scene:o})=>o);return v.useLayoutEffect(()=>{const o=[];n&&(e||i).traverse(l=>{l.visible===!1&&(o.push(l),l.visible=!0)}),s.compile(e||i,t||r);const a=new Sy(128);new Oy(.01,1e5,a).update(s,e||i),a.dispose(),o.forEach(l=>l.visible=!1)},[]),null}function bd({pixelated:n}){const e=Ye(o=>o.gl),t=Ye(o=>o.internal.active),s=Ye(o=>o.performance.current),r=Ye(o=>o.viewport.initialDpr),i=Ye(o=>o.setDpr);return v.useEffect(()=>{const o=e.domElement;return()=>{t&&i(r),n&&o&&(o.style.imageRendering="auto")}},[]),v.useEffect(()=>{i(s*r),n&&e.domElement&&(e.domElement.style.imageRendering=s===1?"auto":"pixelated")},[s]),null}function xd(){const n=Ye(s=>s.get),e=Ye(s=>s.setEvents),t=Ye(s=>s.performance.current);return v.useEffect(()=>{const s=n().events.enabled;return()=>e({enabled:s})},[]),v.useEffect(()=>e({enabled:t===1}),[t]),null}const z1=v.createContext(null);function V1({children:n,enabled:e=!0}){const[t,s]=v.useState([]),r=v.useMemo(()=>({selected:t,select:s,enabled:e}),[t,s,e]);return P.jsx(z1.Provider,{value:r,children:n})}function U1(n,e){typeof n=="function"?n(e):n!=null&&(n.current=e)}function Wp(...n){return e=>n.forEach(t=>U1(t,e))}function ti(...n){return v.useCallback(Wp(...n),n)}const qp=v.forwardRef((n,e)=>{const{children:t,...s}=n,r=v.Children.toArray(t),i=r.find(B1);if(i){const o=i.props.children,a=r.map(c=>c===i?v.Children.count(o)>1?v.Children.only(null):v.isValidElement(o)?o.props.children:null:c);return v.createElement(Tl,Se({},s,{ref:e}),v.isValidElement(o)?v.cloneElement(o,void 0,a):null)}return v.createElement(Tl,Se({},s,{ref:e}),t)});qp.displayName="Slot";const Tl=v.forwardRef((n,e)=>{const{children:t,...s}=n;return v.isValidElement(t)?v.cloneElement(t,{...W1(s,t.props),ref:e?Wp(e,t.ref):t.ref}):v.Children.count(t)>1?v.Children.only(null):null});Tl.displayName="SlotClone";const Hp=({children:n})=>v.createElement(v.Fragment,null,n);function B1(n){return v.isValidElement(n)&&n.type===Hp}function W1(n,e){const t={...e};for(const s in e){const r=n[s],i=e[s];/^on[A-Z]/.test(s)?r&&i?t[s]=(...a)=>{i(...a),r(...a)}:r&&(t[s]=r):s==="style"?t[s]={...r,...i}:s==="className"&&(t[s]=[r,i].filter(Boolean).join(" "))}return{...n,...t}}const q1=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],ar=q1.reduce((n,e)=>{const t=v.forwardRef((s,r)=>{const{asChild:i,...o}=s,a=i?qp:e;return v.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),v.createElement(a,Se({},o,{ref:r}))});return t.displayName=`Primitive.${e}`,{...n,[e]:t}},{});function H1(n,e){n&&gu.flushSync(()=>n.dispatchEvent(e))}const Y1=v.forwardRef((n,e)=>{var t;const{container:s=globalThis==null||(t=globalThis.document)===null||t===void 0?void 0:t.body,...r}=n;return s?mp.createPortal(v.createElement(ar.div,Se({},r,{ref:e})),s):null}),G1=Y1;var wd=Object.prototype.hasOwnProperty;function Wi(n,e){var t,s;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((s=n.length)===e.length)for(;s--&&Wi(n[s],e[s]););return s===-1}if(!t||typeof n=="object"){s=0;for(t in n)if(wd.call(n,t)&&++s&&!wd.call(e,t)||!(t in e)||!Wi(n[t],e[t]))return!1;return Object.keys(e).length===s}}return n!==n&&e!==e}function To(n,e){if(Object.is(n,e))return!0;if(typeof n!="object"||n===null||typeof e!="object"||e===null)return!1;const t=Object.keys(n);if(t.length!==Object.keys(e).length)return!1;for(let s=0;s0;)o[a]=arguments[a+4];n.call(this,o),n.captureStackTrace&&n.captureStackTrace(this,e),this.rule=t,this.value=s,this.cause=r,this.target=i}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e}(Error),On=function(e,t){e===void 0&&(e=[]),t===void 0&&(t=[]),this.chain=e,this.nextRuleModifiers=t};On.prototype._applyRule=function(e,t){var s=this;return function(){for(var r=[],i=arguments.length;i--;)r[i]=arguments[i];return s.chain.push(new gc(t,e.apply(s,r),r,s.nextRuleModifiers)),s.nextRuleModifiers=[],s}};On.prototype._applyModifier=function(e,t){return this.nextRuleModifiers.push(new X1(t,e.simple,e.async)),this};On.prototype._clone=function(){return new On(this.chain.slice(),this.nextRuleModifiers.slice())};On.prototype.test=function(e){return this.chain.every(function(t){return t._test(e)})};On.prototype.testAll=function(e){var t=[];return this.chain.forEach(function(s){try{s._check(e)}catch(r){t.push(new Ru(s,e,r))}}),t};On.prototype.check=function(e){this.chain.forEach(function(t){try{t._check(e)}catch(s){throw new Ru(t,e,s)}})};On.prototype.testAsync=function(e){var t=this;return new Promise(function(s,r){Xp(e,t.chain.slice(),s,r)})};function Xp(n,e,t,s){if(e.length){var r=e.shift();r._testAsync(n).then(function(){Xp(n,e,t,s)},function(i){s(new Ru(r,n,i))})}else t(n)}var kd=function(n,e){return e&&typeof n=="string"&&n.trim().length===0?!0:n==null};function Z1(n,e){return e===void 0&&(e=!1),{simple:function(t){return kd(t,e)||n.check(t)===void 0},async:function(t){return kd(t,e)||n.testAsync(t)}}}function Ot(){return typeof Proxy<"u"?Zp(new On):El(new On)}var qi={};Ot.extend=function(n){Object.assign(qi,n)};Ot.clearCustomRules=function(){qi={}};function Zp(n){return new Proxy(n,{get:function(t,s){if(s in t)return t[s];var r=Zp(n._clone());if(s in Ta)return r._applyModifier(Ta[s],s);if(s in qi)return r._applyRule(qi[s],s);if(s in Cl)return r._applyRule(Cl[s],s)}})}function El(n){var e=function(r,i){return Object.keys(r).forEach(function(o){i[o]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var l=El(i._clone()),u=l._applyRule(r[o],o).apply(void 0,a);return u}}),i},t=e(Cl,n),s=e(qi,t);return Object.keys(Ta).forEach(function(r){Object.defineProperty(s,r,{get:function(){var i=El(s._clone());return i._applyModifier(Ta[r],r)}})}),s}var Ta={not:{simple:function(n){return function(e){return!n(e)}},async:function(n){return function(e){return Promise.resolve(n(e)).then(function(t){return!t}).catch(function(){return!0})}}},some:{simple:function(n){return function(e){return Xo(e).some(function(t){try{return n(t)}catch{return!1}})}},async:function(n){return function(e){return Promise.all(Xo(e).map(function(t){try{return n(t).catch(function(){return!1})}catch{return!1}})).then(function(t){return t.some(Boolean)})}}},every:{simple:function(n){return function(e){return e!==!1&&Xo(e).every(n)}},async:function(n){return function(e){return Promise.all(Xo(e).map(n)).then(function(t){return t.every(Boolean)})}}},strict:{simple:function(n,e){return function(t){return Td(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&n(t):n(t)}},async:function(n,e){return function(t){return Promise.resolve(n(t)).then(function(s){return Td(e)&&t&&typeof t=="object"?Object.keys(e.args[0]).length===Object.keys(t).length&&s:s}).catch(function(){return!1})}}}};function Td(n){return n&&n.name==="schema"&&n.args.length>0&&typeof n.args[0]=="object"}function Xo(n){return typeof n=="string"?n.split(""):n}var Cl={equal:function(n){return function(e){return e==n}},exact:function(n){return function(e){return e===n}},number:function(n){return n===void 0&&(n=!0),function(e){return typeof e=="number"&&(n||isFinite(e))}},integer:function(){return function(n){var e=Number.isInteger||K1;return e(n)}},numeric:function(){return function(n){return!isNaN(parseFloat(n))&&isFinite(n)}},string:function(){return vr("string")},boolean:function(){return vr("boolean")},undefined:function(){return vr("undefined")},null:function(){return vr("null")},array:function(){return vr("array")},object:function(){return vr("object")},instanceOf:function(n){return function(e){return e instanceof n}},pattern:function(n){return function(e){return n.test(e)}},lowercase:function(){return function(n){return typeof n=="boolean"||n===n.toLowerCase()&&n.trim()!==""}},uppercase:function(){return function(n){return n===n.toUpperCase()&&n.trim()!==""}},vowel:function(){return function(n){return/^[aeiou]+$/i.test(n)}},consonant:function(){return function(n){return/^(?=[^aeiou])([a-z]+)$/i.test(n)}},first:function(n){return function(e){return e[0]==n}},last:function(n){return function(e){return e[e.length-1]==n}},empty:function(){return function(n){return n.length===0}},length:function(n,e){return function(t){return t.length>=n&&t.length<=(e||n)}},minLength:function(n){return function(e){return e.length>=n}},maxLength:function(n){return function(e){return e.length<=n}},negative:function(){return function(n){return n<0}},positive:function(){return function(n){return n>=0}},between:function(n,e){return function(t){return t>=n&&t<=e}},range:function(n,e){return function(t){return t>=n&&t<=e}},lessThan:function(n){return function(e){return en}},greaterThanOrEqual:function(n){return function(e){return e>=n}},even:function(){return function(n){return n%2===0}},odd:function(){return function(n){return n%2!==0}},includes:function(n){return function(e){return~e.indexOf(n)}},schema:function(n){return Q1(n)},passesAnyOf:function(){for(var n=[],e=arguments.length;e--;)n[e]=arguments[e];return function(t){return n.some(function(s){return s.test(t)})}},optional:Z1};function vr(n){return function(e){return Array.isArray(e)&&n==="array"||e===null&&n==="null"||typeof e===n}}function K1(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n}function Q1(n){return{simple:function(e){var t=[];if(Object.keys(n).forEach(function(s){var r=n[s];try{r.check((e||{})[s])}catch(i){i.target=s,t.push(i)}}),t.length>0)throw t;return!0},async:function(e){var t=[],s=Object.keys(n).map(function(r){var i=n[r];return i.testAsync((e||{})[r]).catch(function(o){o.target=r,t.push(o)})});return Promise.all(s).then(function(){if(t.length>0)throw t;return!0})}}}function Vn(n,e,{checkForDefaultPrevented:t=!0}={}){return function(r){if(n==null||n(r),t===!1||!r.defaultPrevented)return e==null?void 0:e(r)}}function Kp(n,e=[]){let t=[];function s(i,o){const a=v.createContext(o),c=t.length;t=[...t,o];function l(h){const{scope:d,children:f,...m}=h,p=(d==null?void 0:d[n][c])||a,g=v.useMemo(()=>m,Object.values(m));return v.createElement(p.Provider,{value:g},f)}function u(h,d){const f=(d==null?void 0:d[n][c])||a,m=v.useContext(f);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${h}\` must be used within \`${i}\``)}return l.displayName=i+"Provider",[l,u]}const r=()=>{const i=t.map(o=>v.createContext(o));return function(a){const c=(a==null?void 0:a[n])||i;return v.useMemo(()=>({[`__scope${n}`]:{...a,[n]:c}}),[a,c])}};return r.scopeName=n,[s,J1(r,...e)]}function J1(...n){const e=n[0];if(n.length===1)return e;const t=()=>{const s=n.map(r=>({useScope:r(),scopeName:r.scopeName}));return function(i){const o=s.reduce((a,{useScope:c,scopeName:l})=>{const h=c(i)[`__scope${l}`];return{...a,...h}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return t.scopeName=e.scopeName,t}function ni(n){const e=v.useRef(n);return v.useEffect(()=>{e.current=n}),v.useMemo(()=>(...t)=>{var s;return(s=e.current)===null||s===void 0?void 0:s.call(e,...t)},[])}function ev(n,e=globalThis==null?void 0:globalThis.document){const t=ni(n);v.useEffect(()=>{const s=r=>{r.key==="Escape"&&t(r)};return e.addEventListener("keydown",s),()=>e.removeEventListener("keydown",s)},[t,e])}const Sl="dismissableLayer.update",tv="dismissableLayer.pointerDownOutside",nv="dismissableLayer.focusOutside";let Ed;const sv=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),rv=v.forwardRef((n,e)=>{var t;const{disableOutsidePointerEvents:s=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:o,onInteractOutside:a,onDismiss:c,...l}=n,u=v.useContext(sv),[h,d]=v.useState(null),f=(t=h==null?void 0:h.ownerDocument)!==null&&t!==void 0?t:globalThis==null?void 0:globalThis.document,[,m]=v.useState({}),p=ti(e,k=>d(k)),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),T=g.indexOf(_),w=h?g.indexOf(h):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,y=w>=T,x=iv(k=>{const C=k.target,S=[...u.branches].some(R=>R.contains(C));!y||S||(i==null||i(k),a==null||a(k),k.defaultPrevented||c==null||c())},f),E=ov(k=>{const C=k.target;[...u.branches].some(R=>R.contains(C))||(o==null||o(k),a==null||a(k),k.defaultPrevented||c==null||c())},f);return ev(k=>{w===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&c&&(k.preventDefault(),c()))},f),v.useEffect(()=>{if(h)return s&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(Ed=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(h)),u.layers.add(h),Cd(),()=>{s&&u.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=Ed)}},[h,f,s,u]),v.useEffect(()=>()=>{h&&(u.layers.delete(h),u.layersWithOutsidePointerEventsDisabled.delete(h),Cd())},[h,u]),v.useEffect(()=>{const k=()=>m({});return document.addEventListener(Sl,k),()=>document.removeEventListener(Sl,k)},[]),v.createElement(ar.div,Se({},l,{ref:p,style:{pointerEvents:b?y?"auto":"none":void 0,...n.style},onFocusCapture:Vn(n.onFocusCapture,E.onFocusCapture),onBlurCapture:Vn(n.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Vn(n.onPointerDownCapture,x.onPointerDownCapture)}))});function iv(n,e=globalThis==null?void 0:globalThis.document){const t=ni(n),s=v.useRef(!1),r=v.useRef(()=>{});return v.useEffect(()=>{const i=a=>{if(a.target&&!s.current){let l=function(){Qp(tv,t,c,{discrete:!0})};const c={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",r.current),r.current=l,e.addEventListener("click",r.current,{once:!0})):l()}else e.removeEventListener("click",r.current);s.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",i),e.removeEventListener("click",r.current)}},[e,t]),{onPointerDownCapture:()=>s.current=!0}}function ov(n,e=globalThis==null?void 0:globalThis.document){const t=ni(n),s=v.useRef(!1);return v.useEffect(()=>{const r=i=>{i.target&&!s.current&&Qp(nv,t,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",r),()=>e.removeEventListener("focusin",r)},[e,t]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function Cd(){const n=new CustomEvent(Sl);document.dispatchEvent(n)}function Qp(n,e,t,{discrete:s}){const r=t.originalEvent.target,i=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:t});e&&r.addEventListener(n,e,{once:!0}),s?H1(r,i):r.dispatchEvent(i)}const jr=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},av=B_["useId".toString()]||(()=>{});let cv=0;function lv(n){const[e,t]=v.useState(av());return jr(()=>{n||t(s=>s??String(cv++))},[n]),n||(e?`radix-${e}`:"")}const uv=v.forwardRef((n,e)=>{const{children:t,width:s=10,height:r=5,...i}=n;return v.createElement(ar.svg,Se({},i,{ref:e,width:s,height:r,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),n.asChild?t:v.createElement("polygon",{points:"0,0 30,0 15,10"}))}),hv=uv;function dv(n){const[e,t]=v.useState(void 0);return jr(()=>{if(n){t({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;const i=r[0];let o,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;o=l.inlineSize,a=l.blockSize}else o=n.offsetWidth,a=n.offsetHeight;t({width:o,height:a})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else t(void 0)},[n]),e}const Jp="Popper",[e0,t0]=Kp(Jp),[fv,n0]=e0(Jp),pv=n=>{const{__scopePopper:e,children:t}=n,[s,r]=v.useState(null);return v.createElement(fv,{scope:e,anchor:s,onAnchorChange:r},t)},mv="PopperAnchor",gv=v.forwardRef((n,e)=>{const{__scopePopper:t,virtualRef:s,...r}=n,i=n0(mv,t),o=v.useRef(null),a=ti(e,o);return v.useEffect(()=>{i.onAnchorChange((s==null?void 0:s.current)||o.current)}),s?null:v.createElement(ar.div,Se({},r,{ref:a}))}),s0="PopperContent",[_v,yv]=e0(s0),vv=v.forwardRef((n,e)=>{var t,s,r,i,o,a,c,l;const{__scopePopper:u,side:h="bottom",sideOffset:d=0,align:f="center",alignOffset:m=0,arrowPadding:p=0,avoidCollisions:g=!0,collisionBoundary:_=[],collisionPadding:T=0,sticky:w="partial",hideWhenDetached:b=!1,updatePositionStrategy:y="optimized",onPlaced:x,...E}=n,k=n0(s0,u),[C,S]=v.useState(null),R=ti(e,H=>S(H)),[O,L]=v.useState(null),z=dv(O),W=(t=z==null?void 0:z.width)!==null&&t!==void 0?t:0,B=(s=z==null?void 0:z.height)!==null&&s!==void 0?s:0,V=h+(f!=="center"?"-"+f:""),U=typeof T=="number"?T:{top:0,right:0,bottom:0,left:0,...T},X=Array.isArray(_)?_:[_],K=X.length>0,J={padding:U,boundary:X.filter(kv),altBoundary:K},{refs:F,floatingStyles:j,placement:A,isPositioned:I,middlewareData:Y}=_1({strategy:"fixed",placement:V,whileElementsMounted:(...H)=>p1(...H,{animationFrame:y==="always"}),elements:{reference:k.anchor},middleware:[Yy({mainAxis:d+B,alignmentAxis:m}),g&&Gy({mainAxis:!0,crossAxis:!1,limiter:w==="partial"?Xy():void 0,...J}),g&&Wy({...J}),Zy({...J,apply:({elements:H,rects:M,availableWidth:D,availableHeight:Q})=>{const{width:se,height:le}=M.reference,be=H.floating.style;be.setProperty("--radix-popper-available-width",`${D}px`),be.setProperty("--radix-popper-available-height",`${Q}px`),be.setProperty("--radix-popper-anchor-width",`${se}px`),be.setProperty("--radix-popper-anchor-height",`${le}px`)}}),O&&g1({element:O,padding:p}),Tv({arrowWidth:W,arrowHeight:B}),b&&qy({strategy:"referenceHidden",...J})]}),[$,q]=r0(A),ae=ni(x);jr(()=>{I&&(ae==null||ae())},[I,ae]);const re=(r=Y.arrow)===null||r===void 0?void 0:r.x,ie=(i=Y.arrow)===null||i===void 0?void 0:i.y,ne=((o=Y.arrow)===null||o===void 0?void 0:o.centerOffset)!==0,[ge,te]=v.useState();return jr(()=>{C&&te(window.getComputedStyle(C).zIndex)},[C]),v.createElement("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...j,transform:I?j.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ge,"--radix-popper-transform-origin":[(a=Y.transformOrigin)===null||a===void 0?void 0:a.x,(c=Y.transformOrigin)===null||c===void 0?void 0:c.y].join(" ")},dir:n.dir},v.createElement(_v,{scope:u,placedSide:$,onArrowChange:L,arrowX:re,arrowY:ie,shouldHideArrow:ne},v.createElement(ar.div,Se({"data-side":$,"data-align":q},E,{ref:R,style:{...E.style,animation:I?void 0:"none",opacity:(l=Y.hide)!==null&&l!==void 0&&l.referenceHidden?0:void 0}}))))}),bv="PopperArrow",xv={top:"bottom",right:"left",bottom:"top",left:"right"},wv=v.forwardRef(function(e,t){const{__scopePopper:s,...r}=e,i=yv(bv,s),o=xv[i.placedSide];return v.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[o]: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}},v.createElement(hv,Se({},r,{ref:t,style:{...r.style,display:"block"}})))});function kv(n){return n!==null}const Tv=n=>({name:"transformOrigin",options:n,fn(e){var t,s,r,i,o;const{placement:a,rects:c,middlewareData:l}=e,h=((t=l.arrow)===null||t===void 0?void 0:t.centerOffset)!==0,d=h?0:n.arrowWidth,f=h?0:n.arrowHeight,[m,p]=r0(a),g={start:"0%",center:"50%",end:"100%"}[p],_=((s=(r=l.arrow)===null||r===void 0?void 0:r.x)!==null&&s!==void 0?s:0)+d/2,T=((i=(o=l.arrow)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0)+f/2;let w="",b="";return m==="bottom"?(w=h?g:`${_}px`,b=`${-f}px`):m==="top"?(w=h?g:`${_}px`,b=`${c.floating.height+f}px`):m==="right"?(w=`${-f}px`,b=h?g:`${T}px`):m==="left"&&(w=`${c.floating.width+f}px`,b=h?g:`${T}px`),{data:{x:w,y:b}}}});function r0(n){const[e,t="center"]=n.split("-");return[e,t]}const Ev=pv,Cv=gv,Sv=vv,Ov=wv;function Av(n,e){return v.useReducer((t,s)=>{const r=e[t][s];return r??t},n)}const i0=n=>{const{present:e,children:t}=n,s=Rv(e),r=typeof t=="function"?t({present:s.isPresent}):v.Children.only(t),i=ti(s.ref,r.ref);return typeof t=="function"||s.isPresent?v.cloneElement(r,{ref:i}):null};i0.displayName="Presence";function Rv(n){const[e,t]=v.useState(),s=v.useRef({}),r=v.useRef(n),i=v.useRef("none"),o=n?"mounted":"unmounted",[a,c]=Av(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Zo(s.current);i.current=a==="mounted"?l:"none"},[a]),jr(()=>{const l=s.current,u=r.current;if(u!==n){const d=i.current,f=Zo(l);n?c("MOUNT"):f==="none"||(l==null?void 0:l.display)==="none"?c("UNMOUNT"):c(u&&d!==f?"ANIMATION_OUT":"UNMOUNT"),r.current=n}},[n,c]),jr(()=>{if(e){const l=h=>{const f=Zo(s.current).includes(h.animationName);h.target===e&&f&&gu.flushSync(()=>c("ANIMATION_END"))},u=h=>{h.target===e&&(i.current=Zo(s.current))};return e.addEventListener("animationstart",u),e.addEventListener("animationcancel",l),e.addEventListener("animationend",l),()=>{e.removeEventListener("animationstart",u),e.removeEventListener("animationcancel",l),e.removeEventListener("animationend",l)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:v.useCallback(l=>{l&&(s.current=getComputedStyle(l)),t(l)},[])}}function Zo(n){return(n==null?void 0:n.animationName)||"none"}function Dv({prop:n,defaultProp:e,onChange:t=()=>{}}){const[s,r]=Pv({defaultProp:e,onChange:t}),i=n!==void 0,o=i?n:s,a=ni(t),c=v.useCallback(l=>{if(i){const h=typeof l=="function"?l(n):l;h!==n&&a(h)}else r(l)},[i,n,r,a]);return[o,c]}function Pv({defaultProp:n,onChange:e}){const t=v.useState(n),[s]=t,r=v.useRef(s),i=ni(e);return v.useEffect(()=>{r.current!==s&&(i(s),r.current=s)},[s,r,i]),t}const Mv=v.forwardRef((n,e)=>v.createElement(ar.span,Se({},n,{ref:e,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",...n.style}}))),Nv=Mv,[_c,EM]=Kp("Tooltip",[t0]),yc=t0(),Iv="TooltipProvider",Ol="tooltip.open",[CM,Du]=_c(Iv),Pu="Tooltip",[$v,vc]=_c(Pu),Fv=n=>{const{__scopeTooltip:e,children:t,open:s,defaultOpen:r=!1,onOpenChange:i,disableHoverableContent:o,delayDuration:a}=n,c=Du(Pu,n.__scopeTooltip),l=yc(e),[u,h]=v.useState(null),d=lv(),f=v.useRef(0),m=o??c.disableHoverableContent,p=a??c.delayDuration,g=v.useRef(!1),[_=!1,T]=Dv({prop:s,defaultProp:r,onChange:E=>{E?(c.onOpen(),document.dispatchEvent(new CustomEvent(Ol))):c.onClose(),i==null||i(E)}}),w=v.useMemo(()=>_?g.current?"delayed-open":"instant-open":"closed",[_]),b=v.useCallback(()=>{window.clearTimeout(f.current),g.current=!1,T(!0)},[T]),y=v.useCallback(()=>{window.clearTimeout(f.current),T(!1)},[T]),x=v.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0)},p)},[p,T]);return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),v.createElement(Ev,l,v.createElement($v,{scope:e,contentId:d,open:_,stateAttribute:w,trigger:u,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{c.isOpenDelayed?x():b()},[c.isOpenDelayed,x,b]),onTriggerLeave:v.useCallback(()=>{m?y():window.clearTimeout(f.current)},[y,m]),onOpen:b,onClose:y,disableHoverableContent:m},t))},Sd="TooltipTrigger",Lv=v.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=vc(Sd,t),i=Du(Sd,t),o=yc(t),a=v.useRef(null),c=ti(e,a,r.onTriggerChange),l=v.useRef(!1),u=v.useRef(!1),h=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),v.createElement(Cv,Se({asChild:!0},o),v.createElement(ar.button,Se({"aria-describedby":r.open?r.contentId:void 0,"data-state":r.stateAttribute},s,{ref:c,onPointerMove:Vn(n.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!i.isPointerInTransitRef.current&&(r.onTriggerEnter(),u.current=!0)}),onPointerLeave:Vn(n.onPointerLeave,()=>{r.onTriggerLeave(),u.current=!1}),onPointerDown:Vn(n.onPointerDown,()=>{l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:Vn(n.onFocus,()=>{l.current||r.onOpen()}),onBlur:Vn(n.onBlur,r.onClose),onClick:Vn(n.onClick,r.onClose)})))}),jv="TooltipPortal",[SM,zv]=_c(jv,{forceMount:void 0}),Hi="TooltipContent",Vv=v.forwardRef((n,e)=>{const t=zv(Hi,n.__scopeTooltip),{forceMount:s=t.forceMount,side:r="top",...i}=n,o=vc(Hi,n.__scopeTooltip);return v.createElement(i0,{present:s||o.open},o.disableHoverableContent?v.createElement(o0,Se({side:r},i,{ref:e})):v.createElement(Uv,Se({side:r},i,{ref:e})))}),Uv=v.forwardRef((n,e)=>{const t=vc(Hi,n.__scopeTooltip),s=Du(Hi,n.__scopeTooltip),r=v.useRef(null),i=ti(e,r),[o,a]=v.useState(null),{trigger:c,onClose:l}=t,u=r.current,{onPointerInTransitChange:h}=s,d=v.useCallback(()=>{a(null),h(!1)},[h]),f=v.useCallback((m,p)=>{const g=m.currentTarget,_={x:m.clientX,y:m.clientY},T=Yv(_,g.getBoundingClientRect()),w=Gv(_,T),b=Xv(p.getBoundingClientRect()),y=Kv([...w,...b]);a(y),h(!0)},[h]);return v.useEffect(()=>()=>d(),[d]),v.useEffect(()=>{if(c&&u){const m=g=>f(g,u),p=g=>f(g,c);return c.addEventListener("pointerleave",m),u.addEventListener("pointerleave",p),()=>{c.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",p)}}},[c,u,f,d]),v.useEffect(()=>{if(o){const m=p=>{const g=p.target,_={x:p.clientX,y:p.clientY},T=(c==null?void 0:c.contains(g))||(u==null?void 0:u.contains(g)),w=!Zv(_,o);T?d():w&&(d(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[c,u,o,l,d]),v.createElement(o0,Se({},n,{ref:i}))}),[Bv,Wv]=_c(Pu,{isInside:!1}),o0=v.forwardRef((n,e)=>{const{__scopeTooltip:t,children:s,"aria-label":r,onEscapeKeyDown:i,onPointerDownOutside:o,...a}=n,c=vc(Hi,t),l=yc(t),{onClose:u}=c;return v.useEffect(()=>(document.addEventListener(Ol,u),()=>document.removeEventListener(Ol,u)),[u]),v.useEffect(()=>{if(c.trigger){const h=d=>{const f=d.target;f!=null&&f.contains(c.trigger)&&u()};return window.addEventListener("scroll",h,{capture:!0}),()=>window.removeEventListener("scroll",h,{capture:!0})}},[c.trigger,u]),v.createElement(rv,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:h=>h.preventDefault(),onDismiss:u},v.createElement(Sv,Se({"data-state":c.stateAttribute},l,a,{ref:e,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)"}}),v.createElement(Hp,null,s),v.createElement(Bv,{scope:t,isInside:!0},v.createElement(Nv,{id:c.contentId,role:"tooltip"},r||s))))}),qv="TooltipArrow",Hv=v.forwardRef((n,e)=>{const{__scopeTooltip:t,...s}=n,r=yc(t);return Wv(qv,t).isInside?null:v.createElement(Ov,Se({},r,s,{ref:e}))});function Yv(n,e){const t=Math.abs(e.top-n.y),s=Math.abs(e.bottom-n.y),r=Math.abs(e.right-n.x),i=Math.abs(e.left-n.x);switch(Math.min(t,s,r,i)){case i:return"left";case r:return"right";case t:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function Gv(n,e,t=5){const s=[];switch(e){case"top":s.push({x:n.x-t,y:n.y+t},{x:n.x+t,y:n.y+t});break;case"bottom":s.push({x:n.x-t,y:n.y-t},{x:n.x+t,y:n.y-t});break;case"left":s.push({x:n.x+t,y:n.y-t},{x:n.x+t,y:n.y+t});break;case"right":s.push({x:n.x-t,y:n.y-t},{x:n.x-t,y:n.y+t});break}return s}function Xv(n){const{top:e,right:t,bottom:s,left:r}=n;return[{x:r,y:e},{x:t,y:e},{x:t,y:s},{x:r,y:s}]}function Zv(n,e){const{x:t,y:s}=n;let r=!1;for(let i=0,o=e.length-1;is!=u>s&&t<(l-a)*(s-c)/(u-c)+a&&(r=!r)}return r}function Kv(n){const e=n.slice();return e.sort((t,s)=>t.xs.x?1:t.ys.y?1:0),Qv(e)}function Qv(n){if(n.length<=1)return n.slice();const e=[];for(let s=0;s=2;){const i=e[e.length-1],o=e[e.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))e.pop();else break}e.push(r)}e.pop();const t=[];for(let s=n.length-1;s>=0;s--){const r=n[s];for(;t.length>=2;){const i=t[t.length-1],o=t[t.length-2];if((i.x-o.x)*(r.y-o.y)>=(i.y-o.y)*(r.x-o.x))t.pop();else break}t.push(r)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}const Jv=Fv,eb=Lv,tb=Vv,nb=Hv;function sb(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}function De(n,e){if(n==null)return{};var t=sb(n,e),s,r;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}let He;(function(n){n[n.UNSUPPORTED_INPUT=0]="UNSUPPORTED_INPUT",n[n.NO_COMPONENT_FOR_TYPE=1]="NO_COMPONENT_FOR_TYPE",n[n.UNKNOWN_INPUT=2]="UNKNOWN_INPUT",n[n.DUPLICATE_KEYS=3]="DUPLICATE_KEYS",n[n.ALREADY_REGISTERED_TYPE=4]="ALREADY_REGISTERED_TYPE",n[n.CLIPBOARD_ERROR=5]="CLIPBOARD_ERROR",n[n.THEME_ERROR=6]="THEME_ERROR",n[n.PATH_DOESNT_EXIST=7]="PATH_DOESNT_EXIST",n[n.INPUT_TYPE_OVERRIDE=8]="INPUT_TYPE_OVERRIDE",n[n.EMPTY_KEY=9]="EMPTY_KEY"})(He||(He={}));const rb={[He.UNSUPPORTED_INPUT]:(n,e)=>[`An input with type \`${n}\` input was found at path \`${e}\` but it's not supported yet.`],[He.NO_COMPONENT_FOR_TYPE]:(n,e)=>[`Type \`${n}\` found at path \`${e}\` can't be displayed in panel because no component supports it yet.`],[He.UNKNOWN_INPUT]:(n,e)=>[`input at path \`${n}\` is not recognized.`,e],[He.DUPLICATE_KEYS]:(n,e,t)=>[`Key \`${n}\` of path \`${e}\` already exists at path \`${t}\`. Even nested keys need to be unique. Rename one of the keys.`],[He.ALREADY_REGISTERED_TYPE]:n=>[`Type ${n} has already been registered. You can't register a component with the same type.`],[He.CLIPBOARD_ERROR]:n=>["Error copying the value",n],[He.THEME_ERROR]:(n,e)=>[`Error accessing the theme \`${n}.${e}\` value.`],[He.PATH_DOESNT_EXIST]:n=>[`Error getting the value at path \`${n}\`. There is probably an error in your \`render\` function.`],[He.PATH_DOESNT_EXIST]:n=>[`Error accessing the value at path \`${n}\``],[He.INPUT_TYPE_OVERRIDE]:(n,e,t)=>[`Input at path \`${n}\` already exists with type: \`${e}\`. Its type cannot be overridden with type \`${t}\`.`],[He.EMPTY_KEY]:()=>["Keys can not be empty, if you want to hide a label use whitespace."]};function a0(n,e,...t){const[s,...r]=rb[e](...t);console[n]("LEVA: "+s,...r)}const Bn=a0.bind(null,"warn"),ib=a0.bind(null,"log"),ob=["value"],ab=["schema"],cb=["value"],c0=[],Js={};function Od(n){let{value:e}=n,t=De(n,ob);for(let s of c0){const r=s(e,t);if(r)return r}}function ns(n,e){let{schema:t}=e,s=De(e,ab);if(n in Js){Bn(He.ALREADY_REGISTERED_TYPE,n);return}c0.push((r,i)=>t(r,i)&&n),Js[n]=s}function Jc(n,e,t,s){const{normalize:r}=Js[n];if(r)return r(e,t,s);if(typeof e!="object"||!("value"in e))return{value:e};const{value:i}=e,o=De(e,cb);return{value:i,settings:o}}function lb(n,e,t,s,r,i){const{sanitize:o}=Js[n];return o?o(e,t,s,r,i):e}function Ad(n,e,t){const{format:s}=Js[n];return s?s(e,t):e}function ub(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Rd(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);e&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),t.push.apply(t,s)}return t}function de(n){for(var e=1;en>t?t:n{if(n===""||typeof n=="number")return n;try{const e=ls(n);if(!isNaN(e))return e}catch{}return parseFloat(n)},db=Math.log(10);function Dd(n){let e=Math.abs(+String(n).replace(".",""));if(e===0)return .01;for(;e!==0&&e%10===0;)e/=10;const t=Math.floor(Math.log(e)/db)+1,s=Math.floor(Math.log10(Math.abs(n))),r=Math.pow(10,s-t);return Math.max(r,.001)}const Ea=(n,e,t)=>t===e?0:(xs(n,e,t)-e)/(t-e),Ca=(n,e,t)=>n*(t-e)+e,fb=()=>"_"+Math.random().toString(36).substr(2,9),Pd=/\(([0-9+\-*/^ .]+)\)/,Md=/(\d+(?:\.\d+)?) ?\^ ?(\d+(?:\.\d+)?)/,Nd=/(\d+(?:\.\d+)?) ?\* ?(\d+(?:\.\d+)?)/,Id=/(\d+(?:\.\d+)?) ?\/ ?(\d+(?:\.\d+)?)/,$d=/(\d+(?:\.\d+)?) ?\+ ?(\d+(?:\.\d+)?)/,Fd=/(\d+(?:\.\d+)?) ?- ?(\d+(?:\.\d+)?)/;function ls(n){if(isNaN(Number(n)))if(Pd.test(n)){const e=n.replace(Pd,(t,s)=>String(ls(s)));return ls(e)}else if(Md.test(n)){const e=n.replace(Md,(t,s,r)=>String(Math.pow(Number(s),Number(r))));return ls(e)}else if(Nd.test(n)){const e=n.replace(Nd,(t,s,r)=>String(Number(s)*Number(r)));return ls(e)}else if(Id.test(n)){const e=n.replace(Id,(t,s,r)=>{if(r!=0)return String(Number(s)/Number(r));throw new Error("Division by zero")});return ls(e)}else if($d.test(n)){const e=n.replace($d,(t,s,r)=>String(Number(s)+Number(r)));return ls(e)}else if(Fd.test(n)){const e=n.replace(Fd,(t,s,r)=>String(Number(s)-Number(r)));return ls(e)}else return Number(n);return Number(n)}function pb(n,e){return e.reduce((t,s)=>(n&&n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}function mb(n,e){const t=de({},n);return e.forEach(s=>s in n&&delete t[s]),t}function gb(n,e){return n.reduce((t,s,r)=>Object.assign(t,{[e[r]]:s}),{})}function l0(n){return Object.prototype.toString.call(n)==="[object Object]"}const _b=n=>l0(n)&&Object.keys(n).length===0;let un;(function(n){n.BUTTON="BUTTON",n.BUTTON_GROUP="BUTTON_GROUP",n.MONITOR="MONITOR",n.FOLDER="FOLDER"})(un||(un={}));let dn;(function(n){n.SELECT="SELECT",n.IMAGE="IMAGE",n.NUMBER="NUMBER",n.COLOR="COLOR",n.STRING="STRING",n.BOOLEAN="BOOLEAN",n.INTERVAL="INTERVAL",n.VECTOR3D="VECTOR3D",n.VECTOR2D="VECTOR2D"})(dn||(dn={}));const yb=["type","__customInput"],vb=["render","label","optional","order","disabled","hint","onChange","onEditStart","onEditEnd","transient"],bb=["type"];function u0(n,e,t={},s){var r,i;if(typeof n!="object"||Array.isArray(n))return{type:s,input:n,options:de({key:e,label:e,optional:!1,disabled:!1,order:0},t)};if("__customInput"in n){const{type:y,__customInput:x}=n,E=De(n,yb);return u0(x,e,E,y)}const{render:o,label:a,optional:c,order:l=0,disabled:u,hint:h,onChange:d,onEditStart:f,onEditEnd:m,transient:p}=n,g=De(n,vb),_=de({render:o,key:e,label:a??e,hint:h,transient:p??!!d,onEditStart:f,onEditEnd:m,disabled:u,optional:c,order:l},t);let{type:T}=g,w=De(g,bb);if(T=s??T,T in un)return{type:T,input:w,options:_};let b;return s&&l0(w)&&"value"in w?b=w.value:b=_b(w)?void 0:w,{type:T,input:b,options:de(de({},_),{},{onChange:d,optional:(r=_.optional)!==null&&r!==void 0?r:!1,disabled:(i=_.disabled)!==null&&i!==void 0?i:!1})}}function xb(n,e,t,s){const r=u0(n,e),{type:i,input:o,options:a}=r;if(i)return i in un?r:{type:i,input:Jc(i,o,t,s),options:a};let c=Od(o);return c?{type:c,input:Jc(c,o,t,s),options:a}:(c=Od({value:o}),c?{type:c,input:Jc(c,{value:o},t,s),options:a}:!1)}function Ld(n,e,t,s,r){const{value:i,type:o,settings:a}=n;n.value=h0({type:o,value:i,settings:a},e,t,s),n.fromPanel=r}const wb=function(e,t,s){this.type="LEVA_ERROR",this.message="LEVA: "+e,this.previousValue=t,this.error=s};function h0({type:n,value:e,settings:t},s,r,i){const o=n!=="SELECT"&&typeof s=="function"?s(e):s;let a;try{a=lb(n,o,t,e,r,i)}catch(c){throw new wb(`The value \`${s}\` did not result in a correct value.`,e,c)}return Wi(a,e)?e:a}const d0=(n,e,t=!1)=>{let s=0;return function(){const r=arguments,i=t&&!s,o=()=>n.apply(this,r);window.clearTimeout(s),s=window.setTimeout(o,e),i&&o()}},f0=n=>n.shiftKey?5:n.altKey?1/5:1;function kb(n,e){const t=console.error;console.error=()=>{},mp.render(n,e),console.error=t}const Tb=["value"],Eb=["min","max"],Cb=n=>{if(typeof n=="number")return!0;if(typeof n=="string"){const e=parseFloat(n);return isNaN(e)?!1:n.substring((""+e).length).trim().length<4}return!1},p0=(n,{min:e=-1/0,max:t=1/0,suffix:s})=>{const r=parseFloat(n);if(n===""||isNaN(r))throw Error("Invalid number");const i=xs(r,e,t);return s?i+s:i},Sb=(n,{pad:e=0,suffix:t})=>{const s=parseFloat(n).toFixed(e);return t?s+t:s},m0=n=>{let{value:e}=n,t=De(n,Tb);const{min:s=-1/0,max:r=1/0}=t,i=De(t,Eb);let o=parseFloat(e);const a=typeof e=="string"?e.substring((""+o).length):void 0;o=xs(o,s,r);let c=t.step;c||(Number.isFinite(s)?Number.isFinite(r)?c=+(Math.abs(r-s)/100).toPrecision(1):c=+(Math.abs(o-s)/100).toPrecision(1):Number.isFinite(r)&&(c=+(Math.abs(r-o)/100).toPrecision(1)));const l=c?Dd(c)*10:Dd(o);c=c||l/10;const u=Math.round(xs(Math.log10(1/l),0,2));return{value:a?o+a:o,settings:de({initialValue:o,step:c,pad:u,min:s,max:r,suffix:a},i)}},g0=(n,{step:e,initialValue:t})=>{const s=Math.round((n-t)/e);return t+s*e};var _0=Object.freeze({__proto__:null,schema:Cb,sanitize:p0,format:Sb,normalize:m0,sanitizeStep:g0});function Je(){return Je=Object.assign?Object.assign.bind():function(n){for(var e=1;e({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 Ko(n,e){const[t,s]=n.split(" "),r={};return t!=="none"&&(r.boxShadow=`${e.inset?"inset ":""}0 0 0 $borderWidths${[e.key]} $colors${t!=="default"&&t||e.borderColor}`),s&&(r.backgroundColor=s),r}const ki={$inputStyle:()=>n=>Ko(n,{key:"$input",borderColor:"$highlight1",inset:!0}),$focusStyle:()=>n=>Ko(n,{key:"$focus",borderColor:"$accent2"}),$hoverStyle:()=>n=>Ko(n,{key:"$hover",borderColor:"$accent1",inset:!0}),$activeStyle:()=>n=>Ko(n,{key:"$active",borderColor:"$accent1",inset:!0})},{styled:ce,css:OM,createTheme:Ab,globalCss:Rb,keyframes:AM}=ey({prefix:"leva",theme:x0(),utils:de(de({},ki),{},{$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:n=>({"&:focus":ki.$focusStyle()(n)}),$focusWithin:n=>({"&:focus-within":ki.$focusStyle()(n)}),$hover:n=>({"&:hover":ki.$hoverStyle()(n)}),$active:n=>({"&:active":ki.$activeStyle()(n)})})}),Db=Rb({".leva__panel__dragged":{WebkitUserDrag:"none",userSelect:"none",input:{userSelect:"none"},"*":{cursor:"ew-resize !important"}}});function Pb(n){const e=x0();if(!n)return{theme:e,className:""};Object.keys(n).forEach(s=>{Object.assign(e[s],n[s])});const t=Ab(e);return{theme:e,className:t.className}}function Wn(n,e){const{theme:t}=v.useContext(Mu);if(!(n in t)||!(e in t[n]))return Bn(He.THEME_ERROR,n,e),"";let s=e;for(;;){let r=t[n][s];if(typeof r=="string"&&r.charAt(0)==="$")s=r.substr(1);else return r}}const w0=ce("input",{$reset:"",padding:"0 $sm",width:0,minWidth:0,flex:1,height:"100%",variants:{levaType:{number:{textAlign:"right"}},as:{textarea:{padding:"$sm"}}}}),k0=ce("div",{$draggable:"",height:"100%",$flexCenter:"",position:"relative",padding:"0 $xs",fontSize:"0.8em",opacity:.8,cursor:"default",touchAction:"none",[`& + ${w0}`]:{paddingLeft:0}}),Mb=ce(k0,{cursor:"ew-resize",marginRight:"-$xs",textTransform:"uppercase",opacity:.3,"&:hover":{opacity:1},variants:{dragging:{true:{backgroundColor:"$accent2",opacity:1}}}}),Nb=ce("div",{$flex:"",position:"relative",borderRadius:"$sm",overflow:"hidden",color:"inherit",height:"$rowHeight",backgroundColor:"$elevation3",$inputStyle:"$elevation1",$hover:"",$focusWithin:"",variants:{textArea:{true:{height:"auto"}}}}),Ib=["innerLabel","value","onUpdate","onChange","onKeyDown","type","id","inputType","rows"],$b=["onUpdate"];function Nu(n){let{innerLabel:e,value:t,onUpdate:s,onChange:r,onKeyDown:i,type:o,id:a,inputType:c="text",rows:l=0}=n,u=De(n,Ib);const{id:h,emitOnEditStart:d,emitOnEditEnd:f,disabled:m}=yt(),p=a||h,g=v.useRef(null),_=l>0,T=_?"textarea":"input",w=v.useCallback(x=>E=>{const k=E.currentTarget.value;x(k)},[]);N.useEffect(()=>{const x=g.current,E=w(k=>{s(k),f()});return x==null||x.addEventListener("blur",E),()=>x==null?void 0:x.removeEventListener("blur",E)},[w,s,f]);const b=v.useCallback(x=>{x.key==="Enter"&&w(s)(x)},[w,s]),y=Object.assign({as:T},_?{rows:l}:{},u);return N.createElement(Nb,{textArea:_},e&&typeof e=="string"?N.createElement(k0,null,e):e,N.createElement(w0,Je({levaType:o,ref:g,id:p,type:c,autoComplete:"off",spellCheck:"false",value:t,onChange:w(r),onFocus:()=>d(),onKeyPress:b,onKeyDown:i,disabled:m},y)))}function Fb(n){let{onUpdate:e}=n,t=De(n,$b);const s=v.useCallback(i=>e(hb(i)),[e]),r=v.useCallback(i=>{const o=i.key==="ArrowUp"?1:i.key==="ArrowDown"?-1:0;if(o){i.preventDefault();const a=i.altKey?.1:i.shiftKey?10:1;e(c=>parseFloat(c)+o*a)}},[e]);return N.createElement(Nu,Je({},t,{onUpdate:s,onKeyDown:r,type:"number"}))}const Sa=ce("div",{}),Al=ce("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"}}]}),Lb=ce("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 + ${Al}::after`]:{opacity:.6},[`${Sa}:hover > & + ${Al}::after`]:{opacity:.6},[`${Sa}:hover > & > svg`]:{opacity:1}}),T0=ce("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"},[`> ${Sa}:not(:first-of-type)`]:{paddingTop:"$sm",marginTop:"$md",borderTop:"$borderWidths$folder solid $colors$elevation1"}}}}}),E0=ce("div",{position:"relative",zIndex:100,display:"grid",rowGap:"$rowGap",gridTemplateRows:"minmax($sizes$rowHeight, max-content)",alignItems:"center",color:"$highlight2",[`${T0} > &`]:{"&:first-of-type":{marginTop:"$rowGap"},"&:last-of-type":{marginBottom:"$rowGap"}},variants:{disabled:{true:{pointerEvents:"none"},false:{"&:hover,&:focus-within":{color:"$highlight3"}}}}}),C0=ce(E0,{gridTemplateColumns:"auto $sizes$controlWidth",columnGap:"$colGap"}),jb=ce("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"}}}}),zb=ce("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"}}),Rl=ce("label",{fontWeight:"$label",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > svg":{display:"block"}}),Vb=ce("div",{opacity:1,variants:{disabled:{true:{opacity:.6,pointerEvents:"none",[`& ${Rl}`]:{pointerEvents:"auto"}}}}}),S0=ce("div",{position:"fixed",top:0,bottom:0,right:0,left:0,zIndex:1e3,userSelect:"none"}),Ub=ce("div",{background:"$toolTipBackground",fontFamily:"$sans",fontSize:"$toolTip",padding:"$xs $sm",color:"$toolTipText",borderRadius:"$xs",boxShadow:"$level2",maxWidth:260}),Bb=ce(nb,{fill:"$toolTipBackground"});function Iu({children:n}){const{className:e}=v.useContext(Mu);return N.createElement(G1,{className:e},n)}const Wb=["align"];function qb(){const{id:n,disable:e,disabled:t}=yt();return N.createElement(N.Fragment,null,N.createElement(zb,{id:n+"__disable",type:"checkbox",checked:!t,onChange:()=>e(!t)}),N.createElement("label",{htmlFor:n+"__disable"}))}function Hb(n){const{id:e,optional:t,hint:s}=yt(),r=n.htmlFor||(e?{htmlFor:e}:null),i=!s&&typeof n.children=="string"?{title:n.children}:null;return N.createElement(N.Fragment,null,t&&N.createElement(qb,null),s!==void 0?N.createElement(Jv,null,N.createElement(eb,{asChild:!0},N.createElement(Rl,Je({},r,n))),N.createElement(tb,{side:"top",sideOffset:2},N.createElement(Ub,null,s,N.createElement(Bb,null)))):N.createElement(Rl,Je({},r,i,n)))}function mn(n){let{align:e}=n,t=De(n,Wb);const{value:s,label:r,key:i,disabled:o}=yt(),{hideCopyButton:a}=Ob(),c=!a&&i!==void 0,[l,u]=v.useState(!1),h=async()=>{try{await navigator.clipboard.writeText(JSON.stringify({[i]:s??""})),u(!0)}catch{Bn(He.CLIPBOARD_ERROR,{[i]:s})}};return N.createElement(jb,{align:e,onPointerLeave:()=>u(!1)},N.createElement(Hb,t),c&&!o&&N.createElement("div",{title:`Click to copy ${typeof r=="string"?r:i} value`},l?N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M9 2a1 1 0 000 2h2a1 1 0 100-2H9z"}),N.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"})):N.createElement("svg",{onClick:h,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{d:"M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"}),N.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 Yb=["toggled"],Gb=ce("svg",{fill:"currentColor",transition:"transform 350ms ease, fill 250ms ease"});function $u(n){let{toggled:e}=n,t=De(n,Yb);return N.createElement(Gb,Je({width:"9",height:"5",viewBox:"0 0 9 5",xmlns:"http://www.w3.org/2000/svg",style:{transform:`rotate(${e?0:-90}deg)`}},t),N.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 Xb=["input"];function sn(n){let{input:e}=n,t=De(n,Xb);return e?N.createElement(C0,t):N.createElement(E0,t)}function O0({value:n,type:e,settings:t,setValue:s}){const[r,i]=v.useState(Ad(e,n,t)),o=v.useRef(n),a=v.useRef(t);a.current=t;const c=v.useCallback(u=>i(Ad(e,u,a.current)),[e]),l=v.useCallback(u=>{try{s(u)}catch(h){const{type:d,previousValue:f}=h;if(d!=="LEVA_ERROR")throw h;c(f)}},[c,s]);return v.useEffect(()=>{Wi(n,o.current)||c(n),o.current=n},[n,c]),{displayValue:r,onChange:i,onUpdate:l}}function Co(n,e){const{emitOnEditStart:t,emitOnEditEnd:s}=yt();return ty(r=>{r.first&&(document.body.classList.add("leva__panel__dragged"),t==null||t());const i=n(r);return r.last&&(document.body.classList.remove("leva__panel__dragged"),s==null||s()),i},e)}function Zb(n){const e=v.useRef(null),t=v.useRef(null),s=v.useRef(!1);return v.useEffect(()=>{const r=d0(()=>{e.current.width=e.current.offsetWidth*window.devicePixelRatio,e.current.height=e.current.offsetHeight*window.devicePixelRatio,n(e.current,t.current)},250);return window.addEventListener("resize",r),s.current||(r(),s.current=!0),()=>window.removeEventListener("resize",r)},[n]),v.useEffect(()=>{t.current=e.current.getContext("2d")},[]),[e,t]}function A0(){const n=v.useRef(null),e=v.useRef({x:0,y:0}),t=v.useCallback(s=>{Object.assign(e.current,s),n.current&&(n.current.style.transform=`translate3d(${e.current.x}px, ${e.current.y}px, 0)`)},[]);return[n,t]}const Kb=["__refCount"],el=(n,e)=>{if(!n[e])return null;const t=n[e];return De(t,Kb)};function Qb(n){const e=Eo(),[t,s]=v.useState(el(e.getData(),n)),r=v.useCallback(l=>e.setValueAtPath(n,l,!0),[n,e]),i=v.useCallback(l=>e.setSettingsAtPath(n,l),[n,e]),o=v.useCallback(l=>e.disableInputAtPath(n,l),[n,e]),a=v.useCallback(()=>e.emitOnEditStart(n),[n,e]),c=v.useCallback(()=>e.emitOnEditEnd(n),[n,e]);return v.useEffect(()=>{s(el(e.getData(),n));const l=e.useStore.subscribe(u=>el(u.data,n),s,{equalityFn:To});return()=>l()},[e,n]),[t,{set:r,setSettings:i,disable:o,storeId:e.storeId,emitOnEditStart:a,emitOnEditEnd:c}]}const Jb=ce("div",{variants:{hasRange:{true:{position:"relative",display:"grid",gridTemplateColumns:"auto $sizes$numberInputMinWidth",columnGap:"$colGap",alignItems:"center"}}}}),R0=ce("div",{position:"relative",width:"100%",height:2,borderRadius:"$xs",backgroundColor:"$elevation1"}),Dl=ce("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)))"}}}}),D0=ce("div",{position:"relative",$flex:"",height:"100%",cursor:"pointer",touchAction:"none"}),P0=ce("div",{position:"absolute",height:"100%",backgroundColor:"$accent2"});function ex({value:n,min:e,max:t,onDrag:s,step:r,initialValue:i}){const o=v.useRef(null),a=v.useRef(null),c=v.useRef(0),l=Wn("sizes","scrubberWidth"),u=Co(({event:d,first:f,xy:[m],movement:[p],memo:g})=>{if(f){const{width:T,left:w}=o.current.getBoundingClientRect();c.current=T-parseFloat(l),g=(d==null?void 0:d.target)===a.current?n:Ca((m-w)/T,e,t)}const _=g+Ca(p/c.current,0,t-e);return s(g0(_,{step:r,initialValue:i})),g}),h=Ea(n,e,t);return N.createElement(D0,Je({ref:o},u()),N.createElement(R0,null,N.createElement(P0,{style:{left:0,right:`${(1-h)*100}%`}})),N.createElement(Dl,{ref:a,style:{left:`calc(${h} * (100% - ${l}))`}}))}const tx=N.memo(({label:n,onUpdate:e,step:t,innerLabelTrim:s})=>{const[r,i]=v.useState(!1),o=Co(({active:a,delta:[c],event:l,memo:u=0})=>(i(a),u+=c/2,Math.abs(u)>=1&&(e(h=>parseFloat(h)+Math.floor(u)*t*f0(l)),u=0),u));return N.createElement(Mb,Je({dragging:r,title:n.length>1?n:""},o()),n.slice(0,s))});function M0({label:n,id:e,displayValue:t,onUpdate:s,onChange:r,settings:i,innerLabelTrim:o=1}){const a=o>0&&N.createElement(tx,{label:n,step:i.step,onUpdate:s,innerLabelTrim:o});return N.createElement(Fb,{id:e,value:String(t),onUpdate:s,onChange:r,innerLabel:a})}function nx(){const n=yt(),{label:e,value:t,onUpdate:s,settings:r,id:i}=n,{min:o,max:a}=r,c=a!==1/0&&o!==-1/0;return N.createElement(sn,{input:!0},N.createElement(mn,null,e),N.createElement(Jb,{hasRange:c},c&&N.createElement(ex,Je({value:parseFloat(t),onDrag:s},r)),N.createElement(M0,Je({},n,{id:i,label:"value",innerLabelTrim:c?0:1}))))}const{sanitizeStep:sx}=_0,rx=De(_0,["sanitizeStep"]);var ix=de({component:nx},rx);const ox=(n,e)=>Ot().schema({options:Ot().passesAnyOf(Ot().object(),Ot().array())}).test(e),ax=(n,{values:e})=>{if(e.indexOf(n)<0)throw Error("Selected value doesn't match Select options");return n},cx=(n,{values:e})=>e.indexOf(n),lx=n=>{let{value:e,options:t}=n,s,r;return Array.isArray(t)?(r=t,s=t.map(i=>String(i))):(r=Object.values(t),s=Object.keys(t)),"value"in n?r.includes(e)||(s.unshift(String(e)),r.unshift(e)):e=r[0],Object.values(t).includes(e)||(t[String(e)]=e),{value:e,settings:{keys:s,values:r}}};var ux=Object.freeze({__proto__:null,schema:ox,sanitize:ax,format:cx,normalize:lx});const hx=ce("div",{$flexCenter:"",position:"relative","> svg":{pointerEvents:"none",position:"absolute",right:"$md"}}),Pl=ce("select",{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}),dx=ce("div",{display:"flex",alignItems:"center",width:"100%",height:"$rowHeight",backgroundColor:"$elevation3",borderRadius:"$sm",padding:"0 $sm",cursor:"pointer",[`${Pl}:focus + &`]:{$focusStyle:""},[`${Pl}:hover + &`]:{$hoverStyle:""}});function fx({displayValue:n,value:e,onUpdate:t,id:s,settings:r,disabled:i}){const{keys:o,values:a}=r,c=v.useRef();return e===a[n]&&(c.current=o[n]),N.createElement(hx,null,N.createElement(Pl,{id:s,value:n,onChange:l=>t(a[Number(l.currentTarget.value)]),disabled:i},o.map((l,u)=>N.createElement("option",{key:l,value:u},l))),N.createElement(dx,null,c.current),N.createElement($u,{toggled:!0}))}function px(){const{label:n,value:e,displayValue:t,onUpdate:s,id:r,disabled:i,settings:o}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(fx,{id:r,value:e,displayValue:t,onUpdate:s,settings:o,disabled:i}))}var mx=de({component:px},ux);const gx=n=>Ot().string().test(n),_x=n=>{if(typeof n!="string")throw Error("Invalid string");return n},yx=({value:n,editable:e=!0,rows:t=!1})=>({value:n,settings:{editable:e,rows:typeof t=="number"?t:t?5:0}});var vx=Object.freeze({__proto__:null,schema:gx,sanitize:_x,normalize:yx});const bx=["displayValue","onUpdate","onChange","editable"],xx=ce("div",{whiteSpace:"pre-wrap"});function wx(n){let{displayValue:e,onUpdate:t,onChange:s,editable:r=!0}=n,i=De(n,bx);return r?N.createElement(Nu,Je({value:e,onUpdate:t,onChange:s},i)):N.createElement(xx,null,e)}function kx(){const{label:n,settings:e,displayValue:t,onUpdate:s,onChange:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(wx,Je({displayValue:t,onUpdate:s,onChange:r},e)))}var Tx=de({component:kx},vx);const Ex=n=>Ot().boolean().test(n),Cx=n=>{if(typeof n!="boolean")throw Error("Invalid boolean");return n};var Sx=Object.freeze({__proto__:null,schema:Ex,sanitize:Cx});const Ox=ce("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 Ax({value:n,onUpdate:e,id:t,disabled:s}){return N.createElement(Ox,null,N.createElement("input",{id:t,type:"checkbox",checked:n,onChange:r=>e(r.currentTarget.checked),disabled:s}),N.createElement("label",{htmlFor:t},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"}))))}function Rx(){const{label:n,value:e,onUpdate:t,disabled:s,id:r}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Ax,{value:e,onUpdate:t,id:r,disabled:s}))}var Dx=de({component:Rx},Sx);const Px=["locked"];function Mx({value:n,id:e,valueKey:t,settings:s,onUpdate:r,innerLabelTrim:i}){const o=v.useRef(n[t]);o.current=n[t];const a=v.useCallback(l=>r({[t]:h0({type:"NUMBER",value:o.current,settings:s},l)}),[r,s,t]),c=O0({type:"NUMBER",value:n[t],settings:s,setValue:a});return N.createElement(M0,{id:e,label:t,value:n[t],displayValue:c.displayValue,onUpdate:c.onUpdate,onChange:c.onChange,settings:s,innerLabelTrim:i})}const Nx=ce("div",{display:"grid",columnGap:"$colGap",gridAutoFlow:"column dense",alignItems:"center",variants:{withLock:{true:{gridTemplateColumns:"10px auto","> svg":{cursor:"pointer"}}}}});function Ix(n){let{locked:e}=n,t=De(n,Px);return N.createElement("svg",Je({width:"10",height:"10",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),e?N.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"}):N.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 Fu({value:n,onUpdate:e,settings:t,innerLabelTrim:s}){const{id:r,setSettings:i}=yt(),{lock:o,locked:a}=t;return N.createElement(Nx,{withLock:o},o&&N.createElement(Ix,{locked:a,onClick:()=>i({locked:!a})}),Object.keys(n).map((c,l)=>N.createElement(Mx,{id:l===0?r:`${r}.${c}`,key:c,valueKey:c,value:n,settings:t[c],onUpdate:e,innerLabelTrim:s})))}const N0=(n,e)=>{const t={};let s=0,r=1/0;Object.entries(n).forEach(([i,o])=>{t[i]=m0(de({value:o},e[i])).settings,s=Math.max(s,t[i].step),r=Math.min(r,t[i].pad)});for(let i in t){const{step:o,min:a,max:c}=e[i]||{};!isFinite(o)&&(!isFinite(a)||!isFinite(c))&&(t[i].step=s,t[i].pad=r)}return t},$x=["lock"],Fx=["value"];function Lx(n){const e=Ot().array().length(n).every.number(),t=s=>{if(!s||typeof s!="object")return!1;const r=Object.values(s);return r.length===n&&r.every(i=>isFinite(i))};return s=>e.test(s)||t(s)}function jx(n){return Array.isArray(n)?"array":"object"}function Mi(n,e,t){return jx(n)===e?n:e==="array"?Object.values(n):gb(n,t)}const zx=(n,e,t)=>{const s=Mi(n,"object",e.keys);for(let o in s)s[o]=p0(s[o],e[o]);const r=Object.keys(s);let i={};if(r.length===e.keys.length)i=s;else{const o=Mi(t,"object",e.keys);if(r.length===1&&e.locked){const a=r[0],c=s[a],l=o[a],u=l!==0?c/l:1;for(let h in o)h===a?i[a]=c:i[h]=o[h]*u}else i=de(de({},o),s)}return Mi(i,e.format,e.keys)},Vx=(n,e)=>Mi(n,"object",e.keys),Ux=n=>!!n&&("step"in n||"min"in n||"max"in n);function Bx(n,e,t=[]){const{lock:s=!1}=e,r=De(e,$x),i=Array.isArray(n)?"array":"object",o=i==="object"?Object.keys(n):t,a=Mi(n,"object",o),c=Ux(r)?o.reduce((u,h)=>Object.assign(u,{[h]:r}),{}):r,l=N0(a,c);return{value:i==="array"?n:a,settings:de(de({},l),{},{format:i,keys:o,lock:s,locked:!1})}}function I0(n){return{schema:Lx(n.length),normalize:e=>{let{value:t}=e,s=De(e,Fx);return Bx(t,s,n)},format:(e,t)=>Vx(e,t),sanitize:(e,t,s)=>zx(e,t,s)}}var Wx={grad:.9,turn:360,rad:360/(2*Math.PI)},Fn=function(n){return typeof n=="string"?n.length>0:typeof n=="number"},lt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t+0},Zt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n>e?n:e},$0=function(n){return(n=isFinite(n)?n%360:0)>0?n:n+360},jd=function(n){return{r:Zt(n.r,0,255),g:Zt(n.g,0,255),b:Zt(n.b,0,255),a:Zt(n.a)}},tl=function(n){return{r:lt(n.r),g:lt(n.g),b:lt(n.b),a:lt(n.a,3)}},qx=/^#([0-9a-f]{3,8})$/i,Qo=function(n){var e=n.toString(16);return e.length<2?"0"+e:e},F0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:60*(a<0?a+6:a),s:i?o/i*100:0,v:i/255*100,a:r}},L0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:255*[s,a,o,o,c,s][l],g:255*[c,s,s,a,o,o][l],b:255*[o,o,c,s,s,a][l],a:r}},zd=function(n){return{h:$0(n.h),s:Zt(n.s,0,100),l:Zt(n.l,0,100),a:Zt(n.a)}},Vd=function(n){return{h:lt(n.h),s:lt(n.s),l:lt(n.l),a:lt(n.a,3)}},Ud=function(n){return L0((t=(e=n).s,{h:e.h,s:(t*=((s=e.l)<50?s:100-s)/100)>0?2*t/(s+t)*100:0,v:s+t,a:e.a}));var e,t,s},Ni=function(n){return{h:(e=F0(n)).h,s:(r=(200-(t=e.s))*(s=e.v)/100)>0&&r<200?t*s/100/(r<=100?r:200-r)*100:0,l:r/2,a:e.a};var e,t,s,r},Hx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Yx=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Gx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xx=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Ml={string:[[function(n){var e=qx.exec(n);return e?(n=e[1]).length<=4?{r:parseInt(n[0]+n[0],16),g:parseInt(n[1]+n[1],16),b:parseInt(n[2]+n[2],16),a:n.length===4?lt(parseInt(n[3]+n[3],16)/255,2):1}:n.length===6||n.length===8?{r:parseInt(n.substr(0,2),16),g:parseInt(n.substr(2,2),16),b:parseInt(n.substr(4,2),16),a:n.length===8?lt(parseInt(n.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(n){var e=Gx.exec(n)||Xx.exec(n);return e?e[2]!==e[4]||e[4]!==e[6]?null:jd({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:e[7]===void 0?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(n){var e=Hx.exec(n)||Yx.exec(n);if(!e)return null;var t,s,r=zd({h:(t=e[1],s=e[2],s===void 0&&(s="deg"),Number(t)*(Wx[s]||1)),s:Number(e[3]),l:Number(e[4]),a:e[5]===void 0?1:Number(e[5])/(e[6]?100:1)});return Ud(r)},"hsl"]],object:[[function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=r===void 0?1:r;return Fn(e)&&Fn(t)&&Fn(s)?jd({r:Number(e),g:Number(t),b:Number(s),a:Number(i)}):null},"rgb"],[function(n){var e=n.h,t=n.s,s=n.l,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=zd({h:Number(e),s:Number(t),l:Number(s),a:Number(i)});return Ud(o)},"hsl"],[function(n){var e=n.h,t=n.s,s=n.v,r=n.a,i=r===void 0?1:r;if(!Fn(e)||!Fn(t)||!Fn(s))return null;var o=function(a){return{h:$0(a.h),s:Zt(a.s,0,100),v:Zt(a.v,0,100),a:Zt(a.a)}}({h:Number(e),s:Number(t),v:Number(s),a:Number(i)});return L0(o)},"hsv"]]},Bd=function(n,e){for(var t=0;t=.5},n.prototype.toHex=function(){return e=tl(this.rgba),t=e.r,s=e.g,r=e.b,o=(i=e.a)<1?Qo(lt(255*i)):"","#"+Qo(t)+Qo(s)+Qo(r)+o;var e,t,s,r,i,o},n.prototype.toRgb=function(){return tl(this.rgba)},n.prototype.toRgbString=function(){return e=tl(this.rgba),t=e.r,s=e.g,r=e.b,(i=e.a)<1?"rgba("+t+", "+s+", "+r+", "+i+")":"rgb("+t+", "+s+", "+r+")";var e,t,s,r,i},n.prototype.toHsl=function(){return Vd(Ni(this.rgba))},n.prototype.toHslString=function(){return e=Vd(Ni(this.rgba)),t=e.h,s=e.s,r=e.l,(i=e.a)<1?"hsla("+t+", "+s+"%, "+r+"%, "+i+")":"hsl("+t+", "+s+"%, "+r+"%)";var e,t,s,r,i},n.prototype.toHsv=function(){return e=F0(this.rgba),{h:lt(e.h),s:lt(e.s),v:lt(e.v),a:lt(e.a,3)};var e},n.prototype.invert=function(){return bt({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},n.prototype.saturate=function(e){return e===void 0&&(e=.1),bt(nl(this.rgba,e))},n.prototype.desaturate=function(e){return e===void 0&&(e=.1),bt(nl(this.rgba,-e))},n.prototype.grayscale=function(){return bt(nl(this.rgba,-1))},n.prototype.lighten=function(e){return e===void 0&&(e=.1),bt(Wd(this.rgba,e))},n.prototype.darken=function(e){return e===void 0&&(e=.1),bt(Wd(this.rgba,-e))},n.prototype.rotate=function(e){return e===void 0&&(e=15),this.hue(this.hue()+e)},n.prototype.alpha=function(e){return typeof e=="number"?bt({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):lt(this.rgba.a,3);var t},n.prototype.hue=function(e){var t=Ni(this.rgba);return typeof e=="number"?bt({h:e,s:t.s,l:t.l,a:t.a}):lt(t.h)},n.prototype.isEqual=function(e){return this.toHex()===bt(e).toHex()},n}(),bt=function(n){return n instanceof Nl?n:new Nl(n)},qd=[],Kx=function(n){n.forEach(function(e){qd.indexOf(e)<0&&(e(Nl,Ml),qd.push(e))})};function Qx(n,e){var t={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"},s={};for(var r in t)s[t[r]]=r;var i={};n.prototype.toName=function(o){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,l=s[this.toHex()];if(l)return l;if(o!=null&&o.closest){var u=this.toRgb(),h=1/0,d="black";if(!i.length)for(var f in t)i[f]=new n(t[f]).toRgb();for(var m in t){var p=(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));p=0||(r[t]=n[t]);return r}function Il(n){var e=v.useRef(n),t=v.useRef(function(s){e.current&&e.current(s)});return e.current=n,t.current}var zr=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=1),n>t?t:n0:g.buttons>0)&&r.current?i(Hd(r.current,g,a.current)):p(!1)},m=function(){return p(!1)};function p(g){var _=c.current,T=$l(r.current),w=g?T.addEventListener:T.removeEventListener;w(_?"touchmove":"mousemove",f),w(_?"touchend":"mouseup",m)}return[function(g){var _=g.nativeEvent,T=r.current;if(T&&(Yd(_),!function(b,y){return y&&!Ii(b)}(_,c.current)&&T)){if(Ii(_)){c.current=!0;var w=_.changedTouches||[];w.length&&(a.current=w[0].identifier)}T.focus(),i(Hd(T,_,a.current)),p(!0)}},function(g){var _=g.which||g.keyCode;_<37||_>40||(g.preventDefault(),o({left:_===39?.05:_===37?-.05:0,top:_===40?.05:_===38?-.05:0}))},p]},[o,i]),u=l[0],h=l[1],d=l[2];return v.useEffect(function(){return d},[d]),N.createElement("div",si({},s,{onTouchStart:u,onMouseDown:u,className:"react-colorful__interactive",ref:r,onKeyDown:h,tabIndex:0,role:"slider"}))}),So=function(n){return n.filter(Boolean).join(" ")},zu=function(n){var e=n.color,t=n.left,s=n.top,r=s===void 0?.5:s,i=So(["react-colorful__pointer",n.className]);return N.createElement("div",{className:i,style:{top:100*r+"%",left:100*t+"%"}},N.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:e}}))},kt=function(n,e,t){return e===void 0&&(e=0),t===void 0&&(t=Math.pow(10,e)),Math.round(t*n)/t},z0=function(n){var e=n.s,t=n.v,s=n.a,r=(200-e)*t/100;return{h:kt(n.h),s:kt(r>0&&r<200?e*t/100/(r<=100?r:200-r)*100:0),l:kt(r/2),a:kt(s,2)}},Fl=function(n){var e=z0(n);return"hsl("+e.h+", "+e.s+"%, "+e.l+"%)"},rl=function(n){var e=z0(n);return"hsla("+e.h+", "+e.s+"%, "+e.l+"%, "+e.a+")"},V0=function(n){var e=n.h,t=n.s,s=n.v,r=n.a;e=e/360*6,t/=100,s/=100;var i=Math.floor(e),o=s*(1-t),a=s*(1-(e-i)*t),c=s*(1-(1-e+i)*t),l=i%6;return{r:kt(255*[s,a,o,o,c,s][l]),g:kt(255*[c,s,s,a,o,o][l]),b:kt(255*[o,o,c,s,s,a][l]),a:kt(r,2)}},U0=function(n){var e=n.r,t=n.g,s=n.b,r=n.a,i=Math.max(e,t,s),o=i-Math.min(e,t,s),a=o?i===e?(t-s)/o:i===t?2+(s-e)/o:4+(e-t)/o:0;return{h:kt(60*(a<0?a+6:a)),s:kt(i?o/i*100:0),v:kt(i/255*100),a:r}},B0=N.memo(function(n){var e=n.hue,t=n.onChange,s=So(["react-colorful__hue",n.className]);return N.createElement("div",{className:s},N.createElement(ju,{onMove:function(r){t({h:360*r.left})},onKey:function(r){t({h:zr(e+360*r.left,0,360)})},"aria-label":"Hue","aria-valuenow":kt(e),"aria-valuemax":"360","aria-valuemin":"0"},N.createElement(zu,{className:"react-colorful__hue-pointer",left:e/360,color:Fl({h:e,s:100,v:100,a:1})})))}),W0=N.memo(function(n){var e=n.hsva,t=n.onChange,s={backgroundColor:Fl({h:e.h,s:100,v:100,a:1})};return N.createElement("div",{className:"react-colorful__saturation",style:s},N.createElement(ju,{onMove:function(r){t({s:100*r.left,v:100-100*r.top})},onKey:function(r){t({s:zr(e.s+100*r.left,0,100),v:zr(e.v-100*r.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+kt(e.s)+"%, Brightness "+kt(e.v)+"%"},N.createElement(zu,{className:"react-colorful__saturation-pointer",top:1-e.v/100,left:e.s/100,color:Fl(e)})))}),Vu=function(n,e){if(n===e)return!0;for(var t in n)if(n[t]!==e[t])return!1;return!0};function q0(n,e,t){var s=Il(t),r=v.useState(function(){return n.toHsva(e)}),i=r[0],o=r[1],a=v.useRef({color:e,hsva:i});v.useEffect(function(){if(!n.equal(e,a.current.color)){var l=n.toHsva(e);a.current={hsva:l,color:e},o(l)}},[e,n]),v.useEffect(function(){var l;Vu(i,a.current.hsva)||n.equal(l=n.fromHsva(i),a.current.color)||(a.current={hsva:i,color:l},s(l))},[i,n,s]);var c=v.useCallback(function(l){o(function(u){return Object.assign({},u,l)})},[]);return[i,c]}var Jx=typeof window<"u"?v.useLayoutEffect:v.useEffect,ew=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},Gd=new Map,H0=function(n){Jx(function(){var e=n.current?n.current.ownerDocument:document;if(e!==void 0&&!Gd.has(e)){var t=e.createElement("style");t.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}`,Gd.set(e,t);var s=ew();s&&t.setAttribute("nonce",s),e.head.appendChild(t)}},[])},tw=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Lu(n,["className","colorModel","color","onChange"]),a=v.useRef(null);H0(a);var c=q0(t,r,i),l=c[0],u=c[1],h=So(["react-colorful",e]);return N.createElement("div",si({},o,{ref:a,className:h}),N.createElement(W0,{hsva:l,onChange:u}),N.createElement(B0,{hue:l.h,onChange:u,className:"react-colorful__last-control"}))},nw=function(n){var e=n.className,t=n.hsva,s=n.onChange,r={backgroundImage:"linear-gradient(90deg, "+rl(Object.assign({},t,{a:0}))+", "+rl(Object.assign({},t,{a:1}))+")"},i=So(["react-colorful__alpha",e]),o=kt(100*t.a);return N.createElement("div",{className:i},N.createElement("div",{className:"react-colorful__alpha-gradient",style:r}),N.createElement(ju,{onMove:function(a){s({a:a.left})},onKey:function(a){s({a:zr(t.a+a.left)})},"aria-label":"Alpha","aria-valuetext":o+"%","aria-valuenow":o,"aria-valuemin":"0","aria-valuemax":"100"},N.createElement(zu,{className:"react-colorful__alpha-pointer",left:t.a,color:rl(t)})))},sw=function(n){var e=n.className,t=n.colorModel,s=n.color,r=s===void 0?t.defaultColor:s,i=n.onChange,o=Lu(n,["className","colorModel","color","onChange"]),a=v.useRef(null);H0(a);var c=q0(t,r,i),l=c[0],u=c[1],h=So(["react-colorful",e]);return N.createElement("div",si({},o,{ref:a,className:h}),N.createElement(W0,{hsva:l,onChange:u}),N.createElement(B0,{hue:l.h,onChange:u}),N.createElement(nw,{hsva:l,onChange:u,className:"react-colorful__last-control"}))},rw={defaultColor:{r:0,g:0,b:0,a:1},toHsva:U0,fromHsva:V0,equal:Vu},iw=function(n){return N.createElement(sw,si({},n,{colorModel:rw}))},ow={defaultColor:{r:0,g:0,b:0},toHsva:function(n){return U0({r:n.r,g:n.g,b:n.b,a:1})},fromHsva:function(n){return{r:(e=V0(n)).r,g:e.g,b:e.b};var e},equal:Vu},aw=function(n){return N.createElement(tw,si({},n,{colorModel:ow}))};function gn(n,e,t,s){var r=arguments.length,i=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(n,e,t,s);else for(var a=n.length-1;a>=0;a--)(o=n[a])&&(i=(r<3?o(i):r>3?o(e,t,i):o(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}function $e(n,e,t,s){function r(i){return i instanceof t?i:new t(function(o){o(i)})}return new(t||(t=Promise))(function(i,o){function a(u){try{l(s.next(u))}catch(h){o(h)}}function c(u){try{l(s.throw(u))}catch(h){o(h)}}function l(u){u.done?i(u.value):r(u.value).then(a,c)}l((s=s.apply(n,e||[])).next())})}function ri(n,e){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},s,r,i,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(l){return function(u){return c([l,u])}}function c(l){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(s=1,r&&(i=l[0]&2?r.return:l[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;switch(r=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,r=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]0)&&!(r=s.next()).done;)i.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(t=s.return)&&t.call(s)}finally{if(o)throw o.error}}return i}function lw(){for(var n=[],e=0;e0?s:n.name,writable:!1,configurable:!1,enumerable:!0})}return t}function hw(n){var e=n.name,t=e&&e.lastIndexOf(".")!==-1;if(t&&!n.type){var s=e.split(".").pop().toLowerCase(),r=uw.get(s);r&&Object.defineProperty(n,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return n}var dw=[".DS_Store","Thumbs.db"];function fw(n){return $e(this,void 0,void 0,function(){return ri(this,function(e){return Oa(n)&&pw(n)?[2,yw(n.dataTransfer,n.type)]:mw(n)?[2,gw(n)]:Array.isArray(n)&&n.every(function(t){return"getFile"in t&&typeof t.getFile=="function"})?[2,_w(n)]:[2,[]]})})}function pw(n){return Oa(n.dataTransfer)}function mw(n){return Oa(n)&&Oa(n.target)}function Oa(n){return typeof n=="object"&&n!==null}function gw(n){return Ll(n.target.files).map(function(e){return Oo(e)})}function _w(n){return $e(this,void 0,void 0,function(){var e;return ri(this,function(t){switch(t.label){case 0:return[4,Promise.all(n.map(function(s){return s.getFile()}))];case 1:return e=t.sent(),[2,e.map(function(s){return Oo(s)})]}})})}function yw(n,e){return $e(this,void 0,void 0,function(){var t,s;return ri(this,function(r){switch(r.label){case 0:return n===null?[2,[]]:n.items?(t=Ll(n.items).filter(function(i){return i.kind==="file"}),e!=="drop"?[2,t]:[4,Promise.all(t.map(vw))]):[3,2];case 1:return s=r.sent(),[2,Xd(Y0(s))];case 2:return[2,Xd(Ll(n.files).map(function(i){return Oo(i)}))]}})})}function Xd(n){return n.filter(function(e){return dw.indexOf(e.name)===-1})}function Ll(n){if(n===null)return[];for(var e=[],t=0;tn.length)&&(e=n.length);for(var t=0,s=new Array(e);tt)return[!1,tf(t)];if(n.sizet)return[!1,tf(t)]}return[!0,null]}function Ti(n){return n!=null}function Mw(n){var e=n.files,t=n.accept,s=n.minSize,r=n.maxSize,i=n.multiple,o=n.maxFiles;return!i&&e.length>1||i&&o>=1&&e.length>o?!1:e.every(function(a){var c=Z0(a,t),l=Jd(c,1),u=l[0],h=K0(a,s,r),d=Jd(h,1),f=d[0];return u&&f})}function Aa(n){return typeof n.isPropagationStopped=="function"?n.isPropagationStopped():typeof n.cancelBubble<"u"?n.cancelBubble:!1}function Jo(n){return n.dataTransfer?Array.prototype.some.call(n.dataTransfer.types,function(e){return e==="Files"||e==="application/x-moz-file"}):!!n.target&&!!n.target.files}function sf(n){n.preventDefault()}function Nw(n){return n.indexOf("MSIE")!==-1||n.indexOf("Trident/")!==-1}function Iw(n){return n.indexOf("Edge/")!==-1}function $w(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return Nw(n)||Iw(n)}function wn(){for(var n=arguments.length,e=new Array(n),t=0;t1?r-1:0),o=1;on.length)&&(e=n.length);for(var t=0,s=new Array(e);t=0)&&Object.prototype.propertyIsEnumerable.call(n,s)&&(t[s]=n[s])}return t}function Qw(n,e){if(n==null)return{};var t={},s=Object.keys(n),r,i;for(i=0;i=0)&&(t[r]=n[r]);return t}var Uu=v.forwardRef(function(n,e){var t=n.children,s=Ra(n,Vw),r=em(s),i=r.open,o=Ra(r,Uw);return v.useImperativeHandle(e,function(){return{open:i}},[i]),N.createElement(v.Fragment,null,t(qe(qe({},o),{},{open:i})))});Uu.displayName="Dropzone";var J0={disabled:!1,getFilesFromEvent:fw,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};Uu.defaultProps=J0;Uu.propTypes={children:Ee.func,accept:Ee.oneOfType([Ee.string,Ee.arrayOf(Ee.string)]),multiple:Ee.bool,preventDropOnDocument:Ee.bool,noClick:Ee.bool,noKeyboard:Ee.bool,noDrag:Ee.bool,noDragEventsBubbling:Ee.bool,minSize:Ee.number,maxSize:Ee.number,maxFiles:Ee.number,disabled:Ee.bool,getFilesFromEvent:Ee.func,onFileDialogCancel:Ee.func,onFileDialogOpen:Ee.func,useFsAccessApi:Ee.bool,onDragEnter:Ee.func,onDragLeave:Ee.func,onDragOver:Ee.func,onDrop:Ee.func,onDropAccepted:Ee.func,onDropRejected:Ee.func,validator:Ee.func};var Vl={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function em(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=qe(qe({},J0),n),t=e.accept,s=e.disabled,r=e.getFilesFromEvent,i=e.maxSize,o=e.minSize,a=e.multiple,c=e.maxFiles,l=e.onDragEnter,u=e.onDragLeave,h=e.onDragOver,d=e.onDrop,f=e.onDropAccepted,m=e.onDropRejected,p=e.onFileDialogCancel,g=e.onFileDialogOpen,_=e.useFsAccessApi,T=e.preventDropOnDocument,w=e.noClick,b=e.noKeyboard,y=e.noDrag,x=e.noDragEventsBubbling,E=e.validator,k=v.useMemo(function(){return typeof g=="function"?g:of},[g]),C=v.useMemo(function(){return typeof p=="function"?p:of},[p]),S=v.useRef(null),R=v.useRef(null),O=v.useReducer(Jw,Vl),L=il(O,2),z=L[0],W=L[1],B=z.isFocused,V=z.isFileDialogActive,U=z.draggedFiles,X=v.useRef(typeof window<"u"&&window.isSecureContext&&_&&Fw()),K=function(){!X.current&&V&&setTimeout(function(){if(R.current){var fe=R.current.files;fe.length||(W({type:"closeDialog"}),C())}},300)};v.useEffect(function(){return window.addEventListener("focus",K,!1),function(){window.removeEventListener("focus",K,!1)}},[R,V,C,X]);var J=v.useRef([]),F=function(fe){S.current&&S.current.contains(fe.target)||(fe.preventDefault(),J.current=[])};v.useEffect(function(){return T&&(document.addEventListener("dragover",sf,!1),document.addEventListener("drop",F,!1)),function(){T&&(document.removeEventListener("dragover",sf),document.removeEventListener("drop",F))}},[S,T]);var j=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee),J.current=[].concat(qw(J.current),[ee.target]),Jo(ee)&&Promise.resolve(r(ee)).then(function(fe){Aa(ee)&&!x||(W({draggedFiles:fe,isDragActive:!0,type:"setDraggedFiles"}),l&&l(ee))})},[r,l,x]),A=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee);var fe=Jo(ee);if(fe&&ee.dataTransfer)try{ee.dataTransfer.dropEffect="copy"}catch{}return fe&&h&&h(ee),!1},[h,x]),I=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee);var fe=J.current.filter(function(at){return S.current&&S.current.contains(at)}),tt=fe.indexOf(ee.target);tt!==-1&&fe.splice(tt,1),J.current=fe,!(fe.length>0)&&(W({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Jo(ee)&&u&&u(ee))},[S,u,x]),Y=v.useCallback(function(ee,fe){var tt=[],at=[];ee.forEach(function(Ft){var os=Z0(Ft,t),dr=il(os,2),$c=dr[0],Fc=dr[1],Lc=K0(Ft,o,i),jo=il(Lc,2),jc=jo[0],zc=jo[1],Vc=E?E(Ft):null;if($c&&jc&&!Vc)tt.push(Ft);else{var Uc=[Fc,zc];Vc&&(Uc=Uc.concat(Vc)),at.push({file:Ft,errors:Uc.filter(function(U_){return U_})})}}),(!a&&tt.length>1||a&&c>=1&&tt.length>c)&&(tt.forEach(function(Ft){at.push({file:Ft,errors:[Pw]})}),tt.splice(0)),W({acceptedFiles:tt,fileRejections:at,type:"setFiles"}),d&&d(tt,at,fe),at.length>0&&m&&m(at,fe),tt.length>0&&f&&f(tt,fe)},[W,a,t,o,i,c,d,f,m,E]),$=v.useCallback(function(ee){ee.preventDefault(),ee.persist(),M(ee),J.current=[],Jo(ee)&&Promise.resolve(r(ee)).then(function(fe){Aa(ee)&&!x||Y(fe,ee)}),W({type:"reset"})},[r,Y,x]),q=v.useCallback(function(){if(X.current){W({type:"openDialog"}),k();var ee={multiple:a,types:Lw(t)};window.showOpenFilePicker(ee).then(function(fe){return r(fe)}).then(function(fe){Y(fe,null),W({type:"closeDialog"})}).catch(function(fe){jw(fe)?(C(fe),W({type:"closeDialog"})):zw(fe)&&(X.current=!1,R.current&&(R.current.value=null,R.current.click()))});return}R.current&&(W({type:"openDialog"}),k(),R.current.value=null,R.current.click())},[W,k,C,_,Y,t,a]),ae=v.useCallback(function(ee){!S.current||!S.current.isEqualNode(ee.target)||(ee.key===" "||ee.key==="Enter"||ee.keyCode===32||ee.keyCode===13)&&(ee.preventDefault(),q())},[S,q]),re=v.useCallback(function(){W({type:"focus"})},[]),ie=v.useCallback(function(){W({type:"blur"})},[]),ne=v.useCallback(function(){w||($w()?setTimeout(q,0):q())},[w,q]),ge=function(fe){return s?null:fe},te=function(fe){return b?null:ge(fe)},H=function(fe){return y?null:ge(fe)},M=function(fe){x&&fe.stopPropagation()},D=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.role,Ft=ee.onKeyDown,os=ee.onFocus,dr=ee.onBlur,$c=ee.onClick,Fc=ee.onDragEnter,Lc=ee.onDragOver,jo=ee.onDragLeave,jc=ee.onDrop,zc=Ra(ee,Bw);return qe(qe(zl({onKeyDown:te(wn(Ft,ae)),onFocus:te(wn(os,re)),onBlur:te(wn(dr,ie)),onClick:ge(wn($c,ne)),onDragEnter:H(wn(Fc,j)),onDragOver:H(wn(Lc,A)),onDragLeave:H(wn(jo,I)),onDrop:H(wn(jc,$)),role:typeof at=="string"&&at!==""?at:"button"},tt,S),!s&&!b?{tabIndex:0}:{}),zc)}},[S,ae,re,ie,ne,j,A,I,$,b,y,s]),Q=v.useCallback(function(ee){ee.stopPropagation()},[]),se=v.useMemo(function(){return function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},fe=ee.refKey,tt=fe===void 0?"ref":fe,at=ee.onChange,Ft=ee.onClick,os=Ra(ee,Ww),dr=zl({accept:t,multiple:a,type:"file",style:{display:"none"},onChange:ge(wn(at,$)),onClick:ge(wn(Ft,Q)),tabIndex:-1},tt,R);return qe(qe({},dr),os)}},[R,t,a,$,s]),le=U.length,be=le>0&&Mw({files:U,accept:t,minSize:o,maxSize:i,multiple:a,maxFiles:c}),et=le>0&&!be;return qe(qe({},z),{},{isDragAccept:be,isDragReject:et,isFocused:B&&!s,getRootProps:D,getInputProps:se,rootRef:S,inputRef:R,open:ge(q)})}function Jw(n,e){switch(e.type){case"focus":return qe(qe({},n),{},{isFocused:!0});case"blur":return qe(qe({},n),{},{isFocused:!1});case"openDialog":return qe(qe({},Vl),{},{isFileDialogActive:!0});case"closeDialog":return qe(qe({},n),{},{isFileDialogActive:!1});case"setDraggedFiles":var t=e.isDragActive,s=e.draggedFiles;return qe(qe({},n),{},{draggedFiles:s,isDragActive:t});case"setFiles":return qe(qe({},n),{},{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return qe({},Vl);default:return n}}function of(){}function ek(n){let e;const t=new Set,s=(l,u)=>{const h=typeof l=="function"?l(e):l;if(h!==e){const d=e;e=u?h:Object.assign({},e,h),t.forEach(f=>f(e,d))}},r=()=>e,i=(l,u=r,h=Object.is)=>{console.warn("[DEPRECATED] Please use `subscribeWithSelector` middleware");let d=u(e);function f(){const m=u(e);if(!h(d,m)){const p=d;l(d=m,p)}}return t.add(f),()=>t.delete(f)},c={setState:s,getState:r,subscribe:(l,u,h)=>u||h?i(l,u,h):(t.add(l),()=>t.delete(l)),destroy:()=>t.clear()};return e=n(s,r,c),c}const tk=typeof window>"u"||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),af=tk?v.useEffect:v.useLayoutEffect;function nk(n){const e=typeof n=="function"?ek(n):n,t=(s=e.getState,r=Object.is)=>{const[,i]=v.useReducer(g=>g+1,0),o=e.getState(),a=v.useRef(o),c=v.useRef(s),l=v.useRef(r),u=v.useRef(!1),h=v.useRef();h.current===void 0&&(h.current=s(o));let d,f=!1;(a.current!==o||c.current!==s||l.current!==r||u.current)&&(d=s(o),f=!r(h.current,d)),af(()=>{f&&(h.current=d),a.current=o,c.current=s,l.current=r,u.current=!1});const m=v.useRef(o);af(()=>{const g=()=>{try{const T=e.getState(),w=c.current(T);l.current(h.current,w)||(a.current=T,h.current=w,i())}catch{u.current=!0,i()}},_=e.subscribe(g);return e.getState()!==m.current&&g(),_},[]);const p=f?d:h.current;return v.useDebugValue(p),p};return Object.assign(t,e),t[Symbol.iterator]=function(){console.warn("[useStore, api] = create() is deprecated and will be removed in v4");const s=[t,e];return{next(){const r=s.length<=0;return{value:s.shift(),done:r}}}},t}const sk=n=>(e,t,s)=>{const r=s.subscribe;return s.subscribe=(o,a,c)=>{let l=o;if(a){const u=(c==null?void 0:c.equalityFn)||Object.is;let h=o(s.getState());l=d=>{const f=o(d);if(!u(h,f)){const m=h;a(h=f,m)}},c!=null&&c.fireImmediately&&a(h,h)}return r(l)},n(e,t,s)};/*! * isobject * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var sk=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*! + */var rk=function(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1};/*! * is-plain-object * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var rk=sk;function af(n){return rk(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}var em=function(e){var t,s;return!(af(e)===!1||(t=e.constructor,typeof t!="function")||(s=t.prototype,af(s)===!1)||s.hasOwnProperty("isPrototypeOf")===!1)};/*! + */var ik=rk;function cf(n){return ik(n)===!0&&Object.prototype.toString.call(n)==="[object Object]"}var tm=function(e){var t,s;return!(cf(e)===!1||(t=e.constructor,typeof t!="function")||(s=t.prototype,cf(s)===!1)||s.hasOwnProperty("isPrototypeOf")===!1)};/*! * is-extendable * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var ik=em,Bu=function(e){return ik(e)||typeof e=="function"||Array.isArray(e)};/*! + */var ok=tm,Bu=function(e){return ok(e)||typeof e=="function"||Array.isArray(e)};/*! * for-in * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. - */var ok=function(e,t,s){for(var r in e)if(t.call(s,e[r],r,e)===!1)break},ak=Bu,ck=ok;function tm(n,e){for(var t=arguments.length,s=0;++s * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. - */var dk=function(n,e,t,s,r){if(!fk(n)||!e)return n;if(e=ea(e),t&&(e+="."+ea(t)),s&&(e+="."+ea(s)),r&&(e+="."+ea(r)),e in n)return n[e];for(var i=e.split("."),o=i.length,a=-1;n&&++a * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var pk=function(n,e){if(n===null||typeof n>"u")throw new TypeError("expected first argument to be an object.");if(typeof e>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return n;for(var t=Object.prototype.propertyIsEnumerable,s=Object(n),r=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");cf(n)||(n={});for(var e=1;e"u")throw new TypeError("expected first argument to be an object.");if(typeof e>"u"||typeof Symbol>"u"||typeof Object.getOwnPropertySymbols!="function")return n;for(var t=Object.prototype.propertyIsEnumerable,s=Object(n),r=arguments.length,i=0;++i"u")throw new TypeError("Cannot convert undefined or null to object");lf(n)||(n={});for(var e=1;e * * Copyright (c) 2015-2017, Jon Schlinkert. * Released under the MIT License. - */var wk=_k,kk=function(n,e,t){if(typeof n!="string")throw new TypeError("expected a string");typeof e=="function"&&(t=e,e=null),typeof e=="string"&&(e={sep:e});var s=wk({sep:"."},e),r=s.quotes||['"',"'","`"],i;s.brackets===!0?i={"<":">","(":")","[":"]","{":"}"}:s.brackets&&(i=s.brackets);var o=[],a=[],c=[""],l=s.sep,u=n.length,h=-1,d;function f(){if(i&&a.length)return i[a[a.length-1]]}for(;++h","(":")","[":"]","{":"}"}:s.brackets&&(i=s.brackets);var o=[],a=[],c=[""],l=s.sep,u=n.length,h=-1,d;function f(){if(i&&a.length)return i[a[a.length-1]]}for(;++h * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var Ck=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")},lf=Ck,Sk=function(e){lf(e)||(e={});for(var t=arguments.length,s=1;s * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. - */var Rk=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")};/*! + */var Dk=function(e){return typeof e<"u"&&e!==null&&(typeof e=="object"||typeof e=="function")};/*! * set-value * * Copyright (c) 2014-2015, 2017, Jon Schlinkert. * Released under the MIT License. - */var Dk=kk,Pk=Sk,uf=em,hf=Rk,Mk=function(n,e,t){if(!hf(n)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return n;for(var s=Dk(e,{sep:".",brackets:!0}).filter(Nk),r=s.length,i=-1,o=n;++in.filter(Boolean).join(".");function Lk(n){const e=n.split(".");return[e.pop(),e.join(".")||void 0]}function jk(n,e){return Object.entries(fb(n,e)).reduce((t,[,{value:s,disabled:r,key:i}])=>(t[i]=r?void 0:s,t),{})}function zk(n,e){const t=b.useRef();return(e?Wi:To)(n,t.current)||(t.current=n),t.current}function nm(n,e){return b.useMemo(n,zk(e,!0))}function Vk(n){const e=b.useRef(null),t=b.useRef(null),s=b.useRef(!0);return b.useLayoutEffect(()=>{n||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),b.useEffect(()=>{if(s.current){s.current=!1;return}let r;const i=e.current,o=()=>{n&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),t.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",o,{once:!0});const{height:a}=t.current.getBoundingClientRect();return i.style.height=a+"px",n||(i.style.overflow="hidden",r=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",o),clearTimeout(r)}},[n]),{wrapperRef:e,contentRef:t}}const Uk=n=>{const[e,t]=b.useState(n.getVisiblePaths());return b.useEffect(()=>{t(n.getVisiblePaths());const s=n.useStore.subscribe(n.getVisiblePaths,t,{equalityFn:To});return()=>s()},[n]),e};function Bk(n,e,t){return n.useStore(r=>{const i=de(de({},t),r.data);return jk(i,e)},To)}function sm(n=3){const e=b.useRef(null),t=b.useRef(null),[s,r]=b.useState(!1),i=b.useCallback(()=>r(!0),[]),o=b.useCallback(()=>r(!1),[]);return b.useLayoutEffect(()=>{if(s){const{bottom:a,top:c,left:l}=e.current.getBoundingClientRect(),{height:u}=t.current.getBoundingClientRect(),h=a+u>window.innerHeight-40?"up":"down";t.current.style.position="fixed",t.current.style.zIndex="10000",t.current.style.left=l+"px",h==="down"?t.current.style.top=a+n+"px":t.current.style.bottom=window.innerHeight-c+n+"px"}},[n,s]),{popinRef:e,wrapperRef:t,shown:s,show:i,hide:o}}Zx([Kx]);const Wk={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Ot.extend({color:()=>n=>bt(n).isValid()});const qk=n=>Ot().color().test(n);function rm(n,{format:e,hasAlpha:t,isString:s}){const r=Wk[e]+(s&&e!=="hex"?"String":""),i=n[r]();return typeof i=="object"&&!t?pb(i,["a"]):i}const im=(n,e)=>{const t=bt(n);if(!t.isValid())throw Error("Invalid color");return rm(t,e)},Hk=(n,e)=>rm(bt(n),de(de({},e),{},{isString:!0,format:"hex"})),Yk=({value:n})=>{const e=Xx(n),t=e==="name"?"hex":e,s=typeof n=="object"?"a"in n:e==="hex"&&n.length===8||/^(rgba)|(hsla)|(hsva)/.test(n),r={format:t,hasAlpha:s,isString:typeof n=="string"};return{value:im(n,r),settings:r}};var Gk=Object.freeze({__proto__:null,schema:qk,sanitize:im,format:Hk,normalize:Yk});const Xk=ce("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Zk=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Kk=ce("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function pf(n,e){return e!=="rgb"?bt(n).toRgb():n}function Qk({value:n,displayValue:e,settings:t,onUpdate:s}){const{emitOnEditStart:r,emitOnEditEnd:i}=yt(),{format:o,hasAlpha:a}=t,{popinRef:c,wrapperRef:l,shown:u,show:h,hide:d}=sm(),f=b.useRef(0),[g,p]=b.useState(()=>pf(n,o)),m=a?rw:ow,_=()=>{p(pf(n,o)),h(),r()},T=()=>{d(),i(),window.clearTimeout(f.current)},w=()=>{f.current=window.setTimeout(T,500)};return b.useEffect(()=>()=>window.clearTimeout(f.current),[]),N.createElement(N.Fragment,null,N.createElement(Xk,{ref:c,active:u,onClick:()=>_(),style:{color:e}}),u&&N.createElement(Iu,null,N.createElement(C0,{onPointerUp:T}),N.createElement(Kk,{ref:l,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:y=>y.buttons===0&&w()},N.createElement(m,{color:g,onChange:s}))))}function Jk(){const{value:n,displayValue:e,label:t,onChange:s,onUpdate:r,settings:i}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,t),N.createElement(Zk,null,N.createElement(Qk,{value:n,displayValue:e,onChange:s,onUpdate:r,settings:i}),N.createElement(Nu,{value:e,onChange:s,onUpdate:r})))}var eT=de({component:Jk},Gk);function tT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Fu,{value:e,settings:s,onUpdate:t}))}var nT=de({component:tT},N0(["x","y","z"]));const sT=ce("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),rT=ce("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function iT({value:n,settings:e,onUpdate:t}){const s=b.useRef(),r=b.useRef(0),i=b.useRef(0),o=b.useRef(1),[a,c]=b.useState(!1),[l,u]=b.useState(!1),[h,d]=O0(),f=b.useRef(null),g=b.useRef(null);b.useLayoutEffect(()=>{if(a){const{top:O,left:L,width:z,height:W}=f.current.getBoundingClientRect();g.current.style.left=L+z/2+"px",g.current.style.top=O+W/2+"px"}},[a]);const{keys:[p,m],joystick:_}=e,T=_==="invertY"?1:-1,{[p]:{step:w},[m]:{step:y}}=e,v=Wn("sizes","joystickWidth"),k=Wn("sizes","joystickHeight"),E=parseFloat(v)*.8/2,x=parseFloat(k)*.8/2,C=b.useCallback(()=>{s.current||(u(!0),r.current&&d({x:r.current*E}),i.current&&d({y:i.current*-x}),s.current=window.setInterval(()=>{t(O=>{const L=w*r.current*o.current,z=T*y*i.current*o.current;return Array.isArray(O)?{[p]:O[0]+L,[m]:O[1]+z}:{[p]:O[p]+L,[m]:O[m]+z}})},16))},[E,x,t,d,w,y,p,m,T]),S=b.useCallback(()=>{window.clearTimeout(s.current),s.current=void 0,u(!1)},[]);b.useEffect(()=>{function O(L){o.current=d0(L)}return window.addEventListener("keydown",O),window.addEventListener("keyup",O),()=>{window.clearTimeout(s.current),window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}},[]);const R=Co(({first:O,active:L,delta:[z,W],movement:[B,V]})=>{O&&c(!0);const U=xs(B,-E,E),X=xs(V,-x,x);r.current=Math.abs(B)>Math.abs(U)?Math.sign(B-U):0,i.current=Math.abs(V)>Math.abs(X)?Math.sign(X-V):0;let K=n[p],Q=n[m];L?(r.current||(K+=z*w*o.current,d({x:U})),i.current||(Q-=T*W*y*o.current,d({y:X})),r.current||i.current?C():S(),t({[p]:K,[m]:Q})):(c(!1),r.current=0,i.current=0,d({x:0,y:0}),S())});return N.createElement(sT,Je({ref:f},R()),a&&N.createElement(Iu,null,N.createElement(rT,{ref:g,isOutOfBounds:l},N.createElement("div",null),N.createElement("span",{ref:h}))))}const oT=ce("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function aT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(oT,{withJoystick:!!s.joystick},s.joystick&&N.createElement(iT,{value:e,settings:s,onUpdate:t}),N.createElement(Fu,{value:e,settings:s,onUpdate:t})))}const cT=["joystick"],om=N0(["x","y"]),lT=n=>{let{joystick:e=!0}=n,t=De(n,cT);const{value:s,settings:r}=om.normalize(t);return{value:s,settings:de(de({},r),{},{joystick:e})}};var uT=de(de({component:aT},om),{},{normalize:lT});const hT=n=>{if(n!==void 0){if(n instanceof File)try{return URL.createObjectURL(n)}catch{return}if(typeof n=="string"&&n.indexOf("blob:")===0)return n;throw Error("Invalid image format [undefined | blob | File].")}},dT=(n,e)=>typeof e=="object"&&"image"in e,fT=({image:n})=>({value:n});var pT=Object.freeze({__proto__:null,sanitize:hT,schema:dT,normalize:fT});const mT=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),gT=ce("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),_T=ce("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),yT=ce("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),vT=ce("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),bT=ce("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function xT(){const{label:n,value:e,onUpdate:t,disabled:s}=yt(),{popinRef:r,wrapperRef:i,shown:o,show:a,hide:c}=sm(),l=b.useCallback(g=>{g.length&&t(g[0])},[t]),u=b.useCallback(g=>{g.stopPropagation(),t(void 0)},[t]),{getRootProps:h,getInputProps:d,isDragAccept:f}=J0({maxFiles:1,accept:"image/*",onDrop:l,disabled:s});return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(mT,null,N.createElement(_T,{ref:r,hasImage:!!e,onPointerDown:()=>!!e&&a(),onPointerUp:c,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&N.createElement(Iu,null,N.createElement(C0,{onPointerUp:c,style:{cursor:"pointer"}}),N.createElement(yT,{ref:i,style:{backgroundImage:`url(${e})`}})),N.createElement(gT,h({isDragAccept:f}),N.createElement("input",d()),N.createElement(vT,null,f?"drop image":"click or drop")),N.createElement(bT,{onClick:u,disabled:!e})))}var wT=de({component:xT},pT);const mf=Ot().number(),kT=(n,e)=>Ot().array().length(2).every.number().test(n)&&Ot().schema({min:mf,max:mf}).test(e),Da=n=>({min:n[0],max:n[1]}),am=(n,{bounds:[e,t]},s)=>{const r=Array.isArray(n)?Da(n):n,i={min:s[0],max:s[1]},{min:o,max:a}=de(de({},i),r);return[xs(Number(o),e,Math.max(e,a)),xs(Number(a),Math.min(t,o),t)]},TT=({value:n,min:e,max:t})=>{const s={min:e,max:t},r=M0(Da(n),{min:s,max:s}),i=[e,t],o=de(de({},r),{},{bounds:i});return{value:am(Da(n),o,n),settings:o}};var ET=Object.freeze({__proto__:null,schema:kT,format:Da,sanitize:am,normalize:TT});const CT=["value","bounds","onDrag"],ST=["bounds"],OT=ce("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function AT(n){let{value:e,bounds:[t,s],onDrag:r}=n,i=De(n,CT);const o=b.useRef(null),a=b.useRef(null),c=b.useRef(null),l=b.useRef(0),u=Wn("sizes","scrubberWidth"),h=Co(({event:g,first:p,xy:[m],movement:[_],memo:T={}})=>{if(p){const{width:y,left:v}=o.current.getBoundingClientRect();l.current=y-parseFloat(u);const k=(g==null?void 0:g.target)===a.current||(g==null?void 0:g.target)===c.current;T.pos=Ca((m-v)/y,t,s);const E=Math.abs(T.pos-e.min)-Math.abs(T.pos-e.max);T.key=E<0||E===0&&T.pos<=e.min?"min":"max",k&&(T.pos=e[T.key])}const w=T.pos+Ca(_/l.current,0,s-t);return r({[T.key]:nx(w,i[T.key])}),T}),d=`calc(${Ea(e.min,t,s)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-Ea(e.max,t,s)} * (100% - ${u} - 8px) + 4px)`;return N.createElement(R0,Je({ref:o},h()),N.createElement(A0,null,N.createElement(D0,{style:{left:d,right:f}})),N.createElement(Dl,{position:"left",ref:a,style:{left:d}}),N.createElement(Dl,{position:"right",ref:c,style:{right:f}}))}function RT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt(),r=De(s,ST);return N.createElement(N.Fragment,null,N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(OT,null,N.createElement(AT,Je({value:e},s,{onDrag:t})),N.createElement(Fu,{value:e,settings:r,onUpdate:t,innerLabelTrim:0}))))}var DT=de({component:RT},ET);const PT=()=>{const n=new Map;return{on:(e,t)=>{let s=n.get(e);s===void 0&&(s=new Set,n.set(e,s)),s.add(t)},off:(e,t)=>{const s=n.get(e);s!==void 0&&(s.delete(t),s.size===0&&n.delete(e))},emit:(e,...t)=>{const s=n.get(e);if(s!==void 0)for(const r of s)r(...t)}}},MT=["type","value"],NT=["onChange","transient","onEditStart","onEditEnd"],IT=function(){const e=tk(nk(()=>({data:{}}))),t=PT();this.storeId=db(),this.useStore=e;const s={},r=new Set;this.getVisiblePaths=()=>{const o=this.getData(),a=Object.keys(o),c=[];Object.entries(s).forEach(([u,h])=>{h.render&&a.some(d=>d.indexOf(u)===0)&&!h.render(this.get)&&c.push(u+".")});const l=[];return r.forEach(u=>{u in o&&o[u].__refCount>0&&c.every(h=>u.indexOf(h)===-1)&&(!o[u].render||o[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=o=>{o.forEach(a=>r.add(a))},this.orderPaths=o=>(this.setOrderedPaths(o),o),this.disposePaths=o=>{e.setState(a=>{const c=a.data;return o.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in un&&delete c[l]}}),{data:c}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=o=>s[o]||{},this.getData=()=>e.getState().data,this.addData=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{let d=l[u];if(d){const{type:f,value:g}=h,p=De(h,MT);f!==d.type?Bn(He.INPUT_TYPE_OVERRIDE,f):((d.__refCount===0||a)&&Object.assign(d,p),d.__refCount++)}else l[u]=de(de({},h),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(o,a,c)=>{e.setState(l=>{const u=l.data;return Fd(u[o],a,o,this,c),{data:u}})},this.setSettingsAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].settings=de(de({},l[o].settings),a),{data:l}})},this.disableInputAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].disabled=a,{data:l}})},this.set=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{try{Fd(l[u],h,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=o=>{try{return this.getData()[o]}catch{Bn(He.PATH_DOESNT_EXIST,o)}},this.get=o=>{var a;return(a=this.getInput(o))===null||a===void 0?void 0:a.value},this.emitOnEditStart=o=>{t.emit(`onEditStart:${o}`,this.get(o),o,de(de({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{t.emit(`onEditEnd:${o}`,this.get(o),o,de(de({},this.getInput(o)),{},{get:this.get}))},this.subscribeToEditStart=(o,a)=>{const c=`onEditStart:${o}`;return t.on(c,a),()=>t.off(c,a)},this.subscribeToEditEnd=(o,a)=>{const c=`onEditEnd:${o}`;return t.on(c,a),()=>t.off(c,a)};const i=(o,a,c)=>{const l={};return Object.entries(o).forEach(([u,h])=>{if(u==="")return Bn(He.EMPTY_KEY);let d=Wu(a,u);if(h.type===un.FOLDER){const f=i(h.schema,d,c);Object.assign(l,f),d in s||(s[d]=h.settings)}else if(u in c)Bn(He.DUPLICATE_KEYS,u,d,c[u].path);else{const f=bb(h,u,d,l);if(f){const{type:g,options:p,input:m}=f,{onChange:_,transient:T,onEditStart:w,onEditEnd:y}=p,v=De(p,NT);l[d]=de(de(de({type:g},v),m),{},{fromPanel:!0}),c[u]={path:d,onChange:_,transient:T,onEditStart:w,onEditEnd:y}}else Bn(He.UNKNOWN_INPUT,d,h)}}),l};this.getDataFromSchema=o=>{const a={};return[i(o,"",a),a]}},cm=new IT,$T={collapsed:!1};function FT(n,e){return{type:un.FOLDER,schema:n,settings:de(de({},$T),e)}}const gf=n=>"__levaInput"in n,LT=(n,e)=>{const t={},s=e?e.toLowerCase():null;return n.forEach(r=>{const[i,o]=Lk(r);(!s||i.toLowerCase().indexOf(s)>-1)&&Fk(t,o,{[i]:{__levaInput:!0,path:r}})}),t},jT=["type","label","path","valueKey","value","settings","setValue","disabled"];function zT(n){let{type:e,label:t,path:s,valueKey:r,value:i,settings:o,setValue:a,disabled:c}=n,l=De(n,jT);const{displayValue:u,onChange:h,onUpdate:d}=S0({type:e,value:i,settings:o,setValue:a}),f=Js[e].component;return f?N.createElement(_0.Provider,{value:de({key:r,path:s,id:""+s,label:t,displayValue:u,value:i,onChange:h,onUpdate:d,settings:o,setValue:a,disabled:c},l)},N.createElement(zb,{disabled:c},N.createElement(f,null))):(Bn(He.NO_COMPONENT_FOR_TYPE,e,s),null)}const VT=ce("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function UT({onClick:n,settings:e,label:t}){const s=Eo();return N.createElement(sn,null,N.createElement(VT,{disabled:e.disabled,onClick:()=>n(s.get)},t))}const BT=ce("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),WT=ce("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),qT=({label:n,opts:e})=>{let t=typeof n=="string"&&n.trim()===""?null:n,s=e;return typeof e.opts=="object"&&(s.label!==void 0&&(t=e.label),s=e.opts),{label:t,opts:s}};function HT(n){const{label:e,opts:t}=qT(n),s=Eo();return N.createElement(sn,{input:!!e},e&&N.createElement(mn,null,e),N.createElement(BT,null,Object.entries(t).map(([r,i])=>N.createElement(WT,{key:r,onClick:()=>i(s.get)},r))))}const YT=ce("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),lm=100;function GT(n,e){n.push(e),n.length>lm&&n.shift()}const XT=b.forwardRef(function({initialValue:n},e){const t=Wn("colors","highlight3"),s=Wn("colors","elevation2"),r=Wn("colors","highlight1"),[i,o]=b.useMemo(()=>[bt(r).alpha(.4).toRgbString(),bt(r).alpha(.1).toRgbString()],[r]),a=b.useRef([n]),c=b.useRef(n),l=b.useRef(n),u=b.useRef(),h=b.useCallback((g,p)=>{if(!g)return;const{width:m,height:_}=g,T=new Path2D,w=m/lm,y=_*.05;for(let E=0;E({frame:g=>{(c.current===void 0||gl.current)&&(l.current=g),GT(a.current,g),u.current=requestAnimationFrame(()=>h(d.current,f.current))}}),[d,f,h]),b.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),N.createElement(YT,{ref:d})}),_f=n=>Number.isFinite(n)?n.toPrecision(2):n.toString(),ZT=b.forwardRef(function({initialValue:n},e){const[t,s]=b.useState(_f(n));return b.useImperativeHandle(e,()=>({frame:r=>s(_f(r))}),[]),N.createElement("div",null,t)});function yf(n){return typeof n=="function"?n():n.current}function KT({label:n,objectOrFn:e,settings:t}){const s=b.useRef(),r=b.useRef(yf(e));return b.useEffect(()=>{const i=window.setInterval(()=>{var o;document.hidden||(o=s.current)===null||o===void 0||o.frame(yf(e))},t.interval);return()=>window.clearInterval(i)},[e,t.interval]),N.createElement(sn,{input:!0},N.createElement(mn,{align:"top"},n),t.graph?N.createElement(XT,{ref:s,initialValue:r.current}):N.createElement(ZT,{ref:s,initialValue:r.current}))}const QT=["type","label","key"],JT={[un.BUTTON]:UT,[un.BUTTON_GROUP]:HT,[un.MONITOR]:KT},eE=N.memo(({path:n})=>{const[e,{set:t,setSettings:s,disable:r,storeId:i,emitOnEditStart:o,emitOnEditEnd:a}]=Kb(n);if(!e)return null;const{type:c,label:l,key:u}=e,h=De(e,QT);if(c in un){const d=JT[c];return N.createElement(d,Je({label:l,path:n},h))}return c in Js?N.createElement(zT,Je({key:i+n,type:c,label:l,storeId:i,path:n,valueKey:u,setValue:t,setSettings:s,disable:r,emitOnEditStart:o,emitOnEditEnd:a},h)):(rb(He.UNSUPPORTED_INPUT,c,n),null)});function tE({toggle:n,toggled:e,name:t}){return N.createElement(Fb,{onClick:()=>n()},N.createElement($u,{toggled:e}),N.createElement("div",null,t))}const nE=({name:n,path:e,tree:t})=>{const s=Eo(),r=Wu(e,n),{collapsed:i,color:o}=s.getFolderSettings(r),[a,c]=b.useState(!i),l=b.useRef(null),u=Wn("colors","folderWidgetColor"),h=Wn("colors","folderTextColor");return b.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",o||u),l.current.style.setProperty("--leva-colors-folderTextColor",o||h)},[o,u,h]),N.createElement(Sa,{ref:l},N.createElement(tE,{name:n,toggled:a,toggle:()=>c(d=>!d)}),N.createElement(um,{parent:r,tree:t,toggled:a}))},um=N.memo(({isRoot:n=!1,fill:e=!1,flat:t=!1,parent:s,tree:r,toggled:i})=>{const{wrapperRef:o,contentRef:a}=Vk(i),c=Eo(),l=([h,d])=>{var f;return(gf(d)?(f=c.getInput(d.path))===null||f===void 0?void 0:f.order:c.getFolderSettings(Wu(s,h)).order)||0},u=Object.entries(r).sort((h,d)=>l(h)-l(d));return N.createElement(Al,{ref:o,isRoot:n,fill:e,flat:t},N.createElement(k0,{ref:a,isRoot:n,toggled:i},u.map(([h,d])=>gf(d)?N.createElement(eE,{key:d.path,valueKey:d.valueKey,path:d.path}):N.createElement(nE,{key:h,name:h,path:s,tree:d}))))}),sE=ce("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${E0}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),hm=40,Pa=ce("i",{$flexCenter:"",width:hm,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),rE=ce("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),iE=ce("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Pa}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),oE=ce("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),aE=ce("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:hm}}}}),cE=N.forwardRef(({setFilter:n,toggle:e},t)=>{const[s,r]=b.useState(""),i=b.useMemo(()=>h0(n,250),[n]),o=()=>{n(""),r("")},a=c=>{const l=c.currentTarget.value;e(!0),r(l)};return b.useEffect(()=>{i(s)},[s,i]),N.createElement(N.Fragment,null,N.createElement(oE,{ref:t,value:s,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),N.createElement(Pa,{onClick:()=>o(),style:{visibility:s?"visible":"hidden"}},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function lE({setFilter:n,onDrag:e,onDragStart:t,onDragEnd:s,toggle:r,toggled:i,title:o,drag:a,filterEnabled:c,from:l}){const[u,h]=b.useState(!1),d=b.useRef(null);b.useEffect(()=>{var g,p;u?(g=d.current)===null||g===void 0||g.focus():(p=d.current)===null||p===void 0||p.blur()},[u]);const f=Co(({offset:[g,p],first:m,last:_})=>{e({x:g,y:p}),m&&t({x:g,y:p}),_&&s({x:g,y:p})},{filterTaps:!0,from:({offset:[g,p]})=>[(l==null?void 0:l.x)||g,(l==null?void 0:l.y)||p]});return b.useEffect(()=>{const g=p=>{p.key==="L"&&p.shiftKey&&p.metaKey&&h(m=>!m)};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)},[]),N.createElement(N.Fragment,null,N.createElement(rE,{mode:a?"drag":void 0},N.createElement(Pa,{active:!i,onClick:()=>r()},N.createElement($u,{toggled:i,width:12,height:8})),N.createElement(aE,Je({},a?f():{},{drag:a,filterEnabled:c}),o===void 0&&a?N.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},N.createElement("circle",{cx:"2",cy:"2",r:"2"}),N.createElement("circle",{cx:"14",cy:"2",r:"2"}),N.createElement("circle",{cx:"26",cy:"2",r:"2"}),N.createElement("circle",{cx:"2",cy:"12",r:"2"}),N.createElement("circle",{cx:"14",cy:"12",r:"2"}),N.createElement("circle",{cx:"26",cy:"12",r:"2"})):o),c&&N.createElement(Pa,{active:u,onClick:()=>h(g=>!g)},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},N.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),N.createElement(iE,{toggled:u},N.createElement(cE,{ref:d,setFilter:n,toggle:r})))}const uE=["store","hidden","theme","collapsed"];function hE(n){let{store:e,hidden:t=!1,theme:s,collapsed:r=!1}=n,i=De(n,uE);const o=nm(()=>Db(s),[s]),[a,c]=b.useState(!r),l=typeof r=="object"?!r.collapsed:a,u=b.useMemo(()=>typeof r=="object"?h=>{typeof h=="function"?r.onChange(!h(!r.collapsed)):r.onChange(!h)}:c,[r]);return!e||t?null:N.createElement(Mu.Provider,{value:o},N.createElement(dE,Je({store:e},i,{toggled:l,setToggle:u,rootClass:o.className})))}const dE=N.memo(({store:n,rootClass:e,fill:t=!1,flat:s=!1,neverHide:r=!1,oneLineLabels:i=!1,titleBar:o={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,h;const d=Uk(n),[f,g]=b.useState(""),p=b.useMemo(()=>LT(d,f),[d,f]),[m,_]=O0(),T=r||d.length>0,w=typeof o=="object"&&o.title||void 0,y=typeof o=="object"&&(u=o.drag)!==null&&u!==void 0?u:!0,v=typeof o=="object"&&(h=o.filter)!==null&&h!==void 0?h:!0,k=typeof o=="object"&&o.position||void 0,E=typeof o=="object"&&o.onDrag||void 0,x=typeof o=="object"&&o.onDragStart||void 0,C=typeof o=="object"&&o.onDragEnd||void 0;return N.useEffect(()=>{_({x:k==null?void 0:k.x,y:k==null?void 0:k.y})},[k,_]),Rb(),N.createElement(v0.Provider,{value:{hideCopyButton:a}},N.createElement(sE,{ref:m,className:e,fill:t,flat:s,oneLineLabels:i,hideTitleBar:!o,style:{display:T?"block":"none"}},o&&N.createElement(lE,{onDrag:S=>{_(S),E==null||E(S)},onDragStart:S=>x==null?void 0:x(S),onDragEnd:S=>C==null?void 0:C(S),setFilter:g,toggle:S=>l(R=>S??!R),toggled:c,title:w,drag:y,filterEnabled:v,from:k}),T&&N.createElement(y0.Provider,{value:n},N.createElement(um,{isRoot:!0,fill:t,flat:s,tree:p,toggled:c}))))}),fE=["isRoot"];let Ma=!1,zs=null;function dm(n){let{isRoot:e=!1}=n,t=De(n,fE);return b.useEffect(()=>(Ma=!0,!e&&zs&&(zs.remove(),zs=null),()=>{e||(Ma=!1)}),[e]),N.createElement(hE,Je({store:cm},t))}function pE(n){b.useEffect(()=>{n&&!Ma&&(zs||(zs=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(zs),wb(N.createElement(dm,{isRoot:!0}),zs))),Ma=!0)},[n])}function mE(n,e,t,s,r){let i,o,a,c,l;return typeof n=="string"?(o=n,i=e,Array.isArray(t)?l=t:t&&("store"in t?(c=t,l=s):(a=t,Array.isArray(s)?l=s:(c=s,l=r)))):(i=n,Array.isArray(e)?l=e:(c=e,l=t)),{schema:i,folderName:o,folderSettings:a,hookSettings:c,deps:l||[]}}function gE(n,e,t,s,r){const{folderName:i,schema:o,folderSettings:a,hookSettings:c,deps:l}=mE(n,e,t,s,r),u=typeof o=="function",h=b.useRef(!1),d=b.useRef(!0),f=nm(()=>{h.current=!0;const R=typeof o=="function"?o():o;return i?{[i]:FT(R,a)}:R},l),g=!(c!=null&&c.store);pE(g);const[p]=b.useState(()=>(c==null?void 0:c.store)||cm),[m,_]=b.useMemo(()=>p.getDataFromSchema(f),[p,f]),[T,w,y,v,k]=b.useMemo(()=>{const R=[],O=[],L={},z={},W={};return Object.values(_).forEach(({path:B,onChange:V,onEditStart:U,onEditEnd:X,transient:K})=>{R.push(B),V?(L[B]=V,K||O.push(B)):O.push(B),U&&(z[B]=U),X&&(W[B]=X)}),[R,O,L,z,W]},[_]),E=b.useMemo(()=>p.orderPaths(T),[T,p]),x=Bk(p,w,m),C=b.useCallback(R=>{const O=Object.entries(R).reduce((L,[z,W])=>Object.assign(L,{[_[z].path]:W}),{});p.set(O,!1)},[p,_]),S=b.useCallback(R=>p.get(_[R].path),[p,_]);return b.useEffect(()=>{const R=!d.current&&h.current;return p.addData(m,R),d.current=!1,h.current=!1,()=>p.disposePaths(E)},[p,E,m]),b.useEffect(()=>{const R=[];return Object.entries(y).forEach(([O,L])=>{L(p.get(O),O,de({initial:!0,get:p.get},p.getInput(O)));const z=p.useStore.subscribe(W=>{const B=W.data[O];return[B.disabled?void 0:B.value,B]},([W,B])=>L(W,O,de({initial:!1,get:p.get},B)),{equalityFn:To});R.push(z)}),()=>R.forEach(O=>O())},[p,y]),b.useEffect(()=>{const R=[];return Object.entries(v).forEach(([O,L])=>R.push(p.subscribeToEditStart(O,L))),Object.entries(k).forEach(([O,L])=>R.push(p.subscribeToEditEnd(O,L))),()=>R.forEach(O=>O())},[v,k,p]),u?[x,C,S]:x}ns(dn.SELECT,px);ns(dn.IMAGE,wT);ns(dn.NUMBER,rx);ns(dn.COLOR,eT);ns(dn.STRING,kx);ns(dn.BOOLEAN,Rx);ns(dn.INTERVAL,DT);ns(dn.VECTOR3D,nT);ns(dn.VECTOR2D,uT);const _E={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ws=mp(n=>({..._E,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),yE=()=>{const[n,e]=b.useState(""),t=b.useRef(null),{fetchData:s,setAbortRequests:r,seedQuestions:i}=Jt(y=>y),[o]=_u(y=>[y.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=bo(y=>({setUniverseQuestionIsOpen:y.setUniverseQuestionIsOpen,setSidebarOpen:y.setSidebarOpen,setShowCollapseButton:y.setShowCollapseButton})),u=B_(y=>y.resetAiSummaryAnswer),[h,d]=b.useState([]);b.useEffect(()=>{i&&d(T(i).slice(0,4))},[i]),b.useEffect(()=>{t.current&&t.current.focus()},[]);const f=async y=>{y&&(u(),a(),c(!0),l(!0)),await s(o,r,y)},g=!!n.trim().length,p=async y=>{y.keyCode===13&&y.shiftKey===!1&&g&&(y.preventDefault(),f(n))},m=async y=>{e(y),await f(y)},_=()=>{a(),c(!0),l(!0)},T=y=>{const v=[...y];let k=v.length-1;for(;k>0;){const E=Math.floor(Math.random()*(k+1));[v[k],v[E]]=[v[E],v[k]],k-=1}return v},w=!!n&&n.trim().length>0;return P.jsxs(xE,{children:["Ideas have shapes",P.jsxs(bE,{onKeyDown:p,py:12,tabIndex:-1,children:[P.jsx(vE,{ref:t,onChange:y=>e(y.target.value),placeholder:"What do you want to know?",value:n}),P.jsx(wE,{color:"secondary",disabled:!w,onClick:()=>f(n),variant:"contained",children:w?P.jsxs(P.Fragment,{children:["Search ",P.jsx(Uh,{})]}):P.jsx(Uh,{})})]}),h.length>0&&P.jsx(TE,{children:h.map(y=>P.jsxs(EE,{onClick:()=>m(y),children:[P.jsx(iy,{}),y]},y))}),P.jsx(kE,{"data-testid":"explore-graph-btn",onClick:_,startIcon:P.jsx(oy,{}),children:"Explore Graph"})]})},vE=ye(my).attrs({maxRows:3})` + */var Pk=Tk,Mk=Ok,hf=tm,df=Dk,Nk=function(n,e,t){if(!df(n)||(Array.isArray(e)&&(e=[].concat.apply([],e).join(".")),typeof e!="string"))return n;for(var s=Pk(e,{sep:".",brackets:!0}).filter(Ik),r=s.length,i=-1,o=n;++in.filter(Boolean).join(".");function jk(n){const e=n.split(".");return[e.pop(),e.join(".")||void 0]}function zk(n,e){return Object.entries(pb(n,e)).reduce((t,[,{value:s,disabled:r,key:i}])=>(t[i]=r?void 0:s,t),{})}function Vk(n,e){const t=v.useRef();return(e?Wi:To)(n,t.current)||(t.current=n),t.current}function sm(n,e){return v.useMemo(n,Vk(e,!0))}function Uk(n){const e=v.useRef(null),t=v.useRef(null),s=v.useRef(!0);return v.useLayoutEffect(()=>{n||(e.current.style.height="0px",e.current.style.overflow="hidden")},[]),v.useEffect(()=>{if(s.current){s.current=!1;return}let r;const i=e.current,o=()=>{n&&(i.style.removeProperty("height"),i.style.removeProperty("overflow"),t.current.scrollIntoView({behavior:"smooth",block:"nearest"}))};i.addEventListener("transitionend",o,{once:!0});const{height:a}=t.current.getBoundingClientRect();return i.style.height=a+"px",n||(i.style.overflow="hidden",r=window.setTimeout(()=>i.style.height="0px",50)),()=>{i.removeEventListener("transitionend",o),clearTimeout(r)}},[n]),{wrapperRef:e,contentRef:t}}const Bk=n=>{const[e,t]=v.useState(n.getVisiblePaths());return v.useEffect(()=>{t(n.getVisiblePaths());const s=n.useStore.subscribe(n.getVisiblePaths,t,{equalityFn:To});return()=>s()},[n]),e};function Wk(n,e,t){return n.useStore(r=>{const i=de(de({},t),r.data);return zk(i,e)},To)}function rm(n=3){const e=v.useRef(null),t=v.useRef(null),[s,r]=v.useState(!1),i=v.useCallback(()=>r(!0),[]),o=v.useCallback(()=>r(!1),[]);return v.useLayoutEffect(()=>{if(s){const{bottom:a,top:c,left:l}=e.current.getBoundingClientRect(),{height:u}=t.current.getBoundingClientRect(),h=a+u>window.innerHeight-40?"up":"down";t.current.style.position="fixed",t.current.style.zIndex="10000",t.current.style.left=l+"px",h==="down"?t.current.style.top=a+n+"px":t.current.style.bottom=window.innerHeight-c+n+"px"}},[n,s]),{popinRef:e,wrapperRef:t,shown:s,show:i,hide:o}}Kx([Qx]);const qk={rgb:"toRgb",hsl:"toHsl",hsv:"toHsv",hex:"toHex"};Ot.extend({color:()=>n=>bt(n).isValid()});const Hk=n=>Ot().color().test(n);function im(n,{format:e,hasAlpha:t,isString:s}){const r=qk[e]+(s&&e!=="hex"?"String":""),i=n[r]();return typeof i=="object"&&!t?mb(i,["a"]):i}const om=(n,e)=>{const t=bt(n);if(!t.isValid())throw Error("Invalid color");return im(t,e)},Yk=(n,e)=>im(bt(n),de(de({},e),{},{isString:!0,format:"hex"})),Gk=({value:n})=>{const e=Zx(n),t=e==="name"?"hex":e,s=typeof n=="object"?"a"in n:e==="hex"&&n.length===8||/^(rgba)|(hsla)|(hsva)/.test(n),r={format:t,hasAlpha:s,isString:typeof n=="string"};return{value:om(n,r),settings:r}};var Xk=Object.freeze({__proto__:null,schema:Hk,sanitize:om,format:Yk,normalize:Gk});const Zk=ce("div",{position:"relative",boxSizing:"border-box",borderRadius:"$sm",overflow:"hidden",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",backgroundColor:"#fff",backgroundImage:`url('data:image/svg+xml;charset=utf-8,')`,$inputStyle:"",$hover:"",zIndex:1,variants:{active:{true:{$inputStyle:"$accent1"}}},"&::before":{content:'""',position:"absolute",top:0,bottom:0,right:0,left:0,backgroundColor:"currentColor",zIndex:1}}),Kk=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto",columnGap:"$colGap",alignItems:"center"}),Qk=ce("div",{width:"$colorPickerWidth",height:"$colorPickerHeight",".react-colorful":{width:"100%",height:"100%",boxShadow:"$level2",cursor:"crosshair"},".react-colorful__saturation":{borderRadius:"$sm $sm 0 0"},".react-colorful__alpha, .react-colorful__hue":{height:10},".react-colorful__last-control":{borderRadius:"0 0 $sm $sm"},".react-colorful__pointer":{height:12,width:12}});function mf(n,e){return e!=="rgb"?bt(n).toRgb():n}function Jk({value:n,displayValue:e,settings:t,onUpdate:s}){const{emitOnEditStart:r,emitOnEditEnd:i}=yt(),{format:o,hasAlpha:a}=t,{popinRef:c,wrapperRef:l,shown:u,show:h,hide:d}=rm(),f=v.useRef(0),[m,p]=v.useState(()=>mf(n,o)),g=a?iw:aw,_=()=>{p(mf(n,o)),h(),r()},T=()=>{d(),i(),window.clearTimeout(f.current)},w=()=>{f.current=window.setTimeout(T,500)};return v.useEffect(()=>()=>window.clearTimeout(f.current),[]),N.createElement(N.Fragment,null,N.createElement(Zk,{ref:c,active:u,onClick:()=>_(),style:{color:e}}),u&&N.createElement(Iu,null,N.createElement(S0,{onPointerUp:T}),N.createElement(Qk,{ref:l,onMouseEnter:()=>window.clearTimeout(f.current),onMouseLeave:b=>b.buttons===0&&w()},N.createElement(g,{color:m,onChange:s}))))}function eT(){const{value:n,displayValue:e,label:t,onChange:s,onUpdate:r,settings:i}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,t),N.createElement(Kk,null,N.createElement(Jk,{value:n,displayValue:e,onChange:s,onUpdate:r,settings:i}),N.createElement(Nu,{value:e,onChange:s,onUpdate:r})))}var tT=de({component:eT},Xk);function nT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(Fu,{value:e,settings:s,onUpdate:t}))}var sT=de({component:nT},I0(["x","y","z"]));const rT=ce("div",{$flexCenter:"",position:"relative",backgroundColor:"$elevation3",borderRadius:"$sm",cursor:"pointer",height:"$rowHeight",width:"$rowHeight",touchAction:"none",$draggable:"",$hover:"","&:active":{cursor:"none"},"&::after":{content:'""',backgroundColor:"$accent2",height:4,width:4,borderRadius:2}}),iT=ce("div",{$flexCenter:"",width:"$joystickWidth",height:"$joystickHeight",borderRadius:"$sm",boxShadow:"$level2",position:"fixed",zIndex:1e4,overflow:"hidden",$draggable:"",transform:"translate(-50%, -50%)",variants:{isOutOfBounds:{true:{backgroundColor:"$elevation1"},false:{backgroundColor:"$elevation3"}}},"> div":{position:"absolute",$flexCenter:"",borderStyle:"solid",borderWidth:1,borderColor:"$highlight1",backgroundColor:"$elevation3",width:"80%",height:"80%","&::after,&::before":{content:'""',position:"absolute",zindex:10,backgroundColor:"$highlight1"},"&::before":{width:"100%",height:1},"&::after":{height:"100%",width:1}},"> span":{position:"relative",zindex:100,width:10,height:10,backgroundColor:"$accent2",borderRadius:"50%"}});function oT({value:n,settings:e,onUpdate:t}){const s=v.useRef(),r=v.useRef(0),i=v.useRef(0),o=v.useRef(1),[a,c]=v.useState(!1),[l,u]=v.useState(!1),[h,d]=A0(),f=v.useRef(null),m=v.useRef(null);v.useLayoutEffect(()=>{if(a){const{top:O,left:L,width:z,height:W}=f.current.getBoundingClientRect();m.current.style.left=L+z/2+"px",m.current.style.top=O+W/2+"px"}},[a]);const{keys:[p,g],joystick:_}=e,T=_==="invertY"?1:-1,{[p]:{step:w},[g]:{step:b}}=e,y=Wn("sizes","joystickWidth"),x=Wn("sizes","joystickHeight"),E=parseFloat(y)*.8/2,k=parseFloat(x)*.8/2,C=v.useCallback(()=>{s.current||(u(!0),r.current&&d({x:r.current*E}),i.current&&d({y:i.current*-k}),s.current=window.setInterval(()=>{t(O=>{const L=w*r.current*o.current,z=T*b*i.current*o.current;return Array.isArray(O)?{[p]:O[0]+L,[g]:O[1]+z}:{[p]:O[p]+L,[g]:O[g]+z}})},16))},[E,k,t,d,w,b,p,g,T]),S=v.useCallback(()=>{window.clearTimeout(s.current),s.current=void 0,u(!1)},[]);v.useEffect(()=>{function O(L){o.current=f0(L)}return window.addEventListener("keydown",O),window.addEventListener("keyup",O),()=>{window.clearTimeout(s.current),window.removeEventListener("keydown",O),window.removeEventListener("keyup",O)}},[]);const R=Co(({first:O,active:L,delta:[z,W],movement:[B,V]})=>{O&&c(!0);const U=xs(B,-E,E),X=xs(V,-k,k);r.current=Math.abs(B)>Math.abs(U)?Math.sign(B-U):0,i.current=Math.abs(V)>Math.abs(X)?Math.sign(X-V):0;let K=n[p],J=n[g];L?(r.current||(K+=z*w*o.current,d({x:U})),i.current||(J-=T*W*b*o.current,d({y:X})),r.current||i.current?C():S(),t({[p]:K,[g]:J})):(c(!1),r.current=0,i.current=0,d({x:0,y:0}),S())});return N.createElement(rT,Je({ref:f},R()),a&&N.createElement(Iu,null,N.createElement(iT,{ref:m,isOutOfBounds:l},N.createElement("div",null),N.createElement("span",{ref:h}))))}const aT=ce("div",{display:"grid",columnGap:"$colGap",variants:{withJoystick:{true:{gridTemplateColumns:"$sizes$rowHeight auto"},false:{gridTemplateColumns:"auto"}}}});function cT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt();return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(aT,{withJoystick:!!s.joystick},s.joystick&&N.createElement(oT,{value:e,settings:s,onUpdate:t}),N.createElement(Fu,{value:e,settings:s,onUpdate:t})))}const lT=["joystick"],am=I0(["x","y"]),uT=n=>{let{joystick:e=!0}=n,t=De(n,lT);const{value:s,settings:r}=am.normalize(t);return{value:s,settings:de(de({},r),{},{joystick:e})}};var hT=de(de({component:cT},am),{},{normalize:uT});const dT=n=>{if(n!==void 0){if(n instanceof File)try{return URL.createObjectURL(n)}catch{return}if(typeof n=="string"&&n.indexOf("blob:")===0)return n;throw Error("Invalid image format [undefined | blob | File].")}},fT=(n,e)=>typeof e=="object"&&"image"in e,pT=({image:n})=>({value:n});var mT=Object.freeze({__proto__:null,sanitize:dT,schema:fT,normalize:pT});const gT=ce("div",{position:"relative",display:"grid",gridTemplateColumns:"$sizes$rowHeight auto 20px",columnGap:"$colGap",alignItems:"center"}),_T=ce("div",{$flexCenter:"",overflow:"hidden",height:"$rowHeight",background:"$elevation3",textAlign:"center",color:"inherit",borderRadius:"$sm",outline:"none",userSelect:"none",cursor:"pointer",$inputStyle:"",$hover:"",$focusWithin:"",$active:"$accent1 $elevation1",variants:{isDragAccept:{true:{$inputStyle:"$accent1",backgroundColor:"$elevation1"}}}}),yT=ce("div",{boxSizing:"border-box",borderRadius:"$sm",height:"$rowHeight",width:"$rowHeight",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center",variants:{hasImage:{true:{cursor:"pointer",$hover:"",$active:""}}}}),vT=ce("div",{$flexCenter:"",width:"$imagePreviewWidth",height:"$imagePreviewHeight",borderRadius:"$sm",boxShadow:"$level2",pointerEvents:"none",$inputStyle:"",backgroundSize:"cover",backgroundPosition:"center"}),bT=ce("div",{fontSize:"0.8em",height:"100%",padding:"$rowGap $md"}),xT=ce("div",{$flexCenter:"",top:"0",right:"0",marginRight:"$sm",height:"100%",cursor:"pointer",variants:{disabled:{true:{color:"$elevation3",cursor:"default"}}},"&::after,&::before":{content:'""',position:"absolute",height:2,width:10,borderRadius:1,backgroundColor:"currentColor"},"&::after":{transform:"rotate(45deg)"},"&::before":{transform:"rotate(-45deg)"}});function wT(){const{label:n,value:e,onUpdate:t,disabled:s}=yt(),{popinRef:r,wrapperRef:i,shown:o,show:a,hide:c}=rm(),l=v.useCallback(m=>{m.length&&t(m[0])},[t]),u=v.useCallback(m=>{m.stopPropagation(),t(void 0)},[t]),{getRootProps:h,getInputProps:d,isDragAccept:f}=em({maxFiles:1,accept:"image/*",onDrop:l,disabled:s});return N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(gT,null,N.createElement(yT,{ref:r,hasImage:!!e,onPointerDown:()=>!!e&&a(),onPointerUp:c,style:{backgroundImage:e?`url(${e})`:"none"}}),o&&!!e&&N.createElement(Iu,null,N.createElement(S0,{onPointerUp:c,style:{cursor:"pointer"}}),N.createElement(vT,{ref:i,style:{backgroundImage:`url(${e})`}})),N.createElement(_T,h({isDragAccept:f}),N.createElement("input",d()),N.createElement(bT,null,f?"drop image":"click or drop")),N.createElement(xT,{onClick:u,disabled:!e})))}var kT=de({component:wT},mT);const gf=Ot().number(),TT=(n,e)=>Ot().array().length(2).every.number().test(n)&&Ot().schema({min:gf,max:gf}).test(e),Da=n=>({min:n[0],max:n[1]}),cm=(n,{bounds:[e,t]},s)=>{const r=Array.isArray(n)?Da(n):n,i={min:s[0],max:s[1]},{min:o,max:a}=de(de({},i),r);return[xs(Number(o),e,Math.max(e,a)),xs(Number(a),Math.min(t,o),t)]},ET=({value:n,min:e,max:t})=>{const s={min:e,max:t},r=N0(Da(n),{min:s,max:s}),i=[e,t],o=de(de({},r),{},{bounds:i});return{value:cm(Da(n),o,n),settings:o}};var CT=Object.freeze({__proto__:null,schema:TT,format:Da,sanitize:cm,normalize:ET});const ST=["value","bounds","onDrag"],OT=["bounds"],AT=ce("div",{display:"grid",columnGap:"$colGap",gridTemplateColumns:"auto calc($sizes$numberInputMinWidth * 2 + $space$rowGap)"});function RT(n){let{value:e,bounds:[t,s],onDrag:r}=n,i=De(n,ST);const o=v.useRef(null),a=v.useRef(null),c=v.useRef(null),l=v.useRef(0),u=Wn("sizes","scrubberWidth"),h=Co(({event:m,first:p,xy:[g],movement:[_],memo:T={}})=>{if(p){const{width:b,left:y}=o.current.getBoundingClientRect();l.current=b-parseFloat(u);const x=(m==null?void 0:m.target)===a.current||(m==null?void 0:m.target)===c.current;T.pos=Ca((g-y)/b,t,s);const E=Math.abs(T.pos-e.min)-Math.abs(T.pos-e.max);T.key=E<0||E===0&&T.pos<=e.min?"min":"max",x&&(T.pos=e[T.key])}const w=T.pos+Ca(_/l.current,0,s-t);return r({[T.key]:sx(w,i[T.key])}),T}),d=`calc(${Ea(e.min,t,s)} * (100% - ${u} - 8px) + 4px)`,f=`calc(${1-Ea(e.max,t,s)} * (100% - ${u} - 8px) + 4px)`;return N.createElement(D0,Je({ref:o},h()),N.createElement(R0,null,N.createElement(P0,{style:{left:d,right:f}})),N.createElement(Dl,{position:"left",ref:a,style:{left:d}}),N.createElement(Dl,{position:"right",ref:c,style:{right:f}}))}function DT(){const{label:n,displayValue:e,onUpdate:t,settings:s}=yt(),r=De(s,OT);return N.createElement(N.Fragment,null,N.createElement(sn,{input:!0},N.createElement(mn,null,n),N.createElement(AT,null,N.createElement(RT,Je({value:e},s,{onDrag:t})),N.createElement(Fu,{value:e,settings:r,onUpdate:t,innerLabelTrim:0}))))}var PT=de({component:DT},CT);const MT=()=>{const n=new Map;return{on:(e,t)=>{let s=n.get(e);s===void 0&&(s=new Set,n.set(e,s)),s.add(t)},off:(e,t)=>{const s=n.get(e);s!==void 0&&(s.delete(t),s.size===0&&n.delete(e))},emit:(e,...t)=>{const s=n.get(e);if(s!==void 0)for(const r of s)r(...t)}}},NT=["type","value"],IT=["onChange","transient","onEditStart","onEditEnd"],$T=function(){const e=nk(sk(()=>({data:{}}))),t=MT();this.storeId=fb(),this.useStore=e;const s={},r=new Set;this.getVisiblePaths=()=>{const o=this.getData(),a=Object.keys(o),c=[];Object.entries(s).forEach(([u,h])=>{h.render&&a.some(d=>d.indexOf(u)===0)&&!h.render(this.get)&&c.push(u+".")});const l=[];return r.forEach(u=>{u in o&&o[u].__refCount>0&&c.every(h=>u.indexOf(h)===-1)&&(!o[u].render||o[u].render(this.get))&&l.push(u)}),l},this.setOrderedPaths=o=>{o.forEach(a=>r.add(a))},this.orderPaths=o=>(this.setOrderedPaths(o),o),this.disposePaths=o=>{e.setState(a=>{const c=a.data;return o.forEach(l=>{if(l in c){const u=c[l];u.__refCount--,u.__refCount===0&&u.type in un&&delete c[l]}}),{data:c}})},this.dispose=()=>{e.setState(()=>({data:{}}))},this.getFolderSettings=o=>s[o]||{},this.getData=()=>e.getState().data,this.addData=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{let d=l[u];if(d){const{type:f,value:m}=h,p=De(h,NT);f!==d.type?Bn(He.INPUT_TYPE_OVERRIDE,f):((d.__refCount===0||a)&&Object.assign(d,p),d.__refCount++)}else l[u]=de(de({},h),{},{__refCount:1})}),{data:l}})},this.setValueAtPath=(o,a,c)=>{e.setState(l=>{const u=l.data;return Ld(u[o],a,o,this,c),{data:u}})},this.setSettingsAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].settings=de(de({},l[o].settings),a),{data:l}})},this.disableInputAtPath=(o,a)=>{e.setState(c=>{const l=c.data;return l[o].disabled=a,{data:l}})},this.set=(o,a)=>{e.setState(c=>{const l=c.data;return Object.entries(o).forEach(([u,h])=>{try{Ld(l[u],h,void 0,void 0,a)}catch{}}),{data:l}})},this.getInput=o=>{try{return this.getData()[o]}catch{Bn(He.PATH_DOESNT_EXIST,o)}},this.get=o=>{var a;return(a=this.getInput(o))===null||a===void 0?void 0:a.value},this.emitOnEditStart=o=>{t.emit(`onEditStart:${o}`,this.get(o),o,de(de({},this.getInput(o)),{},{get:this.get}))},this.emitOnEditEnd=o=>{t.emit(`onEditEnd:${o}`,this.get(o),o,de(de({},this.getInput(o)),{},{get:this.get}))},this.subscribeToEditStart=(o,a)=>{const c=`onEditStart:${o}`;return t.on(c,a),()=>t.off(c,a)},this.subscribeToEditEnd=(o,a)=>{const c=`onEditEnd:${o}`;return t.on(c,a),()=>t.off(c,a)};const i=(o,a,c)=>{const l={};return Object.entries(o).forEach(([u,h])=>{if(u==="")return Bn(He.EMPTY_KEY);let d=Wu(a,u);if(h.type===un.FOLDER){const f=i(h.schema,d,c);Object.assign(l,f),d in s||(s[d]=h.settings)}else if(u in c)Bn(He.DUPLICATE_KEYS,u,d,c[u].path);else{const f=xb(h,u,d,l);if(f){const{type:m,options:p,input:g}=f,{onChange:_,transient:T,onEditStart:w,onEditEnd:b}=p,y=De(p,IT);l[d]=de(de(de({type:m},y),g),{},{fromPanel:!0}),c[u]={path:d,onChange:_,transient:T,onEditStart:w,onEditEnd:b}}else Bn(He.UNKNOWN_INPUT,d,h)}}),l};this.getDataFromSchema=o=>{const a={};return[i(o,"",a),a]}},lm=new $T,FT={collapsed:!1};function LT(n,e){return{type:un.FOLDER,schema:n,settings:de(de({},FT),e)}}const _f=n=>"__levaInput"in n,jT=(n,e)=>{const t={},s=e?e.toLowerCase():null;return n.forEach(r=>{const[i,o]=jk(r);(!s||i.toLowerCase().indexOf(s)>-1)&&Lk(t,o,{[i]:{__levaInput:!0,path:r}})}),t},zT=["type","label","path","valueKey","value","settings","setValue","disabled"];function VT(n){let{type:e,label:t,path:s,valueKey:r,value:i,settings:o,setValue:a,disabled:c}=n,l=De(n,zT);const{displayValue:u,onChange:h,onUpdate:d}=O0({type:e,value:i,settings:o,setValue:a}),f=Js[e].component;return f?N.createElement(y0.Provider,{value:de({key:r,path:s,id:""+s,label:t,displayValue:u,value:i,onChange:h,onUpdate:d,settings:o,setValue:a,disabled:c},l)},N.createElement(Vb,{disabled:c},N.createElement(f,null))):(Bn(He.NO_COMPONENT_FOR_TYPE,e,s),null)}const UT=ce("button",{display:"block",$reset:"",fontWeight:"$button",height:"$rowHeight",borderStyle:"none",borderRadius:"$sm",backgroundColor:"$elevation1",color:"$highlight1","&:not(:disabled)":{color:"$highlight3",backgroundColor:"$accent2",cursor:"pointer",$hover:"$accent3",$active:"$accent3 $accent1",$focus:""}});function BT({onClick:n,settings:e,label:t}){const s=Eo();return N.createElement(sn,null,N.createElement(UT,{disabled:e.disabled,onClick:()=>n(s.get)},t))}const WT=ce("div",{$flex:"",justifyContent:"flex-end",gap:"$colGap"}),qT=ce("button",{$reset:"",cursor:"pointer",borderRadius:"$xs","&:hover":{backgroundColor:"$elevation3"}}),HT=({label:n,opts:e})=>{let t=typeof n=="string"&&n.trim()===""?null:n,s=e;return typeof e.opts=="object"&&(s.label!==void 0&&(t=e.label),s=e.opts),{label:t,opts:s}};function YT(n){const{label:e,opts:t}=HT(n),s=Eo();return N.createElement(sn,{input:!!e},e&&N.createElement(mn,null,e),N.createElement(WT,null,Object.entries(t).map(([r,i])=>N.createElement(qT,{key:r,onClick:()=>i(s.get)},r))))}const GT=ce("canvas",{height:"$monitorHeight",width:"100%",display:"block",borderRadius:"$sm"}),um=100;function XT(n,e){n.push(e),n.length>um&&n.shift()}const ZT=v.forwardRef(function({initialValue:n},e){const t=Wn("colors","highlight3"),s=Wn("colors","elevation2"),r=Wn("colors","highlight1"),[i,o]=v.useMemo(()=>[bt(r).alpha(.4).toRgbString(),bt(r).alpha(.1).toRgbString()],[r]),a=v.useRef([n]),c=v.useRef(n),l=v.useRef(n),u=v.useRef(),h=v.useCallback((m,p)=>{if(!m)return;const{width:g,height:_}=m,T=new Path2D,w=g/um,b=_*.05;for(let E=0;E({frame:m=>{(c.current===void 0||ml.current)&&(l.current=m),XT(a.current,m),u.current=requestAnimationFrame(()=>h(d.current,f.current))}}),[d,f,h]),v.useEffect(()=>()=>cancelAnimationFrame(u.current),[]),N.createElement(GT,{ref:d})}),yf=n=>Number.isFinite(n)?n.toPrecision(2):n.toString(),KT=v.forwardRef(function({initialValue:n},e){const[t,s]=v.useState(yf(n));return v.useImperativeHandle(e,()=>({frame:r=>s(yf(r))}),[]),N.createElement("div",null,t)});function vf(n){return typeof n=="function"?n():n.current}function QT({label:n,objectOrFn:e,settings:t}){const s=v.useRef(),r=v.useRef(vf(e));return v.useEffect(()=>{const i=window.setInterval(()=>{var o;document.hidden||(o=s.current)===null||o===void 0||o.frame(vf(e))},t.interval);return()=>window.clearInterval(i)},[e,t.interval]),N.createElement(sn,{input:!0},N.createElement(mn,{align:"top"},n),t.graph?N.createElement(ZT,{ref:s,initialValue:r.current}):N.createElement(KT,{ref:s,initialValue:r.current}))}const JT=["type","label","key"],eE={[un.BUTTON]:BT,[un.BUTTON_GROUP]:YT,[un.MONITOR]:QT},tE=N.memo(({path:n})=>{const[e,{set:t,setSettings:s,disable:r,storeId:i,emitOnEditStart:o,emitOnEditEnd:a}]=Qb(n);if(!e)return null;const{type:c,label:l,key:u}=e,h=De(e,JT);if(c in un){const d=eE[c];return N.createElement(d,Je({label:l,path:n},h))}return c in Js?N.createElement(VT,Je({key:i+n,type:c,label:l,storeId:i,path:n,valueKey:u,setValue:t,setSettings:s,disable:r,emitOnEditStart:o,emitOnEditEnd:a},h)):(ib(He.UNSUPPORTED_INPUT,c,n),null)});function nE({toggle:n,toggled:e,name:t}){return N.createElement(Lb,{onClick:()=>n()},N.createElement($u,{toggled:e}),N.createElement("div",null,t))}const sE=({name:n,path:e,tree:t})=>{const s=Eo(),r=Wu(e,n),{collapsed:i,color:o}=s.getFolderSettings(r),[a,c]=v.useState(!i),l=v.useRef(null),u=Wn("colors","folderWidgetColor"),h=Wn("colors","folderTextColor");return v.useLayoutEffect(()=>{l.current.style.setProperty("--leva-colors-folderWidgetColor",o||u),l.current.style.setProperty("--leva-colors-folderTextColor",o||h)},[o,u,h]),N.createElement(Sa,{ref:l},N.createElement(nE,{name:n,toggled:a,toggle:()=>c(d=>!d)}),N.createElement(hm,{parent:r,tree:t,toggled:a}))},hm=N.memo(({isRoot:n=!1,fill:e=!1,flat:t=!1,parent:s,tree:r,toggled:i})=>{const{wrapperRef:o,contentRef:a}=Uk(i),c=Eo(),l=([h,d])=>{var f;return(_f(d)?(f=c.getInput(d.path))===null||f===void 0?void 0:f.order:c.getFolderSettings(Wu(s,h)).order)||0},u=Object.entries(r).sort((h,d)=>l(h)-l(d));return N.createElement(Al,{ref:o,isRoot:n,fill:e,flat:t},N.createElement(T0,{ref:a,isRoot:n,toggled:i},u.map(([h,d])=>_f(d)?N.createElement(tE,{key:d.path,valueKey:d.valueKey,path:d.path}):N.createElement(sE,{key:h,name:h,path:s,tree:d}))))}),rE=ce("div",{position:"relative",fontFamily:"$mono",fontSize:"$root",color:"$rootText",backgroundColor:"$elevation1",variants:{fill:{false:{position:"fixed",top:"10px",right:"10px",zIndex:1e3,width:"$rootWidth"},true:{position:"relative",width:"100%"}},flat:{false:{borderRadius:"$lg",boxShadow:"$level1"}},oneLineLabels:{true:{[`${C0}`]:{gridTemplateColumns:"auto",gridAutoColumns:"minmax(max-content, 1fr)",gridAutoRows:"minmax($sizes$rowHeight), auto)",rowGap:0,columnGap:0,marginTop:"$rowGap"}}},hideTitleBar:{true:{$$titleBarHeight:"0px"},false:{$$titleBarHeight:"$sizes$titleBarHeight"}}},"&,*,*:after,*:before":{boxSizing:"border-box"},"*::selection":{backgroundColor:"$accent2"}}),dm=40,Pa=ce("i",{$flexCenter:"",width:dm,userSelect:"none",cursor:"pointer","> svg":{fill:"$highlight1",transition:"transform 350ms ease, fill 250ms ease"},"&:hover > svg":{fill:"$highlight3"},variants:{active:{true:{"> svg":{fill:"$highlight2"}}}}}),iE=ce("div",{display:"flex",alignItems:"stretch",justifyContent:"space-between",height:"$titleBarHeight",variants:{mode:{drag:{cursor:"grab"}}}}),oE=ce("div",{$flex:"",position:"relative",width:"100%",overflow:"hidden",transition:"height 250ms ease",color:"$highlight3",paddingLeft:"$md",[`> ${Pa}`]:{height:30},variants:{toggled:{true:{height:30},false:{height:0}}}}),aE=ce("input",{$reset:"",flex:1,position:"relative",height:30,width:"100%",backgroundColor:"transparent",fontSize:"10px",borderRadius:"$root","&:focus":{},"&::placeholder":{color:"$highlight2"}}),cE=ce("div",{touchAction:"none",$flexCenter:"",flex:1,"> svg":{fill:"$highlight1"},color:"$highlight1",variants:{drag:{true:{$draggable:"","> svg":{transition:"fill 250ms ease"},"&:hover":{color:"$highlight3"},"&:hover > svg":{fill:"$highlight3"}}},filterEnabled:{false:{paddingRight:dm}}}}),lE=N.forwardRef(({setFilter:n,toggle:e},t)=>{const[s,r]=v.useState(""),i=v.useMemo(()=>d0(n,250),[n]),o=()=>{n(""),r("")},a=c=>{const l=c.currentTarget.value;e(!0),r(l)};return v.useEffect(()=>{i(s)},[s,i]),N.createElement(N.Fragment,null,N.createElement(aE,{ref:t,value:s,placeholder:"[Open filter with CMD+SHIFT+L]",onPointerDown:c=>c.stopPropagation(),onChange:a}),N.createElement(Pa,{onClick:()=>o(),style:{visibility:s?"visible":"hidden"}},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"14",width:"14",viewBox:"0 0 20 20",fill:"currentColor"},N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"}))))});function uE({setFilter:n,onDrag:e,onDragStart:t,onDragEnd:s,toggle:r,toggled:i,title:o,drag:a,filterEnabled:c,from:l}){const[u,h]=v.useState(!1),d=v.useRef(null);v.useEffect(()=>{var m,p;u?(m=d.current)===null||m===void 0||m.focus():(p=d.current)===null||p===void 0||p.blur()},[u]);const f=Co(({offset:[m,p],first:g,last:_})=>{e({x:m,y:p}),g&&t({x:m,y:p}),_&&s({x:m,y:p})},{filterTaps:!0,from:({offset:[m,p]})=>[(l==null?void 0:l.x)||m,(l==null?void 0:l.y)||p]});return v.useEffect(()=>{const m=p=>{p.key==="L"&&p.shiftKey&&p.metaKey&&h(g=>!g)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[]),N.createElement(N.Fragment,null,N.createElement(iE,{mode:a?"drag":void 0},N.createElement(Pa,{active:!i,onClick:()=>r()},N.createElement($u,{toggled:i,width:12,height:8})),N.createElement(cE,Je({},a?f():{},{drag:a,filterEnabled:c}),o===void 0&&a?N.createElement("svg",{width:"20",height:"10",viewBox:"0 0 28 14",xmlns:"http://www.w3.org/2000/svg"},N.createElement("circle",{cx:"2",cy:"2",r:"2"}),N.createElement("circle",{cx:"14",cy:"2",r:"2"}),N.createElement("circle",{cx:"26",cy:"2",r:"2"}),N.createElement("circle",{cx:"2",cy:"12",r:"2"}),N.createElement("circle",{cx:"14",cy:"12",r:"2"}),N.createElement("circle",{cx:"26",cy:"12",r:"2"})):o),c&&N.createElement(Pa,{active:u,onClick:()=>h(m=>!m)},N.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",height:"20",viewBox:"0 0 20 20"},N.createElement("path",{d:"M9 9a2 2 0 114 0 2 2 0 01-4 0z"}),N.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-13a4 4 0 00-3.446 6.032l-2.261 2.26a1 1 0 101.414 1.415l2.261-2.261A4 4 0 1011 5z",clipRule:"evenodd"})))),N.createElement(oE,{toggled:u},N.createElement(lE,{ref:d,setFilter:n,toggle:r})))}const hE=["store","hidden","theme","collapsed"];function dE(n){let{store:e,hidden:t=!1,theme:s,collapsed:r=!1}=n,i=De(n,hE);const o=sm(()=>Pb(s),[s]),[a,c]=v.useState(!r),l=typeof r=="object"?!r.collapsed:a,u=v.useMemo(()=>typeof r=="object"?h=>{typeof h=="function"?r.onChange(!h(!r.collapsed)):r.onChange(!h)}:c,[r]);return!e||t?null:N.createElement(Mu.Provider,{value:o},N.createElement(fE,Je({store:e},i,{toggled:l,setToggle:u,rootClass:o.className})))}const fE=N.memo(({store:n,rootClass:e,fill:t=!1,flat:s=!1,neverHide:r=!1,oneLineLabels:i=!1,titleBar:o={title:void 0,drag:!0,filter:!0,position:void 0,onDrag:void 0,onDragStart:void 0,onDragEnd:void 0},hideCopyButton:a=!1,toggled:c,setToggle:l})=>{var u,h;const d=Bk(n),[f,m]=v.useState(""),p=v.useMemo(()=>jT(d,f),[d,f]),[g,_]=A0(),T=r||d.length>0,w=typeof o=="object"&&o.title||void 0,b=typeof o=="object"&&(u=o.drag)!==null&&u!==void 0?u:!0,y=typeof o=="object"&&(h=o.filter)!==null&&h!==void 0?h:!0,x=typeof o=="object"&&o.position||void 0,E=typeof o=="object"&&o.onDrag||void 0,k=typeof o=="object"&&o.onDragStart||void 0,C=typeof o=="object"&&o.onDragEnd||void 0;return N.useEffect(()=>{_({x:x==null?void 0:x.x,y:x==null?void 0:x.y})},[x,_]),Db(),N.createElement(b0.Provider,{value:{hideCopyButton:a}},N.createElement(rE,{ref:g,className:e,fill:t,flat:s,oneLineLabels:i,hideTitleBar:!o,style:{display:T?"block":"none"}},o&&N.createElement(uE,{onDrag:S=>{_(S),E==null||E(S)},onDragStart:S=>k==null?void 0:k(S),onDragEnd:S=>C==null?void 0:C(S),setFilter:m,toggle:S=>l(R=>S??!R),toggled:c,title:w,drag:b,filterEnabled:y,from:x}),T&&N.createElement(v0.Provider,{value:n},N.createElement(hm,{isRoot:!0,fill:t,flat:s,tree:p,toggled:c}))))}),pE=["isRoot"];let Ma=!1,zs=null;function fm(n){let{isRoot:e=!1}=n,t=De(n,pE);return v.useEffect(()=>(Ma=!0,!e&&zs&&(zs.remove(),zs=null),()=>{e||(Ma=!1)}),[e]),N.createElement(dE,Je({store:lm},t))}function mE(n){v.useEffect(()=>{n&&!Ma&&(zs||(zs=document.getElementById("leva__root")||Object.assign(document.createElement("div"),{id:"leva__root"}),document.body&&(document.body.appendChild(zs),kb(N.createElement(fm,{isRoot:!0}),zs))),Ma=!0)},[n])}function gE(n,e,t,s,r){let i,o,a,c,l;return typeof n=="string"?(o=n,i=e,Array.isArray(t)?l=t:t&&("store"in t?(c=t,l=s):(a=t,Array.isArray(s)?l=s:(c=s,l=r)))):(i=n,Array.isArray(e)?l=e:(c=e,l=t)),{schema:i,folderName:o,folderSettings:a,hookSettings:c,deps:l||[]}}function pm(n,e,t,s,r){const{folderName:i,schema:o,folderSettings:a,hookSettings:c,deps:l}=gE(n,e,t,s,r),u=typeof o=="function",h=v.useRef(!1),d=v.useRef(!0),f=sm(()=>{h.current=!0;const R=typeof o=="function"?o():o;return i?{[i]:LT(R,a)}:R},l),m=!(c!=null&&c.store);mE(m);const[p]=v.useState(()=>(c==null?void 0:c.store)||lm),[g,_]=v.useMemo(()=>p.getDataFromSchema(f),[p,f]),[T,w,b,y,x]=v.useMemo(()=>{const R=[],O=[],L={},z={},W={};return Object.values(_).forEach(({path:B,onChange:V,onEditStart:U,onEditEnd:X,transient:K})=>{R.push(B),V?(L[B]=V,K||O.push(B)):O.push(B),U&&(z[B]=U),X&&(W[B]=X)}),[R,O,L,z,W]},[_]),E=v.useMemo(()=>p.orderPaths(T),[T,p]),k=Wk(p,w,g),C=v.useCallback(R=>{const O=Object.entries(R).reduce((L,[z,W])=>Object.assign(L,{[_[z].path]:W}),{});p.set(O,!1)},[p,_]),S=v.useCallback(R=>p.get(_[R].path),[p,_]);return v.useEffect(()=>{const R=!d.current&&h.current;return p.addData(g,R),d.current=!1,h.current=!1,()=>p.disposePaths(E)},[p,E,g]),v.useEffect(()=>{const R=[];return Object.entries(b).forEach(([O,L])=>{L(p.get(O),O,de({initial:!0,get:p.get},p.getInput(O)));const z=p.useStore.subscribe(W=>{const B=W.data[O];return[B.disabled?void 0:B.value,B]},([W,B])=>L(W,O,de({initial:!1,get:p.get},B)),{equalityFn:To});R.push(z)}),()=>R.forEach(O=>O())},[p,b]),v.useEffect(()=>{const R=[];return Object.entries(y).forEach(([O,L])=>R.push(p.subscribeToEditStart(O,L))),Object.entries(x).forEach(([O,L])=>R.push(p.subscribeToEditEnd(O,L))),()=>R.forEach(O=>O())},[y,x,p]),u?[k,C,S]:k}ns(dn.SELECT,mx);ns(dn.IMAGE,kT);ns(dn.NUMBER,ix);ns(dn.COLOR,tT);ns(dn.STRING,Tx);ns(dn.BOOLEAN,Dx);ns(dn.INTERVAL,PT);ns(dn.VECTOR3D,sT);ns(dn.VECTOR2D,hT);const _E={isUserDragging:!1,isUserScrolling:!1,userMovedCamera:!1,isUserScrollingOnHtmlPanel:!1},Ws=gp(n=>({..._E,setIsUserDragging:e=>n({isUserDragging:e}),setIsUserScrolling:e=>n({isUserScrolling:e}),setUserMovedCamera:e=>n({userMovedCamera:e}),setIsUserScrollingOnHtmlPanel:e=>n({isUserScrollingOnHtmlPanel:e})})),yE=()=>{const[n,e]=v.useState(""),t=v.useRef(null),{setAbortRequests:s,seedQuestions:r,resetData:i}=Nt(y=>y),[o]=_u(y=>[y.setBudget]),{setUniverseQuestionIsOpen:a,setSidebarOpen:c,setShowCollapseButton:l}=bo(y=>({setUniverseQuestionIsOpen:y.setUniverseQuestionIsOpen,setSidebarOpen:y.setSidebarOpen,setShowCollapseButton:y.setShowCollapseButton})),u=jh(y=>y.resetAiSummaryAnswer),h=jh(y=>y.fetchAIData),[d,f]=v.useState([]);v.useEffect(()=>{r&&f(w(r).slice(0,4))},[r]),v.useEffect(()=>{t.current&&t.current.focus()},[]);const m=async y=>{y&&(u(),a(),i(),c(!0),l(!0),await h(o,s,y))},p=!!n.trim().length,g=async y=>{y.keyCode===13&&y.shiftKey===!1&&p&&(y.preventDefault(),m(n))},_=async y=>{e(y),await m(y)},T=()=>{a(),c(!0),l(!0)},w=y=>{const x=[...y];let E=x.length-1;for(;E>0;){const k=Math.floor(Math.random()*(E+1));[x[E],x[k]]=[x[k],x[E]],E-=1}return x},b=!!n&&n.trim().length>0;return P.jsxs(xE,{children:["Ideas have shapes",P.jsxs(bE,{onKeyDown:g,py:12,tabIndex:-1,children:[P.jsx(vE,{ref:t,onChange:y=>e(y.target.value),placeholder:"What do you want to know?",value:n}),P.jsx(wE,{color:"secondary",disabled:!b,onClick:()=>m(n),variant:"contained",children:b?P.jsxs(P.Fragment,{children:["Search ",P.jsx(Bh,{})]}):P.jsx(Bh,{})})]}),d.length>0&&P.jsx(TE,{children:d.map(y=>P.jsxs(EE,{onClick:()=>_(y),children:[P.jsx(oy,{}),y]},y))}),P.jsx(kE,{"data-testid":"explore-graph-btn",onClick:T,startIcon:P.jsx(ay,{}),children:"Explore Graph"})]})},vE=ye(gy).attrs({maxRows:3})` background: ${oe.BG1}; max-width: 700px; width: 700px; @@ -119,7 +119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho font-weight: 700; line-height: 16px; font-family: 'Barlow'; -`,wE=ye(gp)` +`,wE=ye(_p)` && { position: absolute; bottom: 16px; @@ -138,7 +138,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho width: 11px; height: 11px; } -`,kE=ye(gp)` +`,kE=ye(_p)` && { position: absolute; bottom: 20px; @@ -181,9 +181,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho path { fill: ${oe.modalWhiteOverlayBg}; } -`,CE=new _e(0,0,0),vf=1,SE=16777215,$i=new _e(0,0,0),bf=100,OE=600,AE=2e3,ps={x:0,y:0,z:200},fm="14.8.49",xf=(n,e,t)=>({endTime:e,insertTime:t,type:"exponentialRampToValue",value:n}),wf=(n,e,t)=>({endTime:e,insertTime:t,type:"linearRampToValue",value:n}),Wl=(n,e)=>({startTime:e,type:"setValue",value:n}),pm=(n,e,t)=>({duration:t,startTime:e,type:"setValueCurve",values:n}),mm=(n,e,{startTime:t,target:s,timeConstant:r})=>s+(e-s)*Math.exp((t-n)/r),Er=n=>n.type==="exponentialRampToValue",Na=n=>n.type==="linearRampToValue",us=n=>Er(n)||Na(n),qu=n=>n.type==="setValue",jn=n=>n.type==="setValueCurve",Ia=(n,e,t,s)=>{const r=n[e];return r===void 0?s:us(r)||qu(r)?r.value:jn(r)?r.values[r.values.length-1]:mm(t,Ia(n,e-1,r.startTime,s),r)},kf=(n,e,t,s,r)=>t===void 0?[s.insertTime,r]:us(t)?[t.endTime,t.value]:qu(t)?[t.startTime,t.value]:jn(t)?[t.startTime+t.duration,t.values[t.values.length-1]]:[t.startTime,Ia(n,e-1,t.startTime,r)],ql=n=>n.type==="cancelAndHold",Hl=n=>n.type==="cancelScheduledValues",as=n=>ql(n)||Hl(n)?n.cancelTime:Er(n)||Na(n)?n.endTime:n.startTime,Tf=(n,e,t,{endTime:s,value:r})=>t===r?r:0t+(n-e)/(s-e)*(r-t),RE=(n,e)=>{const t=Math.floor(e),s=Math.ceil(e);return t===s?n[t]:(1-(e-t))*n[t]+(1-(s-e))*n[s]},DE=(n,{duration:e,startTime:t,values:s})=>{const r=(n-t)/e*(s.length-1);return RE(s,r)},ta=n=>n.type==="setTarget";class PE{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const t=as(e);if(ql(e)||Hl(e)){const s=this._automationEvents.findIndex(i=>Hl(e)&&jn(i)?i.startTime+i.duration>=t:as(i)>=t),r=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),ql(e)){const i=this._automationEvents[this._automationEvents.length-1];if(r!==void 0&&us(r)){if(i!==void 0&&ta(i))throw new Error("The internal list is malformed.");const o=i===void 0?r.insertTime:jn(i)?i.startTime+i.duration:as(i),a=i===void 0?this._defaultValue:jn(i)?i.values[i.values.length-1]:i.value,c=Er(r)?Tf(t,o,a,r):Ef(t,o,a,r),l=Er(r)?xf(c,t,this._currenTime):wf(c,t,this._currenTime);this._automationEvents.push(l)}if(i!==void 0&&ta(i)&&this._automationEvents.push(Wl(this.getValue(t),t)),i!==void 0&&jn(i)&&i.startTime+i.duration>t){const o=t-i.startTime,a=(i.values.length-1)/i.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=i.values.slice(0,c);if(l<1)for(let h=1;has(o)>t),r=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(r!==void 0&&jn(r)&&as(r)+r.duration>t)return!1;const i=Er(e)?xf(e.value,e.endTime,this._currenTime):Na(e)?wf(e.value,t,this._currenTime):e;if(s===-1)this._automationEvents.push(i);else{if(jn(e)&&t+e.duration>as(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,i)}}return!0}flush(e){const t=this._automationEvents.findIndex(s=>as(s)>e);if(t>1){const s=this._automationEvents.slice(t-1),r=s[0];ta(r)&&s.unshift(Wl(Ia(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=s}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const t=this._automationEvents.findIndex(o=>as(o)>e),s=this._automationEvents[t],r=(t===-1?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(i!==void 0&&ta(i)&&(s===void 0||!us(s)||s.insertTime>e))return mm(e,Ia(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(i!==void 0&&qu(i)&&(s===void 0||!us(s)))return i.value;if(i!==void 0&&jn(i)&&(s===void 0||!us(s)||i.startTime+i.duration>e))return e({cancelTime:n,type:"cancelAndHold"}),NE=n=>({cancelTime:n,type:"cancelScheduledValues"}),IE=(n,e)=>({endTime:e,type:"exponentialRampToValue",value:n}),$E=(n,e)=>({endTime:e,type:"linearRampToValue",value:n}),FE=(n,e,t)=>({startTime:e,target:n,timeConstant:t,type:"setTarget"}),LE=()=>new DOMException("","AbortError"),jE=n=>(e,t,[s,r,i],o)=>{n(e[r],[t,s,i],a=>a[0]===t&&a[1]===s,o)},zE=n=>(e,t,s)=>{const r=[];for(let i=0;i(e,t)=>{n.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:t})},Vr=new WeakSet,gm=new WeakMap,Hu=new WeakMap,_m=new WeakMap,Yu=new WeakMap,bc=new WeakMap,ym=new WeakMap,Yl=new WeakMap,Gl=new WeakMap,Xl=new WeakMap,vm={construct(){return vm}},UE=n=>{try{const e=new Proxy(n,vm);new e}catch{return!1}return!0},Cf=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,Sf=(n,e)=>{const t=[];let s=n.replace(/^[\s]+/,""),r=s.match(Cf);for(;r!==null;){const i=r[1].slice(1,-1),o=r[0].replace(/([\s]+)?;?$/,"").replace(i,new URL(i,e).toString());t.push(o),s=s.slice(r[0].length).replace(/^[\s]+/,""),r=s.match(Cf)}return[t.join(";"),s]},Of=n=>{if(n!==void 0&&!Array.isArray(n))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},Af=n=>{if(!UE(n))throw new TypeError("The given value for processorCtor should be a constructor.");if(n.prototype===null||typeof n.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},BE=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{let f=0;return(g,p,m={credentials:"omit"})=>{const _=u.get(g);if(_!==void 0&&_.has(p))return Promise.resolve();const T=l.get(g);if(T!==void 0){const v=T.get(p);if(v!==void 0)return v}const w=i(g),y=w.audioWorklet===void 0?r(p).then(([v,k])=>{const[E,x]=Sf(v,k),C=`${E};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${x} -})})(window,'_AWGS')`;return t(C)}).then(()=>{const v=d._AWGS.pop();if(v===void 0)throw new SyntaxError;s(w.currentTime,w.sampleRate,()=>v(class{},void 0,(k,E)=>{if(k.trim()==="")throw e();const x=Gl.get(w);if(x!==void 0){if(x.has(k))throw e();Af(E),Of(E.parameterDescriptors),x.set(k,E)}else Af(E),Of(E.parameterDescriptors),Gl.set(w,new Map([[k,E]]))},w.sampleRate,void 0,void 0))}):Promise.all([r(p),Promise.resolve(n(h,h))]).then(([[v,k],E])=>{const x=f+1;f=x;const[C,S]=Sf(v,k),z=`${C};((AudioWorkletProcessor,registerProcessor)=>{${S} -})(${E?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${E?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${E?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${x}',class extends AudioWorkletProcessor{process(){return !1}})`,W=new Blob([z],{type:"application/javascript; charset=utf-8"}),B=URL.createObjectURL(W);return w.audioWorklet.addModule(B,m).then(()=>{if(a(w))return w;const V=o(w);return V.audioWorklet.addModule(B,m).then(()=>V)}).then(V=>{if(c===null)throw new SyntaxError;try{new c(V,`__sac${x}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(B))});return T===void 0?l.set(g,new Map([[p,y]])):T.set(p,y),y.then(()=>{const v=u.get(g);v===void 0?u.set(g,new Set([p])):v.add(p)}).finally(()=>{const v=l.get(g);v!==void 0&&v.delete(p)}),y}},fn=(n,e)=>{const t=n.get(e);if(t===void 0)throw new Error("A value with the given key could not be found.");return t},xc=(n,e)=>{const t=Array.from(n).filter(e);if(t.length>1)throw Error("More than one element was found.");if(t.length===0)throw Error("No element was found.");const[s]=t;return n.delete(s),s},bm=(n,e,t,s)=>{const r=fn(n,e),i=xc(r,o=>o[0]===t&&o[1]===s);return r.size===0&&n.delete(e),i},Ao=n=>fn(ym,n),Ur=n=>{if(Vr.has(n))throw new Error("The AudioNode is already stored.");Vr.add(n),Ao(n).forEach(e=>e(!0))},xm=n=>"port"in n,Ro=n=>{if(!Vr.has(n))throw new Error("The AudioNode is not stored.");Vr.delete(n),Ao(n).forEach(e=>e(!1))},Zl=(n,e)=>{!xm(n)&&e.every(t=>t.size===0)&&Ro(n)},WE=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{const f=new WeakMap;return(g,p,m,_,T)=>{const{activeInputs:w,passiveInputs:y}=i(p),{outputs:v}=i(g),k=a(g),E=x=>{const C=c(p),S=c(g);if(x){const R=bm(y,g,m,_);n(w,g,R,!1),!T&&!h(g)&&t(S,C,m,_),d(p)&&Ur(p)}else{const R=s(w,g,m,_);e(y,_,R,!1),!T&&!h(g)&&r(S,C,m,_);const O=o(p);if(O===0)u(p)&&Zl(p,w);else{const L=f.get(p);L!==void 0&&clearTimeout(L),f.set(p,setTimeout(()=>{u(p)&&Zl(p,w)},O*1e3))}}};return l(v,[p,m,_],x=>x[0]===p&&x[1]===m&&x[2]===_,!0)?(k.add(E),u(g)?n(w,g,[m,_,E],!0):e(y,_,[g,m,E],!0),!0):!1}},qE=n=>(e,t,[s,r,i],o)=>{const a=e.get(s);a===void 0?e.set(s,new Set([[r,t,i]])):n(a,[r,t,i],c=>c[0]===r&&c[1]===t,o)},HE=n=>(e,t)=>{const s=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});t.connect(s).connect(e.destination);const r=()=>{t.removeEventListener("ended",r),t.disconnect(s),s.disconnect()};t.addEventListener("ended",r)},YE=n=>(e,t)=>{n(e).add(t)},GE={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},XE=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...GE,...c},h=s(l,u),d=i(l)?e():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,t()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,t()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},vt=(n,e)=>n.context===e,ZE=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},$a=n=>{try{n.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Dn=()=>new DOMException("","IndexSizeError"),Gu=n=>{n.getChannelData=(e=>t=>{try{return e.call(n,t)}catch(s){throw s.code===12?Dn():s}})(n.getChannelData)},KE={numberOfChannels:1},QE=(n,e,t,s,r,i,o,a)=>{let c=null;return class wm{constructor(u){if(r===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:f}={...KE,...u};c===null&&(c=new r(1,1,44100));const g=s!==null&&e(i,i)?new s({length:h,numberOfChannels:d,sampleRate:f}):c.createBuffer(d,h,f);if(g.numberOfChannels===0)throw t();return typeof g.copyFromChannel!="function"?(o(g),Gu(g)):e($a,()=>$a(g))||a(g),n.add(g),g}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===wm.prototype||n.has(u)}}},St=-34028234663852886e22,xt=-St,qn=n=>Vr.has(n),JE={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},eC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...JE,...u},f=r(h,d),g=o(h),p=g?e():null;super(l,!1,f,p),this._audioBufferSourceNodeRenderer=p,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=t(this,g,f.playbackRate,xt,St)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Ur(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),qn(this)&&Ro(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},tC=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(h,u);if(!d){const f={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=e(u,f),o!==null&&h.start(...o),a!==null&&h.stop(a)}return i.set(u,h),d?await n(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},nC=n=>"playbackRate"in n,sC=n=>"frequency"in n&&"gain"in n,rC=n=>"offset"in n,iC=n=>!("frequency"in n)&&"gain"in n,oC=n=>"detune"in n&&"frequency"in n,aC=n=>"pan"in n,Tt=n=>fn(gm,n),Do=n=>fn(_m,n),Kl=(n,e)=>{const{activeInputs:t}=Tt(n);t.forEach(r=>r.forEach(([i])=>{e.includes(n)||Kl(i,[...e,n])}));const s=nC(n)?[n.playbackRate]:xm(n)?Array.from(n.parameters.values()):sC(n)?[n.Q,n.detune,n.frequency,n.gain]:rC(n)?[n.offset]:iC(n)?[n.gain]:oC(n)?[n.detune,n.frequency]:aC(n)?[n.pan]:[];for(const r of s){const i=Do(r);i!==void 0&&i.activeInputs.forEach(([o])=>Kl(o,e))}qn(n)&&Ro(n)},km=n=>{Kl(n.destination,[])},cC=n=>n===void 0||typeof n=="number"||typeof n=="string"&&(n==="balanced"||n==="interactive"||n==="playback"),lC=(n,e,t,s,r,i,o,a,c)=>class extends n{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(g){throw g.code===12&&g.message==="sampleRate is not in range"?t():g}if(h===null)throw s();if(!cC(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw t();super(h,2);const{latencyHint:d}=u,{sampleRate:f}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/f:d==="interactive"||d===void 0?256/f:d==="playback"?1024/f:Math.max(2,Math.min(128,Math.round(d*f/128)))*128/f,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const g=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",g)};h.addEventListener("statechange",g)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),km(this)}))}createMediaElementSource(u){return new r(this,{mediaElement:u})}createMediaStreamDestination(){return new i(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?e():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?e():u})}},uC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d=o(h),f=r(h,u,d),g=d?e(a):null;super(l,!1,f,g),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=f}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw t();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},hC=n=>{const e=new WeakMap,t=async(s,r)=>{const i=r.destination;return e.set(r,i),await n(s,r,i),i};return{render(s,r){const i=e.get(r);return i!==void 0?Promise.resolve(i):t(s,r)}}},dC=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const v=new Float32Array(1),k=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),E=o(l);let x=!1,C=[0,0,-1,0,1,0],S=[0,0,0];const R=()=>{if(x)return;x=!0;const W=s(l,256,9,0);W.onaudioprocess=({inputBuffer:B})=>{const V=[i(B,v,0),i(B,v,1),i(B,v,2),i(B,v,3),i(B,v,4),i(B,v,5)];V.some((X,K)=>X!==C[K])&&(u.setOrientation(...V),C=V);const U=[i(B,v,6),i(B,v,7),i(B,v,8)];U.some((X,K)=>X!==S[K])&&(u.setPosition(...U),S=U)},k.connect(W)},O=W=>B=>{B!==C[W]&&(C[W]=B,u.setOrientation(...C))},L=W=>B=>{B!==S[W]&&(S[W]=B,u.setPosition(...S))},z=(W,B,V)=>{const U=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:B});U.connect(k,0,W),U.start(),Object.defineProperty(U.offset,"defaultValue",{get(){return B}});const X=n({context:c},E,U.offset,xt,St);return a(X,"value",K=>()=>K.call(X),K=>Q=>{try{K.call(X,Q)}catch(F){if(F.code!==9)throw F}R(),E&&V(Q)}),X.cancelAndHoldAtTime=(K=>E?()=>{throw r()}:(...Q)=>{const F=K.apply(X,Q);return R(),F})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(K=>E?()=>{throw r()}:(...Q)=>{const F=K.apply(X,Q);return R(),F})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(K=>E?()=>{throw r()}:(...Q)=>{const F=K.apply(X,Q);return R(),F})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(K=>E?()=>{throw r()}:(...Q)=>{const F=K.apply(X,Q);return R(),F})(X.linearRampToValueAtTime),X.setTargetAtTime=(K=>E?()=>{throw r()}:(...Q)=>{const F=K.apply(X,Q);return R(),F})(X.setTargetAtTime),X.setValueAtTime=(K=>E?()=>{throw r()}:(...Q)=>{const F=K.apply(X,Q);return R(),F})(X.setValueAtTime),X.setValueCurveAtTime=(K=>E?()=>{throw r()}:(...Q)=>{const F=K.apply(X,Q);return R(),F})(X.setValueCurveAtTime),X};return{forwardX:z(0,0,O(0)),forwardY:z(1,0,O(1)),forwardZ:z(2,-1,O(2)),positionX:z(6,0,L(0)),positionY:z(7,0,L(1)),positionZ:z(8,0,L(2)),upX:z(3,0,O(3)),upY:z(4,1,O(4)),upZ:z(5,0,O(5))}},{forwardX:d,forwardY:f,forwardZ:g,positionX:p,positionY:m,positionZ:_,upX:T,upY:w,upZ:y}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return f},get forwardZ(){return g},get positionX(){return p},get positionY(){return m},get positionZ(){return _},get upX(){return T},get upY(){return w},get upZ(){return y}}},Fa=n=>"context"in n,Po=n=>Fa(n[0]),cr=(n,e,t,s)=>{for(const r of n)if(t(r)){if(s)return!1;throw Error("The set contains at least one similar element.")}return n.add(e),!0},Rf=(n,e,[t,s],r)=>{cr(n,[e,t,s],i=>i[0]===e&&i[1]===t,r)},Df=(n,[e,t,s],r)=>{const i=n.get(e);i===void 0?n.set(e,new Set([[t,s]])):cr(i,[t,s],o=>o[0]===t,r)},ii=n=>"inputs"in n,La=(n,e,t,s)=>{if(ii(e)){const r=e.inputs[s];return n.connect(r,t,0),[r,t,0]}return n.connect(e,t,s),[e,t,s]},Tm=(n,e,t)=>{for(const s of n)if(s[0]===e&&s[1]===t)return n.delete(s),s;return null},fC=(n,e,t)=>xc(n,s=>s[0]===e&&s[1]===t),Em=(n,e)=>{if(!Ao(n).delete(e))throw new Error("Missing the expected event listener.")},Cm=(n,e,t)=>{const s=fn(n,e),r=xc(s,i=>i[0]===t);return s.size===0&&n.delete(e),r},ja=(n,e,t,s)=>{ii(e)?n.disconnect(e.inputs[s],t,0):n.disconnect(e,t,s)},Be=n=>fn(Hu,n),Yi=n=>fn(Yu,n),er=n=>Yl.has(n),da=n=>!Vr.has(n),Pf=(n,e)=>new Promise(t=>{if(e!==null)t(!0);else{const s=n.createScriptProcessor(256,1,1),r=n.createGain(),i=n.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const a=n.createBufferSource();a.buffer=i,a.loop=!0,a.connect(s).connect(n.destination),a.connect(r),a.disconnect(r),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?t(!0):t(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(n.destination)},a.start()}}),al=(n,e)=>{const t=new Map;for(const s of n)for(const r of s){const i=t.get(r);t.set(r,i===void 0?1:i+1)}t.forEach((s,r)=>e(r,s))},za=n=>"context"in n,pC=n=>{const e=new Map;n.connect=(t=>(s,r=0,i=0)=>{const o=za(s)?t(s,r,i):t(s,r),a=e.get(s);return a===void 0?e.set(s,[{input:i,output:r}]):a.every(c=>c.input!==i||c.output!==r)&&a.push({input:i,output:r}),o})(n.connect.bind(n)),n.disconnect=(t=>(s,r,i)=>{if(t.apply(n),s===void 0)e.clear();else if(typeof s=="number")for(const[o,a]of e){const c=a.filter(l=>l.output!==s);c.length===0?e.delete(o):e.set(o,c)}else if(e.has(s))if(r===void 0)e.delete(s);else{const o=e.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==r&&(c.input!==i||i===void 0));a.length===0?e.delete(s):e.set(s,a)}}for(const[o,a]of e)a.forEach(c=>{za(o)?n.connect(o,c.output,c.input):n.connect(o,c.output)})})(n.disconnect)},mC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=Do(e),{outputs:o}=Tt(n),a=Ao(n),c=l=>{const u=Be(n),h=Yi(e);if(l){const d=Cm(i,n,t);Rf(r,n,d,!1),!s&&!er(n)&&u.connect(h,t)}else{const d=fC(r,n,t);Df(i,d,!1),!s&&!er(n)&&u.disconnect(h,t)}};return cr(o,[e,t],l=>l[0]===e&&l[1]===t,!0)?(a.add(c),qn(n)?Rf(r,n,[t,c],!0):Df(i,[n,t,c],!0),!0):!1},gC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=Tt(e),o=Tm(r[s],n,t);return o===null?[bm(i,n,t,s)[2],!1]:[o[2],!0]},_C=(n,e,t)=>{const{activeInputs:s,passiveInputs:r}=Do(e),i=Tm(s,n,t);return i===null?[Cm(r,n,t)[1],!1]:[i[2],!0]},Xu=(n,e,t,s,r)=>{const[i,o]=gC(n,t,s,r);if(i!==null&&(Em(n,i),o&&!e&&!er(n)&&ja(Be(n),Be(t),s,r)),qn(t)){const{activeInputs:a}=Tt(t);Zl(t,a)}},Zu=(n,e,t,s)=>{const[r,i]=_C(n,t,s);r!==null&&(Em(n,r),i&&!e&&!er(n)&&Be(n).disconnect(Yi(t),s))},yC=(n,e)=>{const t=Tt(n),s=[];for(const r of t.outputs)Po(r)?Xu(n,e,...r):Zu(n,e,...r),s.push(r[0]);return t.outputs.clear(),s},vC=(n,e,t)=>{const s=Tt(n),r=[];for(const i of s.outputs)i[1]===t&&(Po(i)?Xu(n,e,...i):Zu(n,e,...i),r.push(i[0]),s.outputs.delete(i));return r},bC=(n,e,t,s,r)=>{const i=Tt(n);return Array.from(i.outputs).filter(o=>o[0]===t&&(s===void 0||o[1]===s)&&(r===void 0||o[2]===r)).map(o=>(Po(o)?Xu(n,e,...o):Zu(n,e,...o),i.outputs.delete(o),o[0]))},xC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f,g,p)=>class extends l{constructor(_,T,w,y){super(w),this._context=_,this._nativeAudioNode=w;const v=u(_);h(v)&&t(Pf,()=>Pf(v,p))!==!0&&pC(w),Hu.set(this,w),ym.set(this,new Set),_.state!=="closed"&&T&&Ur(this),n(this,y,w)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(_){this._nativeAudioNode.channelCount=_}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(_){this._nativeAudioNode.channelCountMode=_}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(_){this._nativeAudioNode.channelInterpretation=_}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(_,T=0,w=0){if(T<0||T>=this._nativeAudioNode.numberOfOutputs)throw r();const y=u(this._context),v=g(y);if(d(_)||f(_))throw i();if(Fa(_)){const x=Be(_);try{const S=La(this._nativeAudioNode,x,T,w),R=da(this);(v||R)&&this._nativeAudioNode.disconnect(...S),this.context.state!=="closed"&&!R&&da(_)&&Ur(_)}catch(S){throw S.code===12?i():S}if(e(this,_,T,w,v)){const S=c([this],_);al(S,s(v))}return _}const k=Yi(_);if(k.name==="playbackRate"&&k.maxValue===1024)throw o();try{this._nativeAudioNode.connect(k,T),(v||da(this))&&this._nativeAudioNode.disconnect(k,T)}catch(x){throw x.code===12?i():x}if(mC(this,_,T,v)){const x=c([this],_);al(x,s(v))}}disconnect(_,T,w){let y;const v=u(this._context),k=g(v);if(_===void 0)y=yC(this,k);else if(typeof _=="number"){if(_<0||_>=this.numberOfOutputs)throw r();y=vC(this,k,_)}else{if(T!==void 0&&(T<0||T>=this.numberOfOutputs)||Fa(_)&&w!==void 0&&(w<0||w>=_.numberOfInputs))throw r();if(y=bC(this,k,_,T,w),y.length===0)throw i()}for(const E of y){const x=c([this],E);al(x,a)}}},wC=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,g,p,m=null,_=null)=>{const T=p.value,w=new PE(T),y=g?s(w):null,v={get defaultValue(){return T},get maxValue(){return m===null?p.maxValue:m},get minValue(){return _===null?p.minValue:_},get value(){return p.value},set value(k){p.value=k,v.setValueAtTime(k,f.context.currentTime)},cancelAndHoldAtTime(k){if(typeof p.cancelAndHoldAtTime=="function")y===null&&w.flush(f.context.currentTime),w.add(r(k)),p.cancelAndHoldAtTime(k);else{const E=Array.from(w).pop();y===null&&w.flush(f.context.currentTime),w.add(r(k));const x=Array.from(w).pop();p.cancelScheduledValues(k),E!==x&&x!==void 0&&(x.type==="exponentialRampToValue"?p.exponentialRampToValueAtTime(x.value,x.endTime):x.type==="linearRampToValue"?p.linearRampToValueAtTime(x.value,x.endTime):x.type==="setValue"?p.setValueAtTime(x.value,x.startTime):x.type==="setValueCurve"&&p.setValueCurveAtTime(x.values,x.startTime,x.duration))}return v},cancelScheduledValues(k){return y===null&&w.flush(f.context.currentTime),w.add(i(k)),p.cancelScheduledValues(k),v},exponentialRampToValueAtTime(k,E){if(k===0)throw new RangeError;if(!Number.isFinite(E)||E<0)throw new RangeError;const x=f.context.currentTime;return y===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(T,x)),p.setValueAtTime(T,x)),w.add(o(k,E)),p.exponentialRampToValueAtTime(k,E),v},linearRampToValueAtTime(k,E){const x=f.context.currentTime;return y===null&&w.flush(x),Array.from(w).length===0&&(w.add(l(T,x)),p.setValueAtTime(T,x)),w.add(a(k,E)),p.linearRampToValueAtTime(k,E),v},setTargetAtTime(k,E,x){return y===null&&w.flush(f.context.currentTime),w.add(c(k,E,x)),p.setTargetAtTime(k,E,x),v},setValueAtTime(k,E){return y===null&&w.flush(f.context.currentTime),w.add(l(k,E)),p.setValueAtTime(k,E),v},setValueCurveAtTime(k,E,x){const C=k instanceof Float32Array?k:new Float32Array(k);if(h!==null&&h.name==="webkitAudioContext"){const S=E+x,R=f.context.sampleRate,O=Math.ceil(E*R),L=Math.floor(S*R),z=L-O,W=new Float32Array(z);for(let V=0;V({replay(e){for(const t of n)if(t.type==="exponentialRampToValue"){const{endTime:s,value:r}=t;e.exponentialRampToValueAtTime(r,s)}else if(t.type==="linearRampToValue"){const{endTime:s,value:r}=t;e.linearRampToValueAtTime(r,s)}else if(t.type==="setTarget"){const{startTime:s,target:r,timeConstant:i}=t;e.setTargetAtTime(r,s,i)}else if(t.type==="setValue"){const{startTime:s,value:r}=t;e.setValueAtTime(r,s)}else if(t.type==="setValueCurve"){const{duration:s,startTime:r,values:i}=t;e.setValueCurveAtTime(i,r,s)}else throw new Error("Can't apply an unknown automation.")}});class Sm{constructor(e){this._map=new Map(e)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(e,t=null){return this._map.forEach((s,r)=>e.call(t,s,r,this))}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){return this._map.keys()}values(){return this._map.values()}}const TC={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},EC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f)=>class extends e{constructor(p,m,_){var T;const w=a(p),y=c(w),v=u({...TC,..._});d(v);const k=Gl.get(w),E=k==null?void 0:k.get(m),x=y||w.state!=="closed"?w:(T=o(w))!==null&&T!==void 0?T:w,C=r(x,y?null:p.baseLatency,l,m,E,v),S=y?s(m,v,E):null;super(p,!0,C,S);const R=[];C.parameters.forEach((L,z)=>{const W=t(this,y,L);R.push([z,W])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new Sm(R),y&&n(w,this);const{activeInputs:O}=i(this);h(C,O)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(p){const m=typeof p=="function"?f(this,p):null;this._nativeAudioWorkletNode.onprocessorerror=m;const _=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=_!==null&&_===m?p:_}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Va(n,e,t,s,r){if(typeof n.copyFromChannel=="function")e[t].byteLength===0&&(e[t]=new Float32Array(128)),n.copyFromChannel(e[t],s,r);else{const i=n.getChannelData(s);if(e[t].byteLength===0)e[t]=i.slice(r,r+128);else{const o=new Float32Array(i.buffer,r*Float32Array.BYTES_PER_ELEMENT,128);e[t].set(o)}}}const Om=(n,e,t,s,r)=>{typeof n.copyToChannel=="function"?e[t].byteLength!==0&&n.copyToChannel(e[t],s,r):e[t].byteLength!==0&&n.getChannelData(s).set(e[t],r)},Ua=(n,e)=>{const t=[];for(let s=0;s{const t=fn(Xl,n),s=Be(e);return fn(t,s)},SC=async(n,e,t,s,r,i,o)=>{const a=e===null?Math.ceil(n.context.length/128)*128:e.length,c=s.channelCount*s.numberOfInputs,l=r.reduce((m,_)=>m+_,0),u=l===0?null:t.createBuffer(l,a,t.sampleRate);if(i===void 0)throw new Error("Missing the processor constructor.");const h=Tt(n),d=await CC(t,n),f=Ua(s.numberOfInputs,s.channelCount),g=Ua(s.numberOfOutputs,r),p=Array.from(n.parameters.keys()).reduce((m,_)=>({...m,[_]:new Float32Array(128)}),{});for(let m=0;m0&&e!==null)for(let _=0;_{Va(e,p,_,c+T,m)});for(let _=0;_h.activeInputs[y].size===0?[]:w),T=o(m/t.sampleRate,t.sampleRate,()=>d.process(_,g,p));if(u!==null)for(let w=0,y=0;w(m,_,T)=>{const w=new WeakMap;let y=null;const v=async(k,E)=>{let x=u(k),C=null;const S=vt(x,E),R=Array.isArray(_.outputChannelCount)?_.outputChannelCount:Array.from(_.outputChannelCount);if(h===null){const O=R.reduce((B,V)=>B+V,0),L=r(E,{channelCount:Math.max(1,O),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,O)}),z=[];for(let B=0;B{const Q=new d(X,Math.ceil(k.context.length/128)*128,E.sampleRate),F=[],j=[];for(let Y=0;Y<_.numberOfInputs;Y+=1)F.push(o(Q,{channelCount:_.channelCount,channelCountMode:_.channelCountMode,channelInterpretation:_.channelInterpretation,gain:1})),j.push(r(Q,{channelCount:_.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:_.channelCount}));const A=await Promise.all(Array.from(k.parameters.values()).map(async Y=>{const $=i(Q,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y.value});return await f(Q,Y,$.offset),$})),I=s(Q,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,V+U)});for(let Y=0;Y<_.numberOfInputs;Y+=1){F[Y].connect(j[Y]);for(let $=0;$<_.channelCount;$+=1)j[Y].connect(I,$,Y*_.channelCount+$)}for(const[Y,$]of A.entries())$.connect(I,0,V+Y),$.start(0);return I.connect(Q.destination),await Promise.all(F.map(Y=>g(k,Q,Y))),p(Q)})(),E,_,R,T,l)}const O=await y,L=t(E,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[z,W,B]=C;O!==null&&(L.buffer=O,L.start(0)),L.connect(z);for(let V=0,U=0;Vclass extends g{constructor(v,k){super(v,k),this._nativeContext=v,this._audioWorklet=n===void 0?void 0:{addModule:(E,x)=>n(this,E,x)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new r(this)}createBuffer(v,k,E){return new t({length:k,numberOfChannels:v,sampleRate:E})}createBufferSource(){return new s(this)}createChannelMerger(v=6){return new i(this,{numberOfInputs:v})}createChannelSplitter(v=6){return new o(this,{numberOfOutputs:v})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(v=1){return new u(this,{maxDelayTime:v})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(v,k){return new f(this,{feedback:k,feedforward:v})}createOscillator(){return new p(this)}createPanner(){return new m(this)}createPeriodicWave(v,k,E={disableNormalization:!1}){return new _(this,{...E,imag:k,real:v})}createStereoPanner(){return new T(this)}createWaveShaper(){return new w(this)}decodeAudioData(v,k,E){return l(this._nativeContext,v).then(x=>(typeof k=="function"&&k(x),x),x=>{throw typeof E=="function"&&E(x),x})}},RC={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},DC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...RC,...u},f=r(h,d),g=o(h),p=g?t():null;super(l,!1,f,p),this._Q=e(this,g,f.Q,xt,St),this._detune=e(this,g,f.detune,1200*Math.log2(xt),-1200*Math.log2(xt)),this._frequency=e(this,g,f.frequency,l.sampleRate/2,0),this._gain=e(this,g,f.gain,40*Math.log10(xt),St),this._nativeBiquadFilterNode=f,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},PC=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(c,h)}return i.set(c,l),u?(await n(c,a.Q,l.Q),await n(c,a.detune,l.detune),await n(c,a.frequency,l.frequency),await n(c,a.gain,l.gain)):(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},MC=(n,e)=>(t,s)=>{const r=e.get(t);if(r!==void 0)return r;const i=n.get(t);if(i!==void 0)return i;try{const o=s();return o instanceof Promise?(n.set(t,o),o.catch(()=>!1).then(a=>(n.delete(t),e.set(t,a),a))):(e.set(t,o),o)}catch{return e.set(t,!1),!1}},NC={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},IC=(n,e,t,s,r)=>class extends n{constructor(o,a){const c=s(o),l={...NC,...a},u=t(c,l),h=r(c)?e():null;super(o,!1,u,h)}},$C=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},FC={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},LC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=i({...FC,...c}),h=t(l,u),d=r(l)?e():null;super(a,!1,h,d)}},jC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},zC=n=>(e,t,s)=>n(t,e,s),VC=n=>(e,t,s=0,r=0)=>{const i=e[s];if(i===void 0)throw n();return za(t)?i.connect(t,0,r):i.connect(t,0)},UC=n=>(e,t)=>{const s=n(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),r=e.createBuffer(1,2,44100);return s.buffer=r,s.loop=!0,s.connect(t),s.start(),()=>{s.stop(),s.disconnect(t)}},BC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},WC=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...BC,...l},d=s(u,h),f=i(u),g=f?t():null;super(c,!1,d,g),this._constantSourceNodeRenderer=g,this._nativeConstantSourceNode=d,this._offset=e(this,f,d.offset,xt,St),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Ur(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),qn(this)&&Ro(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},qC=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(h,u);if(!d){const f={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=e(u,f),o!==null&&h.start(o),a!==null&&h.stop(a)}return i.set(u,h),d?await n(u,l.offset,h.offset):await s(u,l.offset,h.offset),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},HC=n=>e=>(n[0]=e,n[0]),YC={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},GC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u={...YC,...c},h=t(l,u),f=r(l)?e():null;super(a,!1,h,f),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&i(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,i(this,0)}else this._isBufferNullified=!1,i(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},XC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=n(o,l)}return s.set(o,a),ii(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},ZC=(n,e)=>(t,s,r)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(t,s,r)}catch(i){throw i.name==="SyntaxError"?n():i}},KC=()=>new DOMException("","DataCloneError"),Mf=n=>{const{port1:e,port2:t}=new MessageChannel;return new Promise(s=>{const r=()=>{t.onmessage=null,e.close(),t.close(),s()};t.onmessage=()=>r();try{e.postMessage(n,[n])}catch{}finally{r()}})},QC=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=o(h)?h:i(h);if(r.has(d)){const g=t();return Promise.reject(g)}try{r.add(d)}catch{}return e(c,()=>c(f))?f.decodeAudioData(d).then(g=>(Mf(d).catch(()=>{}),e(a,()=>a(g))||u(g),n.add(g),g)):new Promise((g,p)=>{const m=async()=>{try{await Mf(d)}catch{}},_=T=>{p(T),m()};try{f.decodeAudioData(d,T=>{typeof T.copyFromChannel!="function"&&(l(T),Gu(T)),n.add(T),m().then(()=>g(T))},T=>{_(T===null?s():T)})}catch(T){_(T)}})},JC=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=e.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=i(c.context),d=a(h);if(u===l){if(e.delete(c),!d&&o(c)){const f=s(c),{outputs:g}=t(c);for(const p of g)if(Po(p)){const m=s(p[0]);n(f,m,p[1],p[2])}else{const m=r(p[0]);f.connect(m,p[1])}}}else e.set(c,u-l)},eS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},tS=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...eS,...l},d=s(u,h),f=i(u),g=f?t(h.maxDelayTime):null;super(c,!1,d,g),this._delayTime=e(this,f,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},nS=(n,e,t,s,r)=>i=>{const o=new WeakMap,a=async(c,l)=>{let u=t(c);const h=vt(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:i};u=e(l,d)}return o.set(l,u),h?await n(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await r(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},sS=n=>(e,t,s,r)=>n(e[r],i=>i[0]===t&&i[1]===s),rS=n=>(e,t)=>{n(e).delete(t)},iS=n=>"delayTime"in n,oS=(n,e,t)=>function s(r,i){const o=Fa(i)?i:t(n,i);if(iS(o))return[];if(r[0]===o)return[r];if(r.includes(o))return[];const{outputs:a}=e(o);return Array.from(a).map(c=>s([...r,o],c[0])).reduce((c,l)=>c.concat(l),[])},na=(n,e,t)=>{const s=e[t];if(s===void 0)throw n();return s},aS=n=>(e,t=void 0,s=void 0,r=0)=>t===void 0?e.forEach(i=>i.disconnect()):typeof t=="number"?na(n,e,t).disconnect():za(t)?s===void 0?e.forEach(i=>i.disconnect(t)):r===void 0?na(n,e,s).disconnect(t,0):na(n,e,s).disconnect(t,0,r):s===void 0?e.forEach(i=>i.disconnect(t)):na(n,e,s).disconnect(t,0),cS={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},lS=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...cS,...u},f=s(h,d),g=o(h),p=g?t():null;super(l,!1,f,p),this._attack=e(this,g,f.attack),this._knee=e(this,g,f.knee),this._nativeDynamicsCompressorNode=f,this._ratio=e(this,g,f.ratio),this._release=e(this,g,f.release),this._threshold=e(this,g,f.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,r()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,r()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},uS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(c,h)}return i.set(c,l),u?(await n(c,a.attack,l.attack),await n(c,a.knee,l.knee),await n(c,a.ratio,l.ratio),await n(c,a.release,l.release),await n(c,a.threshold,l.threshold)):(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},hS=()=>new DOMException("","EncodingError"),dS=n=>e=>new Promise((t,s)=>{if(n===null){s(new SyntaxError);return}const r=n.document.head;if(r===null)s(new SyntaxError);else{const i=n.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=n.onerror,l=()=>{n.onerror=c,URL.revokeObjectURL(a)};n.onerror=(u,h,d,f,g)=>{if(h===a||h===n.location.href&&d===1&&f===1)return l(),s(g),!1;if(c!==null)return c(u,h,d,f,g)},i.onerror=()=>{l(),s(new SyntaxError)},i.onload=()=>{l(),t()},i.src=a,i.type="module",r.appendChild(i)}}),fS=n=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(t,s,r){if(s!==null){let i=this._listeners.get(s);i===void 0&&(i=n(this,s),typeof s=="function"&&this._listeners.set(s,i)),this._nativeEventTarget.addEventListener(t,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,s,r){const i=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(t,i===void 0?null:i,r)}},pS=n=>(e,t,s)=>{Object.defineProperties(n,{currentFrame:{configurable:!0,get(){return Math.round(e*t)}},currentTime:{configurable:!0,get(){return e}}});try{return s()}finally{n!==null&&(delete n.currentFrame,delete n.currentTime)}},mS=n=>async e=>{try{const t=await fetch(e);if(t.ok)return[await t.text(),t.url]}catch{}throw n()},gS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},_S=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...gS,...c},h=s(l,u),d=i(l),f=d?t():null;super(a,!1,h,f),this._gain=e(this,d,h.gain,xt,St)}get gain(){return this._gain}},yS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(c,h)}return i.set(c,l),u?await n(c,a.gain,l.gain):await s(c,a.gain,l.gain),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},vS=(n,e)=>t=>e(n,t),bS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return t.renderer},xS=n=>e=>{var t;return(t=n.get(e))!==null&&t!==void 0?t:0},wS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return t.renderer},kS=n=>e=>n.get(e),ht=()=>new DOMException("","InvalidStateError"),TS=n=>e=>{const t=n.get(e);if(t===void 0)throw ht();return t},ES=(n,e)=>t=>{let s=n.get(t);if(s!==void 0)return s;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new e(1,1,44100),n.set(t,s),s},CS=n=>e=>{const t=n.get(e);if(t===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return t},wc=()=>new DOMException("","InvalidAccessError"),SS=n=>{n.getFrequencyResponse=(e=>(t,s,r)=>{if(t.length!==s.length||s.length!==r.length)throw wc();return e.call(n,t,s,r)})(n.getFrequencyResponse)},OS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},AS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=r(l),h={...OS,...c},d=e(l,u?null:a.baseLatency,h),f=u?t(h.feedback,h.feedforward):null;super(a,!1,d,f),SS(d),this._nativeIIRFilterNode=d,i(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},Am=(n,e,t,s,r,i,o,a,c,l,u)=>{const h=l.length;let d=a;for(let f=0;f{const r=t instanceof Float64Array?t:new Float64Array(t),i=s instanceof Float64Array?s:new Float64Array(s),o=r.length,a=i.length,c=Math.min(o,a);if(r[0]!==1){for(let g=0;g(i,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,f=e(u);const g=vt(f,h);if(h.createIIRFilter===void 0?d=n(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):g||(f=h.createIIRFilter(o,i)),a.set(h,d===null?f:d),d!==null){if(c===null){if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");const m=new t(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,m,m.destination);const _=await r(m);return RS(_,h,i,o)})()}const p=await c;return d.buffer=p,d.start(0),d}return await s(u,h,f),f};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},PS=(n,e,t,s,r,i)=>o=>(a,c)=>{const l=n.get(a);if(l===void 0){if(!o&&i(a)){const u=s(a),{outputs:h}=t(a);for(const d of h)if(Po(d)){const f=s(d[0]);e(u,f,d[1],d[2])}else{const f=r(d[0]);u.disconnect(f,d[1])}}n.set(a,c)}else n.set(a,l+c)},MS=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},NS=(n,e)=>t=>n.has(t)||e(t),IS=(n,e)=>t=>n.has(t)||e(t),$S=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},FS=n=>e=>n!==null&&e instanceof n,LS=n=>e=>n!==null&&typeof n.AudioNode=="function"&&e instanceof n.AudioNode,jS=n=>e=>n!==null&&typeof n.AudioParam=="function"&&e instanceof n.AudioParam,zS=(n,e)=>t=>n(t)||e(t),VS=n=>e=>n!==null&&e instanceof n,US=n=>n!==null&&n.isSecureContext,BS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw TypeError();super(i,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},WS={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},qS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i);if(s(a))throw new TypeError;const c={...WS,...o},l=e(a,c);super(i,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},HS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw new TypeError;super(i,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},YS=(n,e,t)=>class extends n{constructor(r,i){const o=t(r),a=e(o,i);super(r,!0,a,null)}},GS=(n,e,t,s,r,i)=>class extends t{constructor(a,c){super(a),this._nativeContext=a,bc.set(this,a),s(a)&&r.set(a,new Set),this._destination=new n(this,c),this._listener=e(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?i(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Gi=n=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const t=n.decodeAudioData(e.buffer,()=>{});return t===void 0?!1:(t.catch(()=>{}),!0)}catch{}return!1},XS=(n,e)=>(t,s,r)=>{const i=new Set;return t.connect=(o=>(a,c=0,l=0)=>{const u=i.size===0;if(e(a))return o.call(t,a,c,l),n(i,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(t,a,c),n(i,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(t.connect),t.disconnect=(o=>(a,c,l)=>{const u=i.size>0;if(a===void 0)o.apply(t),i.clear();else if(typeof a=="number"){o.call(t,a);for(const d of i)d[1]===a&&i.delete(d)}else{e(a)?o.call(t,a,c,l):o.call(t,a,c);for(const d of i)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&i.delete(d)}const h=i.size===0;u&&h&&r()})(t.disconnect),t},We=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t]&&(n[t]=s)},ct=(n,e)=>{We(n,e,"channelCount"),We(n,e,"channelCountMode"),We(n,e,"channelInterpretation")},Nf=n=>typeof n.getFloatTimeDomainData=="function",ZS=n=>{n.getFloatTimeDomainData=e=>{const t=new Uint8Array(e.length);n.getByteTimeDomainData(t);const s=Math.max(t.length,n.fftSize);for(let r=0;r(t,s)=>{const r=t.createAnalyser();if(ct(r,s),!(s.maxDecibels>s.minDecibels))throw e();return We(r,s,"fftSize"),We(r,s,"maxDecibels"),We(r,s,"minDecibels"),We(r,s,"smoothingTimeConstant"),n(Nf,()=>Nf(r))||ZS(r),r},QS=n=>n===null?null:n.hasOwnProperty("AudioBuffer")?n.AudioBuffer:null,Ze=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t].value&&(n[t].value=s)},JS=n=>{n.start=(e=>{let t=!1;return(s=0,r=0,i)=>{if(t)throw ht();e.call(n,s,r,i),t=!0}})(n.start)},Ku=n=>{n.start=(e=>(t=0,s=0,r)=>{if(typeof r=="number"&&r<0||s<0||t<0)throw new RangeError("The parameters can't be negative.");e.call(n,t,s,r)})(n.start)},Qu=n=>{n.stop=(e=>(t=0)=>{if(t<0)throw new RangeError("The parameter can't be negative.");e.call(n,t)})(n.stop)},eO=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=h.createBufferSource();return ct(f,d),Ze(f,d,"playbackRate"),We(f,d,"buffer"),We(f,d,"loop"),We(f,d,"loopEnd"),We(f,d,"loopStart"),e(t,()=>t(h))||JS(f),e(s,()=>s(h))||c(f),e(r,()=>r(h))||l(f,h),e(i,()=>i(h))||Ku(f),e(o,()=>o(h))||u(f,h),e(a,()=>a(h))||Qu(f),n(h,f),f},tO=n=>n===null?null:n.hasOwnProperty("AudioContext")?n.AudioContext:n.hasOwnProperty("webkitAudioContext")?n.webkitAudioContext:null,nO=(n,e)=>(t,s,r)=>{const i=t.destination;if(i.channelCount!==s)try{i.channelCount=s}catch{}r&&i.channelCountMode!=="explicit"&&(i.channelCountMode="explicit"),i.maxChannelCount===0&&Object.defineProperty(i,"maxChannelCount",{value:s});const o=n(t,{channelCount:s,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{i.channelCount=c}catch(l){if(c>i.maxChannelCount)throw l}}),e(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelCountMode=c}),e(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>i.maxChannelCount}),o.connect(i),o},sO=n=>n===null?null:n.hasOwnProperty("AudioWorkletNode")?n.AudioWorkletNode:null,rO=n=>{const{port1:e}=new MessageChannel;try{e.postMessage(n)}finally{e.close()}},iO=(n,e,t,s,r)=>(i,o,a,c,l,u)=>{if(a!==null)try{const h=new a(i,c,u),d=new Map;let f=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw n()}},channelCountMode:{get:()=>"explicit",set:()=>{throw n()}},onprocessorerror:{get:()=>f,set:g=>{typeof f=="function"&&h.removeEventListener("processorerror",f),f=typeof g=="function"?g:null,typeof f=="function"&&h.addEventListener("processorerror",f)}}}),h.addEventListener=(g=>(...p)=>{if(p[0]==="processorerror"){const m=typeof p[1]=="function"?p[1]:typeof p[1]=="object"&&p[1]!==null&&typeof p[1].handleEvent=="function"?p[1].handleEvent:null;if(m!==null){const _=d.get(p[1]);_!==void 0?p[1]=_:(p[1]=T=>{T.type==="error"?(Object.defineProperties(T,{type:{value:"processorerror"}}),m(T)):m(new ErrorEvent(p[0],{...T}))},d.set(m,p[1]))}}return g.call(h,"error",p[1],p[2]),g.call(h,...p)})(h.addEventListener),h.removeEventListener=(g=>(...p)=>{if(p[0]==="processorerror"){const m=d.get(p[1]);m!==void 0&&(d.delete(p[1]),p[1]=m)}return g.call(h,"error",p[1],p[2]),g.call(h,p[0],p[1],p[2])})(h.removeEventListener),u.numberOfOutputs!==0){const g=t(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(g).connect(i.destination),r(h,()=>g.disconnect(),()=>g.connect(i.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return rO(u),e(i,o,l,u)},Rm=(n,e)=>n===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(n*e))))),oO=n=>new Promise((e,t)=>{const{port1:s,port2:r}=new MessageChannel;s.onmessage=({data:i})=>{s.close(),r.close(),e(i)},s.onmessageerror=({data:i})=>{s.close(),r.close(),t(i)},r.postMessage(n)}),aO=async(n,e)=>{const t=await oO(e);return new n(t)},cO=(n,e,t,s)=>{let r=Xl.get(n);r===void 0&&(r=new WeakMap,Xl.set(n,r));const i=aO(t,s);return r.set(e,i),i},lO=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,g,p,m)=>{if(m.numberOfInputs===0&&m.numberOfOutputs===0)throw c();const _=Array.isArray(m.outputChannelCount)?m.outputChannelCount:Array.from(m.outputChannelCount);if(_.some(H=>H<1))throw c();if(_.length!==m.numberOfOutputs)throw e();if(m.channelCountMode!=="explicit")throw c();const T=m.channelCount*m.numberOfInputs,w=_.reduce((H,M)=>H+M,0),y=p.parameterDescriptors===void 0?0:p.parameterDescriptors.length;if(T+y>6||w>6)throw c();const v=new MessageChannel,k=[],E=[];for(let H=0;HH===void 0?0:H},maxValue:{get:()=>M===void 0?xt:M},minValue:{get:()=>D===void 0?St:D}}),x.push(se)}const C=s(f,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,T+y)}),S=Rm(g,f.sampleRate),R=a(f,S,T+y,Math.max(1,w)),O=r(f,{channelCount:Math.max(1,w),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,w)}),L=[];for(let H=0;H{const D=x[M];return D.connect(C,0,T+M),D.start(0),[H,D.offset]}));C.connect(R);let W=m.channelInterpretation,B=null;const V=m.numberOfOutputs===0?[R]:L,U={get bufferSize(){return S},get channelCount(){return m.channelCount},set channelCount(H){throw t()},get channelCountMode(){return m.channelCountMode},set channelCountMode(H){throw t()},get channelInterpretation(){return W},set channelInterpretation(H){for(const M of k)M.channelInterpretation=H;W=H},get context(){return R.context},get inputs(){return k},get numberOfInputs(){return m.numberOfInputs},get numberOfOutputs(){return m.numberOfOutputs},get onprocessorerror(){return B},set onprocessorerror(H){typeof B=="function"&&U.removeEventListener("processorerror",B),B=typeof H=="function"?H:null,typeof B=="function"&&U.addEventListener("processorerror",B)},get parameters(){return z},get port(){return v.port2},addEventListener(...H){return R.addEventListener(H[0],H[1],H[2])},connect:n.bind(null,V),disconnect:l.bind(null,V),dispatchEvent(...H){return R.dispatchEvent(H[0])},removeEventListener(...H){return R.removeEventListener(H[0],H[1],H[2])}},X=new Map;v.port1.addEventListener=(H=>(...M)=>{if(M[0]==="message"){const D=typeof M[1]=="function"?M[1]:typeof M[1]=="object"&&M[1]!==null&&typeof M[1].handleEvent=="function"?M[1].handleEvent:null;if(D!==null){const J=X.get(M[1]);J!==void 0?M[1]=J:(M[1]=se=>{u(f.currentTime,f.sampleRate,()=>D(se))},X.set(D,M[1]))}}return H.call(v.port1,M[0],M[1],M[2])})(v.port1.addEventListener),v.port1.removeEventListener=(H=>(...M)=>{if(M[0]==="message"){const D=X.get(M[1]);D!==void 0&&(X.delete(M[1]),M[1]=D)}return H.call(v.port1,M[0],M[1],M[2])})(v.port1.removeEventListener);let K=null;Object.defineProperty(v.port1,"onmessage",{get:()=>K,set:H=>{typeof K=="function"&&v.port1.removeEventListener("message",K),K=typeof H=="function"?H:null,typeof K=="function"&&(v.port1.addEventListener("message",K),v.port1.start())}}),p.prototype.port=v.port1;let Q=null;cO(f,U,p,m).then(H=>Q=H);const j=Ua(m.numberOfInputs,m.channelCount),A=Ua(m.numberOfOutputs,_),I=p.parameterDescriptors===void 0?[]:p.parameterDescriptors.reduce((H,{name:M})=>({...H,[M]:new Float32Array(128)}),{});let Y=!0;const $=()=>{m.numberOfOutputs>0&&R.disconnect(O);for(let H=0,M=0;H{if(Q!==null){const D=h(U);for(let J=0;J{Va(H,I,se,T+le,J)});for(let se=0;se{if(D[et].size>0)return q.set(et,S/128),be;const fe=q.get(et);return fe===void 0?[]:(be.every(tt=>tt.every(at=>at===0))&&(fe===1?q.delete(et):q.set(et,fe-1)),be)});Y=u(f.currentTime+J/f.sampleRate,f.sampleRate,()=>Q.process(se,A,I));for(let be=0,et=0;beR.connect(re).connect(f.destination),ne=()=>{R.disconnect(re),re.disconnect()},ge=()=>{if(Y){ne(),m.numberOfOutputs>0&&R.connect(O);for(let H=0,M=0;H{Y&&(ie(),$()),ae=!1};return ie(),d(U,ge,te)},Dm=(n,e)=>{const t=n.createBiquadFilter();return ct(t,e),Ze(t,e,"Q"),Ze(t,e,"detune"),Ze(t,e,"frequency"),Ze(t,e,"gain"),We(t,e,"type"),t},uO=(n,e)=>(t,s)=>{const r=t.createChannelMerger(s.numberOfInputs);return n!==null&&n.name==="webkitAudioContext"&&e(t,r),ct(r,s),r},hO=n=>{const e=n.numberOfOutputs;Object.defineProperty(n,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw ht()}}),Object.defineProperty(n,"channelCountMode",{get:()=>"explicit",set:t=>{if(t!=="explicit")throw ht()}}),Object.defineProperty(n,"channelInterpretation",{get:()=>"discrete",set:t=>{if(t!=="discrete")throw ht()}})},Mo=(n,e)=>{const t=n.createChannelSplitter(e.numberOfOutputs);return ct(t,e),hO(t),t},dO=(n,e,t,s,r)=>(i,o)=>{if(i.createConstantSource===void 0)return t(i,o);const a=i.createConstantSource();return ct(a,o),Ze(a,o,"offset"),e(s,()=>s(i))||Ku(a),e(r,()=>r(i))||Qu(a),n(i,a),a},oi=(n,e)=>(n.connect=e.connect.bind(e),n.disconnect=e.disconnect.bind(e),n),fO=(n,e,t,s)=>(r,{offset:i,...o})=>{const a=r.createBuffer(1,2,44100),c=e(r,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=t(r,{...o,gain:i}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(g){l.channelCount=g},get channelCountMode(){return l.channelCountMode},set channelCountMode(g){l.channelCountMode=g},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(g){l.channelInterpretation=g},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(g){c.onended=g},addEventListener(...g){return c.addEventListener(g[0],g[1],g[2])},dispatchEvent(...g){return c.dispatchEvent(g[0])},removeEventListener(...g){return c.removeEventListener(g[0],g[1],g[2])},start(g=0){c.start.call(c,g)},stop(g=0){c.stop.call(c,g)}},d=()=>c.connect(l),f=()=>c.disconnect(l);return n(r,c),s(oi(h,l),d,f)},pO=(n,e)=>(t,s)=>{const r=t.createConvolver();if(ct(r,s),s.disableNormalization===r.normalize&&(r.normalize=!s.disableNormalization),We(r,s,"buffer"),s.channelCount>2||(e(r,"channelCount",i=>()=>i.call(r),i=>o=>{if(o>2)throw n();return i.call(r,o)}),s.channelCountMode==="max"))throw n();return e(r,"channelCountMode",i=>()=>i.call(r),i=>o=>{if(o==="max")throw n();return i.call(r,o)}),r},Pm=(n,e)=>{const t=n.createDelay(e.maxDelayTime);return ct(t,e),Ze(t,e,"delayTime"),t},mO=n=>(e,t)=>{const s=e.createDynamicsCompressor();if(ct(s,t),t.channelCount>2||t.channelCountMode==="max")throw n();return Ze(s,t,"attack"),Ze(s,t,"knee"),Ze(s,t,"ratio"),Ze(s,t,"release"),Ze(s,t,"threshold"),s},Nt=(n,e)=>{const t=n.createGain();return ct(t,e),Ze(t,e,"gain"),t},gO=n=>(e,t,s)=>{if(e.createIIRFilter===void 0)return n(e,t,s);const r=e.createIIRFilter(s.feedforward,s.feedback);return ct(r,s),r};function _O(n,e){const t=e[0]*e[0]+e[1]*e[1];return[(n[0]*e[0]+n[1]*e[1])/t,(n[1]*e[0]-n[0]*e[1])/t]}function yO(n,e){return[n[0]*e[0]-n[1]*e[1],n[0]*e[1]+n[1]*e[0]]}function If(n,e){let t=[0,0];for(let s=n.length-1;s>=0;s-=1)t=yO(t,e),t[0]+=n[s];return t}const vO=(n,e,t,s)=>(r,i,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Rm(i,r.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),f=u instanceof Float64Array?u:new Float64Array(u),g=d.length,p=f.length,m=Math.min(g,p);if(g===0||g>20)throw s();if(d[0]===0)throw e();if(p===0||p>20)throw s();if(f[0]===0)throw e();if(d[0]!==1){for(let x=0;x{const C=x.inputBuffer,S=x.outputBuffer,R=C.numberOfChannels;for(let O=0;On.createMediaElementSource(e.mediaElement),xO=(n,e)=>{const t=n.createMediaStreamDestination();return ct(t,e),t.numberOfOutputs===1&&Object.defineProperty(t,"numberOfOutputs",{get:()=>0}),t},wO=(n,{mediaStream:e})=>{const t=e.getAudioTracks();t.sort((i,o)=>i.ido.id?1:0);const s=t.slice(0,1),r=n.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(r,"mediaStream",{value:e}),r},kO=(n,e)=>(t,{mediaStreamTrack:s})=>{if(typeof t.createMediaStreamTrackSource=="function")return t.createMediaStreamTrackSource(s);const r=new MediaStream([s]),i=t.createMediaStreamSource(r);if(s.kind!=="audio")throw n();if(e(t))throw new TypeError;return i},TO=n=>n===null?null:n.hasOwnProperty("OfflineAudioContext")?n.OfflineAudioContext:n.hasOwnProperty("webkitOfflineAudioContext")?n.webkitOfflineAudioContext:null,EO=(n,e,t,s,r,i)=>(o,a)=>{const c=o.createOscillator();return ct(c,a),Ze(c,a,"detune"),Ze(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):We(c,a,"type"),e(t,()=>t(o))||Ku(c),e(s,()=>s(o))||i(c,o),e(r,()=>r(o))||Qu(c),n(o,c),c},CO=n=>(e,t)=>{const s=e.createPanner();return s.orientationX===void 0?n(e,t):(ct(s,t),Ze(s,t,"orientationX"),Ze(s,t,"orientationY"),Ze(s,t,"orientationZ"),Ze(s,t,"positionX"),Ze(s,t,"positionY"),Ze(s,t,"positionZ"),We(s,t,"coneInnerAngle"),We(s,t,"coneOuterAngle"),We(s,t,"coneOuterGain"),We(s,t,"distanceModel"),We(s,t,"maxDistance"),We(s,t,"panningModel"),We(s,t,"refDistance"),We(s,t,"rolloffFactor"),s)},SO=(n,e,t,s,r,i,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:f,distanceModel:g,maxDistance:p,orientationX:m,orientationY:_,orientationZ:T,panningModel:w,positionX:y,positionY:v,positionZ:k,refDistance:E,rolloffFactor:x,...C})=>{const S=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();ct(S,C);const R={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},O=t(u,{...R,channelInterpretation:"speakers",numberOfInputs:6}),L=s(u,{...C,gain:1}),z=s(u,{...R,gain:1}),W=s(u,{...R,gain:0}),B=s(u,{...R,gain:0}),V=s(u,{...R,gain:0}),U=s(u,{...R,gain:0}),X=s(u,{...R,gain:0}),K=r(u,256,6,1),Q=i(u,{...R,curve:new Float32Array([1,1]),oversample:"none"});let F=[m,_,T],j=[y,v,k];const A=new Float32Array(1);K.onaudioprocess=({inputBuffer:q})=>{const ae=[c(q,A,0),c(q,A,1),c(q,A,2)];ae.some((ie,ne)=>ie!==F[ne])&&(S.setOrientation(...ae),F=ae);const re=[c(q,A,3),c(q,A,4),c(q,A,5)];re.some((ie,ne)=>ie!==j[ne])&&(S.setPosition(...re),j=re)},Object.defineProperty(W.gain,"defaultValue",{get:()=>0}),Object.defineProperty(B.gain,"defaultValue",{get:()=>0}),Object.defineProperty(V.gain,"defaultValue",{get:()=>0}),Object.defineProperty(U.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const I={get bufferSize(){},get channelCount(){return S.channelCount},set channelCount(q){if(q>2)throw o();L.channelCount=q,S.channelCount=q},get channelCountMode(){return S.channelCountMode},set channelCountMode(q){if(q==="max")throw o();L.channelCountMode=q,S.channelCountMode=q},get channelInterpretation(){return S.channelInterpretation},set channelInterpretation(q){L.channelInterpretation=q,S.channelInterpretation=q},get coneInnerAngle(){return S.coneInnerAngle},set coneInnerAngle(q){S.coneInnerAngle=q},get coneOuterAngle(){return S.coneOuterAngle},set coneOuterAngle(q){S.coneOuterAngle=q},get coneOuterGain(){return S.coneOuterGain},set coneOuterGain(q){if(q<0||q>1)throw e();S.coneOuterGain=q},get context(){return S.context},get distanceModel(){return S.distanceModel},set distanceModel(q){S.distanceModel=q},get inputs(){return[L]},get maxDistance(){return S.maxDistance},set maxDistance(q){if(q<0)throw new RangeError;S.maxDistance=q},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get orientationX(){return z.gain},get orientationY(){return W.gain},get orientationZ(){return B.gain},get panningModel(){return S.panningModel},set panningModel(q){S.panningModel=q},get positionX(){return V.gain},get positionY(){return U.gain},get positionZ(){return X.gain},get refDistance(){return S.refDistance},set refDistance(q){if(q<0)throw new RangeError;S.refDistance=q},get rolloffFactor(){return S.rolloffFactor},set rolloffFactor(q){if(q<0)throw new RangeError;S.rolloffFactor=q},addEventListener(...q){return L.addEventListener(q[0],q[1],q[2])},dispatchEvent(...q){return L.dispatchEvent(q[0])},removeEventListener(...q){return L.removeEventListener(q[0],q[1],q[2])}};h!==I.coneInnerAngle&&(I.coneInnerAngle=h),d!==I.coneOuterAngle&&(I.coneOuterAngle=d),f!==I.coneOuterGain&&(I.coneOuterGain=f),g!==I.distanceModel&&(I.distanceModel=g),p!==I.maxDistance&&(I.maxDistance=p),m!==I.orientationX.value&&(I.orientationX.value=m),_!==I.orientationY.value&&(I.orientationY.value=_),T!==I.orientationZ.value&&(I.orientationZ.value=T),w!==I.panningModel&&(I.panningModel=w),y!==I.positionX.value&&(I.positionX.value=y),v!==I.positionY.value&&(I.positionY.value=v),k!==I.positionZ.value&&(I.positionZ.value=k),E!==I.refDistance&&(I.refDistance=E),x!==I.rolloffFactor&&(I.rolloffFactor=x),(F[0]!==1||F[1]!==0||F[2]!==0)&&S.setOrientation(...F),(j[0]!==0||j[1]!==0||j[2]!==0)&&S.setPosition(...j);const Y=()=>{L.connect(S),n(L,Q,0,0),Q.connect(z).connect(O,0,0),Q.connect(W).connect(O,0,1),Q.connect(B).connect(O,0,2),Q.connect(V).connect(O,0,3),Q.connect(U).connect(O,0,4),Q.connect(X).connect(O,0,5),O.connect(K).connect(u.destination)},$=()=>{L.disconnect(S),a(L,Q,0,0),Q.disconnect(z),z.disconnect(O),Q.disconnect(W),W.disconnect(O),Q.disconnect(B),B.disconnect(O),Q.disconnect(V),V.disconnect(O),Q.disconnect(U),U.disconnect(O),Q.disconnect(X),X.disconnect(O),O.disconnect(K),K.disconnect(u.destination)};return l(oi(I,S),Y,$)},OO=n=>(e,{disableNormalization:t,imag:s,real:r})=>{const i=s instanceof Float32Array?s:new Float32Array(s),o=r instanceof Float32Array?r:new Float32Array(r),a=e.createPeriodicWave(o,i,{disableNormalization:t});if(Array.from(s).length<2)throw n();return a},No=(n,e,t,s)=>n.createScriptProcessor(e,t,s),AO=(n,e)=>(t,s)=>{const r=s.channelCountMode;if(r==="clamped-max")throw e();if(t.createStereoPanner===void 0)return n(t,s);const i=t.createStereoPanner();return ct(i,s),Ze(i,s,"pan"),Object.defineProperty(i,"channelCountMode",{get:()=>r,set:o=>{if(o!==r)throw e()}}),i},RO=(n,e,t,s,r,i)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(g,p,m,_)=>{const T=new Float32Array(16385),w=new Float32Array(16385);for(let C=0;C<16385;C+=1){const S=C/16384*c;T[C]=Math.cos(S),w[C]=Math.sin(S)}const y=t(g,{...l,gain:0}),v=s(g,{...u,curve:T}),k=s(g,{...u,curve:a}),E=t(g,{...l,gain:0}),x=s(g,{...u,curve:w});return{connectGraph(){p.connect(y),p.connect(k.inputs===void 0?k:k.inputs[0]),p.connect(E),k.connect(m),m.connect(v.inputs===void 0?v:v.inputs[0]),m.connect(x.inputs===void 0?x:x.inputs[0]),v.connect(y.gain),x.connect(E.gain),y.connect(_,0,0),E.connect(_,0,1)},disconnectGraph(){p.disconnect(y),p.disconnect(k.inputs===void 0?k:k.inputs[0]),p.disconnect(E),k.disconnect(m),m.disconnect(v.inputs===void 0?v:v.inputs[0]),m.disconnect(x.inputs===void 0?x:x.inputs[0]),v.disconnect(y.gain),x.disconnect(E.gain),y.disconnect(_,0,0),E.disconnect(_,0,1)}}},d=(g,p,m,_)=>{const T=new Float32Array(16385),w=new Float32Array(16385),y=new Float32Array(16385),v=new Float32Array(16385),k=Math.floor(16385/2);for(let V=0;V<16385;V+=1)if(V>k){const U=(V-k)/(16384-k)*c;T[V]=Math.cos(U),w[V]=Math.sin(U),y[V]=0,v[V]=1}else{const U=V/(16384-k)*c;T[V]=1,w[V]=0,y[V]=Math.cos(U),v[V]=Math.sin(U)}const E=e(g,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),x=t(g,{...l,gain:0}),C=s(g,{...u,curve:T}),S=t(g,{...l,gain:0}),R=s(g,{...u,curve:w}),O=s(g,{...u,curve:a}),L=t(g,{...l,gain:0}),z=s(g,{...u,curve:y}),W=t(g,{...l,gain:0}),B=s(g,{...u,curve:v});return{connectGraph(){p.connect(E),p.connect(O.inputs===void 0?O:O.inputs[0]),E.connect(x,0),E.connect(S,0),E.connect(L,1),E.connect(W,1),O.connect(m),m.connect(C.inputs===void 0?C:C.inputs[0]),m.connect(R.inputs===void 0?R:R.inputs[0]),m.connect(z.inputs===void 0?z:z.inputs[0]),m.connect(B.inputs===void 0?B:B.inputs[0]),C.connect(x.gain),R.connect(S.gain),z.connect(L.gain),B.connect(W.gain),x.connect(_,0,0),L.connect(_,0,0),S.connect(_,0,1),W.connect(_,0,1)},disconnectGraph(){p.disconnect(E),p.disconnect(O.inputs===void 0?O:O.inputs[0]),E.disconnect(x,0),E.disconnect(S,0),E.disconnect(L,1),E.disconnect(W,1),O.disconnect(m),m.disconnect(C.inputs===void 0?C:C.inputs[0]),m.disconnect(R.inputs===void 0?R:R.inputs[0]),m.disconnect(z.inputs===void 0?z:z.inputs[0]),m.disconnect(B.inputs===void 0?B:B.inputs[0]),C.disconnect(x.gain),R.disconnect(S.gain),z.disconnect(L.gain),B.disconnect(W.gain),x.disconnect(_,0,0),L.disconnect(_,0,0),S.disconnect(_,0,1),W.disconnect(_,0,1)}}},f=(g,p,m,_,T)=>{if(p===1)return h(g,m,_,T);if(p===2)return d(g,m,_,T);throw r()};return(g,{channelCount:p,channelCountMode:m,pan:_,...T})=>{if(m==="max")throw r();const w=n(g,{...T,channelCount:1,channelCountMode:m,numberOfInputs:2}),y=t(g,{...T,channelCount:p,channelCountMode:m,gain:1}),v=t(g,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:_});let{connectGraph:k,disconnectGraph:E}=f(g,p,y,v,w);Object.defineProperty(v.gain,"defaultValue",{get:()=>0}),Object.defineProperty(v.gain,"maxValue",{get:()=>1}),Object.defineProperty(v.gain,"minValue",{get:()=>-1});const x={get bufferSize(){},get channelCount(){return y.channelCount},set channelCount(O){y.channelCount!==O&&(C&&E(),{connectGraph:k,disconnectGraph:E}=f(g,O,y,v,w),C&&k()),y.channelCount=O},get channelCountMode(){return y.channelCountMode},set channelCountMode(O){if(O==="clamped-max"||O==="max")throw r();y.channelCountMode=O},get channelInterpretation(){return y.channelInterpretation},set channelInterpretation(O){y.channelInterpretation=O},get context(){return y.context},get inputs(){return[y]},get numberOfInputs(){return y.numberOfInputs},get numberOfOutputs(){return y.numberOfOutputs},get pan(){return v.gain},addEventListener(...O){return y.addEventListener(O[0],O[1],O[2])},dispatchEvent(...O){return y.dispatchEvent(O[0])},removeEventListener(...O){return y.removeEventListener(O[0],O[1],O[2])}};let C=!1;const S=()=>{k(),C=!0},R=()=>{E(),C=!1};return i(oi(x,w),S,R)}},DO=(n,e,t,s,r,i,o)=>(a,c)=>{const l=a.createWaveShaper();if(i!==null&&i.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return t(a,c);ct(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw e();We(l,{curve:u},"curve"),We(l,c,"oversample");let h=null,d=!1;return o(l,"curve",p=>()=>p.call(l),p=>m=>(p.call(l,m),d&&(s(m)&&h===null?h=n(a,l):!s(m)&&h!==null&&(h(),h=null)),m)),r(l,()=>{d=!0,s(l.curve)&&(h=n(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},PO=(n,e,t,s,r)=>(i,{curve:o,oversample:a,...c})=>{const l=i.createWaveShaper(),u=i.createWaveShaper();ct(l,c),ct(u,c);const h=t(i,{...c,gain:1}),d=t(i,{...c,gain:-1}),f=t(i,{...c,gain:1}),g=t(i,{...c,gain:-1});let p=null,m=!1,_=null;const T={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(v){h.channelCount=v,d.channelCount=v,l.channelCount=v,f.channelCount=v,u.channelCount=v,g.channelCount=v},get channelCountMode(){return l.channelCountMode},set channelCountMode(v){h.channelCountMode=v,d.channelCountMode=v,l.channelCountMode=v,f.channelCountMode=v,u.channelCountMode=v,g.channelCountMode=v},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(v){h.channelInterpretation=v,d.channelInterpretation=v,l.channelInterpretation=v,f.channelInterpretation=v,u.channelInterpretation=v,g.channelInterpretation=v},get context(){return l.context},get curve(){return _},set curve(v){if(v!==null&&v.length<2)throw e();if(v===null)l.curve=v,u.curve=v;else{const k=v.length,E=new Float32Array(k+2-k%2),x=new Float32Array(k+2-k%2);E[0]=v[0],x[0]=-v[k-1];const C=Math.ceil((k+1)/2),S=(k+1)/2-1;for(let R=1;R{h.connect(l).connect(f),h.connect(d).connect(u).connect(g).connect(f),m=!0,s(_)&&(p=n(i,h))},y=()=>{h.disconnect(l),l.disconnect(f),h.disconnect(d),d.disconnect(u),u.disconnect(g),g.disconnect(f),m=!1,p!==null&&(p(),p=null)};return r(oi(T,f),w,y)},Et=()=>new DOMException("","NotSupportedError"),MO={numberOfChannels:1},NO=(n,e,t,s,r)=>class extends n{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...MO,...l},f=s(h,u,d);e(Gi,()=>Gi(f))||f.addEventListener("statechange",(()=>{let g=0;const p=m=>{this._state==="running"&&(g>0?(f.removeEventListener("statechange",p),m.stopImmediatePropagation(),this._waitForThePromiseToSettle(m)):g+=1)};return p})()),super(f,h),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(t()):(this._state="running",r(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,km(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},IO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},$O=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...IO,...l},d=t(u,h),f=i(u),g=f?s():null,p=c.sampleRate/2;super(c,!1,d,g),this._detune=e(this,f,d.detune,153600,-153600),this._frequency=e(this,f,d.frequency,p,-p),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=g,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Ur(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),qn(this)&&Ro(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},FO=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=t(u);const f=vt(d,h);if(!f){const g={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=e(h,g),a!==null&&d.start(a),c!==null&&d.stop(c)}return i.set(h,d),f?(await n(h,u.detune,d.detune),await n(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await r(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=i.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},LO={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},jO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...LO,...l},d=t(u,h),f=i(u),g=f?s():null;super(c,!1,d,g),this._nativePannerNode=d,this._orientationX=e(this,f,d.orientationX,xt,St),this._orientationY=e(this,f,d.orientationY,xt,St),this._orientationZ=e(this,f,d.orientationZ,xt,St),this._positionX=e(this,f,d.positionX,xt,St),this._positionY=e(this,f,d.positionY,xt,St),this._positionZ=e(this,f,d.positionZ,xt,St),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},zO=(n,e,t,s,r,i,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(f,g)=>{let p=null,m=i(f);const _={channelCount:m.channelCount,channelCountMode:m.channelCountMode,channelInterpretation:m.channelInterpretation},T={..._,coneInnerAngle:m.coneInnerAngle,coneOuterAngle:m.coneOuterAngle,coneOuterGain:m.coneOuterGain,distanceModel:m.distanceModel,maxDistance:m.maxDistance,panningModel:m.panningModel,refDistance:m.refDistance,rolloffFactor:m.rolloffFactor},w=vt(m,g);if("bufferSize"in m)p=s(g,{..._,gain:1});else if(!w){const y={...T,orientationX:m.orientationX.value,orientationY:m.orientationY.value,orientationZ:m.orientationZ.value,positionX:m.positionX.value,positionY:m.positionY.value,positionZ:m.positionZ.value};m=r(g,y)}if(u.set(g,p===null?m:p),p!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const R=new o(6,f.context.length,g.sampleRate),O=e(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});O.connect(R.destination),h=(async()=>{const L=await Promise.all([f.orientationX,f.orientationY,f.orientationZ,f.positionX,f.positionY,f.positionZ].map(async(z,W)=>{const B=t(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:W===0?1:0});return await a(R,z,B.offset),B}));for(let z=0;z<6;z+=1)L[z].connect(O,0,z),L[z].start(0);return l(R)})()}const y=await h,v=s(g,{..._,gain:1});await c(f,g,v);const k=[];for(let R=0;Rz!==E[W])||L.some((z,W)=>z!==x[W])){E=O,x=L;const z=R/g.sampleRate;C.gain.setValueAtTime(0,z),C=s(g,{..._,gain:0}),S=r(g,{...T,orientationX:E[0],orientationY:E[1],orientationZ:E[2],positionX:x[0],positionY:x[1],positionZ:x[2]}),C.gain.setValueAtTime(1,z),v.connect(C).connect(S.inputs[0]),S.connect(p)}}return p}return w?(await n(g,f.orientationX,m.orientationX),await n(g,f.orientationY,m.orientationY),await n(g,f.orientationZ,m.orientationZ),await n(g,f.positionX,m.positionX),await n(g,f.positionY,m.positionY),await n(g,f.positionZ,m.positionZ)):(await a(g,f.orientationX,m.orientationX),await a(g,f.orientationY,m.orientationY),await a(g,f.orientationZ,m.orientationZ),await a(g,f.positionX,m.positionX),await a(g,f.positionY,m.positionY),await a(g,f.positionZ,m.positionZ)),ii(m)?await c(f,g,m.inputs[0]):await c(f,g,m),m};return{render(f,g){const p=u.get(g);return p!==void 0?Promise.resolve(p):d(f,g)}}},VO={disableNormalization:!1},UO=(n,e,t,s)=>class Mm{constructor(i,o){const a=e(i),c=s({...VO,...o}),l=n(a,c);return t.add(l),l}static[Symbol.hasInstance](i){return i!==null&&typeof i=="object"&&Object.getPrototypeOf(i)===Mm.prototype||t.has(i)}},BO=(n,e)=>(t,s,r)=>(n(s).replay(r),e(s,t,r)),WO=(n,e,t)=>async(s,r,i)=>{const o=n(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await e(l).render(l,r),f=s.context.destination;!t(l)&&(s!==f||!t(s))&&d.connect(i,u,c)})).reduce((a,c)=>[...a,...c],[]))},qO=(n,e,t)=>async(s,r,i)=>{const o=e(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await n(a).render(a,r);t(a)||u.connect(i,c)}))},HO=(n,e,t,s)=>r=>n(Gi,()=>Gi(r))?Promise.resolve(n(s,s)).then(i=>{if(!i){const o=t(r,512,0,1);r.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>r.currentTime,o.connect(r.destination)}return r.startRendering()}):new Promise(i=>{const o=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});r.oncomplete=a=>{o.disconnect(),i(a.renderedBuffer)},o.connect(r.destination),r.startRendering()}),YO=n=>(e,t)=>{n.set(e,t)},GO=n=>(e,t)=>n.set(e,t),XO=(n,e,t,s,r,i,o,a)=>(c,l)=>t(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>t(u).render(u,l)))).then(()=>r(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Gu(u)):e(i,()=>i(u))||a(u),n.add(u),u)),ZO={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},KO=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...ZO,...c},h=t(l,u),d=i(l),f=d?s():null;super(a,!1,h,f),this._pan=e(this,d,h.pan)}get pan(){return this._pan}},QO=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=e(c,h)}return i.set(c,l),u?await n(c,a.pan,l.pan):await s(c,a.pan,l.pan),ii(l)?await r(a,c,l.inputs[0]):await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},JO=n=>()=>{if(n===null)return!1;try{new n({length:1,sampleRate:44100})}catch{return!1}return!0},e2=(n,e)=>async()=>{if(n===null)return!0;if(e===null)return!1;const t=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),s=new e(1,128,44100),r=URL.createObjectURL(t);let i=!1,o=!1;try{await s.audioWorklet.addModule(r);const a=new n(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>i=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(r)}return i&&!o},t2=(n,e)=>()=>{if(e===null)return Promise.resolve(!1);const t=new e(1,1,44100),s=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(r=>{t.oncomplete=()=>{s.disconnect(),r(t.currentTime!==0)},t.startRendering()})},n2=()=>new DOMException("","UnknownError"),s2={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},r2=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...s2,...l},d=t(u,h),g=i(u)?s():null;super(c,!0,d,g),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},i2=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=n(o,l)}return s.set(o,a),ii(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},o2=()=>typeof window>"u"?null:window,a2=(n,e)=>t=>{t.copyFromChannel=(s,r,i=0)=>{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+oe=>{e.copyFromChannel=(t=>(s,r,i=0)=>{const o=n(i),a=n(r);if(o(s,r,i=0)=>{const o=n(i),a=n(r);if(o(e,t)=>{const s=t.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=s),n(e,"buffer",r=>()=>{const i=r.call(e);return i===s?null:i},r=>i=>r.call(e,i===null?s:i))},u2=(n,e)=>(t,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw n()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw n()}});const r=t.createBufferSource();e(s,()=>{const a=s.numberOfInputs;for(let c=0;cr.disconnect(s))},Nm=(n,e,t)=>n.copyFromChannel===void 0?n.getChannelData(t)[0]:(n.copyFromChannel(e,t),e[0]),Im=n=>{if(n===null)return!1;const e=n.length;return e%2!==0?n[Math.floor(e/2)]!==0:n[e/2-1]+n[e/2]!==0},Io=(n,e,t,s)=>{let r=n;for(;!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,{get:t(i),set:s(o)})},h2=n=>({...n,outputChannelCount:n.outputChannelCount!==void 0?n.outputChannelCount:n.numberOfInputs===1&&n.numberOfOutputs===1?[n.channelCount]:Array.from({length:n.numberOfOutputs},()=>1)}),d2=n=>({...n,channelCount:n.numberOfOutputs}),f2=n=>{const{imag:e,real:t}=n;return e===void 0?t===void 0?{...n,imag:[0,0],real:[0,0]}:{...n,imag:Array.from(t,()=>0),real:t}:t===void 0?{...n,imag:e,real:Array.from(e,()=>0)}:{...n,imag:e,real:t}},$m=(n,e,t)=>{try{n.setValueAtTime(e,t)}catch(s){if(s.code!==9)throw s;$m(n,e,t+1e-7)}},p2=n=>{const e=n.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},m2=n=>{const e=n.createBufferSource(),t=n.createBuffer(1,1,44100);e.buffer=t;try{e.start(0,1)}catch{return!1}return!0},g2=n=>{const e=n.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},Ju=n=>{const e=n.createOscillator();try{e.start(-1)}catch(t){return t instanceof RangeError}return!1},Fm=n=>{const e=n.createBuffer(1,1,44100),t=n.createBufferSource();t.buffer=e,t.start(),t.stop();try{return t.stop(),!0}catch{return!1}},eh=n=>{const e=n.createOscillator();try{e.stop(-1)}catch(t){return t instanceof RangeError}return!1},_2=n=>{const{port1:e,port2:t}=new MessageChannel;try{e.postMessage(n)}finally{e.close(),t.close()}},y2=n=>{n.start=(e=>(t=0,s=0,r)=>{const i=n.buffer,o=i===null?s:Math.min(i.duration,s);i!==null&&o>i.duration-.5/n.context.sampleRate?e.call(n,t,0,0):e.call(n,t,o,r)})(n.start)},Lm=(n,e)=>{const t=e.createGain();n.connect(t);const s=(r=>()=>{r.call(n,t),n.removeEventListener("ended",s)})(n.disconnect);n.addEventListener("ended",s),oi(n,t),n.stop=(r=>{let i=!1;return(o=0)=>{if(i)try{r.call(n,o)}catch{t.gain.setValueAtTime(0,o)}else r.call(n,o),i=!0}})(n.stop)},ai=(n,e)=>t=>{const s={value:n};return Object.defineProperties(t,{currentTarget:s,target:s}),typeof e=="function"?e.call(n,t):e.handleEvent.call(n,t)},v2=jE(cr),b2=qE(cr),x2=sS(xc),jm=new WeakMap,w2=xS(jm),_n=MC(new Map,new WeakMap),An=o2(),zm=KS(_n,Dn),th=bS(Tt),ft=WO(Tt,th,er),k2=ZE(zm,Be,ft),ze=TS(bc),ss=TO(An),Pe=VS(ss),Vm=new WeakMap,Um=fS(ai),$o=tO(An),nh=FS($o),sh=LS(An),Bm=jS(An),Xi=sO(An),it=xC(zE(gm),WE(v2,b2,La,x2,ja,Tt,w2,Ao,Be,cr,qn,er,da),_n,PS(Yl,ja,Tt,Be,Yi,qn),Dn,wc,Et,JC(La,Yl,Tt,Be,Yi,ze,qn,Pe),oS(Vm,Tt,fn),Um,ze,nh,sh,Bm,Pe,Xi),T2=XE(it,k2,Dn,zm,ze,Pe),rh=new WeakSet,$f=QS(An),Wm=HC(new Uint32Array(1)),ih=a2(Wm,Dn),oh=c2(Wm),qm=QE(rh,_n,Et,$f,ss,JO($f),ih,oh),kc=HE(Nt),Hm=qO(th,Do,er),Pn=zC(Hm),ci=eO(kc,_n,p2,m2,g2,Ju,Fm,eh,y2,l2(Io),Lm),Mn=BO(wS(Do),Hm),E2=tC(Pn,ci,Be,Mn,ft),yn=wC(VE(_m),Vm,Yu,kC,ME,NE,IE,$E,FE,Wl,pm,$o,$m),C2=eC(it,E2,yn,ht,ci,ze,Pe,ai),S2=uC(it,hC,Dn,ht,nO(Nt,Io),ze,Pe,ft),O2=PC(Pn,Dm,Be,Mn,ft),lr=GO(jm),A2=DC(it,yn,O2,wc,Dm,ze,Pe,lr),Rs=XS(cr,sh),R2=u2(ht,Rs),Ds=uO($o,R2),D2=$C(Ds,Be,ft),P2=IC(it,D2,Ds,ze,Pe),M2=jC(Mo,Be,ft),N2=LC(it,M2,Mo,ze,Pe,d2),I2=fO(kc,ci,Nt,Rs),li=dO(kc,_n,I2,Ju,eh),$2=qC(Pn,li,Be,Mn,ft),F2=WC(it,yn,$2,li,ze,Pe,ai),Ym=pO(Et,Io),L2=XC(Ym,Be,ft),j2=GC(it,L2,Ym,ze,Pe,lr),z2=nS(Pn,Pm,Be,Mn,ft),V2=tS(it,yn,z2,Pm,ze,Pe,lr),Gm=mO(Et),U2=uS(Pn,Gm,Be,Mn,ft),B2=lS(it,yn,U2,Gm,Et,ze,Pe,lr),W2=yS(Pn,Nt,Be,Mn,ft),q2=_S(it,yn,W2,Nt,ze,Pe),H2=vO(wc,ht,No,Et),Tc=HO(_n,Nt,No,t2(Nt,ss)),Y2=DS(ci,Be,ss,ft,Tc),G2=gO(H2),X2=AS(it,G2,Y2,ze,Pe,lr),Z2=dC(yn,Ds,li,No,Et,Nm,Pe,Io),Xm=new WeakMap,K2=GS(S2,Z2,Um,Pe,Xm,ai),Zm=EO(kc,_n,Ju,Fm,eh,Lm),Q2=FO(Pn,Zm,Be,Mn,ft),J2=$O(it,yn,Zm,Q2,ze,Pe,ai),Km=UC(ci),eA=PO(Km,ht,Nt,Im,Rs),Ec=DO(Km,ht,eA,Im,Rs,$o,Io),tA=SO(La,ht,Ds,Nt,No,Ec,Et,ja,Nm,Rs),Qm=CO(tA),nA=zO(Pn,Ds,li,Nt,Qm,Be,ss,Mn,ft,Tc),sA=jO(it,yn,Qm,nA,ze,Pe,lr),rA=OO(Dn),iA=UO(rA,ze,new WeakSet,f2),oA=RO(Ds,Mo,Nt,Ec,Et,Rs),Jm=AO(oA,Et),aA=QO(Pn,Jm,Be,Mn,ft),cA=KO(it,yn,Jm,aA,ze,Pe),lA=i2(Ec,Be,ft),uA=r2(it,ht,Ec,lA,ze,Pe,lr),eg=US(An),ah=pS(An),tg=new WeakMap,hA=ES(tg,ss),dA=eg?BE(_n,Et,dS(An),ah,mS(LE),ze,hA,Pe,Xi,new WeakMap,new WeakMap,e2(Xi,ss),An):void 0,fA=zS(nh,Pe),pA=QC(rh,_n,KC,hS,new WeakSet,ze,fA,$a,Gi,ih,oh),ng=AC(dA,T2,qm,C2,A2,P2,N2,F2,j2,pA,V2,B2,q2,X2,K2,J2,sA,iA,cA,uA),mA=BS(it,bO,ze,Pe),gA=qS(it,xO,ze,Pe),_A=HS(it,wO,ze,Pe),yA=kO(ht,Pe),vA=YS(it,yA,ze),bA=lC(ng,ht,Et,n2,mA,gA,_A,vA,$o),ch=CS(Xm),xA=YE(ch),sg=VC(Dn),wA=rS(ch),rg=aS(Dn),ig=new WeakMap,kA=vS(ig,fn),TA=lO(sg,Dn,ht,Ds,Mo,li,Nt,No,Et,rg,ah,kA,Rs),EA=iO(ht,TA,Nt,Et,Rs),CA=OC(Pn,sg,ci,Ds,Mo,li,Nt,wA,rg,ah,Be,Xi,ss,Mn,ft,Tc),SA=kS(tg),OA=YO(ig),Ff=eg?EC(xA,it,yn,CA,EA,Tt,SA,ze,Pe,Xi,h2,OA,_2,ai):void 0,AA=ZC(Et,ss),RA=XO(rh,_n,th,ch,Tc,$a,ih,oh),DA=NO(ng,_n,ht,AA,RA),PA=MS(bc,nh),MA=NS(Hu,sh),NA=IS(Yu,Bm),IA=$S(bc,Pe);function Ut(n){return typeof n>"u"}function xe(n){return!Ut(n)}function $A(n){return typeof n=="function"}function ws(n){return typeof n=="number"}function qs(n){return Object.prototype.toString.call(n)==="[object Object]"&&n.constructor===Object}function FA(n){return typeof n=="boolean"}function hn(n){return Array.isArray(n)}function Zn(n){return typeof n=="string"}function sa(n){return Zn(n)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(n)}function me(n,e){if(!n)throw new Error(e)}function pn(n,e,t=1/0){if(!(e<=n&&n<=t))throw new RangeError(`Value must be within [${e}, ${t}], got: ${n}`)}function og(n){!n.isOffline&&n.state!=="running"&&lh('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let ag=!1,Lf=!1;function jf(n){ag=n}function LA(n){Ut(n)&&ag&&!Lf&&(Lf=!0,lh("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let cg=console;function jA(...n){cg.log(...n)}function lh(...n){cg.warn(...n)}function zA(n){return new bA(n)}function VA(n,e,t){return new DA(n,e,t)}const Hs=typeof self=="object"?self:null,UA=Hs&&(Hs.hasOwnProperty("AudioContext")||Hs.hasOwnProperty("webkitAudioContext"));function BA(n,e,t){return me(xe(Ff),"This node only works in a secure context (https or localhost)"),new Ff(n,e,t)}class WA{constructor(e,t,s,r){this._callback=e,this._type=t,this._minimumUpdateInterval=Math.max(128/(r||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const e=new Blob([` +`,CE=new _e(0,0,0),bf=1,SE=16777215,$i=new _e(0,0,0),xf=100,OE=600,AE=2e3,ps={x:0,y:0,z:200},mm="14.8.49",wf=(n,e,t)=>({endTime:e,insertTime:t,type:"exponentialRampToValue",value:n}),kf=(n,e,t)=>({endTime:e,insertTime:t,type:"linearRampToValue",value:n}),Wl=(n,e)=>({startTime:e,type:"setValue",value:n}),gm=(n,e,t)=>({duration:t,startTime:e,type:"setValueCurve",values:n}),_m=(n,e,{startTime:t,target:s,timeConstant:r})=>s+(e-s)*Math.exp((t-n)/r),Er=n=>n.type==="exponentialRampToValue",Na=n=>n.type==="linearRampToValue",us=n=>Er(n)||Na(n),qu=n=>n.type==="setValue",jn=n=>n.type==="setValueCurve",Ia=(n,e,t,s)=>{const r=n[e];return r===void 0?s:us(r)||qu(r)?r.value:jn(r)?r.values[r.values.length-1]:_m(t,Ia(n,e-1,r.startTime,s),r)},Tf=(n,e,t,s,r)=>t===void 0?[s.insertTime,r]:us(t)?[t.endTime,t.value]:qu(t)?[t.startTime,t.value]:jn(t)?[t.startTime+t.duration,t.values[t.values.length-1]]:[t.startTime,Ia(n,e-1,t.startTime,r)],ql=n=>n.type==="cancelAndHold",Hl=n=>n.type==="cancelScheduledValues",as=n=>ql(n)||Hl(n)?n.cancelTime:Er(n)||Na(n)?n.endTime:n.startTime,Ef=(n,e,t,{endTime:s,value:r})=>t===r?r:0t+(n-e)/(s-e)*(r-t),RE=(n,e)=>{const t=Math.floor(e),s=Math.ceil(e);return t===s?n[t]:(1-(e-t))*n[t]+(1-(s-e))*n[s]},DE=(n,{duration:e,startTime:t,values:s})=>{const r=(n-t)/e*(s.length-1);return RE(s,r)},ta=n=>n.type==="setTarget";class PE{constructor(e){this._automationEvents=[],this._currenTime=0,this._defaultValue=e}[Symbol.iterator](){return this._automationEvents[Symbol.iterator]()}add(e){const t=as(e);if(ql(e)||Hl(e)){const s=this._automationEvents.findIndex(i=>Hl(e)&&jn(i)?i.startTime+i.duration>=t:as(i)>=t),r=this._automationEvents[s];if(s!==-1&&(this._automationEvents=this._automationEvents.slice(0,s)),ql(e)){const i=this._automationEvents[this._automationEvents.length-1];if(r!==void 0&&us(r)){if(i!==void 0&&ta(i))throw new Error("The internal list is malformed.");const o=i===void 0?r.insertTime:jn(i)?i.startTime+i.duration:as(i),a=i===void 0?this._defaultValue:jn(i)?i.values[i.values.length-1]:i.value,c=Er(r)?Ef(t,o,a,r):Cf(t,o,a,r),l=Er(r)?wf(c,t,this._currenTime):kf(c,t,this._currenTime);this._automationEvents.push(l)}if(i!==void 0&&ta(i)&&this._automationEvents.push(Wl(this.getValue(t),t)),i!==void 0&&jn(i)&&i.startTime+i.duration>t){const o=t-i.startTime,a=(i.values.length-1)/i.duration,c=Math.max(2,1+Math.ceil(o*a)),l=o/(c-1)*a,u=i.values.slice(0,c);if(l<1)for(let h=1;has(o)>t),r=s===-1?this._automationEvents[this._automationEvents.length-1]:this._automationEvents[s-1];if(r!==void 0&&jn(r)&&as(r)+r.duration>t)return!1;const i=Er(e)?wf(e.value,e.endTime,this._currenTime):Na(e)?kf(e.value,t,this._currenTime):e;if(s===-1)this._automationEvents.push(i);else{if(jn(e)&&t+e.duration>as(this._automationEvents[s]))return!1;this._automationEvents.splice(s,0,i)}}return!0}flush(e){const t=this._automationEvents.findIndex(s=>as(s)>e);if(t>1){const s=this._automationEvents.slice(t-1),r=s[0];ta(r)&&s.unshift(Wl(Ia(this._automationEvents,t-2,r.startTime,this._defaultValue),r.startTime)),this._automationEvents=s}}getValue(e){if(this._automationEvents.length===0)return this._defaultValue;const t=this._automationEvents.findIndex(o=>as(o)>e),s=this._automationEvents[t],r=(t===-1?this._automationEvents.length:t)-1,i=this._automationEvents[r];if(i!==void 0&&ta(i)&&(s===void 0||!us(s)||s.insertTime>e))return _m(e,Ia(this._automationEvents,r-1,i.startTime,this._defaultValue),i);if(i!==void 0&&qu(i)&&(s===void 0||!us(s)))return i.value;if(i!==void 0&&jn(i)&&(s===void 0||!us(s)||i.startTime+i.duration>e))return e({cancelTime:n,type:"cancelAndHold"}),NE=n=>({cancelTime:n,type:"cancelScheduledValues"}),IE=(n,e)=>({endTime:e,type:"exponentialRampToValue",value:n}),$E=(n,e)=>({endTime:e,type:"linearRampToValue",value:n}),FE=(n,e,t)=>({startTime:e,target:n,timeConstant:t,type:"setTarget"}),LE=()=>new DOMException("","AbortError"),jE=n=>(e,t,[s,r,i],o)=>{n(e[r],[t,s,i],a=>a[0]===t&&a[1]===s,o)},zE=n=>(e,t,s)=>{const r=[];for(let i=0;i(e,t)=>{n.set(e,{activeInputs:new Set,passiveInputs:new WeakMap,renderer:t})},Vr=new WeakSet,ym=new WeakMap,Hu=new WeakMap,vm=new WeakMap,Yu=new WeakMap,bc=new WeakMap,bm=new WeakMap,Yl=new WeakMap,Gl=new WeakMap,Xl=new WeakMap,xm={construct(){return xm}},UE=n=>{try{const e=new Proxy(n,xm);new e}catch{return!1}return!0},Sf=/^import(?:(?:[\s]+[\w]+|(?:[\s]+[\w]+[\s]*,)?[\s]*\{[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?(?:[\s]*,[\s]*[\w]+(?:[\s]+as[\s]+[\w]+)?)*[\s]*}|(?:[\s]+[\w]+[\s]*,)?[\s]*\*[\s]+as[\s]+[\w]+)[\s]+from)?(?:[\s]*)("([^"\\]|\\.)+"|'([^'\\]|\\.)+')(?:[\s]*);?/,Of=(n,e)=>{const t=[];let s=n.replace(/^[\s]+/,""),r=s.match(Sf);for(;r!==null;){const i=r[1].slice(1,-1),o=r[0].replace(/([\s]+)?;?$/,"").replace(i,new URL(i,e).toString());t.push(o),s=s.slice(r[0].length).replace(/^[\s]+/,""),r=s.match(Sf)}return[t.join(";"),s]},Af=n=>{if(n!==void 0&&!Array.isArray(n))throw new TypeError("The parameterDescriptors property of given value for processorCtor is not an array.")},Rf=n=>{if(!UE(n))throw new TypeError("The given value for processorCtor should be a constructor.");if(n.prototype===null||typeof n.prototype!="object")throw new TypeError("The given value for processorCtor should have a prototype.")},BE=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{let f=0;return(m,p,g={credentials:"omit"})=>{const _=u.get(m);if(_!==void 0&&_.has(p))return Promise.resolve();const T=l.get(m);if(T!==void 0){const y=T.get(p);if(y!==void 0)return y}const w=i(m),b=w.audioWorklet===void 0?r(p).then(([y,x])=>{const[E,k]=Of(y,x),C=`${E};((a,b)=>{(a[b]=a[b]||[]).push((AudioWorkletProcessor,global,registerProcessor,sampleRate,self,window)=>{${k} +})})(window,'_AWGS')`;return t(C)}).then(()=>{const y=d._AWGS.pop();if(y===void 0)throw new SyntaxError;s(w.currentTime,w.sampleRate,()=>y(class{},void 0,(x,E)=>{if(x.trim()==="")throw e();const k=Gl.get(w);if(k!==void 0){if(k.has(x))throw e();Rf(E),Af(E.parameterDescriptors),k.set(x,E)}else Rf(E),Af(E.parameterDescriptors),Gl.set(w,new Map([[x,E]]))},w.sampleRate,void 0,void 0))}):Promise.all([r(p),Promise.resolve(n(h,h))]).then(([[y,x],E])=>{const k=f+1;f=k;const[C,S]=Of(y,x),z=`${C};((AudioWorkletProcessor,registerProcessor)=>{${S} +})(${E?"AudioWorkletProcessor":"class extends AudioWorkletProcessor {__b=new WeakSet();constructor(){super();(p=>p.postMessage=(q=>(m,t)=>q.call(p,m,t?t.filter(u=>!this.__b.has(u)):t))(p.postMessage))(this.port)}}"},(n,p)=>registerProcessor(n,class extends p{${E?"":"__c = (a) => a.forEach(e=>this.__b.add(e.buffer));"}process(i,o,p){${E?"":"i.forEach(this.__c);o.forEach(this.__c);this.__c(Object.values(p));"}return super.process(i.map(j=>j.some(k=>k.length===0)?[]:j),o,p)}}));registerProcessor('__sac${k}',class extends AudioWorkletProcessor{process(){return !1}})`,W=new Blob([z],{type:"application/javascript; charset=utf-8"}),B=URL.createObjectURL(W);return w.audioWorklet.addModule(B,g).then(()=>{if(a(w))return w;const V=o(w);return V.audioWorklet.addModule(B,g).then(()=>V)}).then(V=>{if(c===null)throw new SyntaxError;try{new c(V,`__sac${k}`)}catch{throw new SyntaxError}}).finally(()=>URL.revokeObjectURL(B))});return T===void 0?l.set(m,new Map([[p,b]])):T.set(p,b),b.then(()=>{const y=u.get(m);y===void 0?u.set(m,new Set([p])):y.add(p)}).finally(()=>{const y=l.get(m);y!==void 0&&y.delete(p)}),b}},fn=(n,e)=>{const t=n.get(e);if(t===void 0)throw new Error("A value with the given key could not be found.");return t},xc=(n,e)=>{const t=Array.from(n).filter(e);if(t.length>1)throw Error("More than one element was found.");if(t.length===0)throw Error("No element was found.");const[s]=t;return n.delete(s),s},wm=(n,e,t,s)=>{const r=fn(n,e),i=xc(r,o=>o[0]===t&&o[1]===s);return r.size===0&&n.delete(e),i},Ao=n=>fn(bm,n),Ur=n=>{if(Vr.has(n))throw new Error("The AudioNode is already stored.");Vr.add(n),Ao(n).forEach(e=>e(!0))},km=n=>"port"in n,Ro=n=>{if(!Vr.has(n))throw new Error("The AudioNode is not stored.");Vr.delete(n),Ao(n).forEach(e=>e(!1))},Zl=(n,e)=>{!km(n)&&e.every(t=>t.size===0)&&Ro(n)},WE=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>{const f=new WeakMap;return(m,p,g,_,T)=>{const{activeInputs:w,passiveInputs:b}=i(p),{outputs:y}=i(m),x=a(m),E=k=>{const C=c(p),S=c(m);if(k){const R=wm(b,m,g,_);n(w,m,R,!1),!T&&!h(m)&&t(S,C,g,_),d(p)&&Ur(p)}else{const R=s(w,m,g,_);e(b,_,R,!1),!T&&!h(m)&&r(S,C,g,_);const O=o(p);if(O===0)u(p)&&Zl(p,w);else{const L=f.get(p);L!==void 0&&clearTimeout(L),f.set(p,setTimeout(()=>{u(p)&&Zl(p,w)},O*1e3))}}};return l(y,[p,g,_],k=>k[0]===p&&k[1]===g&&k[2]===_,!0)?(x.add(E),u(m)?n(w,m,[g,_,E],!0):e(b,_,[m,g,E],!0),!0):!1}},qE=n=>(e,t,[s,r,i],o)=>{const a=e.get(s);a===void 0?e.set(s,new Set([[r,t,i]])):n(a,[r,t,i],c=>c[0]===r&&c[1]===t,o)},HE=n=>(e,t)=>{const s=n(e,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});t.connect(s).connect(e.destination);const r=()=>{t.removeEventListener("ended",r),t.disconnect(s),s.disconnect()};t.addEventListener("ended",r)},YE=n=>(e,t)=>{n(e).add(t)},GE={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",fftSize:2048,maxDecibels:-30,minDecibels:-100,smoothingTimeConstant:.8},XE=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...GE,...c},h=s(l,u),d=i(l)?e():null;super(a,!1,h,d),this._nativeAnalyserNode=h}get fftSize(){return this._nativeAnalyserNode.fftSize}set fftSize(a){this._nativeAnalyserNode.fftSize=a}get frequencyBinCount(){return this._nativeAnalyserNode.frequencyBinCount}get maxDecibels(){return this._nativeAnalyserNode.maxDecibels}set maxDecibels(a){const c=this._nativeAnalyserNode.maxDecibels;if(this._nativeAnalyserNode.maxDecibels=a,!(a>this._nativeAnalyserNode.minDecibels))throw this._nativeAnalyserNode.maxDecibels=c,t()}get minDecibels(){return this._nativeAnalyserNode.minDecibels}set minDecibels(a){const c=this._nativeAnalyserNode.minDecibels;if(this._nativeAnalyserNode.minDecibels=a,!(this._nativeAnalyserNode.maxDecibels>a))throw this._nativeAnalyserNode.minDecibels=c,t()}get smoothingTimeConstant(){return this._nativeAnalyserNode.smoothingTimeConstant}set smoothingTimeConstant(a){this._nativeAnalyserNode.smoothingTimeConstant=a}getByteFrequencyData(a){this._nativeAnalyserNode.getByteFrequencyData(a)}getByteTimeDomainData(a){this._nativeAnalyserNode.getByteTimeDomainData(a)}getFloatFrequencyData(a){this._nativeAnalyserNode.getFloatFrequencyData(a)}getFloatTimeDomainData(a){this._nativeAnalyserNode.getFloatTimeDomainData(a)}},vt=(n,e)=>n.context===e,ZE=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,fftSize:a.fftSize,maxDecibels:a.maxDecibels,minDecibels:a.minDecibels,smoothingTimeConstant:a.smoothingTimeConstant};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},$a=n=>{try{n.copyToChannel(new Float32Array(1),0,-1)}catch{return!1}return!0},Dn=()=>new DOMException("","IndexSizeError"),Gu=n=>{n.getChannelData=(e=>t=>{try{return e.call(n,t)}catch(s){throw s.code===12?Dn():s}})(n.getChannelData)},KE={numberOfChannels:1},QE=(n,e,t,s,r,i,o,a)=>{let c=null;return class Tm{constructor(u){if(r===null)throw new Error("Missing the native OfflineAudioContext constructor.");const{length:h,numberOfChannels:d,sampleRate:f}={...KE,...u};c===null&&(c=new r(1,1,44100));const m=s!==null&&e(i,i)?new s({length:h,numberOfChannels:d,sampleRate:f}):c.createBuffer(d,h,f);if(m.numberOfChannels===0)throw t();return typeof m.copyFromChannel!="function"?(o(m),Gu(m)):e($a,()=>$a(m))||a(m),n.add(m),m}static[Symbol.hasInstance](u){return u!==null&&typeof u=="object"&&Object.getPrototypeOf(u)===Tm.prototype||n.has(u)}}},St=-34028234663852886e22,xt=-St,qn=n=>Vr.has(n),JE={buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1},eC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...JE,...u},f=r(h,d),m=o(h),p=m?e():null;super(l,!1,f,p),this._audioBufferSourceNodeRenderer=p,this._isBufferNullified=!1,this._isBufferSet=d.buffer!==null,this._nativeAudioBufferSourceNode=f,this._onended=null,this._playbackRate=t(this,m,f.playbackRate,xt,St)}get buffer(){return this._isBufferNullified?null:this._nativeAudioBufferSourceNode.buffer}set buffer(l){if(this._nativeAudioBufferSourceNode.buffer=l,l!==null){if(this._isBufferSet)throw s();this._isBufferSet=!0}}get loop(){return this._nativeAudioBufferSourceNode.loop}set loop(l){this._nativeAudioBufferSourceNode.loop=l}get loopEnd(){return this._nativeAudioBufferSourceNode.loopEnd}set loopEnd(l){this._nativeAudioBufferSourceNode.loopEnd=l}get loopStart(){return this._nativeAudioBufferSourceNode.loopStart}set loopStart(l){this._nativeAudioBufferSourceNode.loopStart=l}get onended(){return this._onended}set onended(l){const u=typeof l=="function"?a(this,l):null;this._nativeAudioBufferSourceNode.onended=u;const h=this._nativeAudioBufferSourceNode.onended;this._onended=h!==null&&h===u?l:h}get playbackRate(){return this._playbackRate}start(l=0,u=0,h){if(this._nativeAudioBufferSourceNode.start(l,u,h),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.start=h===void 0?[l,u]:[l,u,h]),this.context.state!=="closed"){Ur(this);const d=()=>{this._nativeAudioBufferSourceNode.removeEventListener("ended",d),qn(this)&&Ro(this)};this._nativeAudioBufferSourceNode.addEventListener("ended",d)}}stop(l=0){this._nativeAudioBufferSourceNode.stop(l),this._audioBufferSourceNodeRenderer!==null&&(this._audioBufferSourceNodeRenderer.stop=l)}},tC=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(h,u);if(!d){const f={buffer:h.buffer,channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,loop:h.loop,loopEnd:h.loopEnd,loopStart:h.loopStart,playbackRate:h.playbackRate.value};h=e(u,f),o!==null&&h.start(...o),a!==null&&h.stop(a)}return i.set(u,h),d?await n(u,l.playbackRate,h.playbackRate):await s(u,l.playbackRate,h.playbackRate),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},nC=n=>"playbackRate"in n,sC=n=>"frequency"in n&&"gain"in n,rC=n=>"offset"in n,iC=n=>!("frequency"in n)&&"gain"in n,oC=n=>"detune"in n&&"frequency"in n,aC=n=>"pan"in n,Tt=n=>fn(ym,n),Do=n=>fn(vm,n),Kl=(n,e)=>{const{activeInputs:t}=Tt(n);t.forEach(r=>r.forEach(([i])=>{e.includes(n)||Kl(i,[...e,n])}));const s=nC(n)?[n.playbackRate]:km(n)?Array.from(n.parameters.values()):sC(n)?[n.Q,n.detune,n.frequency,n.gain]:rC(n)?[n.offset]:iC(n)?[n.gain]:oC(n)?[n.detune,n.frequency]:aC(n)?[n.pan]:[];for(const r of s){const i=Do(r);i!==void 0&&i.activeInputs.forEach(([o])=>Kl(o,e))}qn(n)&&Ro(n)},Em=n=>{Kl(n.destination,[])},cC=n=>n===void 0||typeof n=="number"||typeof n=="string"&&(n==="balanced"||n==="interactive"||n==="playback"),lC=(n,e,t,s,r,i,o,a,c)=>class extends n{constructor(u={}){if(c===null)throw new Error("Missing the native AudioContext constructor.");let h;try{h=new c(u)}catch(m){throw m.code===12&&m.message==="sampleRate is not in range"?t():m}if(h===null)throw s();if(!cC(u.latencyHint))throw new TypeError(`The provided value '${u.latencyHint}' is not a valid enum value of type AudioContextLatencyCategory.`);if(u.sampleRate!==void 0&&h.sampleRate!==u.sampleRate)throw t();super(h,2);const{latencyHint:d}=u,{sampleRate:f}=h;if(this._baseLatency=typeof h.baseLatency=="number"?h.baseLatency:d==="balanced"?512/f:d==="interactive"||d===void 0?256/f:d==="playback"?1024/f:Math.max(2,Math.min(128,Math.round(d*f/128)))*128/f,this._nativeAudioContext=h,c.name==="webkitAudioContext"?(this._nativeGainNode=h.createGain(),this._nativeOscillatorNode=h.createOscillator(),this._nativeGainNode.gain.value=1e-37,this._nativeOscillatorNode.connect(this._nativeGainNode).connect(h.destination),this._nativeOscillatorNode.start()):(this._nativeGainNode=null,this._nativeOscillatorNode=null),this._state=null,h.state==="running"){this._state="suspended";const m=()=>{this._state==="suspended"&&(this._state=null),h.removeEventListener("statechange",m)};h.addEventListener("statechange",m)}}get baseLatency(){return this._baseLatency}get state(){return this._state!==null?this._state:this._nativeAudioContext.state}close(){return this.state==="closed"?this._nativeAudioContext.close().then(()=>{throw e()}):(this._state==="suspended"&&(this._state=null),this._nativeAudioContext.close().then(()=>{this._nativeGainNode!==null&&this._nativeOscillatorNode!==null&&(this._nativeOscillatorNode.stop(),this._nativeGainNode.disconnect(),this._nativeOscillatorNode.disconnect()),Em(this)}))}createMediaElementSource(u){return new r(this,{mediaElement:u})}createMediaStreamDestination(){return new i(this)}createMediaStreamSource(u){return new o(this,{mediaStream:u})}createMediaStreamTrackSource(u){return new a(this,{mediaStreamTrack:u})}resume(){return this._state==="suspended"?new Promise((u,h)=>{const d=()=>{this._nativeAudioContext.removeEventListener("statechange",d),this._nativeAudioContext.state==="running"?u():this.resume().then(u,h)};this._nativeAudioContext.addEventListener("statechange",d)}):this._nativeAudioContext.resume().catch(u=>{throw u===void 0||u.code===15?e():u})}suspend(){return this._nativeAudioContext.suspend().catch(u=>{throw u===void 0?e():u})}},uC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d=o(h),f=r(h,u,d),m=d?e(a):null;super(l,!1,f,m),this._isNodeOfNativeOfflineAudioContext=d,this._nativeAudioDestinationNode=f}get channelCount(){return this._nativeAudioDestinationNode.channelCount}set channelCount(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();if(l>this._nativeAudioDestinationNode.maxChannelCount)throw t();this._nativeAudioDestinationNode.channelCount=l}get channelCountMode(){return this._nativeAudioDestinationNode.channelCountMode}set channelCountMode(l){if(this._isNodeOfNativeOfflineAudioContext)throw s();this._nativeAudioDestinationNode.channelCountMode=l}get maxChannelCount(){return this._nativeAudioDestinationNode.maxChannelCount}},hC=n=>{const e=new WeakMap,t=async(s,r)=>{const i=r.destination;return e.set(r,i),await n(s,r,i),i};return{render(s,r){const i=e.get(r);return i!==void 0?Promise.resolve(i):t(s,r)}}},dC=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=l.listener,h=()=>{const y=new Float32Array(1),x=e(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:9}),E=o(l);let k=!1,C=[0,0,-1,0,1,0],S=[0,0,0];const R=()=>{if(k)return;k=!0;const W=s(l,256,9,0);W.onaudioprocess=({inputBuffer:B})=>{const V=[i(B,y,0),i(B,y,1),i(B,y,2),i(B,y,3),i(B,y,4),i(B,y,5)];V.some((X,K)=>X!==C[K])&&(u.setOrientation(...V),C=V);const U=[i(B,y,6),i(B,y,7),i(B,y,8)];U.some((X,K)=>X!==S[K])&&(u.setPosition(...U),S=U)},x.connect(W)},O=W=>B=>{B!==C[W]&&(C[W]=B,u.setOrientation(...C))},L=W=>B=>{B!==S[W]&&(S[W]=B,u.setPosition(...S))},z=(W,B,V)=>{const U=t(l,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:B});U.connect(x,0,W),U.start(),Object.defineProperty(U.offset,"defaultValue",{get(){return B}});const X=n({context:c},E,U.offset,xt,St);return a(X,"value",K=>()=>K.call(X),K=>J=>{try{K.call(X,J)}catch(F){if(F.code!==9)throw F}R(),E&&V(J)}),X.cancelAndHoldAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return R(),F})(X.cancelAndHoldAtTime),X.cancelScheduledValues=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return R(),F})(X.cancelScheduledValues),X.exponentialRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return R(),F})(X.exponentialRampToValueAtTime),X.linearRampToValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return R(),F})(X.linearRampToValueAtTime),X.setTargetAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return R(),F})(X.setTargetAtTime),X.setValueAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return R(),F})(X.setValueAtTime),X.setValueCurveAtTime=(K=>E?()=>{throw r()}:(...J)=>{const F=K.apply(X,J);return R(),F})(X.setValueCurveAtTime),X};return{forwardX:z(0,0,O(0)),forwardY:z(1,0,O(1)),forwardZ:z(2,-1,O(2)),positionX:z(6,0,L(0)),positionY:z(7,0,L(1)),positionZ:z(8,0,L(2)),upX:z(3,0,O(3)),upY:z(4,1,O(4)),upZ:z(5,0,O(5))}},{forwardX:d,forwardY:f,forwardZ:m,positionX:p,positionY:g,positionZ:_,upX:T,upY:w,upZ:b}=u.forwardX===void 0?h():u;return{get forwardX(){return d},get forwardY(){return f},get forwardZ(){return m},get positionX(){return p},get positionY(){return g},get positionZ(){return _},get upX(){return T},get upY(){return w},get upZ(){return b}}},Fa=n=>"context"in n,Po=n=>Fa(n[0]),cr=(n,e,t,s)=>{for(const r of n)if(t(r)){if(s)return!1;throw Error("The set contains at least one similar element.")}return n.add(e),!0},Df=(n,e,[t,s],r)=>{cr(n,[e,t,s],i=>i[0]===e&&i[1]===t,r)},Pf=(n,[e,t,s],r)=>{const i=n.get(e);i===void 0?n.set(e,new Set([[t,s]])):cr(i,[t,s],o=>o[0]===t,r)},ii=n=>"inputs"in n,La=(n,e,t,s)=>{if(ii(e)){const r=e.inputs[s];return n.connect(r,t,0),[r,t,0]}return n.connect(e,t,s),[e,t,s]},Cm=(n,e,t)=>{for(const s of n)if(s[0]===e&&s[1]===t)return n.delete(s),s;return null},fC=(n,e,t)=>xc(n,s=>s[0]===e&&s[1]===t),Sm=(n,e)=>{if(!Ao(n).delete(e))throw new Error("Missing the expected event listener.")},Om=(n,e,t)=>{const s=fn(n,e),r=xc(s,i=>i[0]===t);return s.size===0&&n.delete(e),r},ja=(n,e,t,s)=>{ii(e)?n.disconnect(e.inputs[s],t,0):n.disconnect(e,t,s)},Be=n=>fn(Hu,n),Yi=n=>fn(Yu,n),er=n=>Yl.has(n),da=n=>!Vr.has(n),Mf=(n,e)=>new Promise(t=>{if(e!==null)t(!0);else{const s=n.createScriptProcessor(256,1,1),r=n.createGain(),i=n.createBuffer(1,2,44100),o=i.getChannelData(0);o[0]=1,o[1]=1;const a=n.createBufferSource();a.buffer=i,a.loop=!0,a.connect(s).connect(n.destination),a.connect(r),a.disconnect(r),s.onaudioprocess=c=>{const l=c.inputBuffer.getChannelData(0);Array.prototype.some.call(l,u=>u===1)?t(!0):t(!1),a.stop(),s.onaudioprocess=null,a.disconnect(s),s.disconnect(n.destination)},a.start()}}),al=(n,e)=>{const t=new Map;for(const s of n)for(const r of s){const i=t.get(r);t.set(r,i===void 0?1:i+1)}t.forEach((s,r)=>e(r,s))},za=n=>"context"in n,pC=n=>{const e=new Map;n.connect=(t=>(s,r=0,i=0)=>{const o=za(s)?t(s,r,i):t(s,r),a=e.get(s);return a===void 0?e.set(s,[{input:i,output:r}]):a.every(c=>c.input!==i||c.output!==r)&&a.push({input:i,output:r}),o})(n.connect.bind(n)),n.disconnect=(t=>(s,r,i)=>{if(t.apply(n),s===void 0)e.clear();else if(typeof s=="number")for(const[o,a]of e){const c=a.filter(l=>l.output!==s);c.length===0?e.delete(o):e.set(o,c)}else if(e.has(s))if(r===void 0)e.delete(s);else{const o=e.get(s);if(o!==void 0){const a=o.filter(c=>c.output!==r&&(c.input!==i||i===void 0));a.length===0?e.delete(s):e.set(s,a)}}for(const[o,a]of e)a.forEach(c=>{za(o)?n.connect(o,c.output,c.input):n.connect(o,c.output)})})(n.disconnect)},mC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=Do(e),{outputs:o}=Tt(n),a=Ao(n),c=l=>{const u=Be(n),h=Yi(e);if(l){const d=Om(i,n,t);Df(r,n,d,!1),!s&&!er(n)&&u.connect(h,t)}else{const d=fC(r,n,t);Pf(i,d,!1),!s&&!er(n)&&u.disconnect(h,t)}};return cr(o,[e,t],l=>l[0]===e&&l[1]===t,!0)?(a.add(c),qn(n)?Df(r,n,[t,c],!0):Pf(i,[n,t,c],!0),!0):!1},gC=(n,e,t,s)=>{const{activeInputs:r,passiveInputs:i}=Tt(e),o=Cm(r[s],n,t);return o===null?[wm(i,n,t,s)[2],!1]:[o[2],!0]},_C=(n,e,t)=>{const{activeInputs:s,passiveInputs:r}=Do(e),i=Cm(s,n,t);return i===null?[Om(r,n,t)[1],!1]:[i[2],!0]},Xu=(n,e,t,s,r)=>{const[i,o]=gC(n,t,s,r);if(i!==null&&(Sm(n,i),o&&!e&&!er(n)&&ja(Be(n),Be(t),s,r)),qn(t)){const{activeInputs:a}=Tt(t);Zl(t,a)}},Zu=(n,e,t,s)=>{const[r,i]=_C(n,t,s);r!==null&&(Sm(n,r),i&&!e&&!er(n)&&Be(n).disconnect(Yi(t),s))},yC=(n,e)=>{const t=Tt(n),s=[];for(const r of t.outputs)Po(r)?Xu(n,e,...r):Zu(n,e,...r),s.push(r[0]);return t.outputs.clear(),s},vC=(n,e,t)=>{const s=Tt(n),r=[];for(const i of s.outputs)i[1]===t&&(Po(i)?Xu(n,e,...i):Zu(n,e,...i),r.push(i[0]),s.outputs.delete(i));return r},bC=(n,e,t,s,r)=>{const i=Tt(n);return Array.from(i.outputs).filter(o=>o[0]===t&&(s===void 0||o[1]===s)&&(r===void 0||o[2]===r)).map(o=>(Po(o)?Xu(n,e,...o):Zu(n,e,...o),i.outputs.delete(o),o[0]))},xC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f,m,p)=>class extends l{constructor(_,T,w,b){super(w),this._context=_,this._nativeAudioNode=w;const y=u(_);h(y)&&t(Mf,()=>Mf(y,p))!==!0&&pC(w),Hu.set(this,w),bm.set(this,new Set),_.state!=="closed"&&T&&Ur(this),n(this,b,w)}get channelCount(){return this._nativeAudioNode.channelCount}set channelCount(_){this._nativeAudioNode.channelCount=_}get channelCountMode(){return this._nativeAudioNode.channelCountMode}set channelCountMode(_){this._nativeAudioNode.channelCountMode=_}get channelInterpretation(){return this._nativeAudioNode.channelInterpretation}set channelInterpretation(_){this._nativeAudioNode.channelInterpretation=_}get context(){return this._context}get numberOfInputs(){return this._nativeAudioNode.numberOfInputs}get numberOfOutputs(){return this._nativeAudioNode.numberOfOutputs}connect(_,T=0,w=0){if(T<0||T>=this._nativeAudioNode.numberOfOutputs)throw r();const b=u(this._context),y=m(b);if(d(_)||f(_))throw i();if(Fa(_)){const k=Be(_);try{const S=La(this._nativeAudioNode,k,T,w),R=da(this);(y||R)&&this._nativeAudioNode.disconnect(...S),this.context.state!=="closed"&&!R&&da(_)&&Ur(_)}catch(S){throw S.code===12?i():S}if(e(this,_,T,w,y)){const S=c([this],_);al(S,s(y))}return _}const x=Yi(_);if(x.name==="playbackRate"&&x.maxValue===1024)throw o();try{this._nativeAudioNode.connect(x,T),(y||da(this))&&this._nativeAudioNode.disconnect(x,T)}catch(k){throw k.code===12?i():k}if(mC(this,_,T,y)){const k=c([this],_);al(k,s(y))}}disconnect(_,T,w){let b;const y=u(this._context),x=m(y);if(_===void 0)b=yC(this,x);else if(typeof _=="number"){if(_<0||_>=this.numberOfOutputs)throw r();b=vC(this,x,_)}else{if(T!==void 0&&(T<0||T>=this.numberOfOutputs)||Fa(_)&&w!==void 0&&(w<0||w>=_.numberOfInputs))throw r();if(b=bC(this,x,_,T,w),b.length===0)throw i()}for(const E of b){const k=c([this],E);al(k,a)}}},wC=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,m,p,g=null,_=null)=>{const T=p.value,w=new PE(T),b=m?s(w):null,y={get defaultValue(){return T},get maxValue(){return g===null?p.maxValue:g},get minValue(){return _===null?p.minValue:_},get value(){return p.value},set value(x){p.value=x,y.setValueAtTime(x,f.context.currentTime)},cancelAndHoldAtTime(x){if(typeof p.cancelAndHoldAtTime=="function")b===null&&w.flush(f.context.currentTime),w.add(r(x)),p.cancelAndHoldAtTime(x);else{const E=Array.from(w).pop();b===null&&w.flush(f.context.currentTime),w.add(r(x));const k=Array.from(w).pop();p.cancelScheduledValues(x),E!==k&&k!==void 0&&(k.type==="exponentialRampToValue"?p.exponentialRampToValueAtTime(k.value,k.endTime):k.type==="linearRampToValue"?p.linearRampToValueAtTime(k.value,k.endTime):k.type==="setValue"?p.setValueAtTime(k.value,k.startTime):k.type==="setValueCurve"&&p.setValueCurveAtTime(k.values,k.startTime,k.duration))}return y},cancelScheduledValues(x){return b===null&&w.flush(f.context.currentTime),w.add(i(x)),p.cancelScheduledValues(x),y},exponentialRampToValueAtTime(x,E){if(x===0)throw new RangeError;if(!Number.isFinite(E)||E<0)throw new RangeError;const k=f.context.currentTime;return b===null&&w.flush(k),Array.from(w).length===0&&(w.add(l(T,k)),p.setValueAtTime(T,k)),w.add(o(x,E)),p.exponentialRampToValueAtTime(x,E),y},linearRampToValueAtTime(x,E){const k=f.context.currentTime;return b===null&&w.flush(k),Array.from(w).length===0&&(w.add(l(T,k)),p.setValueAtTime(T,k)),w.add(a(x,E)),p.linearRampToValueAtTime(x,E),y},setTargetAtTime(x,E,k){return b===null&&w.flush(f.context.currentTime),w.add(c(x,E,k)),p.setTargetAtTime(x,E,k),y},setValueAtTime(x,E){return b===null&&w.flush(f.context.currentTime),w.add(l(x,E)),p.setValueAtTime(x,E),y},setValueCurveAtTime(x,E,k){const C=x instanceof Float32Array?x:new Float32Array(x);if(h!==null&&h.name==="webkitAudioContext"){const S=E+k,R=f.context.sampleRate,O=Math.ceil(E*R),L=Math.floor(S*R),z=L-O,W=new Float32Array(z);for(let V=0;V({replay(e){for(const t of n)if(t.type==="exponentialRampToValue"){const{endTime:s,value:r}=t;e.exponentialRampToValueAtTime(r,s)}else if(t.type==="linearRampToValue"){const{endTime:s,value:r}=t;e.linearRampToValueAtTime(r,s)}else if(t.type==="setTarget"){const{startTime:s,target:r,timeConstant:i}=t;e.setTargetAtTime(r,s,i)}else if(t.type==="setValue"){const{startTime:s,value:r}=t;e.setValueAtTime(r,s)}else if(t.type==="setValueCurve"){const{duration:s,startTime:r,values:i}=t;e.setValueCurveAtTime(i,r,s)}else throw new Error("Can't apply an unknown automation.")}});class Am{constructor(e){this._map=new Map(e)}get size(){return this._map.size}entries(){return this._map.entries()}forEach(e,t=null){return this._map.forEach((s,r)=>e.call(t,s,r,this))}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){return this._map.keys()}values(){return this._map.values()}}const TC={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:1,numberOfOutputs:1,parameterData:{},processorOptions:{}},EC=(n,e,t,s,r,i,o,a,c,l,u,h,d,f)=>class extends e{constructor(p,g,_){var T;const w=a(p),b=c(w),y=u({...TC,..._});d(y);const x=Gl.get(w),E=x==null?void 0:x.get(g),k=b||w.state!=="closed"?w:(T=o(w))!==null&&T!==void 0?T:w,C=r(k,b?null:p.baseLatency,l,g,E,y),S=b?s(g,y,E):null;super(p,!0,C,S);const R=[];C.parameters.forEach((L,z)=>{const W=t(this,b,L);R.push([z,W])}),this._nativeAudioWorkletNode=C,this._onprocessorerror=null,this._parameters=new Am(R),b&&n(w,this);const{activeInputs:O}=i(this);h(C,O)}get onprocessorerror(){return this._onprocessorerror}set onprocessorerror(p){const g=typeof p=="function"?f(this,p):null;this._nativeAudioWorkletNode.onprocessorerror=g;const _=this._nativeAudioWorkletNode.onprocessorerror;this._onprocessorerror=_!==null&&_===g?p:_}get parameters(){return this._parameters===null?this._nativeAudioWorkletNode.parameters:this._parameters}get port(){return this._nativeAudioWorkletNode.port}};function Va(n,e,t,s,r){if(typeof n.copyFromChannel=="function")e[t].byteLength===0&&(e[t]=new Float32Array(128)),n.copyFromChannel(e[t],s,r);else{const i=n.getChannelData(s);if(e[t].byteLength===0)e[t]=i.slice(r,r+128);else{const o=new Float32Array(i.buffer,r*Float32Array.BYTES_PER_ELEMENT,128);e[t].set(o)}}}const Rm=(n,e,t,s,r)=>{typeof n.copyToChannel=="function"?e[t].byteLength!==0&&n.copyToChannel(e[t],s,r):e[t].byteLength!==0&&n.getChannelData(s).set(e[t],r)},Ua=(n,e)=>{const t=[];for(let s=0;s{const t=fn(Xl,n),s=Be(e);return fn(t,s)},SC=async(n,e,t,s,r,i,o)=>{const a=e===null?Math.ceil(n.context.length/128)*128:e.length,c=s.channelCount*s.numberOfInputs,l=r.reduce((g,_)=>g+_,0),u=l===0?null:t.createBuffer(l,a,t.sampleRate);if(i===void 0)throw new Error("Missing the processor constructor.");const h=Tt(n),d=await CC(t,n),f=Ua(s.numberOfInputs,s.channelCount),m=Ua(s.numberOfOutputs,r),p=Array.from(n.parameters.keys()).reduce((g,_)=>({...g,[_]:new Float32Array(128)}),{});for(let g=0;g0&&e!==null)for(let _=0;_{Va(e,p,_,c+T,g)});for(let _=0;_h.activeInputs[b].size===0?[]:w),T=o(g/t.sampleRate,t.sampleRate,()=>d.process(_,m,p));if(u!==null)for(let w=0,b=0;w(g,_,T)=>{const w=new WeakMap;let b=null;const y=async(x,E)=>{let k=u(x),C=null;const S=vt(k,E),R=Array.isArray(_.outputChannelCount)?_.outputChannelCount:Array.from(_.outputChannelCount);if(h===null){const O=R.reduce((B,V)=>B+V,0),L=r(E,{channelCount:Math.max(1,O),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,O)}),z=[];for(let B=0;B{const J=new d(X,Math.ceil(x.context.length/128)*128,E.sampleRate),F=[],j=[];for(let Y=0;Y<_.numberOfInputs;Y+=1)F.push(o(J,{channelCount:_.channelCount,channelCountMode:_.channelCountMode,channelInterpretation:_.channelInterpretation,gain:1})),j.push(r(J,{channelCount:_.channelCount,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:_.channelCount}));const A=await Promise.all(Array.from(x.parameters.values()).map(async Y=>{const $=i(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:Y.value});return await f(J,Y,$.offset),$})),I=s(J,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,V+U)});for(let Y=0;Y<_.numberOfInputs;Y+=1){F[Y].connect(j[Y]);for(let $=0;$<_.channelCount;$+=1)j[Y].connect(I,$,Y*_.channelCount+$)}for(const[Y,$]of A.entries())$.connect(I,0,V+Y),$.start(0);return I.connect(J.destination),await Promise.all(F.map(Y=>m(x,J,Y))),p(J)})(),E,_,R,T,l)}const O=await b,L=t(E,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),[z,W,B]=C;O!==null&&(L.buffer=O,L.start(0)),L.connect(z);for(let V=0,U=0;Vclass extends m{constructor(y,x){super(y,x),this._nativeContext=y,this._audioWorklet=n===void 0?void 0:{addModule:(E,k)=>n(this,E,k)}}get audioWorklet(){return this._audioWorklet}createAnalyser(){return new e(this)}createBiquadFilter(){return new r(this)}createBuffer(y,x,E){return new t({length:x,numberOfChannels:y,sampleRate:E})}createBufferSource(){return new s(this)}createChannelMerger(y=6){return new i(this,{numberOfInputs:y})}createChannelSplitter(y=6){return new o(this,{numberOfOutputs:y})}createConstantSource(){return new a(this)}createConvolver(){return new c(this)}createDelay(y=1){return new u(this,{maxDelayTime:y})}createDynamicsCompressor(){return new h(this)}createGain(){return new d(this)}createIIRFilter(y,x){return new f(this,{feedback:x,feedforward:y})}createOscillator(){return new p(this)}createPanner(){return new g(this)}createPeriodicWave(y,x,E={disableNormalization:!1}){return new _(this,{...E,imag:x,real:y})}createStereoPanner(){return new T(this)}createWaveShaper(){return new w(this)}decodeAudioData(y,x,E){return l(this._nativeContext,y).then(k=>(typeof x=="function"&&x(k),k),k=>{throw typeof E=="function"&&E(k),k})}},RC={Q:1,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:350,gain:0,type:"lowpass"},DC=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...RC,...u},f=r(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._Q=e(this,m,f.Q,xt,St),this._detune=e(this,m,f.detune,1200*Math.log2(xt),-1200*Math.log2(xt)),this._frequency=e(this,m,f.frequency,l.sampleRate/2,0),this._gain=e(this,m,f.gain,40*Math.log10(xt),St),this._nativeBiquadFilterNode=f,a(this,1)}get detune(){return this._detune}get frequency(){return this._frequency}get gain(){return this._gain}get Q(){return this._Q}get type(){return this._nativeBiquadFilterNode.type}set type(l){this._nativeBiquadFilterNode.type=l}getFrequencyResponse(l,u,h){try{this._nativeBiquadFilterNode.getFrequencyResponse(l,u,h)}catch(d){throw d.code===11?s():d}if(l.length!==u.length||u.length!==h.length)throw s()}},PC=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={Q:l.Q.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,detune:l.detune.value,frequency:l.frequency.value,gain:l.gain.value,type:l.type};l=e(c,h)}return i.set(c,l),u?(await n(c,a.Q,l.Q),await n(c,a.detune,l.detune),await n(c,a.frequency,l.frequency),await n(c,a.gain,l.gain)):(await s(c,a.Q,l.Q),await s(c,a.detune,l.detune),await s(c,a.frequency,l.frequency),await s(c,a.gain,l.gain)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},MC=(n,e)=>(t,s)=>{const r=e.get(t);if(r!==void 0)return r;const i=n.get(t);if(i!==void 0)return i;try{const o=s();return o instanceof Promise?(n.set(t,o),o.catch(()=>!1).then(a=>(n.delete(t),e.set(t,a),a))):(e.set(t,o),o)}catch{return e.set(t,!1),!1}},NC={channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6},IC=(n,e,t,s,r)=>class extends n{constructor(o,a){const c=s(o),l={...NC,...a},u=t(c,l),h=r(c)?e():null;super(o,!1,u,h)}},$C=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfInputs:a.numberOfInputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},FC={channelCount:6,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:6},LC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=i({...FC,...c}),h=t(l,u),d=r(l)?e():null;super(a,!1,h,d)}},jC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,numberOfOutputs:a.numberOfOutputs};a=n(o,l)}return s.set(o,a),await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},zC=n=>(e,t,s)=>n(t,e,s),VC=n=>(e,t,s=0,r=0)=>{const i=e[s];if(i===void 0)throw n();return za(t)?i.connect(t,0,r):i.connect(t,0)},UC=n=>(e,t)=>{const s=n(e,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),r=e.createBuffer(1,2,44100);return s.buffer=r,s.loop=!0,s.connect(t),s.start(),()=>{s.stop(),s.disconnect(t)}},BC={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",offset:1},WC=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...BC,...l},d=s(u,h),f=i(u),m=f?t():null;super(c,!1,d,m),this._constantSourceNodeRenderer=m,this._nativeConstantSourceNode=d,this._offset=e(this,f,d.offset,xt,St),this._onended=null}get offset(){return this._offset}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeConstantSourceNode.onended=l;const u=this._nativeConstantSourceNode.onended;this._onended=u!==null&&u===l?c:u}start(c=0){if(this._nativeConstantSourceNode.start(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.start=c),this.context.state!=="closed"){Ur(this);const l=()=>{this._nativeConstantSourceNode.removeEventListener("ended",l),qn(this)&&Ro(this)};this._nativeConstantSourceNode.addEventListener("ended",l)}}stop(c=0){this._nativeConstantSourceNode.stop(c),this._constantSourceNodeRenderer!==null&&(this._constantSourceNodeRenderer.stop=c)}},qC=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null;const c=async(l,u)=>{let h=t(l);const d=vt(h,u);if(!d){const f={channelCount:h.channelCount,channelCountMode:h.channelCountMode,channelInterpretation:h.channelInterpretation,offset:h.offset.value};h=e(u,f),o!==null&&h.start(o),a!==null&&h.stop(a)}return i.set(u,h),d?await n(u,l.offset,h.offset):await s(u,l.offset,h.offset),await r(l,u,h),h};return{set start(l){o=l},set stop(l){a=l},render(l,u){const h=i.get(u);return h!==void 0?Promise.resolve(h):c(l,u)}}},HC=n=>e=>(n[0]=e,n[0]),YC={buffer:null,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",disableNormalization:!1},GC=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u={...YC,...c},h=t(l,u),f=r(l)?e():null;super(a,!1,h,f),this._isBufferNullified=!1,this._nativeConvolverNode=h,u.buffer!==null&&i(this,u.buffer.duration)}get buffer(){return this._isBufferNullified?null:this._nativeConvolverNode.buffer}set buffer(a){if(this._nativeConvolverNode.buffer=a,a===null&&this._nativeConvolverNode.buffer!==null){const c=this._nativeConvolverNode.context;this._nativeConvolverNode.buffer=c.createBuffer(1,1,c.sampleRate),this._isBufferNullified=!0,i(this,0)}else this._isBufferNullified=!1,i(this,this._nativeConvolverNode.buffer===null?0:this._nativeConvolverNode.buffer.duration)}get normalize(){return this._nativeConvolverNode.normalize}set normalize(a){this._nativeConvolverNode.normalize=a}},XC=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={buffer:a.buffer,channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,disableNormalization:!a.normalize};a=n(o,l)}return s.set(o,a),ii(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},ZC=(n,e)=>(t,s,r)=>{if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");try{return new e(t,s,r)}catch(i){throw i.name==="SyntaxError"?n():i}},KC=()=>new DOMException("","DataCloneError"),Nf=n=>{const{port1:e,port2:t}=new MessageChannel;return new Promise(s=>{const r=()=>{t.onmessage=null,e.close(),t.close(),s()};t.onmessage=()=>r();try{e.postMessage(n,[n])}catch{}finally{r()}})},QC=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=o(h)?h:i(h);if(r.has(d)){const m=t();return Promise.reject(m)}try{r.add(d)}catch{}return e(c,()=>c(f))?f.decodeAudioData(d).then(m=>(Nf(d).catch(()=>{}),e(a,()=>a(m))||u(m),n.add(m),m)):new Promise((m,p)=>{const g=async()=>{try{await Nf(d)}catch{}},_=T=>{p(T),g()};try{f.decodeAudioData(d,T=>{typeof T.copyFromChannel!="function"&&(l(T),Gu(T)),n.add(T),g().then(()=>m(T))},T=>{_(T===null?s():T)})}catch(T){_(T)}})},JC=(n,e,t,s,r,i,o,a)=>(c,l)=>{const u=e.get(c);if(u===void 0)throw new Error("Missing the expected cycle count.");const h=i(c.context),d=a(h);if(u===l){if(e.delete(c),!d&&o(c)){const f=s(c),{outputs:m}=t(c);for(const p of m)if(Po(p)){const g=s(p[0]);n(f,g,p[1],p[2])}else{const g=r(p[0]);f.connect(g,p[1])}}}else e.set(c,u-l)},eS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",delayTime:0,maxDelayTime:1},tS=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...eS,...l},d=s(u,h),f=i(u),m=f?t(h.maxDelayTime):null;super(c,!1,d,m),this._delayTime=e(this,f,d.delayTime),o(this,h.maxDelayTime)}get delayTime(){return this._delayTime}},nS=(n,e,t,s,r)=>i=>{const o=new WeakMap,a=async(c,l)=>{let u=t(c);const h=vt(u,l);if(!h){const d={channelCount:u.channelCount,channelCountMode:u.channelCountMode,channelInterpretation:u.channelInterpretation,delayTime:u.delayTime.value,maxDelayTime:i};u=e(l,d)}return o.set(l,u),h?await n(l,c.delayTime,u.delayTime):await s(l,c.delayTime,u.delayTime),await r(c,l,u),u};return{render(c,l){const u=o.get(l);return u!==void 0?Promise.resolve(u):a(c,l)}}},sS=n=>(e,t,s,r)=>n(e[r],i=>i[0]===t&&i[1]===s),rS=n=>(e,t)=>{n(e).delete(t)},iS=n=>"delayTime"in n,oS=(n,e,t)=>function s(r,i){const o=Fa(i)?i:t(n,i);if(iS(o))return[];if(r[0]===o)return[r];if(r.includes(o))return[];const{outputs:a}=e(o);return Array.from(a).map(c=>s([...r,o],c[0])).reduce((c,l)=>c.concat(l),[])},na=(n,e,t)=>{const s=e[t];if(s===void 0)throw n();return s},aS=n=>(e,t=void 0,s=void 0,r=0)=>t===void 0?e.forEach(i=>i.disconnect()):typeof t=="number"?na(n,e,t).disconnect():za(t)?s===void 0?e.forEach(i=>i.disconnect(t)):r===void 0?na(n,e,s).disconnect(t,0):na(n,e,s).disconnect(t,0,r):s===void 0?e.forEach(i=>i.disconnect(t)):na(n,e,s).disconnect(t,0),cS={attack:.003,channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",knee:30,ratio:12,release:.25,threshold:-24},lS=(n,e,t,s,r,i,o,a)=>class extends n{constructor(l,u){const h=i(l),d={...cS,...u},f=s(h,d),m=o(h),p=m?t():null;super(l,!1,f,p),this._attack=e(this,m,f.attack),this._knee=e(this,m,f.knee),this._nativeDynamicsCompressorNode=f,this._ratio=e(this,m,f.ratio),this._release=e(this,m,f.release),this._threshold=e(this,m,f.threshold),a(this,.006)}get attack(){return this._attack}get channelCount(){return this._nativeDynamicsCompressorNode.channelCount}set channelCount(l){const u=this._nativeDynamicsCompressorNode.channelCount;if(this._nativeDynamicsCompressorNode.channelCount=l,l>2)throw this._nativeDynamicsCompressorNode.channelCount=u,r()}get channelCountMode(){return this._nativeDynamicsCompressorNode.channelCountMode}set channelCountMode(l){const u=this._nativeDynamicsCompressorNode.channelCountMode;if(this._nativeDynamicsCompressorNode.channelCountMode=l,l==="max")throw this._nativeDynamicsCompressorNode.channelCountMode=u,r()}get knee(){return this._knee}get ratio(){return this._ratio}get reduction(){return typeof this._nativeDynamicsCompressorNode.reduction.value=="number"?this._nativeDynamicsCompressorNode.reduction.value:this._nativeDynamicsCompressorNode.reduction}get release(){return this._release}get threshold(){return this._threshold}},uS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={attack:l.attack.value,channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,knee:l.knee.value,ratio:l.ratio.value,release:l.release.value,threshold:l.threshold.value};l=e(c,h)}return i.set(c,l),u?(await n(c,a.attack,l.attack),await n(c,a.knee,l.knee),await n(c,a.ratio,l.ratio),await n(c,a.release,l.release),await n(c,a.threshold,l.threshold)):(await s(c,a.attack,l.attack),await s(c,a.knee,l.knee),await s(c,a.ratio,l.ratio),await s(c,a.release,l.release),await s(c,a.threshold,l.threshold)),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},hS=()=>new DOMException("","EncodingError"),dS=n=>e=>new Promise((t,s)=>{if(n===null){s(new SyntaxError);return}const r=n.document.head;if(r===null)s(new SyntaxError);else{const i=n.document.createElement("script"),o=new Blob([e],{type:"application/javascript"}),a=URL.createObjectURL(o),c=n.onerror,l=()=>{n.onerror=c,URL.revokeObjectURL(a)};n.onerror=(u,h,d,f,m)=>{if(h===a||h===n.location.href&&d===1&&f===1)return l(),s(m),!1;if(c!==null)return c(u,h,d,f,m)},i.onerror=()=>{l(),s(new SyntaxError)},i.onload=()=>{l(),t()},i.src=a,i.type="module",r.appendChild(i)}}),fS=n=>class{constructor(t){this._nativeEventTarget=t,this._listeners=new WeakMap}addEventListener(t,s,r){if(s!==null){let i=this._listeners.get(s);i===void 0&&(i=n(this,s),typeof s=="function"&&this._listeners.set(s,i)),this._nativeEventTarget.addEventListener(t,i,r)}}dispatchEvent(t){return this._nativeEventTarget.dispatchEvent(t)}removeEventListener(t,s,r){const i=s===null?void 0:this._listeners.get(s);this._nativeEventTarget.removeEventListener(t,i===void 0?null:i,r)}},pS=n=>(e,t,s)=>{Object.defineProperties(n,{currentFrame:{configurable:!0,get(){return Math.round(e*t)}},currentTime:{configurable:!0,get(){return e}}});try{return s()}finally{n!==null&&(delete n.currentFrame,delete n.currentTime)}},mS=n=>async e=>{try{const t=await fetch(e);if(t.ok)return[await t.text(),t.url]}catch{}throw n()},gS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",gain:1},_S=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...gS,...c},h=s(l,u),d=i(l),f=d?t():null;super(a,!1,h,f),this._gain=e(this,d,h.gain,xt,St)}get gain(){return this._gain}},yS=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,gain:l.gain.value};l=e(c,h)}return i.set(c,l),u?await n(c,a.gain,l.gain):await s(c,a.gain,l.gain),await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},vS=(n,e)=>t=>e(n,t),bS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioNode in the audio graph.");return t.renderer},xS=n=>e=>{var t;return(t=n.get(e))!==null&&t!==void 0?t:0},wS=n=>e=>{const t=n(e);if(t.renderer===null)throw new Error("Missing the renderer of the given AudioParam in the audio graph.");return t.renderer},kS=n=>e=>n.get(e),ht=()=>new DOMException("","InvalidStateError"),TS=n=>e=>{const t=n.get(e);if(t===void 0)throw ht();return t},ES=(n,e)=>t=>{let s=n.get(t);if(s!==void 0)return s;if(e===null)throw new Error("Missing the native OfflineAudioContext constructor.");return s=new e(1,1,44100),n.set(t,s),s},CS=n=>e=>{const t=n.get(e);if(t===void 0)throw new Error("The context has no set of AudioWorkletNodes.");return t},wc=()=>new DOMException("","InvalidAccessError"),SS=n=>{n.getFrequencyResponse=(e=>(t,s,r)=>{if(t.length!==s.length||s.length!==r.length)throw wc();return e.call(n,t,s,r)})(n.getFrequencyResponse)},OS={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers"},AS=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=s(a),u=r(l),h={...OS,...c},d=e(l,u?null:a.baseLatency,h),f=u?t(h.feedback,h.feedforward):null;super(a,!1,d,f),SS(d),this._nativeIIRFilterNode=d,i(this,1)}getFrequencyResponse(a,c,l){return this._nativeIIRFilterNode.getFrequencyResponse(a,c,l)}},Dm=(n,e,t,s,r,i,o,a,c,l,u)=>{const h=l.length;let d=a;for(let f=0;f{const r=t instanceof Float64Array?t:new Float64Array(t),i=s instanceof Float64Array?s:new Float64Array(s),o=r.length,a=i.length,c=Math.min(o,a);if(r[0]!==1){for(let m=0;m(i,o)=>{const a=new WeakMap;let c=null;const l=async(u,h)=>{let d=null,f=e(u);const m=vt(f,h);if(h.createIIRFilter===void 0?d=n(h,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}):m||(f=h.createIIRFilter(o,i)),a.set(h,d===null?f:d),d!==null){if(c===null){if(t===null)throw new Error("Missing the native OfflineAudioContext constructor.");const g=new t(u.context.destination.channelCount,u.context.length,h.sampleRate);c=(async()=>{await s(u,g,g.destination);const _=await r(g);return RS(_,h,i,o)})()}const p=await c;return d.buffer=p,d.start(0),d}return await s(u,h,f),f};return{render(u,h){const d=a.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},PS=(n,e,t,s,r,i)=>o=>(a,c)=>{const l=n.get(a);if(l===void 0){if(!o&&i(a)){const u=s(a),{outputs:h}=t(a);for(const d of h)if(Po(d)){const f=s(d[0]);e(u,f,d[1],d[2])}else{const f=r(d[0]);u.disconnect(f,d[1])}}n.set(a,c)}else n.set(a,l+c)},MS=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},NS=(n,e)=>t=>n.has(t)||e(t),IS=(n,e)=>t=>n.has(t)||e(t),$S=(n,e)=>t=>{const s=n.get(t);return e(s)||e(t)},FS=n=>e=>n!==null&&e instanceof n,LS=n=>e=>n!==null&&typeof n.AudioNode=="function"&&e instanceof n.AudioNode,jS=n=>e=>n!==null&&typeof n.AudioParam=="function"&&e instanceof n.AudioParam,zS=(n,e)=>t=>n(t)||e(t),VS=n=>e=>n!==null&&e instanceof n,US=n=>n!==null&&n.isSecureContext,BS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw TypeError();super(i,!0,c,null),this._nativeMediaElementAudioSourceNode=c}get mediaElement(){return this._nativeMediaElementAudioSourceNode.mediaElement}},WS={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers"},qS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i);if(s(a))throw new TypeError;const c={...WS,...o},l=e(a,c);super(i,!1,l,null),this._nativeMediaStreamAudioDestinationNode=l}get stream(){return this._nativeMediaStreamAudioDestinationNode.stream}},HS=(n,e,t,s)=>class extends n{constructor(i,o){const a=t(i),c=e(a,o);if(s(a))throw new TypeError;super(i,!0,c,null),this._nativeMediaStreamAudioSourceNode=c}get mediaStream(){return this._nativeMediaStreamAudioSourceNode.mediaStream}},YS=(n,e,t)=>class extends n{constructor(r,i){const o=t(r),a=e(o,i);super(r,!0,a,null)}},GS=(n,e,t,s,r,i)=>class extends t{constructor(a,c){super(a),this._nativeContext=a,bc.set(this,a),s(a)&&r.set(a,new Set),this._destination=new n(this,c),this._listener=e(this,a),this._onstatechange=null}get currentTime(){return this._nativeContext.currentTime}get destination(){return this._destination}get listener(){return this._listener}get onstatechange(){return this._onstatechange}set onstatechange(a){const c=typeof a=="function"?i(this,a):null;this._nativeContext.onstatechange=c;const l=this._nativeContext.onstatechange;this._onstatechange=l!==null&&l===c?a:l}get sampleRate(){return this._nativeContext.sampleRate}get state(){return this._nativeContext.state}},Gi=n=>{const e=new Uint32Array([1179011410,40,1163280727,544501094,16,131073,44100,176400,1048580,1635017060,4,0]);try{const t=n.decodeAudioData(e.buffer,()=>{});return t===void 0?!1:(t.catch(()=>{}),!0)}catch{}return!1},XS=(n,e)=>(t,s,r)=>{const i=new Set;return t.connect=(o=>(a,c=0,l=0)=>{const u=i.size===0;if(e(a))return o.call(t,a,c,l),n(i,[a,c,l],h=>h[0]===a&&h[1]===c&&h[2]===l,!0),u&&s(),a;o.call(t,a,c),n(i,[a,c],h=>h[0]===a&&h[1]===c,!0),u&&s()})(t.connect),t.disconnect=(o=>(a,c,l)=>{const u=i.size>0;if(a===void 0)o.apply(t),i.clear();else if(typeof a=="number"){o.call(t,a);for(const d of i)d[1]===a&&i.delete(d)}else{e(a)?o.call(t,a,c,l):o.call(t,a,c);for(const d of i)d[0]===a&&(c===void 0||d[1]===c)&&(l===void 0||d[2]===l)&&i.delete(d)}const h=i.size===0;u&&h&&r()})(t.disconnect),t},We=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t]&&(n[t]=s)},ct=(n,e)=>{We(n,e,"channelCount"),We(n,e,"channelCountMode"),We(n,e,"channelInterpretation")},If=n=>typeof n.getFloatTimeDomainData=="function",ZS=n=>{n.getFloatTimeDomainData=e=>{const t=new Uint8Array(e.length);n.getByteTimeDomainData(t);const s=Math.max(t.length,n.fftSize);for(let r=0;r(t,s)=>{const r=t.createAnalyser();if(ct(r,s),!(s.maxDecibels>s.minDecibels))throw e();return We(r,s,"fftSize"),We(r,s,"maxDecibels"),We(r,s,"minDecibels"),We(r,s,"smoothingTimeConstant"),n(If,()=>If(r))||ZS(r),r},QS=n=>n===null?null:n.hasOwnProperty("AudioBuffer")?n.AudioBuffer:null,Ze=(n,e,t)=>{const s=e[t];s!==void 0&&s!==n[t].value&&(n[t].value=s)},JS=n=>{n.start=(e=>{let t=!1;return(s=0,r=0,i)=>{if(t)throw ht();e.call(n,s,r,i),t=!0}})(n.start)},Ku=n=>{n.start=(e=>(t=0,s=0,r)=>{if(typeof r=="number"&&r<0||s<0||t<0)throw new RangeError("The parameters can't be negative.");e.call(n,t,s,r)})(n.start)},Qu=n=>{n.stop=(e=>(t=0)=>{if(t<0)throw new RangeError("The parameter can't be negative.");e.call(n,t)})(n.stop)},eO=(n,e,t,s,r,i,o,a,c,l,u)=>(h,d)=>{const f=h.createBufferSource();return ct(f,d),Ze(f,d,"playbackRate"),We(f,d,"buffer"),We(f,d,"loop"),We(f,d,"loopEnd"),We(f,d,"loopStart"),e(t,()=>t(h))||JS(f),e(s,()=>s(h))||c(f),e(r,()=>r(h))||l(f,h),e(i,()=>i(h))||Ku(f),e(o,()=>o(h))||u(f,h),e(a,()=>a(h))||Qu(f),n(h,f),f},tO=n=>n===null?null:n.hasOwnProperty("AudioContext")?n.AudioContext:n.hasOwnProperty("webkitAudioContext")?n.webkitAudioContext:null,nO=(n,e)=>(t,s,r)=>{const i=t.destination;if(i.channelCount!==s)try{i.channelCount=s}catch{}r&&i.channelCountMode!=="explicit"&&(i.channelCountMode="explicit"),i.maxChannelCount===0&&Object.defineProperty(i,"maxChannelCount",{value:s});const o=n(t,{channelCount:s,channelCountMode:i.channelCountMode,channelInterpretation:i.channelInterpretation,gain:1});return e(o,"channelCount",a=>()=>a.call(o),a=>c=>{a.call(o,c);try{i.channelCount=c}catch(l){if(c>i.maxChannelCount)throw l}}),e(o,"channelCountMode",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelCountMode=c}),e(o,"channelInterpretation",a=>()=>a.call(o),a=>c=>{a.call(o,c),i.channelInterpretation=c}),Object.defineProperty(o,"maxChannelCount",{get:()=>i.maxChannelCount}),o.connect(i),o},sO=n=>n===null?null:n.hasOwnProperty("AudioWorkletNode")?n.AudioWorkletNode:null,rO=n=>{const{port1:e}=new MessageChannel;try{e.postMessage(n)}finally{e.close()}},iO=(n,e,t,s,r)=>(i,o,a,c,l,u)=>{if(a!==null)try{const h=new a(i,c,u),d=new Map;let f=null;if(Object.defineProperties(h,{channelCount:{get:()=>u.channelCount,set:()=>{throw n()}},channelCountMode:{get:()=>"explicit",set:()=>{throw n()}},onprocessorerror:{get:()=>f,set:m=>{typeof f=="function"&&h.removeEventListener("processorerror",f),f=typeof m=="function"?m:null,typeof f=="function"&&h.addEventListener("processorerror",f)}}}),h.addEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=typeof p[1]=="function"?p[1]:typeof p[1]=="object"&&p[1]!==null&&typeof p[1].handleEvent=="function"?p[1].handleEvent:null;if(g!==null){const _=d.get(p[1]);_!==void 0?p[1]=_:(p[1]=T=>{T.type==="error"?(Object.defineProperties(T,{type:{value:"processorerror"}}),g(T)):g(new ErrorEvent(p[0],{...T}))},d.set(g,p[1]))}}return m.call(h,"error",p[1],p[2]),m.call(h,...p)})(h.addEventListener),h.removeEventListener=(m=>(...p)=>{if(p[0]==="processorerror"){const g=d.get(p[1]);g!==void 0&&(d.delete(p[1]),p[1]=g)}return m.call(h,"error",p[1],p[2]),m.call(h,p[0],p[1],p[2])})(h.removeEventListener),u.numberOfOutputs!==0){const m=t(i,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return h.connect(m).connect(i.destination),r(h,()=>m.disconnect(),()=>m.connect(i.destination))}return h}catch(h){throw h.code===11?s():h}if(l===void 0)throw s();return rO(u),e(i,o,l,u)},Pm=(n,e)=>n===null?512:Math.max(512,Math.min(16384,Math.pow(2,Math.round(Math.log2(n*e))))),oO=n=>new Promise((e,t)=>{const{port1:s,port2:r}=new MessageChannel;s.onmessage=({data:i})=>{s.close(),r.close(),e(i)},s.onmessageerror=({data:i})=>{s.close(),r.close(),t(i)},r.postMessage(n)}),aO=async(n,e)=>{const t=await oO(e);return new n(t)},cO=(n,e,t,s)=>{let r=Xl.get(n);r===void 0&&(r=new WeakMap,Xl.set(n,r));const i=aO(t,s);return r.set(e,i),i},lO=(n,e,t,s,r,i,o,a,c,l,u,h,d)=>(f,m,p,g)=>{if(g.numberOfInputs===0&&g.numberOfOutputs===0)throw c();const _=Array.isArray(g.outputChannelCount)?g.outputChannelCount:Array.from(g.outputChannelCount);if(_.some(H=>H<1))throw c();if(_.length!==g.numberOfOutputs)throw e();if(g.channelCountMode!=="explicit")throw c();const T=g.channelCount*g.numberOfInputs,w=_.reduce((H,M)=>H+M,0),b=p.parameterDescriptors===void 0?0:p.parameterDescriptors.length;if(T+b>6||w>6)throw c();const y=new MessageChannel,x=[],E=[];for(let H=0;HH===void 0?0:H},maxValue:{get:()=>M===void 0?xt:M},minValue:{get:()=>D===void 0?St:D}}),k.push(se)}const C=s(f,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:Math.max(1,T+b)}),S=Pm(m,f.sampleRate),R=a(f,S,T+b,Math.max(1,w)),O=r(f,{channelCount:Math.max(1,w),channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:Math.max(1,w)}),L=[];for(let H=0;H{const D=k[M];return D.connect(C,0,T+M),D.start(0),[H,D.offset]}));C.connect(R);let W=g.channelInterpretation,B=null;const V=g.numberOfOutputs===0?[R]:L,U={get bufferSize(){return S},get channelCount(){return g.channelCount},set channelCount(H){throw t()},get channelCountMode(){return g.channelCountMode},set channelCountMode(H){throw t()},get channelInterpretation(){return W},set channelInterpretation(H){for(const M of x)M.channelInterpretation=H;W=H},get context(){return R.context},get inputs(){return x},get numberOfInputs(){return g.numberOfInputs},get numberOfOutputs(){return g.numberOfOutputs},get onprocessorerror(){return B},set onprocessorerror(H){typeof B=="function"&&U.removeEventListener("processorerror",B),B=typeof H=="function"?H:null,typeof B=="function"&&U.addEventListener("processorerror",B)},get parameters(){return z},get port(){return y.port2},addEventListener(...H){return R.addEventListener(H[0],H[1],H[2])},connect:n.bind(null,V),disconnect:l.bind(null,V),dispatchEvent(...H){return R.dispatchEvent(H[0])},removeEventListener(...H){return R.removeEventListener(H[0],H[1],H[2])}},X=new Map;y.port1.addEventListener=(H=>(...M)=>{if(M[0]==="message"){const D=typeof M[1]=="function"?M[1]:typeof M[1]=="object"&&M[1]!==null&&typeof M[1].handleEvent=="function"?M[1].handleEvent:null;if(D!==null){const Q=X.get(M[1]);Q!==void 0?M[1]=Q:(M[1]=se=>{u(f.currentTime,f.sampleRate,()=>D(se))},X.set(D,M[1]))}}return H.call(y.port1,M[0],M[1],M[2])})(y.port1.addEventListener),y.port1.removeEventListener=(H=>(...M)=>{if(M[0]==="message"){const D=X.get(M[1]);D!==void 0&&(X.delete(M[1]),M[1]=D)}return H.call(y.port1,M[0],M[1],M[2])})(y.port1.removeEventListener);let K=null;Object.defineProperty(y.port1,"onmessage",{get:()=>K,set:H=>{typeof K=="function"&&y.port1.removeEventListener("message",K),K=typeof H=="function"?H:null,typeof K=="function"&&(y.port1.addEventListener("message",K),y.port1.start())}}),p.prototype.port=y.port1;let J=null;cO(f,U,p,g).then(H=>J=H);const j=Ua(g.numberOfInputs,g.channelCount),A=Ua(g.numberOfOutputs,_),I=p.parameterDescriptors===void 0?[]:p.parameterDescriptors.reduce((H,{name:M})=>({...H,[M]:new Float32Array(128)}),{});let Y=!0;const $=()=>{g.numberOfOutputs>0&&R.disconnect(O);for(let H=0,M=0;H{if(J!==null){const D=h(U);for(let Q=0;Q{Va(H,I,se,T+le,Q)});for(let se=0;se{if(D[et].size>0)return q.set(et,S/128),be;const fe=q.get(et);return fe===void 0?[]:(be.every(tt=>tt.every(at=>at===0))&&(fe===1?q.delete(et):q.set(et,fe-1)),be)});Y=u(f.currentTime+Q/f.sampleRate,f.sampleRate,()=>J.process(se,A,I));for(let be=0,et=0;beR.connect(re).connect(f.destination),ne=()=>{R.disconnect(re),re.disconnect()},ge=()=>{if(Y){ne(),g.numberOfOutputs>0&&R.connect(O);for(let H=0,M=0;H{Y&&(ie(),$()),ae=!1};return ie(),d(U,ge,te)},Mm=(n,e)=>{const t=n.createBiquadFilter();return ct(t,e),Ze(t,e,"Q"),Ze(t,e,"detune"),Ze(t,e,"frequency"),Ze(t,e,"gain"),We(t,e,"type"),t},uO=(n,e)=>(t,s)=>{const r=t.createChannelMerger(s.numberOfInputs);return n!==null&&n.name==="webkitAudioContext"&&e(t,r),ct(r,s),r},hO=n=>{const e=n.numberOfOutputs;Object.defineProperty(n,"channelCount",{get:()=>e,set:t=>{if(t!==e)throw ht()}}),Object.defineProperty(n,"channelCountMode",{get:()=>"explicit",set:t=>{if(t!=="explicit")throw ht()}}),Object.defineProperty(n,"channelInterpretation",{get:()=>"discrete",set:t=>{if(t!=="discrete")throw ht()}})},Mo=(n,e)=>{const t=n.createChannelSplitter(e.numberOfOutputs);return ct(t,e),hO(t),t},dO=(n,e,t,s,r)=>(i,o)=>{if(i.createConstantSource===void 0)return t(i,o);const a=i.createConstantSource();return ct(a,o),Ze(a,o,"offset"),e(s,()=>s(i))||Ku(a),e(r,()=>r(i))||Qu(a),n(i,a),a},oi=(n,e)=>(n.connect=e.connect.bind(e),n.disconnect=e.disconnect.bind(e),n),fO=(n,e,t,s)=>(r,{offset:i,...o})=>{const a=r.createBuffer(1,2,44100),c=e(r,{buffer:null,channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",loop:!1,loopEnd:0,loopStart:0,playbackRate:1}),l=t(r,{...o,gain:i}),u=a.getChannelData(0);u[0]=1,u[1]=1,c.buffer=a,c.loop=!0;const h={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(m){l.channelCount=m},get channelCountMode(){return l.channelCountMode},set channelCountMode(m){l.channelCountMode=m},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(m){l.channelInterpretation=m},get context(){return l.context},get inputs(){return[]},get numberOfInputs(){return c.numberOfInputs},get numberOfOutputs(){return l.numberOfOutputs},get offset(){return l.gain},get onended(){return c.onended},set onended(m){c.onended=m},addEventListener(...m){return c.addEventListener(m[0],m[1],m[2])},dispatchEvent(...m){return c.dispatchEvent(m[0])},removeEventListener(...m){return c.removeEventListener(m[0],m[1],m[2])},start(m=0){c.start.call(c,m)},stop(m=0){c.stop.call(c,m)}},d=()=>c.connect(l),f=()=>c.disconnect(l);return n(r,c),s(oi(h,l),d,f)},pO=(n,e)=>(t,s)=>{const r=t.createConvolver();if(ct(r,s),s.disableNormalization===r.normalize&&(r.normalize=!s.disableNormalization),We(r,s,"buffer"),s.channelCount>2||(e(r,"channelCount",i=>()=>i.call(r),i=>o=>{if(o>2)throw n();return i.call(r,o)}),s.channelCountMode==="max"))throw n();return e(r,"channelCountMode",i=>()=>i.call(r),i=>o=>{if(o==="max")throw n();return i.call(r,o)}),r},Nm=(n,e)=>{const t=n.createDelay(e.maxDelayTime);return ct(t,e),Ze(t,e,"delayTime"),t},mO=n=>(e,t)=>{const s=e.createDynamicsCompressor();if(ct(s,t),t.channelCount>2||t.channelCountMode==="max")throw n();return Ze(s,t,"attack"),Ze(s,t,"knee"),Ze(s,t,"ratio"),Ze(s,t,"release"),Ze(s,t,"threshold"),s},It=(n,e)=>{const t=n.createGain();return ct(t,e),Ze(t,e,"gain"),t},gO=n=>(e,t,s)=>{if(e.createIIRFilter===void 0)return n(e,t,s);const r=e.createIIRFilter(s.feedforward,s.feedback);return ct(r,s),r};function _O(n,e){const t=e[0]*e[0]+e[1]*e[1];return[(n[0]*e[0]+n[1]*e[1])/t,(n[1]*e[0]-n[0]*e[1])/t]}function yO(n,e){return[n[0]*e[0]-n[1]*e[1],n[0]*e[1]+n[1]*e[0]]}function $f(n,e){let t=[0,0];for(let s=n.length-1;s>=0;s-=1)t=yO(t,e),t[0]+=n[s];return t}const vO=(n,e,t,s)=>(r,i,{channelCount:o,channelCountMode:a,channelInterpretation:c,feedback:l,feedforward:u})=>{const h=Pm(i,r.sampleRate),d=l instanceof Float64Array?l:new Float64Array(l),f=u instanceof Float64Array?u:new Float64Array(u),m=d.length,p=f.length,g=Math.min(m,p);if(m===0||m>20)throw s();if(d[0]===0)throw e();if(p===0||p>20)throw s();if(f[0]===0)throw e();if(d[0]!==1){for(let k=0;k{const C=k.inputBuffer,S=k.outputBuffer,R=C.numberOfChannels;for(let O=0;On.createMediaElementSource(e.mediaElement),xO=(n,e)=>{const t=n.createMediaStreamDestination();return ct(t,e),t.numberOfOutputs===1&&Object.defineProperty(t,"numberOfOutputs",{get:()=>0}),t},wO=(n,{mediaStream:e})=>{const t=e.getAudioTracks();t.sort((i,o)=>i.ido.id?1:0);const s=t.slice(0,1),r=n.createMediaStreamSource(new MediaStream(s));return Object.defineProperty(r,"mediaStream",{value:e}),r},kO=(n,e)=>(t,{mediaStreamTrack:s})=>{if(typeof t.createMediaStreamTrackSource=="function")return t.createMediaStreamTrackSource(s);const r=new MediaStream([s]),i=t.createMediaStreamSource(r);if(s.kind!=="audio")throw n();if(e(t))throw new TypeError;return i},TO=n=>n===null?null:n.hasOwnProperty("OfflineAudioContext")?n.OfflineAudioContext:n.hasOwnProperty("webkitOfflineAudioContext")?n.webkitOfflineAudioContext:null,EO=(n,e,t,s,r,i)=>(o,a)=>{const c=o.createOscillator();return ct(c,a),Ze(c,a,"detune"),Ze(c,a,"frequency"),a.periodicWave!==void 0?c.setPeriodicWave(a.periodicWave):We(c,a,"type"),e(t,()=>t(o))||Ku(c),e(s,()=>s(o))||i(c,o),e(r,()=>r(o))||Qu(c),n(o,c),c},CO=n=>(e,t)=>{const s=e.createPanner();return s.orientationX===void 0?n(e,t):(ct(s,t),Ze(s,t,"orientationX"),Ze(s,t,"orientationY"),Ze(s,t,"orientationZ"),Ze(s,t,"positionX"),Ze(s,t,"positionY"),Ze(s,t,"positionZ"),We(s,t,"coneInnerAngle"),We(s,t,"coneOuterAngle"),We(s,t,"coneOuterGain"),We(s,t,"distanceModel"),We(s,t,"maxDistance"),We(s,t,"panningModel"),We(s,t,"refDistance"),We(s,t,"rolloffFactor"),s)},SO=(n,e,t,s,r,i,o,a,c,l)=>(u,{coneInnerAngle:h,coneOuterAngle:d,coneOuterGain:f,distanceModel:m,maxDistance:p,orientationX:g,orientationY:_,orientationZ:T,panningModel:w,positionX:b,positionY:y,positionZ:x,refDistance:E,rolloffFactor:k,...C})=>{const S=u.createPanner();if(C.channelCount>2||C.channelCountMode==="max")throw o();ct(S,C);const R={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},O=t(u,{...R,channelInterpretation:"speakers",numberOfInputs:6}),L=s(u,{...C,gain:1}),z=s(u,{...R,gain:1}),W=s(u,{...R,gain:0}),B=s(u,{...R,gain:0}),V=s(u,{...R,gain:0}),U=s(u,{...R,gain:0}),X=s(u,{...R,gain:0}),K=r(u,256,6,1),J=i(u,{...R,curve:new Float32Array([1,1]),oversample:"none"});let F=[g,_,T],j=[b,y,x];const A=new Float32Array(1);K.onaudioprocess=({inputBuffer:q})=>{const ae=[c(q,A,0),c(q,A,1),c(q,A,2)];ae.some((ie,ne)=>ie!==F[ne])&&(S.setOrientation(...ae),F=ae);const re=[c(q,A,3),c(q,A,4),c(q,A,5)];re.some((ie,ne)=>ie!==j[ne])&&(S.setPosition(...re),j=re)},Object.defineProperty(W.gain,"defaultValue",{get:()=>0}),Object.defineProperty(B.gain,"defaultValue",{get:()=>0}),Object.defineProperty(V.gain,"defaultValue",{get:()=>0}),Object.defineProperty(U.gain,"defaultValue",{get:()=>0}),Object.defineProperty(X.gain,"defaultValue",{get:()=>0});const I={get bufferSize(){},get channelCount(){return S.channelCount},set channelCount(q){if(q>2)throw o();L.channelCount=q,S.channelCount=q},get channelCountMode(){return S.channelCountMode},set channelCountMode(q){if(q==="max")throw o();L.channelCountMode=q,S.channelCountMode=q},get channelInterpretation(){return S.channelInterpretation},set channelInterpretation(q){L.channelInterpretation=q,S.channelInterpretation=q},get coneInnerAngle(){return S.coneInnerAngle},set coneInnerAngle(q){S.coneInnerAngle=q},get coneOuterAngle(){return S.coneOuterAngle},set coneOuterAngle(q){S.coneOuterAngle=q},get coneOuterGain(){return S.coneOuterGain},set coneOuterGain(q){if(q<0||q>1)throw e();S.coneOuterGain=q},get context(){return S.context},get distanceModel(){return S.distanceModel},set distanceModel(q){S.distanceModel=q},get inputs(){return[L]},get maxDistance(){return S.maxDistance},set maxDistance(q){if(q<0)throw new RangeError;S.maxDistance=q},get numberOfInputs(){return S.numberOfInputs},get numberOfOutputs(){return S.numberOfOutputs},get orientationX(){return z.gain},get orientationY(){return W.gain},get orientationZ(){return B.gain},get panningModel(){return S.panningModel},set panningModel(q){S.panningModel=q},get positionX(){return V.gain},get positionY(){return U.gain},get positionZ(){return X.gain},get refDistance(){return S.refDistance},set refDistance(q){if(q<0)throw new RangeError;S.refDistance=q},get rolloffFactor(){return S.rolloffFactor},set rolloffFactor(q){if(q<0)throw new RangeError;S.rolloffFactor=q},addEventListener(...q){return L.addEventListener(q[0],q[1],q[2])},dispatchEvent(...q){return L.dispatchEvent(q[0])},removeEventListener(...q){return L.removeEventListener(q[0],q[1],q[2])}};h!==I.coneInnerAngle&&(I.coneInnerAngle=h),d!==I.coneOuterAngle&&(I.coneOuterAngle=d),f!==I.coneOuterGain&&(I.coneOuterGain=f),m!==I.distanceModel&&(I.distanceModel=m),p!==I.maxDistance&&(I.maxDistance=p),g!==I.orientationX.value&&(I.orientationX.value=g),_!==I.orientationY.value&&(I.orientationY.value=_),T!==I.orientationZ.value&&(I.orientationZ.value=T),w!==I.panningModel&&(I.panningModel=w),b!==I.positionX.value&&(I.positionX.value=b),y!==I.positionY.value&&(I.positionY.value=y),x!==I.positionZ.value&&(I.positionZ.value=x),E!==I.refDistance&&(I.refDistance=E),k!==I.rolloffFactor&&(I.rolloffFactor=k),(F[0]!==1||F[1]!==0||F[2]!==0)&&S.setOrientation(...F),(j[0]!==0||j[1]!==0||j[2]!==0)&&S.setPosition(...j);const Y=()=>{L.connect(S),n(L,J,0,0),J.connect(z).connect(O,0,0),J.connect(W).connect(O,0,1),J.connect(B).connect(O,0,2),J.connect(V).connect(O,0,3),J.connect(U).connect(O,0,4),J.connect(X).connect(O,0,5),O.connect(K).connect(u.destination)},$=()=>{L.disconnect(S),a(L,J,0,0),J.disconnect(z),z.disconnect(O),J.disconnect(W),W.disconnect(O),J.disconnect(B),B.disconnect(O),J.disconnect(V),V.disconnect(O),J.disconnect(U),U.disconnect(O),J.disconnect(X),X.disconnect(O),O.disconnect(K),K.disconnect(u.destination)};return l(oi(I,S),Y,$)},OO=n=>(e,{disableNormalization:t,imag:s,real:r})=>{const i=s instanceof Float32Array?s:new Float32Array(s),o=r instanceof Float32Array?r:new Float32Array(r),a=e.createPeriodicWave(o,i,{disableNormalization:t});if(Array.from(s).length<2)throw n();return a},No=(n,e,t,s)=>n.createScriptProcessor(e,t,s),AO=(n,e)=>(t,s)=>{const r=s.channelCountMode;if(r==="clamped-max")throw e();if(t.createStereoPanner===void 0)return n(t,s);const i=t.createStereoPanner();return ct(i,s),Ze(i,s,"pan"),Object.defineProperty(i,"channelCountMode",{get:()=>r,set:o=>{if(o!==r)throw e()}}),i},RO=(n,e,t,s,r,i)=>{const a=new Float32Array([1,1]),c=Math.PI/2,l={channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete"},u={...l,oversample:"none"},h=(m,p,g,_)=>{const T=new Float32Array(16385),w=new Float32Array(16385);for(let C=0;C<16385;C+=1){const S=C/16384*c;T[C]=Math.cos(S),w[C]=Math.sin(S)}const b=t(m,{...l,gain:0}),y=s(m,{...u,curve:T}),x=s(m,{...u,curve:a}),E=t(m,{...l,gain:0}),k=s(m,{...u,curve:w});return{connectGraph(){p.connect(b),p.connect(x.inputs===void 0?x:x.inputs[0]),p.connect(E),x.connect(g),g.connect(y.inputs===void 0?y:y.inputs[0]),g.connect(k.inputs===void 0?k:k.inputs[0]),y.connect(b.gain),k.connect(E.gain),b.connect(_,0,0),E.connect(_,0,1)},disconnectGraph(){p.disconnect(b),p.disconnect(x.inputs===void 0?x:x.inputs[0]),p.disconnect(E),x.disconnect(g),g.disconnect(y.inputs===void 0?y:y.inputs[0]),g.disconnect(k.inputs===void 0?k:k.inputs[0]),y.disconnect(b.gain),k.disconnect(E.gain),b.disconnect(_,0,0),E.disconnect(_,0,1)}}},d=(m,p,g,_)=>{const T=new Float32Array(16385),w=new Float32Array(16385),b=new Float32Array(16385),y=new Float32Array(16385),x=Math.floor(16385/2);for(let V=0;V<16385;V+=1)if(V>x){const U=(V-x)/(16384-x)*c;T[V]=Math.cos(U),w[V]=Math.sin(U),b[V]=0,y[V]=1}else{const U=V/(16384-x)*c;T[V]=1,w[V]=0,b[V]=Math.cos(U),y[V]=Math.sin(U)}const E=e(m,{channelCount:2,channelCountMode:"explicit",channelInterpretation:"discrete",numberOfOutputs:2}),k=t(m,{...l,gain:0}),C=s(m,{...u,curve:T}),S=t(m,{...l,gain:0}),R=s(m,{...u,curve:w}),O=s(m,{...u,curve:a}),L=t(m,{...l,gain:0}),z=s(m,{...u,curve:b}),W=t(m,{...l,gain:0}),B=s(m,{...u,curve:y});return{connectGraph(){p.connect(E),p.connect(O.inputs===void 0?O:O.inputs[0]),E.connect(k,0),E.connect(S,0),E.connect(L,1),E.connect(W,1),O.connect(g),g.connect(C.inputs===void 0?C:C.inputs[0]),g.connect(R.inputs===void 0?R:R.inputs[0]),g.connect(z.inputs===void 0?z:z.inputs[0]),g.connect(B.inputs===void 0?B:B.inputs[0]),C.connect(k.gain),R.connect(S.gain),z.connect(L.gain),B.connect(W.gain),k.connect(_,0,0),L.connect(_,0,0),S.connect(_,0,1),W.connect(_,0,1)},disconnectGraph(){p.disconnect(E),p.disconnect(O.inputs===void 0?O:O.inputs[0]),E.disconnect(k,0),E.disconnect(S,0),E.disconnect(L,1),E.disconnect(W,1),O.disconnect(g),g.disconnect(C.inputs===void 0?C:C.inputs[0]),g.disconnect(R.inputs===void 0?R:R.inputs[0]),g.disconnect(z.inputs===void 0?z:z.inputs[0]),g.disconnect(B.inputs===void 0?B:B.inputs[0]),C.disconnect(k.gain),R.disconnect(S.gain),z.disconnect(L.gain),B.disconnect(W.gain),k.disconnect(_,0,0),L.disconnect(_,0,0),S.disconnect(_,0,1),W.disconnect(_,0,1)}}},f=(m,p,g,_,T)=>{if(p===1)return h(m,g,_,T);if(p===2)return d(m,g,_,T);throw r()};return(m,{channelCount:p,channelCountMode:g,pan:_,...T})=>{if(g==="max")throw r();const w=n(m,{...T,channelCount:1,channelCountMode:g,numberOfInputs:2}),b=t(m,{...T,channelCount:p,channelCountMode:g,gain:1}),y=t(m,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:_});let{connectGraph:x,disconnectGraph:E}=f(m,p,b,y,w);Object.defineProperty(y.gain,"defaultValue",{get:()=>0}),Object.defineProperty(y.gain,"maxValue",{get:()=>1}),Object.defineProperty(y.gain,"minValue",{get:()=>-1});const k={get bufferSize(){},get channelCount(){return b.channelCount},set channelCount(O){b.channelCount!==O&&(C&&E(),{connectGraph:x,disconnectGraph:E}=f(m,O,b,y,w),C&&x()),b.channelCount=O},get channelCountMode(){return b.channelCountMode},set channelCountMode(O){if(O==="clamped-max"||O==="max")throw r();b.channelCountMode=O},get channelInterpretation(){return b.channelInterpretation},set channelInterpretation(O){b.channelInterpretation=O},get context(){return b.context},get inputs(){return[b]},get numberOfInputs(){return b.numberOfInputs},get numberOfOutputs(){return b.numberOfOutputs},get pan(){return y.gain},addEventListener(...O){return b.addEventListener(O[0],O[1],O[2])},dispatchEvent(...O){return b.dispatchEvent(O[0])},removeEventListener(...O){return b.removeEventListener(O[0],O[1],O[2])}};let C=!1;const S=()=>{x(),C=!0},R=()=>{E(),C=!1};return i(oi(k,w),S,R)}},DO=(n,e,t,s,r,i,o)=>(a,c)=>{const l=a.createWaveShaper();if(i!==null&&i.name==="webkitAudioContext"&&a.createGain().gain.automationRate===void 0)return t(a,c);ct(l,c);const u=c.curve===null||c.curve instanceof Float32Array?c.curve:new Float32Array(c.curve);if(u!==null&&u.length<2)throw e();We(l,{curve:u},"curve"),We(l,c,"oversample");let h=null,d=!1;return o(l,"curve",p=>()=>p.call(l),p=>g=>(p.call(l,g),d&&(s(g)&&h===null?h=n(a,l):!s(g)&&h!==null&&(h(),h=null)),g)),r(l,()=>{d=!0,s(l.curve)&&(h=n(a,l))},()=>{d=!1,h!==null&&(h(),h=null)})},PO=(n,e,t,s,r)=>(i,{curve:o,oversample:a,...c})=>{const l=i.createWaveShaper(),u=i.createWaveShaper();ct(l,c),ct(u,c);const h=t(i,{...c,gain:1}),d=t(i,{...c,gain:-1}),f=t(i,{...c,gain:1}),m=t(i,{...c,gain:-1});let p=null,g=!1,_=null;const T={get bufferSize(){},get channelCount(){return l.channelCount},set channelCount(y){h.channelCount=y,d.channelCount=y,l.channelCount=y,f.channelCount=y,u.channelCount=y,m.channelCount=y},get channelCountMode(){return l.channelCountMode},set channelCountMode(y){h.channelCountMode=y,d.channelCountMode=y,l.channelCountMode=y,f.channelCountMode=y,u.channelCountMode=y,m.channelCountMode=y},get channelInterpretation(){return l.channelInterpretation},set channelInterpretation(y){h.channelInterpretation=y,d.channelInterpretation=y,l.channelInterpretation=y,f.channelInterpretation=y,u.channelInterpretation=y,m.channelInterpretation=y},get context(){return l.context},get curve(){return _},set curve(y){if(y!==null&&y.length<2)throw e();if(y===null)l.curve=y,u.curve=y;else{const x=y.length,E=new Float32Array(x+2-x%2),k=new Float32Array(x+2-x%2);E[0]=y[0],k[0]=-y[x-1];const C=Math.ceil((x+1)/2),S=(x+1)/2-1;for(let R=1;R{h.connect(l).connect(f),h.connect(d).connect(u).connect(m).connect(f),g=!0,s(_)&&(p=n(i,h))},b=()=>{h.disconnect(l),l.disconnect(f),h.disconnect(d),d.disconnect(u),u.disconnect(m),m.disconnect(f),g=!1,p!==null&&(p(),p=null)};return r(oi(T,f),w,b)},Et=()=>new DOMException("","NotSupportedError"),MO={numberOfChannels:1},NO=(n,e,t,s,r)=>class extends n{constructor(o,a,c){let l;if(typeof o=="number"&&a!==void 0&&c!==void 0)l={length:a,numberOfChannels:o,sampleRate:c};else if(typeof o=="object")l=o;else throw new Error("The given parameters are not valid.");const{length:u,numberOfChannels:h,sampleRate:d}={...MO,...l},f=s(h,u,d);e(Gi,()=>Gi(f))||f.addEventListener("statechange",(()=>{let m=0;const p=g=>{this._state==="running"&&(m>0?(f.removeEventListener("statechange",p),g.stopImmediatePropagation(),this._waitForThePromiseToSettle(g)):m+=1)};return p})()),super(f,h),this._length=u,this._nativeOfflineAudioContext=f,this._state=null}get length(){return this._nativeOfflineAudioContext.length===void 0?this._length:this._nativeOfflineAudioContext.length}get state(){return this._state===null?this._nativeOfflineAudioContext.state:this._state}startRendering(){return this._state==="running"?Promise.reject(t()):(this._state="running",r(this.destination,this._nativeOfflineAudioContext).finally(()=>{this._state=null,Em(this)}))}_waitForThePromiseToSettle(o){this._state===null?this._nativeOfflineAudioContext.dispatchEvent(o):setTimeout(()=>this._waitForThePromiseToSettle(o))}},IO={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",detune:0,frequency:440,periodicWave:void 0,type:"sine"},$O=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...IO,...l},d=t(u,h),f=i(u),m=f?s():null,p=c.sampleRate/2;super(c,!1,d,m),this._detune=e(this,f,d.detune,153600,-153600),this._frequency=e(this,f,d.frequency,p,-p),this._nativeOscillatorNode=d,this._onended=null,this._oscillatorNodeRenderer=m,this._oscillatorNodeRenderer!==null&&h.periodicWave!==void 0&&(this._oscillatorNodeRenderer.periodicWave=h.periodicWave)}get detune(){return this._detune}get frequency(){return this._frequency}get onended(){return this._onended}set onended(c){const l=typeof c=="function"?o(this,c):null;this._nativeOscillatorNode.onended=l;const u=this._nativeOscillatorNode.onended;this._onended=u!==null&&u===l?c:u}get type(){return this._nativeOscillatorNode.type}set type(c){this._nativeOscillatorNode.type=c,this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=null)}setPeriodicWave(c){this._nativeOscillatorNode.setPeriodicWave(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.periodicWave=c)}start(c=0){if(this._nativeOscillatorNode.start(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.start=c),this.context.state!=="closed"){Ur(this);const l=()=>{this._nativeOscillatorNode.removeEventListener("ended",l),qn(this)&&Ro(this)};this._nativeOscillatorNode.addEventListener("ended",l)}}stop(c=0){this._nativeOscillatorNode.stop(c),this._oscillatorNodeRenderer!==null&&(this._oscillatorNodeRenderer.stop=c)}},FO=(n,e,t,s,r)=>()=>{const i=new WeakMap;let o=null,a=null,c=null;const l=async(u,h)=>{let d=t(u);const f=vt(d,h);if(!f){const m={channelCount:d.channelCount,channelCountMode:d.channelCountMode,channelInterpretation:d.channelInterpretation,detune:d.detune.value,frequency:d.frequency.value,periodicWave:o===null?void 0:o,type:d.type};d=e(h,m),a!==null&&d.start(a),c!==null&&d.stop(c)}return i.set(h,d),f?(await n(h,u.detune,d.detune),await n(h,u.frequency,d.frequency)):(await s(h,u.detune,d.detune),await s(h,u.frequency,d.frequency)),await r(u,h,d),d};return{set periodicWave(u){o=u},set start(u){a=u},set stop(u){c=u},render(u,h){const d=i.get(h);return d!==void 0?Promise.resolve(d):l(u,h)}}},LO={channelCount:2,channelCountMode:"clamped-max",channelInterpretation:"speakers",coneInnerAngle:360,coneOuterAngle:360,coneOuterGain:0,distanceModel:"inverse",maxDistance:1e4,orientationX:1,orientationY:0,orientationZ:0,panningModel:"equalpower",positionX:0,positionY:0,positionZ:0,refDistance:1,rolloffFactor:1},jO=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...LO,...l},d=t(u,h),f=i(u),m=f?s():null;super(c,!1,d,m),this._nativePannerNode=d,this._orientationX=e(this,f,d.orientationX,xt,St),this._orientationY=e(this,f,d.orientationY,xt,St),this._orientationZ=e(this,f,d.orientationZ,xt,St),this._positionX=e(this,f,d.positionX,xt,St),this._positionY=e(this,f,d.positionY,xt,St),this._positionZ=e(this,f,d.positionZ,xt,St),o(this,1)}get coneInnerAngle(){return this._nativePannerNode.coneInnerAngle}set coneInnerAngle(c){this._nativePannerNode.coneInnerAngle=c}get coneOuterAngle(){return this._nativePannerNode.coneOuterAngle}set coneOuterAngle(c){this._nativePannerNode.coneOuterAngle=c}get coneOuterGain(){return this._nativePannerNode.coneOuterGain}set coneOuterGain(c){this._nativePannerNode.coneOuterGain=c}get distanceModel(){return this._nativePannerNode.distanceModel}set distanceModel(c){this._nativePannerNode.distanceModel=c}get maxDistance(){return this._nativePannerNode.maxDistance}set maxDistance(c){this._nativePannerNode.maxDistance=c}get orientationX(){return this._orientationX}get orientationY(){return this._orientationY}get orientationZ(){return this._orientationZ}get panningModel(){return this._nativePannerNode.panningModel}set panningModel(c){this._nativePannerNode.panningModel=c}get positionX(){return this._positionX}get positionY(){return this._positionY}get positionZ(){return this._positionZ}get refDistance(){return this._nativePannerNode.refDistance}set refDistance(c){this._nativePannerNode.refDistance=c}get rolloffFactor(){return this._nativePannerNode.rolloffFactor}set rolloffFactor(c){this._nativePannerNode.rolloffFactor=c}},zO=(n,e,t,s,r,i,o,a,c,l)=>()=>{const u=new WeakMap;let h=null;const d=async(f,m)=>{let p=null,g=i(f);const _={channelCount:g.channelCount,channelCountMode:g.channelCountMode,channelInterpretation:g.channelInterpretation},T={..._,coneInnerAngle:g.coneInnerAngle,coneOuterAngle:g.coneOuterAngle,coneOuterGain:g.coneOuterGain,distanceModel:g.distanceModel,maxDistance:g.maxDistance,panningModel:g.panningModel,refDistance:g.refDistance,rolloffFactor:g.rolloffFactor},w=vt(g,m);if("bufferSize"in g)p=s(m,{..._,gain:1});else if(!w){const b={...T,orientationX:g.orientationX.value,orientationY:g.orientationY.value,orientationZ:g.orientationZ.value,positionX:g.positionX.value,positionY:g.positionY.value,positionZ:g.positionZ.value};g=r(m,b)}if(u.set(m,p===null?g:p),p!==null){if(h===null){if(o===null)throw new Error("Missing the native OfflineAudioContext constructor.");const R=new o(6,f.context.length,m.sampleRate),O=e(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"speakers",numberOfInputs:6});O.connect(R.destination),h=(async()=>{const L=await Promise.all([f.orientationX,f.orientationY,f.orientationZ,f.positionX,f.positionY,f.positionZ].map(async(z,W)=>{const B=t(R,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",offset:W===0?1:0});return await a(R,z,B.offset),B}));for(let z=0;z<6;z+=1)L[z].connect(O,0,z),L[z].start(0);return l(R)})()}const b=await h,y=s(m,{..._,gain:1});await c(f,m,y);const x=[];for(let R=0;Rz!==E[W])||L.some((z,W)=>z!==k[W])){E=O,k=L;const z=R/m.sampleRate;C.gain.setValueAtTime(0,z),C=s(m,{..._,gain:0}),S=r(m,{...T,orientationX:E[0],orientationY:E[1],orientationZ:E[2],positionX:k[0],positionY:k[1],positionZ:k[2]}),C.gain.setValueAtTime(1,z),y.connect(C).connect(S.inputs[0]),S.connect(p)}}return p}return w?(await n(m,f.orientationX,g.orientationX),await n(m,f.orientationY,g.orientationY),await n(m,f.orientationZ,g.orientationZ),await n(m,f.positionX,g.positionX),await n(m,f.positionY,g.positionY),await n(m,f.positionZ,g.positionZ)):(await a(m,f.orientationX,g.orientationX),await a(m,f.orientationY,g.orientationY),await a(m,f.orientationZ,g.orientationZ),await a(m,f.positionX,g.positionX),await a(m,f.positionY,g.positionY),await a(m,f.positionZ,g.positionZ)),ii(g)?await c(f,m,g.inputs[0]):await c(f,m,g),g};return{render(f,m){const p=u.get(m);return p!==void 0?Promise.resolve(p):d(f,m)}}},VO={disableNormalization:!1},UO=(n,e,t,s)=>class Im{constructor(i,o){const a=e(i),c=s({...VO,...o}),l=n(a,c);return t.add(l),l}static[Symbol.hasInstance](i){return i!==null&&typeof i=="object"&&Object.getPrototypeOf(i)===Im.prototype||t.has(i)}},BO=(n,e)=>(t,s,r)=>(n(s).replay(r),e(s,t,r)),WO=(n,e,t)=>async(s,r,i)=>{const o=n(s);await Promise.all(o.activeInputs.map((a,c)=>Array.from(a).map(async([l,u])=>{const d=await e(l).render(l,r),f=s.context.destination;!t(l)&&(s!==f||!t(s))&&d.connect(i,u,c)})).reduce((a,c)=>[...a,...c],[]))},qO=(n,e,t)=>async(s,r,i)=>{const o=e(s);await Promise.all(Array.from(o.activeInputs).map(async([a,c])=>{const u=await n(a).render(a,r);t(a)||u.connect(i,c)}))},HO=(n,e,t,s)=>r=>n(Gi,()=>Gi(r))?Promise.resolve(n(s,s)).then(i=>{if(!i){const o=t(r,512,0,1);r.oncomplete=()=>{o.onaudioprocess=null,o.disconnect()},o.onaudioprocess=()=>r.currentTime,o.connect(r.destination)}return r.startRendering()}):new Promise(i=>{const o=e(r,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});r.oncomplete=a=>{o.disconnect(),i(a.renderedBuffer)},o.connect(r.destination),r.startRendering()}),YO=n=>(e,t)=>{n.set(e,t)},GO=n=>(e,t)=>n.set(e,t),XO=(n,e,t,s,r,i,o,a)=>(c,l)=>t(c).render(c,l).then(()=>Promise.all(Array.from(s(l)).map(u=>t(u).render(u,l)))).then(()=>r(l)).then(u=>(typeof u.copyFromChannel!="function"?(o(u),Gu(u)):e(i,()=>i(u))||a(u),n.add(u),u)),ZO={channelCount:2,channelCountMode:"explicit",channelInterpretation:"speakers",pan:0},KO=(n,e,t,s,r,i)=>class extends n{constructor(a,c){const l=r(a),u={...ZO,...c},h=t(l,u),d=i(l),f=d?s():null;super(a,!1,h,f),this._pan=e(this,d,h.pan)}get pan(){return this._pan}},QO=(n,e,t,s,r)=>()=>{const i=new WeakMap,o=async(a,c)=>{let l=t(a);const u=vt(l,c);if(!u){const h={channelCount:l.channelCount,channelCountMode:l.channelCountMode,channelInterpretation:l.channelInterpretation,pan:l.pan.value};l=e(c,h)}return i.set(c,l),u?await n(c,a.pan,l.pan):await s(c,a.pan,l.pan),ii(l)?await r(a,c,l.inputs[0]):await r(a,c,l),l};return{render(a,c){const l=i.get(c);return l!==void 0?Promise.resolve(l):o(a,c)}}},JO=n=>()=>{if(n===null)return!1;try{new n({length:1,sampleRate:44100})}catch{return!1}return!0},e2=(n,e)=>async()=>{if(n===null)return!0;if(e===null)return!1;const t=new Blob(['class A extends AudioWorkletProcessor{process(i){this.port.postMessage(i,[i[0][0].buffer])}}registerProcessor("a",A)'],{type:"application/javascript; charset=utf-8"}),s=new e(1,128,44100),r=URL.createObjectURL(t);let i=!1,o=!1;try{await s.audioWorklet.addModule(r);const a=new n(s,"a",{numberOfOutputs:0}),c=s.createOscillator();a.port.onmessage=()=>i=!0,a.onprocessorerror=()=>o=!0,c.connect(a),c.start(0),await s.startRendering(),await new Promise(l=>setTimeout(l))}catch{}finally{URL.revokeObjectURL(r)}return i&&!o},t2=(n,e)=>()=>{if(e===null)return Promise.resolve(!1);const t=new e(1,1,44100),s=n(t,{channelCount:1,channelCountMode:"explicit",channelInterpretation:"discrete",gain:0});return new Promise(r=>{t.oncomplete=()=>{s.disconnect(),r(t.currentTime!==0)},t.startRendering()})},n2=()=>new DOMException("","UnknownError"),s2={channelCount:2,channelCountMode:"max",channelInterpretation:"speakers",curve:null,oversample:"none"},r2=(n,e,t,s,r,i,o)=>class extends n{constructor(c,l){const u=r(c),h={...s2,...l},d=t(u,h),m=i(u)?s():null;super(c,!0,d,m),this._isCurveNullified=!1,this._nativeWaveShaperNode=d,o(this,1)}get curve(){return this._isCurveNullified?null:this._nativeWaveShaperNode.curve}set curve(c){if(c===null)this._isCurveNullified=!0,this._nativeWaveShaperNode.curve=new Float32Array([0,0]);else{if(c.length<2)throw e();this._isCurveNullified=!1,this._nativeWaveShaperNode.curve=c}}get oversample(){return this._nativeWaveShaperNode.oversample}set oversample(c){this._nativeWaveShaperNode.oversample=c}},i2=(n,e,t)=>()=>{const s=new WeakMap,r=async(i,o)=>{let a=e(i);if(!vt(a,o)){const l={channelCount:a.channelCount,channelCountMode:a.channelCountMode,channelInterpretation:a.channelInterpretation,curve:a.curve,oversample:a.oversample};a=n(o,l)}return s.set(o,a),ii(a)?await t(i,o,a.inputs[0]):await t(i,o,a),a};return{render(i,o){const a=s.get(o);return a!==void 0?Promise.resolve(a):r(i,o)}}},o2=()=>typeof window>"u"?null:window,a2=(n,e)=>t=>{t.copyFromChannel=(s,r,i=0)=>{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+o{const o=n(i),a=n(r);if(a>=t.numberOfChannels)throw e();const c=t.length,l=t.getChannelData(a),u=s.length;for(let h=o<0?-o:0;h+oe=>{e.copyFromChannel=(t=>(s,r,i=0)=>{const o=n(i),a=n(r);if(o(s,r,i=0)=>{const o=n(i),a=n(r);if(o(e,t)=>{const s=t.createBuffer(1,1,44100);e.buffer===null&&(e.buffer=s),n(e,"buffer",r=>()=>{const i=r.call(e);return i===s?null:i},r=>i=>r.call(e,i===null?s:i))},u2=(n,e)=>(t,s)=>{s.channelCount=1,s.channelCountMode="explicit",Object.defineProperty(s,"channelCount",{get:()=>1,set:()=>{throw n()}}),Object.defineProperty(s,"channelCountMode",{get:()=>"explicit",set:()=>{throw n()}});const r=t.createBufferSource();e(s,()=>{const a=s.numberOfInputs;for(let c=0;cr.disconnect(s))},$m=(n,e,t)=>n.copyFromChannel===void 0?n.getChannelData(t)[0]:(n.copyFromChannel(e,t),e[0]),Fm=n=>{if(n===null)return!1;const e=n.length;return e%2!==0?n[Math.floor(e/2)]!==0:n[e/2-1]+n[e/2]!==0},Io=(n,e,t,s)=>{let r=n;for(;!r.hasOwnProperty(e);)r=Object.getPrototypeOf(r);const{get:i,set:o}=Object.getOwnPropertyDescriptor(r,e);Object.defineProperty(n,e,{get:t(i),set:s(o)})},h2=n=>({...n,outputChannelCount:n.outputChannelCount!==void 0?n.outputChannelCount:n.numberOfInputs===1&&n.numberOfOutputs===1?[n.channelCount]:Array.from({length:n.numberOfOutputs},()=>1)}),d2=n=>({...n,channelCount:n.numberOfOutputs}),f2=n=>{const{imag:e,real:t}=n;return e===void 0?t===void 0?{...n,imag:[0,0],real:[0,0]}:{...n,imag:Array.from(t,()=>0),real:t}:t===void 0?{...n,imag:e,real:Array.from(e,()=>0)}:{...n,imag:e,real:t}},Lm=(n,e,t)=>{try{n.setValueAtTime(e,t)}catch(s){if(s.code!==9)throw s;Lm(n,e,t+1e-7)}},p2=n=>{const e=n.createBufferSource();e.start();try{e.start()}catch{return!0}return!1},m2=n=>{const e=n.createBufferSource(),t=n.createBuffer(1,1,44100);e.buffer=t;try{e.start(0,1)}catch{return!1}return!0},g2=n=>{const e=n.createBufferSource();e.start();try{e.stop()}catch{return!1}return!0},Ju=n=>{const e=n.createOscillator();try{e.start(-1)}catch(t){return t instanceof RangeError}return!1},jm=n=>{const e=n.createBuffer(1,1,44100),t=n.createBufferSource();t.buffer=e,t.start(),t.stop();try{return t.stop(),!0}catch{return!1}},eh=n=>{const e=n.createOscillator();try{e.stop(-1)}catch(t){return t instanceof RangeError}return!1},_2=n=>{const{port1:e,port2:t}=new MessageChannel;try{e.postMessage(n)}finally{e.close(),t.close()}},y2=n=>{n.start=(e=>(t=0,s=0,r)=>{const i=n.buffer,o=i===null?s:Math.min(i.duration,s);i!==null&&o>i.duration-.5/n.context.sampleRate?e.call(n,t,0,0):e.call(n,t,o,r)})(n.start)},zm=(n,e)=>{const t=e.createGain();n.connect(t);const s=(r=>()=>{r.call(n,t),n.removeEventListener("ended",s)})(n.disconnect);n.addEventListener("ended",s),oi(n,t),n.stop=(r=>{let i=!1;return(o=0)=>{if(i)try{r.call(n,o)}catch{t.gain.setValueAtTime(0,o)}else r.call(n,o),i=!0}})(n.stop)},ai=(n,e)=>t=>{const s={value:n};return Object.defineProperties(t,{currentTarget:s,target:s}),typeof e=="function"?e.call(n,t):e.handleEvent.call(n,t)},v2=jE(cr),b2=qE(cr),x2=sS(xc),Vm=new WeakMap,w2=xS(Vm),_n=MC(new Map,new WeakMap),An=o2(),Um=KS(_n,Dn),th=bS(Tt),ft=WO(Tt,th,er),k2=ZE(Um,Be,ft),Ve=TS(bc),ss=TO(An),Pe=VS(ss),Bm=new WeakMap,Wm=fS(ai),$o=tO(An),nh=FS($o),sh=LS(An),qm=jS(An),Xi=sO(An),it=xC(zE(ym),WE(v2,b2,La,x2,ja,Tt,w2,Ao,Be,cr,qn,er,da),_n,PS(Yl,ja,Tt,Be,Yi,qn),Dn,wc,Et,JC(La,Yl,Tt,Be,Yi,Ve,qn,Pe),oS(Bm,Tt,fn),Wm,Ve,nh,sh,qm,Pe,Xi),T2=XE(it,k2,Dn,Um,Ve,Pe),rh=new WeakSet,Ff=QS(An),Hm=HC(new Uint32Array(1)),ih=a2(Hm,Dn),oh=c2(Hm),Ym=QE(rh,_n,Et,Ff,ss,JO(Ff),ih,oh),kc=HE(It),Gm=qO(th,Do,er),Pn=zC(Gm),ci=eO(kc,_n,p2,m2,g2,Ju,jm,eh,y2,l2(Io),zm),Mn=BO(wS(Do),Gm),E2=tC(Pn,ci,Be,Mn,ft),yn=wC(VE(vm),Bm,Yu,kC,ME,NE,IE,$E,FE,Wl,gm,$o,Lm),C2=eC(it,E2,yn,ht,ci,Ve,Pe,ai),S2=uC(it,hC,Dn,ht,nO(It,Io),Ve,Pe,ft),O2=PC(Pn,Mm,Be,Mn,ft),lr=GO(Vm),A2=DC(it,yn,O2,wc,Mm,Ve,Pe,lr),Rs=XS(cr,sh),R2=u2(ht,Rs),Ds=uO($o,R2),D2=$C(Ds,Be,ft),P2=IC(it,D2,Ds,Ve,Pe),M2=jC(Mo,Be,ft),N2=LC(it,M2,Mo,Ve,Pe,d2),I2=fO(kc,ci,It,Rs),li=dO(kc,_n,I2,Ju,eh),$2=qC(Pn,li,Be,Mn,ft),F2=WC(it,yn,$2,li,Ve,Pe,ai),Xm=pO(Et,Io),L2=XC(Xm,Be,ft),j2=GC(it,L2,Xm,Ve,Pe,lr),z2=nS(Pn,Nm,Be,Mn,ft),V2=tS(it,yn,z2,Nm,Ve,Pe,lr),Zm=mO(Et),U2=uS(Pn,Zm,Be,Mn,ft),B2=lS(it,yn,U2,Zm,Et,Ve,Pe,lr),W2=yS(Pn,It,Be,Mn,ft),q2=_S(it,yn,W2,It,Ve,Pe),H2=vO(wc,ht,No,Et),Tc=HO(_n,It,No,t2(It,ss)),Y2=DS(ci,Be,ss,ft,Tc),G2=gO(H2),X2=AS(it,G2,Y2,Ve,Pe,lr),Z2=dC(yn,Ds,li,No,Et,$m,Pe,Io),Km=new WeakMap,K2=GS(S2,Z2,Wm,Pe,Km,ai),Qm=EO(kc,_n,Ju,jm,eh,zm),Q2=FO(Pn,Qm,Be,Mn,ft),J2=$O(it,yn,Qm,Q2,Ve,Pe,ai),Jm=UC(ci),eA=PO(Jm,ht,It,Fm,Rs),Ec=DO(Jm,ht,eA,Fm,Rs,$o,Io),tA=SO(La,ht,Ds,It,No,Ec,Et,ja,$m,Rs),eg=CO(tA),nA=zO(Pn,Ds,li,It,eg,Be,ss,Mn,ft,Tc),sA=jO(it,yn,eg,nA,Ve,Pe,lr),rA=OO(Dn),iA=UO(rA,Ve,new WeakSet,f2),oA=RO(Ds,Mo,It,Ec,Et,Rs),tg=AO(oA,Et),aA=QO(Pn,tg,Be,Mn,ft),cA=KO(it,yn,tg,aA,Ve,Pe),lA=i2(Ec,Be,ft),uA=r2(it,ht,Ec,lA,Ve,Pe,lr),ng=US(An),ah=pS(An),sg=new WeakMap,hA=ES(sg,ss),dA=ng?BE(_n,Et,dS(An),ah,mS(LE),Ve,hA,Pe,Xi,new WeakMap,new WeakMap,e2(Xi,ss),An):void 0,fA=zS(nh,Pe),pA=QC(rh,_n,KC,hS,new WeakSet,Ve,fA,$a,Gi,ih,oh),rg=AC(dA,T2,Ym,C2,A2,P2,N2,F2,j2,pA,V2,B2,q2,X2,K2,J2,sA,iA,cA,uA),mA=BS(it,bO,Ve,Pe),gA=qS(it,xO,Ve,Pe),_A=HS(it,wO,Ve,Pe),yA=kO(ht,Pe),vA=YS(it,yA,Ve),bA=lC(rg,ht,Et,n2,mA,gA,_A,vA,$o),ch=CS(Km),xA=YE(ch),ig=VC(Dn),wA=rS(ch),og=aS(Dn),ag=new WeakMap,kA=vS(ag,fn),TA=lO(ig,Dn,ht,Ds,Mo,li,It,No,Et,og,ah,kA,Rs),EA=iO(ht,TA,It,Et,Rs),CA=OC(Pn,ig,ci,Ds,Mo,li,It,wA,og,ah,Be,Xi,ss,Mn,ft,Tc),SA=kS(sg),OA=YO(ag),Lf=ng?EC(xA,it,yn,CA,EA,Tt,SA,Ve,Pe,Xi,h2,OA,_2,ai):void 0,AA=ZC(Et,ss),RA=XO(rh,_n,th,ch,Tc,$a,ih,oh),DA=NO(rg,_n,ht,AA,RA),PA=MS(bc,nh),MA=NS(Hu,sh),NA=IS(Yu,qm),IA=$S(bc,Pe);function Bt(n){return typeof n>"u"}function xe(n){return!Bt(n)}function $A(n){return typeof n=="function"}function ws(n){return typeof n=="number"}function qs(n){return Object.prototype.toString.call(n)==="[object Object]"&&n.constructor===Object}function FA(n){return typeof n=="boolean"}function hn(n){return Array.isArray(n)}function Zn(n){return typeof n=="string"}function sa(n){return Zn(n)&&/^([a-g]{1}(?:b|#|x|bb)?)(-?[0-9]+)/i.test(n)}function me(n,e){if(!n)throw new Error(e)}function pn(n,e,t=1/0){if(!(e<=n&&n<=t))throw new RangeError(`Value must be within [${e}, ${t}], got: ${n}`)}function cg(n){!n.isOffline&&n.state!=="running"&&lh('The AudioContext is "suspended". Invoke Tone.start() from a user action to start the audio.')}let lg=!1,jf=!1;function zf(n){lg=n}function LA(n){Bt(n)&&lg&&!jf&&(jf=!0,lh("Events scheduled inside of scheduled callbacks should use the passed in scheduling time. See https://github.com/Tonejs/Tone.js/wiki/Accurate-Timing"))}let ug=console;function jA(...n){ug.log(...n)}function lh(...n){ug.warn(...n)}function zA(n){return new bA(n)}function VA(n,e,t){return new DA(n,e,t)}const Hs=typeof self=="object"?self:null,UA=Hs&&(Hs.hasOwnProperty("AudioContext")||Hs.hasOwnProperty("webkitAudioContext"));function BA(n,e,t){return me(xe(Lf),"This node only works in a secure context (https or localhost)"),new Lf(n,e,t)}class WA{constructor(e,t,s,r){this._callback=e,this._type=t,this._minimumUpdateInterval=Math.max(128/(r||44100),.001),this.updateInterval=s,this._createClock()}_createWorker(){const e=new Blob([` // the initial timeout time let timeoutTime = ${(this._updateInterval*1e3).toFixed(1)}; // onmessage callback @@ -198,12 +198,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } // call tick initially tick(); - `],{type:"text/javascript"}),t=URL.createObjectURL(e),s=new Worker(t);s.onmessage=this._callback.bind(this),this._worker=s}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(e){var t;this._updateInterval=Math.max(e,this._minimumUpdateInterval),this._type==="worker"&&((t=this._worker)===null||t===void 0||t.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(e){this._disposeClock(),this._type=e,this._createClock()}dispose(){this._disposeClock()}}function tr(n){return NA(n)}function ms(n){return MA(n)}function fa(n){return IA(n)}function Tr(n){return PA(n)}function qA(n){return n instanceof qm}function HA(n,e){return n==="value"||tr(e)||ms(e)||qA(e)}function Pr(n,...e){if(!e.length)return n;const t=e.shift();if(qs(n)&&qs(t))for(const s in t)HA(s,t[s])?n[s]=t[s]:qs(t[s])?(n[s]||Object.assign(n,{[s]:{}}),Pr(n[s],t[s])):Object.assign(n,{[s]:t[s]});return Pr(n,...e)}function YA(n,e){return n.length===e.length&&n.every((t,s)=>e[s]===t)}function Z(n,e,t=[],s){const r={},i=Array.from(e);if(qs(i[0])&&s&&!Reflect.has(i[0],s)&&(Object.keys(i[0]).some(a=>Reflect.has(n,a))||(Pr(r,{[s]:i[0]}),t.splice(t.indexOf(s),1),i.shift())),i.length===1&&qs(i[0]))Pr(r,i[0]);else for(let o=0;o{Reflect.has(n,t)&&delete n[t]}),n}/** + `],{type:"text/javascript"}),t=URL.createObjectURL(e),s=new Worker(t);s.onmessage=this._callback.bind(this),this._worker=s}_createTimeout(){this._timeout=setTimeout(()=>{this._createTimeout(),this._callback()},this._updateInterval*1e3)}_createClock(){if(this._type==="worker")try{this._createWorker()}catch{this._type="timeout",this._createClock()}else this._type==="timeout"&&this._createTimeout()}_disposeClock(){this._timeout&&clearTimeout(this._timeout),this._worker&&(this._worker.terminate(),this._worker.onmessage=null)}get updateInterval(){return this._updateInterval}set updateInterval(e){var t;this._updateInterval=Math.max(e,this._minimumUpdateInterval),this._type==="worker"&&((t=this._worker)===null||t===void 0||t.postMessage(this._updateInterval*1e3))}get type(){return this._type}set type(e){this._disposeClock(),this._type=e,this._createClock()}dispose(){this._disposeClock()}}function tr(n){return NA(n)}function ms(n){return MA(n)}function fa(n){return IA(n)}function Tr(n){return PA(n)}function qA(n){return n instanceof Ym}function HA(n,e){return n==="value"||tr(e)||ms(e)||qA(e)}function Pr(n,...e){if(!e.length)return n;const t=e.shift();if(qs(n)&&qs(t))for(const s in t)HA(s,t[s])?n[s]=t[s]:qs(t[s])?(n[s]||Object.assign(n,{[s]:{}}),Pr(n[s],t[s])):Object.assign(n,{[s]:t[s]});return Pr(n,...e)}function YA(n,e){return n.length===e.length&&n.every((t,s)=>e[s]===t)}function Z(n,e,t=[],s){const r={},i=Array.from(e);if(qs(i[0])&&s&&!Reflect.has(i[0],s)&&(Object.keys(i[0]).some(a=>Reflect.has(n,a))||(Pr(r,{[s]:i[0]}),t.splice(t.indexOf(s),1),i.shift())),i.length===1&&qs(i[0]))Pr(r,i[0]);else for(let o=0;o{Reflect.has(n,t)&&delete n[t]}),n}/** * Tone.js * @author Yotam Mann * @license http://opensource.org/licenses/MIT MIT License * @copyright 2014-2019 Yotam Mann - */class rs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||Hs&&this.toString()===Hs.TONE_DEBUG_CLASS)&&jA(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}rs.version=fm;const uh=1e-6;function Br(n,e){return n>e+uh}function Ql(n,e){return Br(n,e)||an(n,e)}function Ba(n,e){return n+uhthis.memory){const t=this.length-this.memory;this._timeline.splice(0,t)}return this}remove(e){const t=this._timeline.indexOf(e);return t!==-1&&this._timeline.splice(t,1),this}get(e,t="time"){const s=this._search(e,t);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,t="time"){const s=this._search(e,t);return s+10&&this._timeline[t-1].time=0?this._timeline[s-1]:null}cancel(e){if(this._timeline.length>1){let t=this._search(e);if(t>=0)if(an(this._timeline[t].time,e)){for(let s=t;s>=0&&an(this._timeline[s].time,e);s--)t=s;this._timeline=this._timeline.slice(0,t)}else this._timeline=this._timeline.slice(0,t+1);else this._timeline=[]}else this._timeline.length===1&&Ql(this._timeline[0].time,e)&&(this._timeline=[]);return this}cancelBefore(e){const t=this._search(e);return t>=0&&(this._timeline=this._timeline.slice(t+1)),this}previousEvent(e){const t=this._timeline.indexOf(e);return t>0?this._timeline[t-1]:null}_search(e,t="time"){if(this._timeline.length===0)return-1;let s=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][t]<=e)return r-1;for(;s=0&&this._timeline[s].time>=e;)s--;return this._iterate(t,s+1),this}forEachAtTime(e,t){const s=this._search(e);if(s!==-1&&an(this._timeline[s].time,e)){let r=s;for(let i=s;i>=0&&an(this._timeline[i].time,e);i--)r=i;this._iterate(i=>{t(i)},r,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const ug=[];function Cc(n){ug.push(n)}function ZA(n){ug.forEach(e=>e(n))}const hg=[];function Sc(n){hg.push(n)}function KA(n){hg.forEach(e=>e(n))}class Fo extends rs{constructor(){super(...arguments),this.name="Emitter"}on(e,t){return e.split(/\W+/).forEach(r=>{Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r)||(this._events[r]=[]),this._events[r].push(t)}),this}once(e,t){const s=(...r)=>{t(...r),this.off(e,s)};return this.on(e,s),this}off(e,t){return e.split(/\W+/).forEach(r=>{if(Ut(this._events)&&(this._events={}),this._events.hasOwnProperty(r))if(Ut(t))this._events[r]=[];else{const i=this._events[r];for(let o=i.length-1;o>=0;o--)i[o]===t&&i.splice(o,1)}}),this}emit(e,...t){if(this._events&&this._events.hasOwnProperty(e)){const s=this._events[e].slice(0);for(let r=0,i=s.length;r{const s=Object.getOwnPropertyDescriptor(Fo.prototype,t);Object.defineProperty(e.prototype,t,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class dg extends Fo{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let hh=class fg extends dg{constructor(){var e,t;super(),this.name="Context",this._constants=new Map,this._timeouts=new En,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=Z(fg.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((e=arguments[0])===null||e===void 0?void 0:e.latencyHint)||""):(this._context=zA({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new WA(this.emit.bind(this,"tick"),s.clockSource,s.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((t=arguments[0])===null||t===void 0)&&t.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(ZA(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(e,t,s){return this._context.createBuffer(e,t,s)}createChannelMerger(e){return this._context.createChannelMerger(e)}createChannelSplitter(e){return this._context.createChannelSplitter(e)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(e){return this._context.createDelay(e)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(e,t){return this._context.createIIRFilter(e,t)}createPanner(){return this._context.createPanner()}createPeriodicWave(e,t,s){return this._context.createPeriodicWave(e,t,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(e){return this._context.decodeAudioData(e)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(e){me(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){me(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){me(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){me(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,t){return BA(this.rawContext,e,t)}addAudioWorkletModule(e){return $e(this,void 0,void 0,function*(){me(xe(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(e)),yield this._workletPromise})}workletsAreReady(){return $e(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(e){this._ticker.updateInterval=e}get clockSource(){return this._ticker.type}set clockSource(e){this._ticker.type=e}get lookAhead(){return this._lookAhead}set lookAhead(e){this._lookAhead=e,this.updateInterval=e?e/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return Tr(this._context)?this._context.resume():Promise.resolve()}close(){return $e(this,void 0,void 0,function*(){Tr(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&KA(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const t=this._context.createBuffer(1,128,this._context.sampleRate),s=t.getChannelData(0);for(let i=0;ithis._constants[e].disconnect()),this.close(),this}_timeoutLoop(){const e=this.now();let t=this._timeouts.peek();for(;this._timeouts.length&&t&&t.time<=e;)t.callback(),this._timeouts.shift(),t=this._timeouts.peek()}setTimeout(e,t){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:s+t}),this._timeoutIds}clearTimeout(e){return this._timeouts.forEach(t=>{t.id===e&&this._timeouts.remove(t)}),this}clearInterval(e){return this.clearTimeout(e)}setInterval(e,t){const s=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{e(),r()},id:s,time:i+t})};return r(),s}};class QA extends dg{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,t,s){return{}}createChannelMerger(e){return{}}createChannelSplitter(e){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(e){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(e,t){return{}}createPanner(){return{}}createPeriodicWave(e,t,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(e){return{}}createMediaElementSource(e){return{}}createMediaStreamDestination(){return{}}decodeAudioData(e){return Promise.resolve({})}createAudioWorkletNode(e,t){return{}}get rawContext(){return{}}addAudioWorkletModule(e){return $e(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(e,t){return 0}clearTimeout(e){return this}setInterval(e,t){return 0}clearInterval(e){return this}getConstant(e){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(e){}get destination(){return{}}set destination(e){}now(){return 0}immediate(){return 0}}function Ve(n,e){hn(e)?e.forEach(t=>Ve(n,t)):Object.defineProperty(n,e,{enumerable:!0,writable:!1})}function dh(n,e){hn(e)?e.forEach(t=>dh(n,t)):Object.defineProperty(n,e,{writable:!0})}const Oe=()=>{};class Ae extends rs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=Oe;const e=Z(Ae.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,Zn(e.url)?this.load(e.url).catch(e.onerror):e.url&&this.set(e.url)}static getDefaults(){return{onerror:Oe,onload:Oe,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:cn().sampleRate}set(e){return e instanceof Ae?e.loaded?this._buffer=e.get():e.onload=()=>{this.set(e),this.onload(this)}:this._buffer=e,this._reversed&&this._reverse(),this}get(){return this._buffer}load(e){return $e(this,void 0,void 0,function*(){const t=Ae.load(e).then(s=>{this.set(s),this.onload(this)});Ae.downloads.push(t);try{yield t}finally{const s=Ae.downloads.indexOf(t);Ae.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const t=hn(e)&&e[0].length>0,s=t?e.length:1,r=t?e[0].length:e.length,i=cn(),o=i.createBuffer(s,r,i.sampleRate),a=!t&&s===1?[e]:e;for(let c=0;cr/s),this.fromArray(t)}return this}toArray(e){if(ws(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const t=[];for(let s=0;s0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(e){this._reversed!==e&&(this._reversed=e,this._reverse())}static fromArray(e){return new Ae().fromArray(e)}static fromUrl(e){return $e(this,void 0,void 0,function*(){return yield new Ae().load(e)})}static load(e){return $e(this,void 0,void 0,function*(){const t=e.match(/\[([^\]\[]+\|.+)\]$/);if(t){const c=t[1].split("|");let l=c[0];for(const u of c)if(Ae.supportsType(u)){l=u;break}e=e.replace(t[0],l)}const s=Ae.baseUrl===""||Ae.baseUrl.endsWith("/")?Ae.baseUrl:Ae.baseUrl+"/",r=document.createElement("a");r.href=s+e,r.pathname=(r.pathname+r.hash).split("/").map(encodeURIComponent).join("/");const i=yield fetch(r.href);if(!i.ok)throw new Error(`could not load url: ${e}`);const o=yield i.arrayBuffer();return yield cn().decodeAudioData(o)})}static supportsType(e){const t=e.split("."),s=t[t.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return $e(this,void 0,void 0,function*(){for(yield Promise.resolve();Ae.downloads.length;)yield Ae.downloads[0]})}}Ae.baseUrl="";Ae.downloads=[];class Oc extends hh{constructor(){super({clockSource:"offline",context:fa(arguments[0])?arguments[0]:VA(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:fa(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=fa(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(e){return $e(this,void 0,void 0,function*(){let t=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,t++;const s=Math.floor(this.sampleRate/128);e&&t%s===0&&(yield new Promise(r=>setTimeout(r,1)))}})}render(e=!0){return $e(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(e);const t=yield this._context.startRendering();return new Ae(t)})}close(){return Promise.resolve()}}const pg=new QA;let Vs=pg;function cn(){return Vs===pg&&UA&&JA(new hh),Vs}function JA(n,e=!1){e&&Vs.dispose(),Tr(n)?Vs=new hh(n):fa(n)?Vs=new Oc(n):Vs=n}function eR(){return Vs.resume()}if(Hs&&!Hs.TONE_SILENCE_LOGGING){const e=` * Tone.js v${fm} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function tR(n){return Math.pow(10,n/20)}function nR(n){return 20*(Math.log(n)/Math.LN10)}function mg(n){return Math.pow(2,n/12)}let Ac=440;function sR(){return Ac}function rR(n){Ac=n}function Jl(n){return Math.round(gg(n))}function gg(n){return 69+12*Math.log2(n/Ac)}function iR(n){return Ac*Math.pow(2,(n-69)/12)}class fh extends rs{constructor(e,t,s){super(),this.defaultUnits="s",this._val=t,this._units=s,this.context=e,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:e=>this._frequencyToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:e=>this._ticksToUnits(parseInt(e,10)),regexp:/^(\d+)i$/i},m:{method:e=>this._beatsToUnits(parseInt(e,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(e,t)=>{const s=parseInt(e,10),r=t==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/s)*r},regexp:/^(\d+)n(\.?)$/i},number:{method:e=>this._expressions[this.defaultUnits].method.call(this,e),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:e=>this._secondsToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:e=>parseInt(e,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:e=>{const t=parseInt(e,10);return this._beatsToUnits(8/(Math.floor(t)*3))},regexp:/^(\d+)t$/i},tr:{method:(e,t,s)=>{let r=0;return e&&e!=="0"&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r+=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r+=this._beatsToUnits(parseFloat(s)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof fh&&this.fromType(this._val),Ut(this._val))return this._noArg();if(Zn(this._val)&&Ut(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(qs(this._val)){let e=0;for(const t in this._val)if(xe(this._val[t])){const s=this._val[t],r=new this.constructor(this.context,t).valueOf()*s;e+=r}return e}if(xe(this._units)){const e=this._expressions[this._units],t=this._val.toString().trim().match(e.regexp);return t?e.method.apply(this,t.slice(1)):e.method.call(this,this._val)}else return Zn(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(e){return 1/e}_beatsToUnits(e){return 60/this._getBpm()*e}_secondsToUnits(e){return e}_ticksToUnits(e){return e*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(e){switch(this._units=void 0,this.defaultUnits){case"s":this._val=e.toSeconds();break;case"i":this._val=e.toTicks();break;case"hz":this._val=e.toFrequency();break;case"midi":this._val=e.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class ln extends fh{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:e=>this._now()+new this.constructor(this.context,e).valueOf(),regexp:/^\+(.+)/},quantize:{method:e=>{const t=new ln(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(t))},regexp:/^@(.+)/}})}quantize(e,t=1){const s=new this.constructor(this.context,e).valueOf(),r=this.valueOf(),a=Math.round(r/s)*s-r;return r+a*t}toNotation(){const e=this.toSeconds(),t=["1m"];for(let i=1;i<9;i++){const o=Math.pow(2,i);t.push(o+"n."),t.push(o+"n"),t.push(o+"t")}t.push("0");let s=t[0],r=new ln(this.context,t[0]).toSeconds();return t.forEach(i=>{const o=new ln(this.context,i).toSeconds();Math.abs(o-e)3&&(r=parseFloat(parseFloat(i).toFixed(3))),[s,t,r].join(":")}toTicks(){const e=this._beatsToUnits(1);return this.valueOf()/e*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return Jl(this.toFrequency())}_now(){return this.context.now()}}class Zt extends ln{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return sR()}static set A4(e){rR(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Zt.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(e,t){const r=oR[e.toLowerCase()]+(parseInt(t,10)+1)*12;return this.defaultUnits==="midi"?r:Zt.mtof(r)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,t,s){let r=1;return e&&e!=="0"&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r*=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r*=this._beatsToUnits(parseFloat(s)/4)),r}}})}transpose(e){return new Zt(this.context,this.valueOf()*mg(e))}harmonize(e){return e.map(t=>this.transpose(t))}toMidi(){return Jl(this.valueOf())}toNote(){const e=this.toFrequency(),t=Math.log2(e/Zt.A4);let s=Math.round(12*t)+57;const r=Math.floor(s/12);return r<0&&(s+=-12*r),aR[s%12]+r.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const e=this._beatsToUnits(1),t=this.valueOf()/e;return Math.floor(t*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(e){return e}_ticksToUnits(e){return 1/(e*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(e){return 1/super._beatsToUnits(e)}_secondsToUnits(e){return 1/e}static mtof(e){return iR(e)}static ftom(e){return Jl(e)}}const oR={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},aR=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Fi extends ln{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class At extends rs{constructor(){super();const e=Z(At.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:cn()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(e){return LA(e),new ln(this.context,e).toSeconds()}toFrequency(e){return new Zt(this.context,e).toFrequency()}toTicks(e){return new Fi(this.context,e).toTicks()}_getPartialProperties(e){const t=this.get();return Object.keys(t).forEach(s=>{Ut(e[s])&&delete t[s]}),t}get(){const e=GA(this);return Object.keys(e).forEach(t=>{if(Reflect.has(this,t)){const s=this[t];xe(s)&&xe(s.value)&&xe(s.setValueAtTime)?e[t]=s.value:s instanceof At?e[t]=s._getPartialProperties(e[t]):hn(s)||ws(s)||Zn(s)||FA(s)?e[t]=s:delete e[t]}}),e}set(e){return Object.keys(e).forEach(t=>{Reflect.has(this,t)&&xe(this[t])&&(this[t]&&xe(this[t].value)&&xe(this[t].setValueAtTime)?this[t].value!==e[t]&&(this[t].value=e[t]):this[t]instanceof At?this[t].set(e[t]):this[t]=e[t])}),this}}class ph extends En{constructor(e="stopped"){super(),this.name="StateTimeline",this._initial=e,this.setStateAtTime(this._initial,0)}getValueAtTime(e){const t=this.get(e);return t!==null?t.state:this._initial}setStateAtTime(e,t,s){return pn(t,0),this.add(Object.assign({},s,{state:e,time:t})),this}getLastState(e,t){const s=this._search(t);for(let r=s;r>=0;r--){const i=this._timeline[r];if(i.state===e)return i}}getNextState(e,t){const s=this._search(t);if(s!==-1)for(let r=s;r0,"timeConstant must be a number greater than 0");const i=this.toSeconds(t);return this._assertRange(r),me(isFinite(r)&&isFinite(i),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(t)}`),this._events.add({constant:s,time:i,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",e,i,s),this._param.setTargetAtTime(r,i,s),this}setValueCurveAtTime(e,t,s,r=1){s=this.toSeconds(s),t=this.toSeconds(t);const i=this._fromType(e[0])*r;this.setValueAtTime(this._toType(i),t);const o=s/(e.length-1);for(let a=1;a{r.type==="cancelScheduledValues"?e.cancelScheduledValues(r.time):r.type==="setTargetAtTime"?e.setTargetAtTime(r.value,r.time,r.constant):e[r.type](r.value,r.time)}),this}setParam(e){me(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const t=this.input;return t.disconnect(this._param),this.apply(e),this._param=e,t.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(e,t,s,r,i){return s+(t-s)*Math.exp(-(i-e)/r)}_linearInterpolate(e,t,s,r,i){return t+(r-t)*((i-e)/(s-e))}_exponentialInterpolate(e,t,s,r,i){return t*Math.pow(r/t,(i-e)/(s-e))}}class ue extends At{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return xe(this.input)?tr(this.input)||this.input instanceof Re?1:this.input.numberOfInputs:0}get numberOfOutputs(){return xe(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return xe(e)&&(e instanceof ue||ms(e))}_getInternalNodes(){const e=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&e.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&e.push(this.output),e}_setChannelProperties(e){this._getInternalNodes().forEach(s=>{s.channelCount=e.channelCount,s.channelCountMode=e.channelCountMode,s.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();me(e.length>0,"ToneAudioNode does not have any internal nodes");const t=e[0];return{channelCount:t.channelCount,channelCountMode:t.channelCountMode,channelInterpretation:t.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCount:e}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCountMode:e}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelInterpretation:e}))}connect(e,t=0,s=0){return ks(this,e,t,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return lh("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,t=0,s=0){return cR(this,e,t,s),this}chain(...e){return Zi(this,...e),this}fan(...e){return e.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),xe(this.input)&&(this.input instanceof ue?this.input.dispose():ms(this.input)&&this.input.disconnect()),xe(this.output)&&(this.output instanceof ue?this.output.dispose():ms(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Zi(...n){const e=n.shift();n.reduce((t,s)=>(t instanceof ue?t.connect(s):ms(t)&&ks(t,s),s),e)}function ks(n,e,t=0,s=0){for(me(xe(n),"Cannot connect from undefined node"),me(xe(e),"Cannot connect to undefined node"),(e instanceof ue||ms(e))&&me(e.numberOfInputs>0,"Cannot connect to node with no inputs"),me(n.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof ue||e instanceof Re;)xe(e.input)&&(e=e.input);for(;n instanceof ue;)xe(n.output)&&(n=n.output);tr(e)?n.connect(e,t):n.connect(e,t,s)}function cR(n,e,t=0,s=0){if(xe(e))for(;e instanceof ue;)e=e.input;for(;!ms(n);)xe(n.output)&&(n=n.output);tr(e)?n.disconnect(e,t):ms(e)?n.disconnect(e,t,s):n.disconnect()}class Fe extends ue{constructor(){super(Z(Fe.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Z(Fe.getDefaults(),arguments,["gain","units"]);this.gain=new Re({context:this.context,convert:e.convert,param:this._gainNode.gain,units:e.units,value:e.gain,minValue:e.minValue,maxValue:e.maxValue}),Ve(this,"gain")}static getDefaults(){return Object.assign(ue.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Wr extends ue{constructor(e){super(e),this.onended=Oe,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new Fe({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const s=this.toSeconds(t);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut,this._curve=e.curve,this.onended=e.onended}static getDefaults(){return Object.assign(ue.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:Oe})}_startGain(e,t=1){me(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=e+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(t,e+s):this._gainNode.gain.exponentialApproachValueAtTime(t,e,s)):this._gainNode.gain.setValueAtTime(t,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){me(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const t=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(e)+t,this._stopTime=Math.max(this._stopTime,this.now()),t>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,t,e):this._gainNode.gain.targetRampTo(0,t,e):(this._gainNode.gain.cancelAndHoldAtTime(e),this._gainNode.gain.setValueAtTime(0,e)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?t*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==Oe&&(this.onended(this),this.onended=Oe,!this.context.isOffline)){const e=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(e):setTimeout(e,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),me(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=Oe,this}}class Wa extends Wr{constructor(){super(Z(Wa.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Z(Wa.getDefaults(),arguments,["offset"]);ks(this._source,this._gainNode),this.offset=new Re({context:this.context,convert:e.convert,param:this._source.offset,units:e.units,value:e.offset,minValue:e.minValue,maxValue:e.maxValue})}static getDefaults(){return Object.assign(Wr.getDefaults(),{convert:!0,offset:1,units:"number"})}start(e){const t=this.toSeconds(e);return this.log("start",t),this._startGain(t),this._source.start(t),this}_stopSource(e){this._source.stop(e)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class je extends ue{constructor(){super(Z(je.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Z(je.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Wa({context:this.context,convert:e.convert,offset:e.value,units:e.units,minValue:e.minValue,maxValue:e.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(ue.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,t=0,s=0){return mh(this,e,t,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(e,t){return this._param.setValueAtTime(e,t),this}getValueAtTime(e){return this._param.getValueAtTime(e)}setRampPoint(e){return this._param.setRampPoint(e),this}linearRampToValueAtTime(e,t){return this._param.linearRampToValueAtTime(e,t),this}exponentialRampToValueAtTime(e,t){return this._param.exponentialRampToValueAtTime(e,t),this}exponentialRampTo(e,t,s){return this._param.exponentialRampTo(e,t,s),this}linearRampTo(e,t,s){return this._param.linearRampTo(e,t,s),this}targetRampTo(e,t,s){return this._param.targetRampTo(e,t,s),this}exponentialApproachValueAtTime(e,t,s){return this._param.exponentialApproachValueAtTime(e,t,s),this}setTargetAtTime(e,t,s){return this._param.setTargetAtTime(e,t,s),this}setValueCurveAtTime(e,t,s,r){return this._param.setValueCurveAtTime(e,t,s,r),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,t,s){return this._param.rampTo(e,t,s),this}get value(){return this._param.value}set value(e){this._param.value=e}get convert(){return this._param.convert}set convert(e){this._param.convert=e}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(e){this._param.overridden=e}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(e){return this._param.apply(e),this}}function mh(n,e,t,s){(e instanceof Re||tr(e)||e instanceof je&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof je&&(e.overridden=!0)),ks(n,e,t,s)}class qa extends Re{constructor(){super(Z(qa.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new En(1/0),this._multiplier=1;const e=Z(qa.getDefaults(),arguments,["value"]);this._multiplier=e.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(e.value)}),this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Re.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,t,s){t=this.toSeconds(t),this.setRampPoint(t);const r=this._fromType(e),i=this._events.get(t),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+t,l=this._exponentialApproach(i.time,i.value,r,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(e,t){const s=this.toSeconds(t);super.setValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(e,t){const s=this.toSeconds(t);super.linearRampToValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(e,t){t=this.toSeconds(t);const s=this._fromType(e),r=this._events.get(t),i=Math.round(Math.max((t-r.time)*10,1)),o=(t-r.time)/i;for(let a=0;a<=i;a++){const c=o*a+r.time,l=this._exponentialInterpolate(r.time,r.value,t,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(e,t){if(e===null)e={ticks:0,time:0,type:"setValueAtTime",value:0};else if(Ut(e.ticks)){const o=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(o,e.time)}const s=this._fromType(this.getValueAtTime(e.time));let r=this._fromType(this.getValueAtTime(t));const i=this._events.get(t);return i&&i.time===t&&i.type==="setValueAtTime"&&(r=this._fromType(this.getValueAtTime(t-this.sampleTime))),.5*(t-e.time)*(s+r)+e.ticks}getTicksAtTime(e){const t=this.toSeconds(e),s=this._events.get(t);return Math.max(this._getTicksUntilEvent(s,t),0)}getDurationOfTicks(e,t){const s=this.toSeconds(t),r=this.getTicksAtTime(t);return this.getTimeOfTick(r+e)-s}getTimeOfTick(e){const t=this._events.get(e,"ticks"),s=this._events.getAfter(e,"ticks");if(t&&t.ticks===e)return t.time;if(t&&s&&s.type==="linearRampToValueAtTime"&&t.value!==s.value){const r=this._fromType(this.getValueAtTime(t.time)),o=(this._fromType(this.getValueAtTime(s.time))-r)/(s.time-t.time),a=Math.sqrt(Math.pow(r,2)-2*o*(t.ticks-e)),c=(-r+a)/o,l=(-r-a)/o;return(c>0?c:l)+t.time}else return t?t.value===0?1/0:t.time+(e-t.ticks)/t.value:e/this._initialValue}ticksToTime(e,t){return this.getDurationOfTicks(e,t)}timeToTicks(e,t){const s=this.toSeconds(t),r=this.toSeconds(e),i=this.getTicksAtTime(s);return this.getTicksAtTime(s+r)-i}_fromType(e){return this.units==="bpm"&&this.multiplier?1/(60/e/this.multiplier):super._fromType(e)}_toType(e){return this.units==="bpm"&&this.multiplier?e/this.multiplier*60:super._toType(e)}get multiplier(){return this._multiplier}set multiplier(e){const t=this.value;this._multiplier=e,this.cancelScheduledValues(0),this.setValueAtTime(t,0)}}class Ha extends je{constructor(){super(Z(Ha.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Z(Ha.getDefaults(),arguments,["value"]);this.input=this._param=new qa({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(je.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(e,t){return this._param.ticksToTime(e,t)}timeToTicks(e,t){return this._param.timeToTicks(e,t)}getTimeOfTick(e){return this._param.getTimeOfTick(e)}getDurationOfTicks(e,t){return this._param.getDurationOfTicks(e,t)}getTicksAtTime(e){return this._param.getTicksAtTime(e)}get multiplier(){return this._param.multiplier}set multiplier(e){this._param.multiplier=e}dispose(){return super.dispose(),this._param.dispose(),this}}class Ya extends At{constructor(){super(Z(Ya.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new ph,this._tickOffset=new En,this._ticksAtTime=new En,this._secondsAtTime=new En;const e=Z(Ya.getDefaults(),arguments,["frequency"]);this.frequency=new Ha({context:this.context,units:e.units,value:e.frequency}),Ve(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},At.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,t){const s=this.toSeconds(e);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),xe(t)&&this.setTicksAtTime(t,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(e){const t=this.toSeconds(e);if(this._state.getValueAtTime(t)==="stopped"){const s=this._state.get(t);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(t),this._state.setStateAtTime("stopped",t),this.setTicksAtTime(0,t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}pause(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)==="started"&&(this._state.setStateAtTime("paused",t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t)),this}cancel(e){return e=this.toSeconds(e),this._state.cancel(e),this._tickOffset.cancel(e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getTicksAtTime(e){const t=this.toSeconds(e),s=this._state.getLastState("stopped",t),r=this._ticksAtTime.get(t),i={state:"paused",time:t};this._state.add(i);let o=r||s,a=r?r.ticks:0,c=null;return this._state.forEachBetween(o.time,t+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=i.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(i),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(e){this.setTicksAtTime(e,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(e){const t=this.now(),s=this.frequency.timeToTicks(e,t);this.setTicksAtTime(s,t)}getSecondsAtTime(e){e=this.toSeconds(e);const t=this._state.getLastState("stopped",e),s={state:"paused",time:e};this._state.add(s);const r=this._secondsAtTime.get(e);let i=r||t,o=r?r.seconds:0,a=null;return this._state.forEachBetween(i.time,e+this.sampleTime,c=>{let l=i.time;const u=this._tickOffset.get(c.time);u&&u.time>=i.time&&(o=u.seconds,l=u.time),i.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),i=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(e,t){return t=this.toSeconds(t),this._tickOffset.cancel(t),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(e,t),ticks:e,time:t}),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getStateAtTime(e){return e=this.toSeconds(e),this._state.getValueAtTime(e)}getTimeOfTick(e,t=this.now()){const s=this._tickOffset.get(t),r=this._state.get(t),i=Math.max(s.time,r.time),o=this.frequency.getTicksAtTime(i)+e-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(e,t,s){let r=this._state.get(e);this._state.forEachBetween(e,t,o=>{r&&r.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(r.time,e),o.time-this.sampleTime,s),r=o});let i=null;if(r&&r.state==="started"){const o=Math.max(r.time,e),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(r.time),l=a-c;let u=Math.ceil(l)-l;u=an(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const r=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,r);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(e,t,(s,r)=>{this.callback(s,r)}))}getStateAtTime(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}Fo.mixin(Ki);class gh extends rs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Z(gh.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(t=>{this._loadingCount++;const s=e.urls[t];this.add(t,s,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:Oe,onload:Oe,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return me(this.has(e),`ToneAudioBuffers has no buffer named: ${e}`),this._buffers.get(e.toString())}_bufferLoaded(e){this._loadingCount--,this._loadingCount===0&&e&&e()}get loaded(){return Array.from(this._buffers).every(([e,t])=>t.loaded)}add(e,t,s=Oe,r=Oe){return Zn(t)?(this.baseUrl&&t.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(e.toString(),new Ae(this.baseUrl+t,s,r))):this._buffers.set(e.toString(),new Ae(t,s,r)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class Sr extends Fi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(e){return this._getPPQ()*e}_secondsToUnits(e){return Math.floor(e/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(e){return e}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class lR extends At{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new En,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(e,t){return this._events.add({callback:e,time:this.toSeconds(t)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(e){return this._events.cancel(this.toSeconds(e)),this}_drawLoop(){const e=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=e;){const t=this._events.shift();t&&e-t.time<=this.expiration&&t.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}Cc(n=>{n.draw=new lR({context:n})});Sc(n=>{n.draw.dispose()});class uR extends rs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){me(xe(e.time),"Events must have a time property"),me(xe(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let t=new hR(e.time,e.time+e.duration,e);for(this._root===null?this._root=t:this._root.insert(t),this._length++;t!==null;)t.updateHeight(),t.updateMax(),this._rebalance(t),t=t.parent;return this}remove(e){if(this._root!==null){const t=[];this._root.search(e.time,t);for(const s of t)if(s.event===e){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(e){return this.forEachFrom(e,t=>this.remove(t)),this}_setRoot(e){this._root=e,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(e,t){e.parent!==null?(e.isLeftChild()?e.parent.left=t:e.parent.right=t,this._rebalance(e.parent)):this._setRoot(t)}_removeNode(e){if(e.left===null&&e.right===null)this._replaceNodeInParent(e,null);else if(e.right===null)this._replaceNodeInParent(e,e.left);else if(e.left===null)this._replaceNodeInParent(e,e.right);else{const t=e.getBalance();let s,r=null;if(t>0)if(e.left.right===null)s=e.left,s.right=e.right,r=s;else{for(s=e.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,r=s.parent,s.left=e.left,s.right=e.right)}else if(e.right.left===null)s=e.right,s.left=e.left,r=s;else{for(s=e.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,r=s.parent,s.left=e.left,s.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=s:e.parent.right=s:this._setRoot(s),r&&this._rebalance(r)}e.dispose()}_rotateLeft(e){const t=e.parent,s=e.isLeftChild(),r=e.right;r&&(e.right=r.left,r.left=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rotateRight(e){const t=e.parent,s=e.isLeftChild(),r=e.left;r&&(e.left=r.right,r.right=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rebalance(e){const t=e.getBalance();t>1&&e.left?e.left.getBalance()<0?this._rotateLeft(e.left):this._rotateRight(e):t<-1&&e.right&&(e.right.getBalance()>0?this._rotateRight(e.right):this._rotateLeft(e))}get(e){if(this._root!==null){const t=[];if(this._root.search(e,t),t.length>0){let s=t[0];for(let r=1;rs.low&&(s=t[r]);return s.event}}return null}forEach(e){if(this._root!==null){const t=[];this._root.traverse(s=>t.push(s)),t.forEach(s=>{s.event&&e(s.event)})}return this}forEachAtTime(e,t){if(this._root!==null){const s=[];this._root.search(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}forEachFrom(e,t){if(this._root!==null){const s=[];this._root.searchAfter(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(e=>e.dispose()),this._root=null,this}}class hR{constructor(e,t,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=e,this.high=t,this.max=this.high}insert(e){e.low<=this.low?this.left===null?this.left=e:this.left.insert(e):this.right===null?this.right=e:this.right.insert(e)}search(e,t){e>this.max||(this.left!==null&&this.left.search(e,t),this.low<=e&&this.high>e&&t.push(this),!(this.low>e)&&this.right!==null&&this.right.search(e,t))}searchAfter(e,t){this.low>=e&&(t.push(this),this.left!==null&&this.left.searchAfter(e,t)),this.right!==null&&this.right.searchAfter(e,t)}traverse(e){e(this),this.left!==null&&this.left.traverse(e),this.right!==null&&this.right.traverse(e)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let e=0;return this.left!==null&&this.right!==null?e=this.left.height-this.right.height:this.left!==null?e=this.left.height+1:this.right!==null&&(e=-(this.right.height+1)),e}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(e){this._left=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(e){this._right=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Ts extends ue{constructor(){super(Z(Ts.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Z(Ts.getDefaults(),arguments,["volume"]);this.input=this.output=new Fe({context:this.context,gain:e.volume,units:"decibels"}),this.volume=this.output.gain,Ve(this,"volume"),this._unmutedVolume=e.volume,this.mute=e.mute}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(e){!this.mute&&e?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!e&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let dR=class eu extends ue{constructor(){super(Z(eu.getDefaults(),arguments)),this.name="Destination",this.input=new Ts({context:this.context}),this.output=new Fe({context:this.context}),this.volume=this.input.volume;const e=Z(eu.getDefaults(),arguments);Zi(this.input,this.output,this.context.rawContext.destination),this.mute=e.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(e){this.input.mute=e}chain(...e){return this.input.disconnect(),e.unshift(this.input),e.push(this.output),Zi(...e),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};Cc(n=>{n.destination=new dR({context:n})});Sc(n=>{n.destination.dispose()});class fR extends rs{constructor(e){super(),this.name="TimelineValue",this._timeline=new En({memory:10}),this._initialValue=e}set(e,t){return this._timeline.add({value:e,time:t}),this}get(e){const t=this._timeline.get(e);return t?t.value:this._initialValue}}class Kn extends ue{constructor(){super(Object.assign(Z(Kn.getDefaults(),arguments,["context"])))}connect(e,t=0,s=0){return mh(this,e,t,s),this}}class nr extends Kn{constructor(){super(Object.assign(Z(nr.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Z(nr.getDefaults(),arguments,["mapping","length"]);hn(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):$A(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(je.getDefaults(),{length:1024})}setMap(e,t=1024){const s=new Float32Array(t);for(let r=0,i=t;rs.includes(e));me(t,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Qi extends Kn{constructor(){super(Object.assign(Z(Qi.getDefaults(),arguments,["value"]))),this.name="Pow";const e=Z(Qi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new nr({context:this.context,mapping:this._expFunc(e.value),length:8192}),this._exponent=e.value}static getDefaults(){return Object.assign(Kn.getDefaults(),{value:1})}_expFunc(e){return t=>Math.pow(Math.abs(t),e)}get value(){return this._exponent}set value(e){this._exponent=e,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Es{constructor(e,t){this.id=Es._eventId++,this._remainderTime=0;const s=Object.assign(Es.getDefaults(),t);this.transport=e,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:Oe,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(e){if(this.callback){const t=this.transport.bpm.getDurationOfTicks(1,e);this.callback(e+this._remainderTime*t),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Es._eventId=0;class _h extends Es{constructor(e,t){super(e,t),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(_h.getDefaults(),t);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Es.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(e){this._createEvents(e),super.invoke(e)}_createEvent(){return Ba(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Sr(this.context,this._nextTick).toSeconds()):-1}_createEvents(e){Ba(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new Sr(this.context,this._nextTick).toSeconds()))}_restart(e){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const t=this.transport.getTicksAtTime(e);Br(t,this.time)&&(this._nextTick=this.floatTime+Math.ceil((t-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Ji extends At{constructor(){super(Z(Ji.getDefaults(),arguments)),this.name="Transport",this._loop=new fR(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new En,this._repeatedEvents=new uR,this._syncedSignals=[],this._swingAmount=0;const e=Z(Ji.getDefaults(),arguments);this._ppq=e.ppq,this._clock=new Ki({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=e.ppq,this.bpm.setValueAtTime(e.bpm,0),Ve(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(At.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(e,t){if(this._loop.get(e)&&t>=this._loopEnd&&(this.emit("loopEnd",e),this._clock.setTicksAtTime(this._loopStart,e),t=this._loopStart,this.emit("loopStart",e,this._clock.getSecondsAtTime(e)),this.emit("loop",e)),this._swingAmount>0&&t%this._ppq!==0&&t%(this._swingTicks*2)!==0){const s=t%(this._swingTicks*2)/(this._swingTicks*2),r=Math.sin(s*Math.PI)*this._swingAmount;e+=new Sr(this.context,this._swingTicks*2/3).toSeconds()*r}jf(!0),this._timeline.forEachAtTime(t,s=>s.invoke(e)),jf(!1)}schedule(e,t){const s=new Es(this,{callback:e,time:new Fi(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(e,t,s,r=1/0){const i=new _h(this,{callback:e,duration:new ln(this.context,r).toTicks(),interval:new ln(this.context,t).toTicks(),time:new Fi(this.context,s).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(e,t){const s=new Es(this,{callback:e,once:!0,time:new Fi(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}clear(e){if(this._scheduledEvents.hasOwnProperty(e)){const t=this._scheduledEvents[e.toString()];t.timeline.remove(t.event),t.event.dispose(),delete this._scheduledEvents[e.toString()]}return this}_addEvent(e,t){return this._scheduledEvents[e.id.toString()]={event:e,timeline:t},t.add(e),e.id}cancel(e=0){const t=this.toTicks(e);return this._timeline.forEachFrom(t,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(t,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(e,t)=>{t=new Sr(this.context,t).toSeconds(),this.emit("start",e,t)}),this._clock.on("stop",e=>{this.emit("stop",e)}),this._clock.on("pause",e=>{this.emit("pause",e)})}get state(){return this._clock.getStateAtTime(this.now())}start(e,t){this.context.resume();let s;return xe(t)&&(s=this.toTicks(t)),this._clock.start(e,s),this}stop(e){return this._clock.stop(e),this}pause(e){return this._clock.pause(e),this}toggle(e){return e=this.toSeconds(e),this._clock.getStateAtTime(e)!=="started"?this.start(e):this.stop(e),this}get timeSignature(){return this._timeSignature}set timeSignature(e){hn(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new ln(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new ln(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(e){this._loopEnd=this.toTicks(e)}get loop(){return this._loop.get(this.now())}set loop(e){this._loop.set(e,this.now())}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get swing(){return this._swingAmount}set swing(e){this._swingAmount=e}get swingSubdivision(){return new Sr(this.context,this._swingTicks).toNotation()}set swingSubdivision(e){this._swingTicks=this.toTicks(e)}get position(){const e=this.now(),t=this._clock.getTicksAtTime(e);return new Sr(this.context,t).toBarsBeatsSixteenths()}set position(e){const t=this.toTicks(e);this.ticks=t}get seconds(){return this._clock.seconds}set seconds(e){const t=this.now(),s=this._clock.frequency.timeToTicks(e,t);this.ticks=s}get progress(){if(this.loop){const e=this.now();return(this._clock.getTicksAtTime(e)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(e){if(this._clock.ticks!==e){const t=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(t),r=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,t),i=t+r;this.emit("stop",i),this._clock.setTicksAtTime(e,i),this.emit("start",i,this._clock.getSecondsAtTime(i))}else this.emit("ticks",t),this._clock.setTicksAtTime(e,t)}}getTicksAtTime(e){return this._clock.getTicksAtTime(e)}getSecondsAtTime(e){return this._clock.getSecondsAtTime(e)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(e){this._clock.frequency.multiplier=e}nextSubdivision(e){if(e=this.toTicks(e),this.state!=="started")return 0;{const t=this.now(),s=this.getTicksAtTime(t),r=e-s%e;return this._clock.nextTickTime(r,t)}}syncSignal(e,t){const s=this.now();let r=this.bpm,i=1/(60/r.getValueAtTime(s)/this.PPQ),o=[];if(e.units==="time"){const c=.015625/i,l=new Fe(c),u=new Qi(-1),h=new Fe(c);r.chain(l,u,h),r=h,i=1/i,o=[l,u,h]}t||(e.getValueAtTime(s)!==0?t=e.getValueAtTime(s)/i:t=0);const a=new Fe(t);return r.connect(a),a.connect(e._param),o.push(a),this._syncedSignals.push({initial:e.value,nodes:o,signal:e}),e.value=0,this}unsyncSignal(e){for(let t=this._syncedSignals.length-1;t>=0;t--){const s=this._syncedSignals[t];s.signal===e&&(s.nodes.forEach(r=>r.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(t,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),dh(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Fo.mixin(Ji);Cc(n=>{n.transport=new Ji({context:n})});Sc(n=>{n.transport.dispose()});class _t extends ue{constructor(e){super(e),this.input=void 0,this._state=new ph("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=Oe,this._syncedStop=Oe,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Ts({context:this.context,mute:e.mute,volume:e.volume}),this.volume=this._volume.volume,Ve(this,"volume"),this.onstop=e.onstop}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,onstop:Oe,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}_clampToCurrentTime(e){return this._synced?e:Math.max(e,this.context.currentTime)}start(e,t,s){let r=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(r=this._clampToCurrentTime(r),!this._synced&&this._state.getValueAtTime(r)==="started")me(Br(r,this._state.get(r).time),"Start time must be strictly greater than previous start time"),this._state.cancel(r),this._state.setStateAtTime("started",r),this.log("restart",r),this.restart(r,t,s);else if(this.log("start",r),this._state.setStateAtTime("started",r),this._synced){const i=this._state.get(r);i&&(i.offset=this.toSeconds(Mr(t,0)),i.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,t,s)},r);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>r&&this._syncedStart(this.now(),this.context.transport.seconds)}else og(this.context),this._start(r,t,s);return this}stop(e){let t=Ut(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(t=this._clampToCurrentTime(t),this._state.getValueAtTime(t)==="started"||xe(this._state.getNextState("started",t))){if(this.log("stop",t),!this._synced)this._stop(t);else{const s=this.context.transport.schedule(this._stop.bind(this),t);this._scheduled.push(s)}this._state.cancel(t),this._state.setStateAtTime("stopped",t)}return this}restart(e,t,s){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,t,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,t)=>{if(Br(t,0)){const s=this._state.get(t);if(s&&s.state==="started"&&s.time!==t){const r=t-this.toSeconds(s.time);let i;s.duration&&(i=this.toSeconds(s.duration)-r),this._start(e,this.toSeconds(s.offset)+r,i)}}},this._syncedStop=e=>{const t=this.context.transport.getSecondsAtTime(Math.max(e-this.sampleTime,0));this._state.getValueAtTime(t)==="started"&&this._stop(e)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(e=>this.context.transport.clear(e)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=Oe,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class qr extends Wr{constructor(){super(Z(qr.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const e=Z(qr.getDefaults(),arguments,["url","onload"]);ks(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Re({context:this.context,param:this._source.playbackRate,units:"positive",value:e.playbackRate}),this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this._buffer=new Ae(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Wr.getDefaults(),{url:new Ae,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e}get curve(){return this._curve}set curve(e){this._curve=e}start(e,t,s,r=1){me(this.buffer.loaded,"buffer is either not set or not loaded");const i=this.toSeconds(e);this._startGain(i,r),this.loop?t=Mr(t,this.loopStart):t=Mr(t,0);let o=Math.max(this.toSeconds(t),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;Ql(o,a)&&(o=(o-c)%l+c),an(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Ba(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(i,o)),xe(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(i+a)}return this}_stopSource(e){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(e)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(e){this._source.loopStart=this.toSeconds(e)}get loopEnd(){return this._source.loopEnd}set loopEnd(e){this._source.loopEnd=this.toSeconds(e)}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._source.loop}set loop(e){this._source.loop=e,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class eo extends _t{constructor(){super(Z(eo.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const e=Z(eo.getDefaults(),arguments,["type"]);this._playbackRate=e.playbackRate,this.type=e.type,this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut}static getDefaults(){return Object.assign(_t.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(e){if(me(e in zf,"Noise: invalid type: "+e),this._type!==e&&(this._type=e,this.state==="started")){const t=this.now();this._stop(t),this._start(t)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this._source&&(this._source.playbackRate.value=e)}_start(e){const t=zf[this._type];this._source=new qr({url:t,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(e),Math.random()*(t.duration-.001))}_stop(e){this._source&&(this._source.stop(this.toSeconds(e)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(e){this._stop(e),this._start(e)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const br=44100*5,cl=2,Ln={brown:null,pink:null,white:null},zf={get brown(){if(!Ln.brown){const n=[];for(let e=0;ethis.onstop(this)});this._oscillator=s,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(t)}_stop(e){const t=this.toSeconds(e);this._oscillator&&this._oscillator.stop(t)}_restart(e){const t=this.toSeconds(e);return this.log("restart",t),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(t),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return rt._periodicWaveCache.find(t=>t.phase===this._phase&&YA(t.partials,this._partials));{const e=rt._periodicWaveCache.find(t=>t.type===this._type&&t.phase===this._phase);return this._partialCount=e?e.partialCount:this._partialCount,e}}get type(){return this._type}set type(e){this._type=e;const t=["sine","square","sawtooth","triangle"].indexOf(e)!==-1;if(this._phase===0&&t)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=e);else{const s=this._getCachedPeriodicWave();if(xe(s)){const{partials:r,wave:i}=s;this._wave=i,this._partials=r,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[r,i]=this._getRealImaginary(e,this._phase),o=this.context.createPeriodicWave(r,i);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),rt._periodicWaveCache.push({imag:i,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:r,type:this._type,wave:this._wave}),rt._periodicWaveCache.length>100&&rt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(e){this.partialCount&&this._type!=="custom"&&e!=="custom"?this.type=e+this.partialCount:this.type=e}get partialCount(){return this._partialCount}set partialCount(e){pn(e,0);let t=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(t=s[1]),this._type!=="custom")e===0?this.type=t:this.type=t+e.toString();else{const r=new Float32Array(e);this._partials.forEach((i,o)=>r[o]=i),this._partials=Array.from(r),this.type=this._type}}_getRealImaginary(e,t){let r=2048;const i=new Float32Array(r),o=new Float32Array(r);let a=1;if(e==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,r=a,this._partials.length===0)return[i,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(e);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),e=c[1],a=Math.max(a,2),r=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+e)}u!==0?(i[c]=-u*Math.sin(t*c),o[c]=u*Math.cos(t*c)):(i[c]=0,o[c]=0)}return[i,o]}_inverseFFT(e,t,s){let r=0;const i=e.length;for(let o=0;o(e+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Cs extends je{constructor(){super(Object.assign(Z(Cs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Z(Cs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new Fe({context:this.context,minValue:e.minValue,maxValue:e.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class to extends _t{constructor(){super(Z(to.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new pR({context:this.context}),this._modulationNode=new Fe({context:this.context});const e=Z(to.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({context:this.context,units:"positive",value:e.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Ve(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(rt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){this._modulator.restart(e),this._carrier.restart(e)}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class no extends _t{constructor(){super(Z(no.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new Fe({context:this.context,gain:0});const e=Z(no.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({context:this.context,detune:e.detune,frequency:0,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.detune=this._carrier.detune,this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Cs({context:this.context,units:"positive",value:e.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Ve(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(rt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){return this._modulator.restart(e),this._carrier.restart(e),this}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Hr extends _t{constructor(){super(Z(Hr.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new Fe({context:this.context,gain:0}),this._thresh=new nr({context:this.context,mapping:t=>t<=0?-1:1});const e=Z(Hr.getDefaults(),arguments,["frequency","width"]);this.width=new je({context:this.context,units:"audioRange",value:e.width}),this._triangle=new rt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Ve(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(_t.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(e){e=this.toSeconds(e),this._triangle.start(e),this._widthGate.gain.setValueAtTime(1,e)}_stop(e){e=this.toSeconds(e),this._triangle.stop(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(0,e)}_restart(e){this._triangle.restart(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(1,e)}get phase(){return this._triangle.phase}set phase(e){this._triangle.phase=e}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(e){this._triangle.type=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class so extends _t{constructor(){super(Z(so.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const e=Z(so.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({context:this.context,units:"cents",value:e.detune}),this._spread=e.spread,this._type=e.type,this._phase=e.phase,this._partials=e.partials,this._partialCount=e.partialCount,this.count=e.count,Ve(this,["frequency","detune"])}static getDefaults(){return Object.assign(rt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(e){e=this.toSeconds(e),this._forEach(t=>t.start(e))}_stop(e){e=this.toSeconds(e),this._forEach(t=>t.stop(e))}_restart(e){this._forEach(t=>t.restart(e))}_forEach(e){for(let t=0;tt.type=e)}get spread(){return this._spread}set spread(e){if(this._spread=e,this._oscillators.length>1){const t=-e/2,s=e/(this._oscillators.length-1);this._forEach((r,i)=>r.detune.value=t+s*i)}}get count(){return this._oscillators.length}set count(e){if(pn(e,1),this._oscillators.length!==e){this._forEach(t=>t.dispose()),this._oscillators=[];for(let t=0;tthis.onstop(this):Oe});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[t]=s}this.spread=this._spread,this.state==="started"&&this._forEach(t=>t.start())}}get phase(){return this._phase}set phase(e){this._phase=e,this._forEach((t,s)=>t.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(e){this._forEach(t=>t.baseType=e),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this._type="custom",this._forEach(t=>t.partials=e))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(e){this._partialCount=e,this._forEach(t=>t.partialCount=e),this._type=this._oscillators[0].type}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class ro extends _t{constructor(){super(Z(ro.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Cs({context:this.context,value:2});const e=Z(ro.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Hr({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new rt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Ve(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(_t.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(e){e=this.toSeconds(e),this._modulator.start(e),this._pulse.start(e)}_stop(e){e=this.toSeconds(e),this._modulator.stop(e),this._pulse.stop(e)}_restart(e){this._modulator.restart(e),this._pulse.restart(e)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(e){this._modulator.phase=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Vf={am:to,fat:so,fm:no,oscillator:rt,pulse:Hr,pwm:ro};class sr extends _t{constructor(){super(Z(sr.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Z(sr.getDefaults(),arguments,["frequency","type"]);this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({context:this.context,units:"cents",value:e.detune}),Ve(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(rt.getDefaults(),no.getDefaults(),to.getDefaults(),so.getDefaults(),Hr.getDefaults(),ro.getDefaults())}_start(e){this._oscillator.start(e)}_stop(e){this._oscillator.stop(e)}_restart(e){return this._oscillator.restart(e),this}get type(){let e="";return["am","fm","fat"].some(t=>this._sourceType===t)&&(e=this._sourceType),e+this._oscillator.type}set type(e){e.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(3)):e==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):e==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=e)}get partials(){return this._oscillator.partials}set partials(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=e)}get partialCount(){return this._oscillator.partialCount}set partialCount(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=e)}set(e){return Reflect.has(e,"type")&&e.type&&(this.type=e.type),super.set(e),this}_createNewOscillator(e){if(e!==this._sourceType){this._sourceType=e;const t=Vf[e],s=this.now();if(this._oscillator){const r=this._oscillator;r.stop(s),this.context.setTimeout(()=>r.dispose(),this.blockTime)}this._oscillator=new t({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(s)}}get phase(){return this._oscillator.phase}set phase(e){this._oscillator.phase=e}get sourceType(){return this._sourceType}set sourceType(e){let t="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(t=this._oscillator.type),e==="fm"?this.type="fm"+t:e==="am"?this.type="am"+t:e==="fat"?this.type="fat"+t:e==="oscillator"?this.type=t:e==="pulse"?this.type="pulse":e==="pwm"&&(this.type="pwm")}_getOscType(e,t){return e instanceof Vf[t]}get baseType(){return this._oscillator.baseType}set baseType(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&e!=="pulse"&&e!=="pwm"&&(this._oscillator.baseType=e)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(e){this._getOscType(this._oscillator,"fat")&&ws(e)&&(this._oscillator.count=e)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(e){this._getOscType(this._oscillator,"fat")&&ws(e)&&(this._oscillator.spread=e)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(e){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&Zn(e)&&(this._oscillator.modulationType=e)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class yh extends je{constructor(){super(Object.assign(Z(yh.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new Fe({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Zi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Xa extends Kn{constructor(){super(Object.assign(Z(Xa.getDefaults(),arguments,["min","max"]))),this.name="Scale";const e=Z(Xa.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Cs({context:this.context,value:e.max-e.min}),this._add=this.output=new yh({context:this.context,value:e.min}),this._min=e.min,this._max=e.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(Kn.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(e){this._min=e,this._setRange()}get max(){return this._max}set max(e){this._max=e,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function _g(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(i,n,e),t.set(this,i)}})}}function is(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(this.toSeconds(i),n,e),t.set(this,i)}})}}class io extends _t{constructor(){super(Z(io.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const e=Z(io.getDefaults(),arguments,["url","onload"]);this._buffer=new Ae({onload:this._onload.bind(this,e.onload),onerror:e.onerror,reverse:e.reverse,url:e.url}),this.autostart=e.autostart,this._loop=e.loop,this._loopStart=e.loopStart,this._loopEnd=e.loopEnd,this._playbackRate=e.playbackRate,this.fadeIn=e.fadeIn,this.fadeOut=e.fadeOut}static getDefaults(){return Object.assign(_t.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,playbackRate:1,reverse:!1})}load(e){return $e(this,void 0,void 0,function*(){return yield this._buffer.load(e),this._onload(),this})}_onload(e=Oe){e(),this.autostart&&this.start()}_onSourceEnd(e){this.onstop(this),this._activeSources.delete(e),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(e,t,s){return super.start(e,t,s),this}_start(e,t,s){this._loop?t=Mr(t,this._loopStart):t=Mr(t,0);const r=this.toSeconds(t),i=s;s=Mr(s,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(s);o=o/this._playbackRate,e=this.toSeconds(e);const a=new qr({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(e+o),this._state.setStateAtTime("stopped",e+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&Ut(i)?a.start(e,r):a.start(e,r,o-this.toSeconds(this.fadeOut))}_stop(e){const t=this.toSeconds(e);this._activeSources.forEach(s=>s.stop(t))}restart(e,t,s){return super.restart(e,t,s),this}_restart(e,t,s){var r;(r=[...this._activeSources].pop())===null||r===void 0||r.stop(e),this._start(e,t,s)}seek(e,t){const s=this.toSeconds(t);if(this._state.getValueAtTime(s)==="started"){const r=this.toSeconds(e);this._stop(s),this._start(s,r)}return this}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get loopStart(){return this._loopStart}set loopStart(e){this._loopStart=e,this.buffer.loaded&&pn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopStart=e})}get loopEnd(){return this._loopEnd}set loopEnd(e){this._loopEnd=e,this.buffer.loaded&&pn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopEnd=e})}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._loop}set loop(e){if(this._loop!==e&&(this._loop=e,this._activeSources.forEach(t=>{t.loop=e}),e)){const t=this._state.getNextState("stopped",this.now());t&&this._state.cancel(t.time)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e;const t=this.now(),s=this._state.getNextState("stopped",t);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(r=>r.cancelStop())),this._activeSources.forEach(r=>{r.playbackRate.setValueAtTime(e,t)})}get reverse(){return this._buffer.reverse}set reverse(e){this._buffer.reverse=e}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(e=>e.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}gn([is(0)],io.prototype,"fadeIn",void 0);gn([is(0)],io.prototype,"fadeOut",void 0);class mR extends Kn{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new nr({context:this.context,mapping:e=>Math.abs(e)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class tn extends ue{constructor(){super(Z(tn.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new je({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Z(tn.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=e.attack,this.decay=e.decay,this.sustain=e.sustain,this.release=e.release,this.attackCurve=e.attackCurve,this.releaseCurve=e.releaseCurve,this.decayCurve=e.decayCurve}static getDefaults(){return Object.assign(ue.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(e,t){if(Zn(e))return e;{let s;for(s in ra)if(ra[s][t]===e)return s;return e}}_setCurve(e,t,s){if(Zn(s)&&Reflect.has(ra,s)){const r=ra[s];qs(r)?e!=="_decayCurve"&&(this[e]=r[t]):this[e]=r}else if(hn(s)&&e!=="_decayCurve")this[e]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(e){this._setCurve("_attackCurve","In",e)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(e){this._setCurve("_releaseCurve","Out",e)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(e){this._setCurve("_decayCurve","Out",e)}triggerAttack(e,t=1){this.log("triggerAttack",e,t),e=this.toSeconds(e);let r=this.toSeconds(this.attack);const i=this.toSeconds(this.decay),o=this.getValueAtTime(e);if(o>0){const a=1/r;r=(1-o)/a}if(r0){const s=this.toSeconds(this.release);s{let e,t;const s=[];for(e=0;e<128;e++)s[e]=Math.sin(e/(128-1)*(Math.PI/2));const r=[],i=6.4;for(e=0;e<128-1;e++){t=e/(128-1);const d=Math.sin(t*(Math.PI*2)*i-Math.PI/2)+1;r[e]=d/10+t*.83}r[128-1]=1;const o=[],a=5;for(e=0;e<128;e++)o[e]=Math.ceil(e/(128-1)*a)/a;const c=[];for(e=0;e<128;e++)t=e/(128-1),c[e]=.5*(1-Math.cos(Math.PI*t));const l=[];for(e=0;e<128;e++){t=e/(128-1);const d=Math.pow(t,3)*4+.2,f=Math.cos(d*Math.PI*2*t);l[e]=Math.abs(f*(1-t))}function u(d){const f=new Array(d.length);for(let g=0;gthis._original_triggerRelease(t);const e=Z(rr.getDefaults(),arguments);this._volume=this.output=new Ts({context:this.context,volume:e.volume}),this.volume=this._volume.volume,Ve(this,"volume")}static getDefaults(){return Object.assign(ue.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let e=!1;return this._synced||(this._synced=!0,e=!0),e}_syncMethod(e,t){const s=this["_original_"+e]=this[e];this[e]=(...r)=>{const i=r[t],o=this.context.transport.schedule(a=>{r[t]=a,s.apply(this,r)},i);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(e=>this.context.transport.clear(e)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(e,t,s,r){const i=this.toSeconds(s),o=this.toSeconds(t);return this.triggerAttack(e,i,r),this.triggerRelease(i+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class Qn extends rr{constructor(){super(Z(Qn.getDefaults(),arguments));const e=Z(Qn.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(rr.getDefaults(),{detune:0,onsilence:Oe,portamento:0})}triggerAttack(e,t,s=1){this.log("triggerAttack",e,t,s);const r=this.toSeconds(t);return this._triggerEnvelopeAttack(r,s),this.setNote(e,r),this}triggerRelease(e){this.log("triggerRelease",e);const t=this.toSeconds(e);return this._triggerEnvelopeRelease(t),this}setNote(e,t){const s=this.toSeconds(t),r=e instanceof Zt?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const i=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,i,s)}else this.frequency.setValueAtTime(r,s);return this}}gn([is(0)],Qn.prototype,"portamento",void 0);class Rc extends tn{constructor(){super(Z(Rc.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new Fe({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class oo extends Qn{constructor(){super(Z(oo.getDefaults(),arguments)),this.name="Synth";const e=Z(oo.getDefaults(),arguments);this.oscillator=new sr(Object.assign({context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)},e.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Rc(Object.assign({context:this.context},e.envelope)),this.oscillator.chain(this.envelope,this.output),Ve(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(Qn.getDefaults(),{envelope:Object.assign(Cr(tn.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(Cr(sr.getDefaults(),[...Object.keys(_t.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,t){if(this.envelope.triggerAttack(e,t),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class ao extends ue{constructor(){super(Z(ao.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const e=Z(ao.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new Re({context:this.context,units:"number",value:e.Q,param:this._filter.Q}),this.frequency=new Re({context:this.context,units:"frequency",value:e.frequency,param:this._filter.frequency}),this.detune=new Re({context:this.context,units:"cents",value:e.detune,param:this._filter.detune}),this.gain=new Re({context:this.context,units:"decibels",convert:!1,value:e.gain,param:this._filter.gain}),this.type=e.type}static getDefaults(){return Object.assign(ue.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(e){me(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(e)!==-1,`Invalid filter type: ${e}`),this._filter.type=e}getFrequencyResponse(e=128){const t=new Float32Array(e);for(let o=0;os.type=e)}get rolloff(){return this._rolloff}set rolloff(e){const t=ws(e)?e:parseInt(e,10),s=[-12,-24,-48,-96];let r=s.indexOf(t);me(r!==-1,`rolloff can only be ${s.join(", ")}`),r+=1,this._rolloff=t,this.input.disconnect(),this._filters.forEach(i=>i.disconnect()),this._filters=new Array(r);for(let i=0;i1);return this._filters.forEach(()=>{t.getFrequencyResponse(e).forEach((i,o)=>s[o]*=i)}),t.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(e=>{e.dispose()}),dh(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class co extends tn{constructor(){super(Z(co.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const e=Z(co.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=e.octaves,this._baseFrequency=this.toFrequency(e.baseFrequency),this._exponent=this.input=new Qi({context:this.context,value:e.exponent}),this._scale=this.output=new Xa({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(tn.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(e){const t=this.toFrequency(e);pn(t,0),this._baseFrequency=t,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(e){this._octaves=e,this._scale.max=this._baseFrequency*Math.pow(2,e)}get exponent(){return this._exponent.value}set exponent(e){this._exponent.value=e}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class lo extends Qn{constructor(){super(Z(lo.getDefaults(),arguments)),this.name="MonoSynth";const e=Z(lo.getDefaults(),arguments);this.oscillator=new sr(Object.assign(e.oscillator,{context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new Yr(Object.assign(e.filter,{context:this.context})),this.filterEnvelope=new co(Object.assign(e.filterEnvelope,{context:this.context})),this.envelope=new Rc(Object.assign(e.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Ve(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(Qn.getDefaults(),{envelope:Object.assign(Cr(tn.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(Cr(Yr.getDefaults(),Object.keys(ue.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(Cr(co.getDefaults(),Object.keys(ue.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(Cr(sr.getDefaults(),Object.keys(_t.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(e,t=1){if(this.envelope.triggerAttack(e,t),this.filterEnvelope.triggerAttack(e),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.filterEnvelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class uo extends oo{constructor(){super(Z(uo.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const e=Z(uo.getDefaults(),arguments);this.pitchDecay=e.pitchDecay,this.octaves=e.octaves,Ve(this,["oscillator","envelope"])}static getDefaults(){return Pr(Qn.getDefaults(),oo.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(e,t){const s=this.toSeconds(t),r=this.toFrequency(e instanceof Zt?e.toFrequency():e),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,s),this.oscillator.frequency.exponentialRampToValueAtTime(r,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}gn([_g(0)],uo.prototype,"octaves",void 0);gn([is(0)],uo.prototype,"pitchDecay",void 0);const yg=new Set;function vh(n){yg.add(n)}function vg(n,e){const t=`registerProcessor("${n}", ${e})`;yg.add(t)}const gR=` + */class rs{constructor(){this.debug=!1,this._wasDisposed=!1}static getDefaults(){return{}}log(...e){(this.debug||Hs&&this.toString()===Hs.TONE_DEBUG_CLASS)&&jA(this,...e)}dispose(){return this._wasDisposed=!0,this}get disposed(){return this._wasDisposed}toString(){return this.name}}rs.version=mm;const uh=1e-6;function Br(n,e){return n>e+uh}function Ql(n,e){return Br(n,e)||an(n,e)}function Ba(n,e){return n+uhthis.memory){const t=this.length-this.memory;this._timeline.splice(0,t)}return this}remove(e){const t=this._timeline.indexOf(e);return t!==-1&&this._timeline.splice(t,1),this}get(e,t="time"){const s=this._search(e,t);return s!==-1?this._timeline[s]:null}peek(){return this._timeline[0]}shift(){return this._timeline.shift()}getAfter(e,t="time"){const s=this._search(e,t);return s+10&&this._timeline[t-1].time=0?this._timeline[s-1]:null}cancel(e){if(this._timeline.length>1){let t=this._search(e);if(t>=0)if(an(this._timeline[t].time,e)){for(let s=t;s>=0&&an(this._timeline[s].time,e);s--)t=s;this._timeline=this._timeline.slice(0,t)}else this._timeline=this._timeline.slice(0,t+1);else this._timeline=[]}else this._timeline.length===1&&Ql(this._timeline[0].time,e)&&(this._timeline=[]);return this}cancelBefore(e){const t=this._search(e);return t>=0&&(this._timeline=this._timeline.slice(t+1)),this}previousEvent(e){const t=this._timeline.indexOf(e);return t>0?this._timeline[t-1]:null}_search(e,t="time"){if(this._timeline.length===0)return-1;let s=0;const r=this._timeline.length;let i=r;if(r>0&&this._timeline[r-1][t]<=e)return r-1;for(;s=0&&this._timeline[s].time>=e;)s--;return this._iterate(t,s+1),this}forEachAtTime(e,t){const s=this._search(e);if(s!==-1&&an(this._timeline[s].time,e)){let r=s;for(let i=s;i>=0&&an(this._timeline[i].time,e);i--)r=i;this._iterate(i=>{t(i)},r,s)}return this}dispose(){return super.dispose(),this._timeline=[],this}};const dg=[];function Cc(n){dg.push(n)}function ZA(n){dg.forEach(e=>e(n))}const fg=[];function Sc(n){fg.push(n)}function KA(n){fg.forEach(e=>e(n))}class Fo extends rs{constructor(){super(...arguments),this.name="Emitter"}on(e,t){return e.split(/\W+/).forEach(r=>{Bt(this._events)&&(this._events={}),this._events.hasOwnProperty(r)||(this._events[r]=[]),this._events[r].push(t)}),this}once(e,t){const s=(...r)=>{t(...r),this.off(e,s)};return this.on(e,s),this}off(e,t){return e.split(/\W+/).forEach(r=>{if(Bt(this._events)&&(this._events={}),this._events.hasOwnProperty(r))if(Bt(t))this._events[r]=[];else{const i=this._events[r];for(let o=i.length-1;o>=0;o--)i[o]===t&&i.splice(o,1)}}),this}emit(e,...t){if(this._events&&this._events.hasOwnProperty(e)){const s=this._events[e].slice(0);for(let r=0,i=s.length;r{const s=Object.getOwnPropertyDescriptor(Fo.prototype,t);Object.defineProperty(e.prototype,t,s)})}dispose(){return super.dispose(),this._events=void 0,this}}class pg extends Fo{constructor(){super(...arguments),this.isOffline=!1}toJSON(){return{}}}let hh=class mg extends pg{constructor(){var e,t;super(),this.name="Context",this._constants=new Map,this._timeouts=new En,this._timeoutIds=0,this._initialized=!1,this._closeStarted=!1,this.isOffline=!1,this._workletPromise=null;const s=Z(mg.getDefaults(),arguments,["context"]);s.context?(this._context=s.context,this._latencyHint=((e=arguments[0])===null||e===void 0?void 0:e.latencyHint)||""):(this._context=zA({latencyHint:s.latencyHint}),this._latencyHint=s.latencyHint),this._ticker=new WA(this.emit.bind(this,"tick"),s.clockSource,s.updateInterval,this._context.sampleRate),this.on("tick",this._timeoutLoop.bind(this)),this._context.onstatechange=()=>{this.emit("statechange",this.state)},this[!((t=arguments[0])===null||t===void 0)&&t.hasOwnProperty("updateInterval")?"_lookAhead":"lookAhead"]=s.lookAhead}static getDefaults(){return{clockSource:"worker",latencyHint:"interactive",lookAhead:.1,updateInterval:.05}}initialize(){return this._initialized||(ZA(this),this._initialized=!0),this}createAnalyser(){return this._context.createAnalyser()}createOscillator(){return this._context.createOscillator()}createBufferSource(){return this._context.createBufferSource()}createBiquadFilter(){return this._context.createBiquadFilter()}createBuffer(e,t,s){return this._context.createBuffer(e,t,s)}createChannelMerger(e){return this._context.createChannelMerger(e)}createChannelSplitter(e){return this._context.createChannelSplitter(e)}createConstantSource(){return this._context.createConstantSource()}createConvolver(){return this._context.createConvolver()}createDelay(e){return this._context.createDelay(e)}createDynamicsCompressor(){return this._context.createDynamicsCompressor()}createGain(){return this._context.createGain()}createIIRFilter(e,t){return this._context.createIIRFilter(e,t)}createPanner(){return this._context.createPanner()}createPeriodicWave(e,t,s){return this._context.createPeriodicWave(e,t,s)}createStereoPanner(){return this._context.createStereoPanner()}createWaveShaper(){return this._context.createWaveShaper()}createMediaStreamSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamSource(e)}createMediaElementSource(e){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaElementSource(e)}createMediaStreamDestination(){return me(Tr(this._context),"Not available if OfflineAudioContext"),this._context.createMediaStreamDestination()}decodeAudioData(e){return this._context.decodeAudioData(e)}get currentTime(){return this._context.currentTime}get state(){return this._context.state}get sampleRate(){return this._context.sampleRate}get listener(){return this.initialize(),this._listener}set listener(e){me(!this._initialized,"The listener cannot be set after initialization."),this._listener=e}get transport(){return this.initialize(),this._transport}set transport(e){me(!this._initialized,"The transport cannot be set after initialization."),this._transport=e}get draw(){return this.initialize(),this._draw}set draw(e){me(!this._initialized,"Draw cannot be set after initialization."),this._draw=e}get destination(){return this.initialize(),this._destination}set destination(e){me(!this._initialized,"The destination cannot be set after initialization."),this._destination=e}createAudioWorkletNode(e,t){return BA(this.rawContext,e,t)}addAudioWorkletModule(e){return $e(this,void 0,void 0,function*(){me(xe(this.rawContext.audioWorklet),"AudioWorkletNode is only available in a secure context (https or localhost)"),this._workletPromise||(this._workletPromise=this.rawContext.audioWorklet.addModule(e)),yield this._workletPromise})}workletsAreReady(){return $e(this,void 0,void 0,function*(){(yield this._workletPromise)?this._workletPromise:Promise.resolve()})}get updateInterval(){return this._ticker.updateInterval}set updateInterval(e){this._ticker.updateInterval=e}get clockSource(){return this._ticker.type}set clockSource(e){this._ticker.type=e}get lookAhead(){return this._lookAhead}set lookAhead(e){this._lookAhead=e,this.updateInterval=e?e/2:.01}get latencyHint(){return this._latencyHint}get rawContext(){return this._context}now(){return this._context.currentTime+this._lookAhead}immediate(){return this._context.currentTime}resume(){return Tr(this._context)?this._context.resume():Promise.resolve()}close(){return $e(this,void 0,void 0,function*(){Tr(this._context)&&this.state!=="closed"&&!this._closeStarted&&(this._closeStarted=!0,yield this._context.close()),this._initialized&&KA(this)})}getConstant(e){if(this._constants.has(e))return this._constants.get(e);{const t=this._context.createBuffer(1,128,this._context.sampleRate),s=t.getChannelData(0);for(let i=0;ithis._constants[e].disconnect()),this.close(),this}_timeoutLoop(){const e=this.now();let t=this._timeouts.peek();for(;this._timeouts.length&&t&&t.time<=e;)t.callback(),this._timeouts.shift(),t=this._timeouts.peek()}setTimeout(e,t){this._timeoutIds++;const s=this.now();return this._timeouts.add({callback:e,id:this._timeoutIds,time:s+t}),this._timeoutIds}clearTimeout(e){return this._timeouts.forEach(t=>{t.id===e&&this._timeouts.remove(t)}),this}clearInterval(e){return this.clearTimeout(e)}setInterval(e,t){const s=++this._timeoutIds,r=()=>{const i=this.now();this._timeouts.add({callback:()=>{e(),r()},id:s,time:i+t})};return r(),s}};class QA extends pg{constructor(){super(...arguments),this.lookAhead=0,this.latencyHint=0,this.isOffline=!1}createAnalyser(){return{}}createOscillator(){return{}}createBufferSource(){return{}}createBiquadFilter(){return{}}createBuffer(e,t,s){return{}}createChannelMerger(e){return{}}createChannelSplitter(e){return{}}createConstantSource(){return{}}createConvolver(){return{}}createDelay(e){return{}}createDynamicsCompressor(){return{}}createGain(){return{}}createIIRFilter(e,t){return{}}createPanner(){return{}}createPeriodicWave(e,t,s){return{}}createStereoPanner(){return{}}createWaveShaper(){return{}}createMediaStreamSource(e){return{}}createMediaElementSource(e){return{}}createMediaStreamDestination(){return{}}decodeAudioData(e){return Promise.resolve({})}createAudioWorkletNode(e,t){return{}}get rawContext(){return{}}addAudioWorkletModule(e){return $e(this,void 0,void 0,function*(){return Promise.resolve()})}resume(){return Promise.resolve()}setTimeout(e,t){return 0}clearTimeout(e){return this}setInterval(e,t){return 0}clearInterval(e){return this}getConstant(e){return{}}get currentTime(){return 0}get state(){return{}}get sampleRate(){return 0}get listener(){return{}}get transport(){return{}}get draw(){return{}}set draw(e){}get destination(){return{}}set destination(e){}now(){return 0}immediate(){return 0}}function Ue(n,e){hn(e)?e.forEach(t=>Ue(n,t)):Object.defineProperty(n,e,{enumerable:!0,writable:!1})}function dh(n,e){hn(e)?e.forEach(t=>dh(n,t)):Object.defineProperty(n,e,{writable:!0})}const Oe=()=>{};class Ae extends rs{constructor(){super(),this.name="ToneAudioBuffer",this.onload=Oe;const e=Z(Ae.getDefaults(),arguments,["url","onload","onerror"]);this.reverse=e.reverse,this.onload=e.onload,Zn(e.url)?this.load(e.url).catch(e.onerror):e.url&&this.set(e.url)}static getDefaults(){return{onerror:Oe,onload:Oe,reverse:!1}}get sampleRate(){return this._buffer?this._buffer.sampleRate:cn().sampleRate}set(e){return e instanceof Ae?e.loaded?this._buffer=e.get():e.onload=()=>{this.set(e),this.onload(this)}:this._buffer=e,this._reversed&&this._reverse(),this}get(){return this._buffer}load(e){return $e(this,void 0,void 0,function*(){const t=Ae.load(e).then(s=>{this.set(s),this.onload(this)});Ae.downloads.push(t);try{yield t}finally{const s=Ae.downloads.indexOf(t);Ae.downloads.splice(s,1)}return this})}dispose(){return super.dispose(),this._buffer=void 0,this}fromArray(e){const t=hn(e)&&e[0].length>0,s=t?e.length:1,r=t?e[0].length:e.length,i=cn(),o=i.createBuffer(s,r,i.sampleRate),a=!t&&s===1?[e]:e;for(let c=0;cr/s),this.fromArray(t)}return this}toArray(e){if(ws(e))return this.getChannelData(e);if(this.numberOfChannels===1)return this.toArray(0);{const t=[];for(let s=0;s0}get duration(){return this._buffer?this._buffer.duration:0}get length(){return this._buffer?this._buffer.length:0}get numberOfChannels(){return this._buffer?this._buffer.numberOfChannels:0}get reverse(){return this._reversed}set reverse(e){this._reversed!==e&&(this._reversed=e,this._reverse())}static fromArray(e){return new Ae().fromArray(e)}static fromUrl(e){return $e(this,void 0,void 0,function*(){return yield new Ae().load(e)})}static load(e){return $e(this,void 0,void 0,function*(){const t=e.match(/\[([^\]\[]+\|.+)\]$/);if(t){const c=t[1].split("|");let l=c[0];for(const u of c)if(Ae.supportsType(u)){l=u;break}e=e.replace(t[0],l)}const s=Ae.baseUrl===""||Ae.baseUrl.endsWith("/")?Ae.baseUrl:Ae.baseUrl+"/",r=document.createElement("a");r.href=s+e,r.pathname=(r.pathname+r.hash).split("/").map(encodeURIComponent).join("/");const i=yield fetch(r.href);if(!i.ok)throw new Error(`could not load url: ${e}`);const o=yield i.arrayBuffer();return yield cn().decodeAudioData(o)})}static supportsType(e){const t=e.split("."),s=t[t.length-1];return document.createElement("audio").canPlayType("audio/"+s)!==""}static loaded(){return $e(this,void 0,void 0,function*(){for(yield Promise.resolve();Ae.downloads.length;)yield Ae.downloads[0]})}}Ae.baseUrl="";Ae.downloads=[];class Oc extends hh{constructor(){super({clockSource:"offline",context:fa(arguments[0])?arguments[0]:VA(arguments[0],arguments[1]*arguments[2],arguments[2]),lookAhead:0,updateInterval:fa(arguments[0])?128/arguments[0].sampleRate:128/arguments[2]}),this.name="OfflineContext",this._currentTime=0,this.isOffline=!0,this._duration=fa(arguments[0])?arguments[0].length/arguments[0].sampleRate:arguments[1]}now(){return this._currentTime}get currentTime(){return this._currentTime}_renderClock(e){return $e(this,void 0,void 0,function*(){let t=0;for(;this._duration-this._currentTime>=0;){this.emit("tick"),this._currentTime+=128/this.sampleRate,t++;const s=Math.floor(this.sampleRate/128);e&&t%s===0&&(yield new Promise(r=>setTimeout(r,1)))}})}render(e=!0){return $e(this,void 0,void 0,function*(){yield this.workletsAreReady(),yield this._renderClock(e);const t=yield this._context.startRendering();return new Ae(t)})}close(){return Promise.resolve()}}const gg=new QA;let Vs=gg;function cn(){return Vs===gg&&UA&&JA(new hh),Vs}function JA(n,e=!1){e&&Vs.dispose(),Tr(n)?Vs=new hh(n):fa(n)?Vs=new Oc(n):Vs=n}function eR(){return Vs.resume()}if(Hs&&!Hs.TONE_SILENCE_LOGGING){const e=` * Tone.js v${mm} * `;console.log(`%c${e}`,"background: #000; color: #fff")}function tR(n){return Math.pow(10,n/20)}function nR(n){return 20*(Math.log(n)/Math.LN10)}function _g(n){return Math.pow(2,n/12)}let Ac=440;function sR(){return Ac}function rR(n){Ac=n}function Jl(n){return Math.round(yg(n))}function yg(n){return 69+12*Math.log2(n/Ac)}function iR(n){return Ac*Math.pow(2,(n-69)/12)}class fh extends rs{constructor(e,t,s){super(),this.defaultUnits="s",this._val=t,this._units=s,this.context=e,this._expressions=this._getExpressions()}_getExpressions(){return{hz:{method:e=>this._frequencyToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)hz$/i},i:{method:e=>this._ticksToUnits(parseInt(e,10)),regexp:/^(\d+)i$/i},m:{method:e=>this._beatsToUnits(parseInt(e,10)*this._getTimeSignature()),regexp:/^(\d+)m$/i},n:{method:(e,t)=>{const s=parseInt(e,10),r=t==="."?1.5:1;return s===1?this._beatsToUnits(this._getTimeSignature())*r:this._beatsToUnits(4/s)*r},regexp:/^(\d+)n(\.?)$/i},number:{method:e=>this._expressions[this.defaultUnits].method.call(this,e),regexp:/^(\d+(?:\.\d+)?)$/},s:{method:e=>this._secondsToUnits(parseFloat(e)),regexp:/^(\d+(?:\.\d+)?)s$/},samples:{method:e=>parseInt(e,10)/this.context.sampleRate,regexp:/^(\d+)samples$/},t:{method:e=>{const t=parseInt(e,10);return this._beatsToUnits(8/(Math.floor(t)*3))},regexp:/^(\d+)t$/i},tr:{method:(e,t,s)=>{let r=0;return e&&e!=="0"&&(r+=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r+=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r+=this._beatsToUnits(parseFloat(s)/4)),r},regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?$/}}}valueOf(){if(this._val instanceof fh&&this.fromType(this._val),Bt(this._val))return this._noArg();if(Zn(this._val)&&Bt(this._units)){for(const e in this._expressions)if(this._expressions[e].regexp.test(this._val.trim())){this._units=e;break}}else if(qs(this._val)){let e=0;for(const t in this._val)if(xe(this._val[t])){const s=this._val[t],r=new this.constructor(this.context,t).valueOf()*s;e+=r}return e}if(xe(this._units)){const e=this._expressions[this._units],t=this._val.toString().trim().match(e.regexp);return t?e.method.apply(this,t.slice(1)):e.method.call(this,this._val)}else return Zn(this._val)?parseFloat(this._val):this._val}_frequencyToUnits(e){return 1/e}_beatsToUnits(e){return 60/this._getBpm()*e}_secondsToUnits(e){return e}_ticksToUnits(e){return e*this._beatsToUnits(1)/this._getPPQ()}_noArg(){return this._now()}_getBpm(){return this.context.transport.bpm.value}_getTimeSignature(){return this.context.transport.timeSignature}_getPPQ(){return this.context.transport.PPQ}fromType(e){switch(this._units=void 0,this.defaultUnits){case"s":this._val=e.toSeconds();break;case"i":this._val=e.toTicks();break;case"hz":this._val=e.toFrequency();break;case"midi":this._val=e.toMidi();break}return this}toFrequency(){return 1/this.toSeconds()}toSamples(){return this.toSeconds()*this.context.sampleRate}toMilliseconds(){return this.toSeconds()*1e3}}class ln extends fh{constructor(){super(...arguments),this.name="TimeClass"}_getExpressions(){return Object.assign(super._getExpressions(),{now:{method:e=>this._now()+new this.constructor(this.context,e).valueOf(),regexp:/^\+(.+)/},quantize:{method:e=>{const t=new ln(this.context,e).valueOf();return this._secondsToUnits(this.context.transport.nextSubdivision(t))},regexp:/^@(.+)/}})}quantize(e,t=1){const s=new this.constructor(this.context,e).valueOf(),r=this.valueOf(),a=Math.round(r/s)*s-r;return r+a*t}toNotation(){const e=this.toSeconds(),t=["1m"];for(let i=1;i<9;i++){const o=Math.pow(2,i);t.push(o+"n."),t.push(o+"n"),t.push(o+"t")}t.push("0");let s=t[0],r=new ln(this.context,t[0]).toSeconds();return t.forEach(i=>{const o=new ln(this.context,i).toSeconds();Math.abs(o-e)3&&(r=parseFloat(parseFloat(i).toFixed(3))),[s,t,r].join(":")}toTicks(){const e=this._beatsToUnits(1);return this.valueOf()/e*this._getPPQ()}toSeconds(){return this.valueOf()}toMidi(){return Jl(this.toFrequency())}_now(){return this.context.now()}}class Kt extends ln{constructor(){super(...arguments),this.name="Frequency",this.defaultUnits="hz"}static get A4(){return sR()}static set A4(e){rR(e)}_getExpressions(){return Object.assign({},super._getExpressions(),{midi:{regexp:/^(\d+(?:\.\d+)?midi)/,method(e){return this.defaultUnits==="midi"?e:Kt.mtof(e)}},note:{regexp:/^([a-g]{1}(?:b|#|##|x|bb|###|#x|x#|bbb)?)(-?[0-9]+)/i,method(e,t){const r=oR[e.toLowerCase()]+(parseInt(t,10)+1)*12;return this.defaultUnits==="midi"?r:Kt.mtof(r)}},tr:{regexp:/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?):?(\d+(?:\.\d+)?)?/,method(e,t,s){let r=1;return e&&e!=="0"&&(r*=this._beatsToUnits(this._getTimeSignature()*parseFloat(e))),t&&t!=="0"&&(r*=this._beatsToUnits(parseFloat(t))),s&&s!=="0"&&(r*=this._beatsToUnits(parseFloat(s)/4)),r}}})}transpose(e){return new Kt(this.context,this.valueOf()*_g(e))}harmonize(e){return e.map(t=>this.transpose(t))}toMidi(){return Jl(this.valueOf())}toNote(){const e=this.toFrequency(),t=Math.log2(e/Kt.A4);let s=Math.round(12*t)+57;const r=Math.floor(s/12);return r<0&&(s+=-12*r),aR[s%12]+r.toString()}toSeconds(){return 1/super.toSeconds()}toTicks(){const e=this._beatsToUnits(1),t=this.valueOf()/e;return Math.floor(t*this._getPPQ())}_noArg(){return 0}_frequencyToUnits(e){return e}_ticksToUnits(e){return 1/(e*60/(this._getBpm()*this._getPPQ()))}_beatsToUnits(e){return 1/super._beatsToUnits(e)}_secondsToUnits(e){return 1/e}static mtof(e){return iR(e)}static ftom(e){return Jl(e)}}const oR={cbbb:-3,cbb:-2,cb:-1,c:0,"c#":1,cx:2,"c##":2,"c###":3,"cx#":3,"c#x":3,dbbb:-1,dbb:0,db:1,d:2,"d#":3,dx:4,"d##":4,"d###":5,"dx#":5,"d#x":5,ebbb:1,ebb:2,eb:3,e:4,"e#":5,ex:6,"e##":6,"e###":7,"ex#":7,"e#x":7,fbbb:2,fbb:3,fb:4,f:5,"f#":6,fx:7,"f##":7,"f###":8,"fx#":8,"f#x":8,gbbb:4,gbb:5,gb:6,g:7,"g#":8,gx:9,"g##":9,"g###":10,"gx#":10,"g#x":10,abbb:6,abb:7,ab:8,a:9,"a#":10,ax:11,"a##":11,"a###":12,"ax#":12,"a#x":12,bbbb:8,bbb:9,bb:10,b:11,"b#":12,bx:13,"b##":13,"b###":14,"bx#":14,"b#x":14},aR=["C","C#","D","D#","E","F","F#","G","G#","A","A#","B"];class Fi extends ln{constructor(){super(...arguments),this.name="TransportTime"}_now(){return this.context.transport.seconds}}class At extends rs{constructor(){super();const e=Z(At.getDefaults(),arguments,["context"]);this.defaultContext?this.context=this.defaultContext:this.context=e.context}static getDefaults(){return{context:cn()}}now(){return this.context.currentTime+this.context.lookAhead}immediate(){return this.context.currentTime}get sampleTime(){return 1/this.context.sampleRate}get blockTime(){return 128/this.context.sampleRate}toSeconds(e){return LA(e),new ln(this.context,e).toSeconds()}toFrequency(e){return new Kt(this.context,e).toFrequency()}toTicks(e){return new Fi(this.context,e).toTicks()}_getPartialProperties(e){const t=this.get();return Object.keys(t).forEach(s=>{Bt(e[s])&&delete t[s]}),t}get(){const e=GA(this);return Object.keys(e).forEach(t=>{if(Reflect.has(this,t)){const s=this[t];xe(s)&&xe(s.value)&&xe(s.setValueAtTime)?e[t]=s.value:s instanceof At?e[t]=s._getPartialProperties(e[t]):hn(s)||ws(s)||Zn(s)||FA(s)?e[t]=s:delete e[t]}}),e}set(e){return Object.keys(e).forEach(t=>{Reflect.has(this,t)&&xe(this[t])&&(this[t]&&xe(this[t].value)&&xe(this[t].setValueAtTime)?this[t].value!==e[t]&&(this[t].value=e[t]):this[t]instanceof At?this[t].set(e[t]):this[t]=e[t])}),this}}class ph extends En{constructor(e="stopped"){super(),this.name="StateTimeline",this._initial=e,this.setStateAtTime(this._initial,0)}getValueAtTime(e){const t=this.get(e);return t!==null?t.state:this._initial}setStateAtTime(e,t,s){return pn(t,0),this.add(Object.assign({},s,{state:e,time:t})),this}getLastState(e,t){const s=this._search(t);for(let r=s;r>=0;r--){const i=this._timeline[r];if(i.state===e)return i}}getNextState(e,t){const s=this._search(t);if(s!==-1)for(let r=s;r0,"timeConstant must be a number greater than 0");const i=this.toSeconds(t);return this._assertRange(r),me(isFinite(r)&&isFinite(i),`Invalid argument(s) to setTargetAtTime: ${JSON.stringify(e)}, ${JSON.stringify(t)}`),this._events.add({constant:s,time:i,type:"setTargetAtTime",value:r}),this.log(this.units,"setTargetAtTime",e,i,s),this._param.setTargetAtTime(r,i,s),this}setValueCurveAtTime(e,t,s,r=1){s=this.toSeconds(s),t=this.toSeconds(t);const i=this._fromType(e[0])*r;this.setValueAtTime(this._toType(i),t);const o=s/(e.length-1);for(let a=1;a{r.type==="cancelScheduledValues"?e.cancelScheduledValues(r.time):r.type==="setTargetAtTime"?e.setTargetAtTime(r.value,r.time,r.constant):e[r.type](r.value,r.time)}),this}setParam(e){me(this._swappable,"The Param must be assigned as 'swappable' in the constructor");const t=this.input;return t.disconnect(this._param),this.apply(e),this._param=e,t.connect(this._param),this}dispose(){return super.dispose(),this._events.dispose(),this}get defaultValue(){return this._toType(this._param.defaultValue)}_exponentialApproach(e,t,s,r,i){return s+(t-s)*Math.exp(-(i-e)/r)}_linearInterpolate(e,t,s,r,i){return t+(r-t)*((i-e)/(s-e))}_exponentialInterpolate(e,t,s,r,i){return t*Math.pow(r/t,(i-e)/(s-e))}}class ue extends At{constructor(){super(...arguments),this._internalChannels=[]}get numberOfInputs(){return xe(this.input)?tr(this.input)||this.input instanceof Re?1:this.input.numberOfInputs:0}get numberOfOutputs(){return xe(this.output)?this.output.numberOfOutputs:0}_isAudioNode(e){return xe(e)&&(e instanceof ue||ms(e))}_getInternalNodes(){const e=this._internalChannels.slice(0);return this._isAudioNode(this.input)&&e.push(this.input),this._isAudioNode(this.output)&&this.input!==this.output&&e.push(this.output),e}_setChannelProperties(e){this._getInternalNodes().forEach(s=>{s.channelCount=e.channelCount,s.channelCountMode=e.channelCountMode,s.channelInterpretation=e.channelInterpretation})}_getChannelProperties(){const e=this._getInternalNodes();me(e.length>0,"ToneAudioNode does not have any internal nodes");const t=e[0];return{channelCount:t.channelCount,channelCountMode:t.channelCountMode,channelInterpretation:t.channelInterpretation}}get channelCount(){return this._getChannelProperties().channelCount}set channelCount(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCount:e}))}get channelCountMode(){return this._getChannelProperties().channelCountMode}set channelCountMode(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelCountMode:e}))}get channelInterpretation(){return this._getChannelProperties().channelInterpretation}set channelInterpretation(e){const t=this._getChannelProperties();this._setChannelProperties(Object.assign(t,{channelInterpretation:e}))}connect(e,t=0,s=0){return ks(this,e,t,s),this}toDestination(){return this.connect(this.context.destination),this}toMaster(){return lh("toMaster() has been renamed toDestination()"),this.toDestination()}disconnect(e,t=0,s=0){return cR(this,e,t,s),this}chain(...e){return Zi(this,...e),this}fan(...e){return e.forEach(t=>this.connect(t)),this}dispose(){return super.dispose(),xe(this.input)&&(this.input instanceof ue?this.input.dispose():ms(this.input)&&this.input.disconnect()),xe(this.output)&&(this.output instanceof ue?this.output.dispose():ms(this.output)&&this.output.disconnect()),this._internalChannels=[],this}}function Zi(...n){const e=n.shift();n.reduce((t,s)=>(t instanceof ue?t.connect(s):ms(t)&&ks(t,s),s),e)}function ks(n,e,t=0,s=0){for(me(xe(n),"Cannot connect from undefined node"),me(xe(e),"Cannot connect to undefined node"),(e instanceof ue||ms(e))&&me(e.numberOfInputs>0,"Cannot connect to node with no inputs"),me(n.numberOfOutputs>0,"Cannot connect from node with no outputs");e instanceof ue||e instanceof Re;)xe(e.input)&&(e=e.input);for(;n instanceof ue;)xe(n.output)&&(n=n.output);tr(e)?n.connect(e,t):n.connect(e,t,s)}function cR(n,e,t=0,s=0){if(xe(e))for(;e instanceof ue;)e=e.input;for(;!ms(n);)xe(n.output)&&(n=n.output);tr(e)?n.disconnect(e,t):ms(e)?n.disconnect(e,t,s):n.disconnect()}class Fe extends ue{constructor(){super(Z(Fe.getDefaults(),arguments,["gain","units"])),this.name="Gain",this._gainNode=this.context.createGain(),this.input=this._gainNode,this.output=this._gainNode;const e=Z(Fe.getDefaults(),arguments,["gain","units"]);this.gain=new Re({context:this.context,convert:e.convert,param:this._gainNode.gain,units:e.units,value:e.gain,minValue:e.minValue,maxValue:e.maxValue}),Ue(this,"gain")}static getDefaults(){return Object.assign(ue.getDefaults(),{convert:!0,gain:1,units:"gain"})}dispose(){return super.dispose(),this._gainNode.disconnect(),this.gain.dispose(),this}}class Wr extends ue{constructor(e){super(e),this.onended=Oe,this._startTime=-1,this._stopTime=-1,this._timeout=-1,this.output=new Fe({context:this.context,gain:0}),this._gainNode=this.output,this.getStateAtTime=function(t){const s=this.toSeconds(t);return this._startTime!==-1&&s>=this._startTime&&(this._stopTime===-1||s<=this._stopTime)?"started":"stopped"},this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut,this._curve=e.curve,this.onended=e.onended}static getDefaults(){return Object.assign(ue.getDefaults(),{curve:"linear",fadeIn:0,fadeOut:0,onended:Oe})}_startGain(e,t=1){me(this._startTime===-1,"Source cannot be started more than once");const s=this.toSeconds(this._fadeIn);return this._startTime=e+s,this._startTime=Math.max(this._startTime,this.context.currentTime),s>0?(this._gainNode.gain.setValueAtTime(0,e),this._curve==="linear"?this._gainNode.gain.linearRampToValueAtTime(t,e+s):this._gainNode.gain.exponentialApproachValueAtTime(t,e,s)):this._gainNode.gain.setValueAtTime(t,e),this}stop(e){return this.log("stop",e),this._stopGain(this.toSeconds(e)),this}_stopGain(e){me(this._startTime!==-1,"'start' must be called before 'stop'"),this.cancelStop();const t=this.toSeconds(this._fadeOut);return this._stopTime=this.toSeconds(e)+t,this._stopTime=Math.max(this._stopTime,this.now()),t>0?this._curve==="linear"?this._gainNode.gain.linearRampTo(0,t,e):this._gainNode.gain.targetRampTo(0,t,e):(this._gainNode.gain.cancelAndHoldAtTime(e),this._gainNode.gain.setValueAtTime(0,e)),this.context.clearTimeout(this._timeout),this._timeout=this.context.setTimeout(()=>{const s=this._curve==="exponential"?t*2:0;this._stopSource(this.now()+s),this._onended()},this._stopTime-this.context.currentTime),this}_onended(){if(this.onended!==Oe&&(this.onended(this),this.onended=Oe,!this.context.isOffline)){const e=()=>this.dispose();typeof window.requestIdleCallback<"u"?window.requestIdleCallback(e):setTimeout(e,1e3)}}get state(){return this.getStateAtTime(this.now())}cancelStop(){return this.log("cancelStop"),me(this._startTime!==-1,"Source is not started"),this._gainNode.gain.cancelScheduledValues(this._startTime+this.sampleTime),this.context.clearTimeout(this._timeout),this._stopTime=-1,this}dispose(){return super.dispose(),this._gainNode.dispose(),this.onended=Oe,this}}class Wa extends Wr{constructor(){super(Z(Wa.getDefaults(),arguments,["offset"])),this.name="ToneConstantSource",this._source=this.context.createConstantSource();const e=Z(Wa.getDefaults(),arguments,["offset"]);ks(this._source,this._gainNode),this.offset=new Re({context:this.context,convert:e.convert,param:this._source.offset,units:e.units,value:e.offset,minValue:e.minValue,maxValue:e.maxValue})}static getDefaults(){return Object.assign(Wr.getDefaults(),{convert:!0,offset:1,units:"number"})}start(e){const t=this.toSeconds(e);return this.log("start",t),this._startGain(t),this._source.start(t),this}_stopSource(e){this._source.stop(e)}dispose(){return super.dispose(),this.state==="started"&&this.stop(),this._source.disconnect(),this.offset.dispose(),this}}class je extends ue{constructor(){super(Z(je.getDefaults(),arguments,["value","units"])),this.name="Signal",this.override=!0;const e=Z(je.getDefaults(),arguments,["value","units"]);this.output=this._constantSource=new Wa({context:this.context,convert:e.convert,offset:e.value,units:e.units,minValue:e.minValue,maxValue:e.maxValue}),this._constantSource.start(0),this.input=this._param=this._constantSource.offset}static getDefaults(){return Object.assign(ue.getDefaults(),{convert:!0,units:"number",value:0})}connect(e,t=0,s=0){return mh(this,e,t,s),this}dispose(){return super.dispose(),this._param.dispose(),this._constantSource.dispose(),this}setValueAtTime(e,t){return this._param.setValueAtTime(e,t),this}getValueAtTime(e){return this._param.getValueAtTime(e)}setRampPoint(e){return this._param.setRampPoint(e),this}linearRampToValueAtTime(e,t){return this._param.linearRampToValueAtTime(e,t),this}exponentialRampToValueAtTime(e,t){return this._param.exponentialRampToValueAtTime(e,t),this}exponentialRampTo(e,t,s){return this._param.exponentialRampTo(e,t,s),this}linearRampTo(e,t,s){return this._param.linearRampTo(e,t,s),this}targetRampTo(e,t,s){return this._param.targetRampTo(e,t,s),this}exponentialApproachValueAtTime(e,t,s){return this._param.exponentialApproachValueAtTime(e,t,s),this}setTargetAtTime(e,t,s){return this._param.setTargetAtTime(e,t,s),this}setValueCurveAtTime(e,t,s,r){return this._param.setValueCurveAtTime(e,t,s,r),this}cancelScheduledValues(e){return this._param.cancelScheduledValues(e),this}cancelAndHoldAtTime(e){return this._param.cancelAndHoldAtTime(e),this}rampTo(e,t,s){return this._param.rampTo(e,t,s),this}get value(){return this._param.value}set value(e){this._param.value=e}get convert(){return this._param.convert}set convert(e){this._param.convert=e}get units(){return this._param.units}get overridden(){return this._param.overridden}set overridden(e){this._param.overridden=e}get maxValue(){return this._param.maxValue}get minValue(){return this._param.minValue}apply(e){return this._param.apply(e),this}}function mh(n,e,t,s){(e instanceof Re||tr(e)||e instanceof je&&e.override)&&(e.cancelScheduledValues(0),e.setValueAtTime(0,0),e instanceof je&&(e.overridden=!0)),ks(n,e,t,s)}class qa extends Re{constructor(){super(Z(qa.getDefaults(),arguments,["value"])),this.name="TickParam",this._events=new En(1/0),this._multiplier=1;const e=Z(qa.getDefaults(),arguments,["value"]);this._multiplier=e.multiplier,this._events.cancel(0),this._events.add({ticks:0,time:0,type:"setValueAtTime",value:this._fromType(e.value)}),this.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(Re.getDefaults(),{multiplier:1,units:"hertz",value:1})}setTargetAtTime(e,t,s){t=this.toSeconds(t),this.setRampPoint(t);const r=this._fromType(e),i=this._events.get(t),o=Math.round(Math.max(1/s,1));for(let a=0;a<=o;a++){const c=s*a+t,l=this._exponentialApproach(i.time,i.value,r,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}setValueAtTime(e,t){const s=this.toSeconds(t);super.setValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}linearRampToValueAtTime(e,t){const s=this.toSeconds(t);super.linearRampToValueAtTime(e,t);const r=this._events.get(s),i=this._events.previousEvent(r),o=this._getTicksUntilEvent(i,s);return r.ticks=Math.max(o,0),this}exponentialRampToValueAtTime(e,t){t=this.toSeconds(t);const s=this._fromType(e),r=this._events.get(t),i=Math.round(Math.max((t-r.time)*10,1)),o=(t-r.time)/i;for(let a=0;a<=i;a++){const c=o*a+r.time,l=this._exponentialInterpolate(r.time,r.value,t,s,c);this.linearRampToValueAtTime(this._toType(l),c)}return this}_getTicksUntilEvent(e,t){if(e===null)e={ticks:0,time:0,type:"setValueAtTime",value:0};else if(Bt(e.ticks)){const o=this._events.previousEvent(e);e.ticks=this._getTicksUntilEvent(o,e.time)}const s=this._fromType(this.getValueAtTime(e.time));let r=this._fromType(this.getValueAtTime(t));const i=this._events.get(t);return i&&i.time===t&&i.type==="setValueAtTime"&&(r=this._fromType(this.getValueAtTime(t-this.sampleTime))),.5*(t-e.time)*(s+r)+e.ticks}getTicksAtTime(e){const t=this.toSeconds(e),s=this._events.get(t);return Math.max(this._getTicksUntilEvent(s,t),0)}getDurationOfTicks(e,t){const s=this.toSeconds(t),r=this.getTicksAtTime(t);return this.getTimeOfTick(r+e)-s}getTimeOfTick(e){const t=this._events.get(e,"ticks"),s=this._events.getAfter(e,"ticks");if(t&&t.ticks===e)return t.time;if(t&&s&&s.type==="linearRampToValueAtTime"&&t.value!==s.value){const r=this._fromType(this.getValueAtTime(t.time)),o=(this._fromType(this.getValueAtTime(s.time))-r)/(s.time-t.time),a=Math.sqrt(Math.pow(r,2)-2*o*(t.ticks-e)),c=(-r+a)/o,l=(-r-a)/o;return(c>0?c:l)+t.time}else return t?t.value===0?1/0:t.time+(e-t.ticks)/t.value:e/this._initialValue}ticksToTime(e,t){return this.getDurationOfTicks(e,t)}timeToTicks(e,t){const s=this.toSeconds(t),r=this.toSeconds(e),i=this.getTicksAtTime(s);return this.getTicksAtTime(s+r)-i}_fromType(e){return this.units==="bpm"&&this.multiplier?1/(60/e/this.multiplier):super._fromType(e)}_toType(e){return this.units==="bpm"&&this.multiplier?e/this.multiplier*60:super._toType(e)}get multiplier(){return this._multiplier}set multiplier(e){const t=this.value;this._multiplier=e,this.cancelScheduledValues(0),this.setValueAtTime(t,0)}}class Ha extends je{constructor(){super(Z(Ha.getDefaults(),arguments,["value"])),this.name="TickSignal";const e=Z(Ha.getDefaults(),arguments,["value"]);this.input=this._param=new qa({context:this.context,convert:e.convert,multiplier:e.multiplier,param:this._constantSource.offset,units:e.units,value:e.value})}static getDefaults(){return Object.assign(je.getDefaults(),{multiplier:1,units:"hertz",value:1})}ticksToTime(e,t){return this._param.ticksToTime(e,t)}timeToTicks(e,t){return this._param.timeToTicks(e,t)}getTimeOfTick(e){return this._param.getTimeOfTick(e)}getDurationOfTicks(e,t){return this._param.getDurationOfTicks(e,t)}getTicksAtTime(e){return this._param.getTicksAtTime(e)}get multiplier(){return this._param.multiplier}set multiplier(e){this._param.multiplier=e}dispose(){return super.dispose(),this._param.dispose(),this}}class Ya extends At{constructor(){super(Z(Ya.getDefaults(),arguments,["frequency"])),this.name="TickSource",this._state=new ph,this._tickOffset=new En,this._ticksAtTime=new En,this._secondsAtTime=new En;const e=Z(Ya.getDefaults(),arguments,["frequency"]);this.frequency=new Ha({context:this.context,units:e.units,value:e.frequency}),Ue(this,"frequency"),this._state.setStateAtTime("stopped",0),this.setTicksAtTime(0,0)}static getDefaults(){return Object.assign({frequency:1,units:"hertz"},At.getDefaults())}get state(){return this.getStateAtTime(this.now())}start(e,t){const s=this.toSeconds(e);return this._state.getValueAtTime(s)!=="started"&&(this._state.setStateAtTime("started",s),xe(t)&&this.setTicksAtTime(t,s),this._ticksAtTime.cancel(s),this._secondsAtTime.cancel(s)),this}stop(e){const t=this.toSeconds(e);if(this._state.getValueAtTime(t)==="stopped"){const s=this._state.get(t);s&&s.time>0&&(this._tickOffset.cancel(s.time),this._state.cancel(s.time))}return this._state.cancel(t),this._state.setStateAtTime("stopped",t),this.setTicksAtTime(0,t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}pause(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)==="started"&&(this._state.setStateAtTime("paused",t),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t)),this}cancel(e){return e=this.toSeconds(e),this._state.cancel(e),this._tickOffset.cancel(e),this._ticksAtTime.cancel(e),this._secondsAtTime.cancel(e),this}getTicksAtTime(e){const t=this.toSeconds(e),s=this._state.getLastState("stopped",t),r=this._ticksAtTime.get(t),i={state:"paused",time:t};this._state.add(i);let o=r||s,a=r?r.ticks:0,c=null;return this._state.forEachBetween(o.time,t+this.sampleTime,l=>{let u=o.time;const h=this._tickOffset.get(l.time);h&&h.time>=o.time&&(a=h.ticks,u=h.time),o.state==="started"&&l.state!=="started"&&(a+=this.frequency.getTicksAtTime(l.time)-this.frequency.getTicksAtTime(u),l.time!=i.time&&(c={state:l.state,time:l.time,ticks:a})),o=l}),this._state.remove(i),c&&this._ticksAtTime.add(c),a}get ticks(){return this.getTicksAtTime(this.now())}set ticks(e){this.setTicksAtTime(e,this.now())}get seconds(){return this.getSecondsAtTime(this.now())}set seconds(e){const t=this.now(),s=this.frequency.timeToTicks(e,t);this.setTicksAtTime(s,t)}getSecondsAtTime(e){e=this.toSeconds(e);const t=this._state.getLastState("stopped",e),s={state:"paused",time:e};this._state.add(s);const r=this._secondsAtTime.get(e);let i=r||t,o=r?r.seconds:0,a=null;return this._state.forEachBetween(i.time,e+this.sampleTime,c=>{let l=i.time;const u=this._tickOffset.get(c.time);u&&u.time>=i.time&&(o=u.seconds,l=u.time),i.state==="started"&&c.state!=="started"&&(o+=c.time-l,c.time!=s.time&&(a={state:c.state,time:c.time,seconds:o})),i=c}),this._state.remove(s),a&&this._secondsAtTime.add(a),o}setTicksAtTime(e,t){return t=this.toSeconds(t),this._tickOffset.cancel(t),this._tickOffset.add({seconds:this.frequency.getDurationOfTicks(e,t),ticks:e,time:t}),this._ticksAtTime.cancel(t),this._secondsAtTime.cancel(t),this}getStateAtTime(e){return e=this.toSeconds(e),this._state.getValueAtTime(e)}getTimeOfTick(e,t=this.now()){const s=this._tickOffset.get(t),r=this._state.get(t),i=Math.max(s.time,r.time),o=this.frequency.getTicksAtTime(i)+e-s.ticks;return this.frequency.getTimeOfTick(o)}forEachTickBetween(e,t,s){let r=this._state.get(e);this._state.forEachBetween(e,t,o=>{r&&r.state==="started"&&o.state!=="started"&&this.forEachTickBetween(Math.max(r.time,e),o.time-this.sampleTime,s),r=o});let i=null;if(r&&r.state==="started"){const o=Math.max(r.time,e),a=this.frequency.getTicksAtTime(o),c=this.frequency.getTicksAtTime(r.time),l=a-c;let u=Math.ceil(l)-l;u=an(u,1)?0:u;let h=this.frequency.getTimeOfTick(a+u);for(;h{switch(s.state){case"started":const r=this._tickSource.getTicksAtTime(s.time);this.emit("start",s.time,r);break;case"stopped":s.time!==0&&this.emit("stop",s.time);break;case"paused":this.emit("pause",s.time);break}}),this._tickSource.forEachTickBetween(e,t,(s,r)=>{this.callback(s,r)}))}getStateAtTime(e){const t=this.toSeconds(e);return this._state.getValueAtTime(t)}dispose(){return super.dispose(),this.context.off("tick",this._boundLoop),this._tickSource.dispose(),this._state.dispose(),this}}Fo.mixin(Ki);class gh extends rs{constructor(){super(),this.name="ToneAudioBuffers",this._buffers=new Map,this._loadingCount=0;const e=Z(gh.getDefaults(),arguments,["urls","onload","baseUrl"],"urls");this.baseUrl=e.baseUrl,Object.keys(e.urls).forEach(t=>{this._loadingCount++;const s=e.urls[t];this.add(t,s,this._bufferLoaded.bind(this,e.onload),e.onerror)})}static getDefaults(){return{baseUrl:"",onerror:Oe,onload:Oe,urls:{}}}has(e){return this._buffers.has(e.toString())}get(e){return me(this.has(e),`ToneAudioBuffers has no buffer named: ${e}`),this._buffers.get(e.toString())}_bufferLoaded(e){this._loadingCount--,this._loadingCount===0&&e&&e()}get loaded(){return Array.from(this._buffers).every(([e,t])=>t.loaded)}add(e,t,s=Oe,r=Oe){return Zn(t)?(this.baseUrl&&t.trim().substring(0,11).toLowerCase()==="data:audio/"&&(this.baseUrl=""),this._buffers.set(e.toString(),new Ae(this.baseUrl+t,s,r))):this._buffers.set(e.toString(),new Ae(t,s,r)),this}dispose(){return super.dispose(),this._buffers.forEach(e=>e.dispose()),this._buffers.clear(),this}}class Sr extends Fi{constructor(){super(...arguments),this.name="Ticks",this.defaultUnits="i"}_now(){return this.context.transport.ticks}_beatsToUnits(e){return this._getPPQ()*e}_secondsToUnits(e){return Math.floor(e/(60/this._getBpm())*this._getPPQ())}_ticksToUnits(e){return e}toTicks(){return this.valueOf()}toSeconds(){return this.valueOf()/this._getPPQ()*(60/this._getBpm())}}class lR extends At{constructor(){super(...arguments),this.name="Draw",this.expiration=.25,this.anticipation=.008,this._events=new En,this._boundDrawLoop=this._drawLoop.bind(this),this._animationFrame=-1}schedule(e,t){return this._events.add({callback:e,time:this.toSeconds(t)}),this._events.length===1&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop)),this}cancel(e){return this._events.cancel(this.toSeconds(e)),this}_drawLoop(){const e=this.context.currentTime;for(;this._events.length&&this._events.peek().time-this.anticipation<=e;){const t=this._events.shift();t&&e-t.time<=this.expiration&&t.callback()}this._events.length>0&&(this._animationFrame=requestAnimationFrame(this._boundDrawLoop))}dispose(){return super.dispose(),this._events.dispose(),cancelAnimationFrame(this._animationFrame),this}}Cc(n=>{n.draw=new lR({context:n})});Sc(n=>{n.draw.dispose()});class uR extends rs{constructor(){super(...arguments),this.name="IntervalTimeline",this._root=null,this._length=0}add(e){me(xe(e.time),"Events must have a time property"),me(xe(e.duration),"Events must have a duration parameter"),e.time=e.time.valueOf();let t=new hR(e.time,e.time+e.duration,e);for(this._root===null?this._root=t:this._root.insert(t),this._length++;t!==null;)t.updateHeight(),t.updateMax(),this._rebalance(t),t=t.parent;return this}remove(e){if(this._root!==null){const t=[];this._root.search(e.time,t);for(const s of t)if(s.event===e){this._removeNode(s),this._length--;break}}return this}get length(){return this._length}cancel(e){return this.forEachFrom(e,t=>this.remove(t)),this}_setRoot(e){this._root=e,this._root!==null&&(this._root.parent=null)}_replaceNodeInParent(e,t){e.parent!==null?(e.isLeftChild()?e.parent.left=t:e.parent.right=t,this._rebalance(e.parent)):this._setRoot(t)}_removeNode(e){if(e.left===null&&e.right===null)this._replaceNodeInParent(e,null);else if(e.right===null)this._replaceNodeInParent(e,e.left);else if(e.left===null)this._replaceNodeInParent(e,e.right);else{const t=e.getBalance();let s,r=null;if(t>0)if(e.left.right===null)s=e.left,s.right=e.right,r=s;else{for(s=e.left.right;s.right!==null;)s=s.right;s.parent&&(s.parent.right=s.left,r=s.parent,s.left=e.left,s.right=e.right)}else if(e.right.left===null)s=e.right,s.left=e.left,r=s;else{for(s=e.right.left;s.left!==null;)s=s.left;s.parent&&(s.parent.left=s.right,r=s.parent,s.left=e.left,s.right=e.right)}e.parent!==null?e.isLeftChild()?e.parent.left=s:e.parent.right=s:this._setRoot(s),r&&this._rebalance(r)}e.dispose()}_rotateLeft(e){const t=e.parent,s=e.isLeftChild(),r=e.right;r&&(e.right=r.left,r.left=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rotateRight(e){const t=e.parent,s=e.isLeftChild(),r=e.left;r&&(e.left=r.right,r.right=e),t!==null?s?t.left=r:t.right=r:this._setRoot(r)}_rebalance(e){const t=e.getBalance();t>1&&e.left?e.left.getBalance()<0?this._rotateLeft(e.left):this._rotateRight(e):t<-1&&e.right&&(e.right.getBalance()>0?this._rotateRight(e.right):this._rotateLeft(e))}get(e){if(this._root!==null){const t=[];if(this._root.search(e,t),t.length>0){let s=t[0];for(let r=1;rs.low&&(s=t[r]);return s.event}}return null}forEach(e){if(this._root!==null){const t=[];this._root.traverse(s=>t.push(s)),t.forEach(s=>{s.event&&e(s.event)})}return this}forEachAtTime(e,t){if(this._root!==null){const s=[];this._root.search(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}forEachFrom(e,t){if(this._root!==null){const s=[];this._root.searchAfter(e,s),s.forEach(r=>{r.event&&t(r.event)})}return this}dispose(){return super.dispose(),this._root!==null&&this._root.traverse(e=>e.dispose()),this._root=null,this}}class hR{constructor(e,t,s){this._left=null,this._right=null,this.parent=null,this.height=0,this.event=s,this.low=e,this.high=t,this.max=this.high}insert(e){e.low<=this.low?this.left===null?this.left=e:this.left.insert(e):this.right===null?this.right=e:this.right.insert(e)}search(e,t){e>this.max||(this.left!==null&&this.left.search(e,t),this.low<=e&&this.high>e&&t.push(this),!(this.low>e)&&this.right!==null&&this.right.search(e,t))}searchAfter(e,t){this.low>=e&&(t.push(this),this.left!==null&&this.left.searchAfter(e,t)),this.right!==null&&this.right.searchAfter(e,t)}traverse(e){e(this),this.left!==null&&this.left.traverse(e),this.right!==null&&this.right.traverse(e)}updateHeight(){this.left!==null&&this.right!==null?this.height=Math.max(this.left.height,this.right.height)+1:this.right!==null?this.height=this.right.height+1:this.left!==null?this.height=this.left.height+1:this.height=0}updateMax(){this.max=this.high,this.left!==null&&(this.max=Math.max(this.max,this.left.max)),this.right!==null&&(this.max=Math.max(this.max,this.right.max))}getBalance(){let e=0;return this.left!==null&&this.right!==null?e=this.left.height-this.right.height:this.left!==null?e=this.left.height+1:this.right!==null&&(e=-(this.right.height+1)),e}isLeftChild(){return this.parent!==null&&this.parent.left===this}get left(){return this._left}set left(e){this._left=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}get right(){return this._right}set right(e){this._right=e,e!==null&&(e.parent=this),this.updateHeight(),this.updateMax()}dispose(){this.parent=null,this._left=null,this._right=null,this.event=null}}class Ts extends ue{constructor(){super(Z(Ts.getDefaults(),arguments,["volume"])),this.name="Volume";const e=Z(Ts.getDefaults(),arguments,["volume"]);this.input=this.output=new Fe({context:this.context,gain:e.volume,units:"decibels"}),this.volume=this.output.gain,Ue(this,"volume"),this._unmutedVolume=e.volume,this.mute=e.mute}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,volume:0})}get mute(){return this.volume.value===-1/0}set mute(e){!this.mute&&e?(this._unmutedVolume=this.volume.value,this.volume.value=-1/0):this.mute&&!e&&(this.volume.value=this._unmutedVolume)}dispose(){return super.dispose(),this.input.dispose(),this.volume.dispose(),this}}let dR=class eu extends ue{constructor(){super(Z(eu.getDefaults(),arguments)),this.name="Destination",this.input=new Ts({context:this.context}),this.output=new Fe({context:this.context}),this.volume=this.input.volume;const e=Z(eu.getDefaults(),arguments);Zi(this.input,this.output,this.context.rawContext.destination),this.mute=e.mute,this._internalChannels=[this.input,this.context.rawContext.destination,this.output]}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,volume:0})}get mute(){return this.input.mute}set mute(e){this.input.mute=e}chain(...e){return this.input.disconnect(),e.unshift(this.input),e.push(this.output),Zi(...e),this}get maxChannelCount(){return this.context.rawContext.destination.maxChannelCount}dispose(){return super.dispose(),this.volume.dispose(),this}};Cc(n=>{n.destination=new dR({context:n})});Sc(n=>{n.destination.dispose()});class fR extends rs{constructor(e){super(),this.name="TimelineValue",this._timeline=new En({memory:10}),this._initialValue=e}set(e,t){return this._timeline.add({value:e,time:t}),this}get(e){const t=this._timeline.get(e);return t?t.value:this._initialValue}}class Kn extends ue{constructor(){super(Object.assign(Z(Kn.getDefaults(),arguments,["context"])))}connect(e,t=0,s=0){return mh(this,e,t,s),this}}class nr extends Kn{constructor(){super(Object.assign(Z(nr.getDefaults(),arguments,["mapping","length"]))),this.name="WaveShaper",this._shaper=this.context.createWaveShaper(),this.input=this._shaper,this.output=this._shaper;const e=Z(nr.getDefaults(),arguments,["mapping","length"]);hn(e.mapping)||e.mapping instanceof Float32Array?this.curve=Float32Array.from(e.mapping):$A(e.mapping)&&this.setMap(e.mapping,e.length)}static getDefaults(){return Object.assign(je.getDefaults(),{length:1024})}setMap(e,t=1024){const s=new Float32Array(t);for(let r=0,i=t;rs.includes(e));me(t,"oversampling must be either 'none', '2x', or '4x'"),this._shaper.oversample=e}dispose(){return super.dispose(),this._shaper.disconnect(),this}}class Qi extends Kn{constructor(){super(Object.assign(Z(Qi.getDefaults(),arguments,["value"]))),this.name="Pow";const e=Z(Qi.getDefaults(),arguments,["value"]);this._exponentScaler=this.input=this.output=new nr({context:this.context,mapping:this._expFunc(e.value),length:8192}),this._exponent=e.value}static getDefaults(){return Object.assign(Kn.getDefaults(),{value:1})}_expFunc(e){return t=>Math.pow(Math.abs(t),e)}get value(){return this._exponent}set value(e){this._exponent=e,this._exponentScaler.setMap(this._expFunc(this._exponent))}dispose(){return super.dispose(),this._exponentScaler.dispose(),this}}class Es{constructor(e,t){this.id=Es._eventId++,this._remainderTime=0;const s=Object.assign(Es.getDefaults(),t);this.transport=e,this.callback=s.callback,this._once=s.once,this.time=Math.floor(s.time),this._remainderTime=s.time-this.time}static getDefaults(){return{callback:Oe,once:!1,time:0}}get floatTime(){return this.time+this._remainderTime}invoke(e){if(this.callback){const t=this.transport.bpm.getDurationOfTicks(1,e);this.callback(e+this._remainderTime*t),this._once&&this.transport.clear(this.id)}}dispose(){return this.callback=void 0,this}}Es._eventId=0;class _h extends Es{constructor(e,t){super(e,t),this._currentId=-1,this._nextId=-1,this._nextTick=this.time,this._boundRestart=this._restart.bind(this);const s=Object.assign(_h.getDefaults(),t);this.duration=s.duration,this._interval=s.interval,this._nextTick=s.time,this.transport.on("start",this._boundRestart),this.transport.on("loopStart",this._boundRestart),this.transport.on("ticks",this._boundRestart),this.context=this.transport.context,this._restart()}static getDefaults(){return Object.assign({},Es.getDefaults(),{duration:1/0,interval:1,once:!1})}invoke(e){this._createEvents(e),super.invoke(e)}_createEvent(){return Ba(this._nextTick,this.floatTime+this.duration)?this.transport.scheduleOnce(this.invoke.bind(this),new Sr(this.context,this._nextTick).toSeconds()):-1}_createEvents(e){Ba(this._nextTick+this._interval,this.floatTime+this.duration)&&(this._nextTick+=this._interval,this._currentId=this._nextId,this._nextId=this.transport.scheduleOnce(this.invoke.bind(this),new Sr(this.context,this._nextTick).toSeconds()))}_restart(e){this.transport.clear(this._currentId),this.transport.clear(this._nextId),this._nextTick=this.floatTime;const t=this.transport.getTicksAtTime(e);Br(t,this.time)&&(this._nextTick=this.floatTime+Math.ceil((t-this.floatTime)/this._interval)*this._interval),this._currentId=this._createEvent(),this._nextTick+=this._interval,this._nextId=this._createEvent()}dispose(){return super.dispose(),this.transport.clear(this._currentId),this.transport.clear(this._nextId),this.transport.off("start",this._boundRestart),this.transport.off("loopStart",this._boundRestart),this.transport.off("ticks",this._boundRestart),this}}class Ji extends At{constructor(){super(Z(Ji.getDefaults(),arguments)),this.name="Transport",this._loop=new fR(!1),this._loopStart=0,this._loopEnd=0,this._scheduledEvents={},this._timeline=new En,this._repeatedEvents=new uR,this._syncedSignals=[],this._swingAmount=0;const e=Z(Ji.getDefaults(),arguments);this._ppq=e.ppq,this._clock=new Ki({callback:this._processTick.bind(this),context:this.context,frequency:0,units:"bpm"}),this._bindClockEvents(),this.bpm=this._clock.frequency,this._clock.frequency.multiplier=e.ppq,this.bpm.setValueAtTime(e.bpm,0),Ue(this,"bpm"),this._timeSignature=e.timeSignature,this._swingTicks=e.ppq/2}static getDefaults(){return Object.assign(At.getDefaults(),{bpm:120,loopEnd:"4m",loopStart:0,ppq:192,swing:0,swingSubdivision:"8n",timeSignature:4})}_processTick(e,t){if(this._loop.get(e)&&t>=this._loopEnd&&(this.emit("loopEnd",e),this._clock.setTicksAtTime(this._loopStart,e),t=this._loopStart,this.emit("loopStart",e,this._clock.getSecondsAtTime(e)),this.emit("loop",e)),this._swingAmount>0&&t%this._ppq!==0&&t%(this._swingTicks*2)!==0){const s=t%(this._swingTicks*2)/(this._swingTicks*2),r=Math.sin(s*Math.PI)*this._swingAmount;e+=new Sr(this.context,this._swingTicks*2/3).toSeconds()*r}zf(!0),this._timeline.forEachAtTime(t,s=>s.invoke(e)),zf(!1)}schedule(e,t){const s=new Es(this,{callback:e,time:new Fi(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}scheduleRepeat(e,t,s,r=1/0){const i=new _h(this,{callback:e,duration:new ln(this.context,r).toTicks(),interval:new ln(this.context,t).toTicks(),time:new Fi(this.context,s).toTicks()});return this._addEvent(i,this._repeatedEvents)}scheduleOnce(e,t){const s=new Es(this,{callback:e,once:!0,time:new Fi(this.context,t).toTicks()});return this._addEvent(s,this._timeline)}clear(e){if(this._scheduledEvents.hasOwnProperty(e)){const t=this._scheduledEvents[e.toString()];t.timeline.remove(t.event),t.event.dispose(),delete this._scheduledEvents[e.toString()]}return this}_addEvent(e,t){return this._scheduledEvents[e.id.toString()]={event:e,timeline:t},t.add(e),e.id}cancel(e=0){const t=this.toTicks(e);return this._timeline.forEachFrom(t,s=>this.clear(s.id)),this._repeatedEvents.forEachFrom(t,s=>this.clear(s.id)),this}_bindClockEvents(){this._clock.on("start",(e,t)=>{t=new Sr(this.context,t).toSeconds(),this.emit("start",e,t)}),this._clock.on("stop",e=>{this.emit("stop",e)}),this._clock.on("pause",e=>{this.emit("pause",e)})}get state(){return this._clock.getStateAtTime(this.now())}start(e,t){this.context.resume();let s;return xe(t)&&(s=this.toTicks(t)),this._clock.start(e,s),this}stop(e){return this._clock.stop(e),this}pause(e){return this._clock.pause(e),this}toggle(e){return e=this.toSeconds(e),this._clock.getStateAtTime(e)!=="started"?this.start(e):this.stop(e),this}get timeSignature(){return this._timeSignature}set timeSignature(e){hn(e)&&(e=e[0]/e[1]*4),this._timeSignature=e}get loopStart(){return new ln(this.context,this._loopStart,"i").toSeconds()}set loopStart(e){this._loopStart=this.toTicks(e)}get loopEnd(){return new ln(this.context,this._loopEnd,"i").toSeconds()}set loopEnd(e){this._loopEnd=this.toTicks(e)}get loop(){return this._loop.get(this.now())}set loop(e){this._loop.set(e,this.now())}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get swing(){return this._swingAmount}set swing(e){this._swingAmount=e}get swingSubdivision(){return new Sr(this.context,this._swingTicks).toNotation()}set swingSubdivision(e){this._swingTicks=this.toTicks(e)}get position(){const e=this.now(),t=this._clock.getTicksAtTime(e);return new Sr(this.context,t).toBarsBeatsSixteenths()}set position(e){const t=this.toTicks(e);this.ticks=t}get seconds(){return this._clock.seconds}set seconds(e){const t=this.now(),s=this._clock.frequency.timeToTicks(e,t);this.ticks=s}get progress(){if(this.loop){const e=this.now();return(this._clock.getTicksAtTime(e)-this._loopStart)/(this._loopEnd-this._loopStart)}else return 0}get ticks(){return this._clock.ticks}set ticks(e){if(this._clock.ticks!==e){const t=this.now();if(this.state==="started"){const s=this._clock.getTicksAtTime(t),r=this._clock.frequency.getDurationOfTicks(Math.ceil(s)-s,t),i=t+r;this.emit("stop",i),this._clock.setTicksAtTime(e,i),this.emit("start",i,this._clock.getSecondsAtTime(i))}else this.emit("ticks",t),this._clock.setTicksAtTime(e,t)}}getTicksAtTime(e){return this._clock.getTicksAtTime(e)}getSecondsAtTime(e){return this._clock.getSecondsAtTime(e)}get PPQ(){return this._clock.frequency.multiplier}set PPQ(e){this._clock.frequency.multiplier=e}nextSubdivision(e){if(e=this.toTicks(e),this.state!=="started")return 0;{const t=this.now(),s=this.getTicksAtTime(t),r=e-s%e;return this._clock.nextTickTime(r,t)}}syncSignal(e,t){const s=this.now();let r=this.bpm,i=1/(60/r.getValueAtTime(s)/this.PPQ),o=[];if(e.units==="time"){const c=.015625/i,l=new Fe(c),u=new Qi(-1),h=new Fe(c);r.chain(l,u,h),r=h,i=1/i,o=[l,u,h]}t||(e.getValueAtTime(s)!==0?t=e.getValueAtTime(s)/i:t=0);const a=new Fe(t);return r.connect(a),a.connect(e._param),o.push(a),this._syncedSignals.push({initial:e.value,nodes:o,signal:e}),e.value=0,this}unsyncSignal(e){for(let t=this._syncedSignals.length-1;t>=0;t--){const s=this._syncedSignals[t];s.signal===e&&(s.nodes.forEach(r=>r.dispose()),s.signal.value=s.initial,this._syncedSignals.splice(t,1))}return this}dispose(){return super.dispose(),this._clock.dispose(),dh(this,"bpm"),this._timeline.dispose(),this._repeatedEvents.dispose(),this}}Fo.mixin(Ji);Cc(n=>{n.transport=new Ji({context:n})});Sc(n=>{n.transport.dispose()});class _t extends ue{constructor(e){super(e),this.input=void 0,this._state=new ph("stopped"),this._synced=!1,this._scheduled=[],this._syncedStart=Oe,this._syncedStop=Oe,this._state.memory=100,this._state.increasing=!0,this._volume=this.output=new Ts({context:this.context,mute:e.mute,volume:e.volume}),this.volume=this._volume.volume,Ue(this,"volume"),this.onstop=e.onstop}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,onstop:Oe,volume:0})}get state(){return this._synced?this.context.transport.state==="started"?this._state.getValueAtTime(this.context.transport.seconds):"stopped":this._state.getValueAtTime(this.now())}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}_clampToCurrentTime(e){return this._synced?e:Math.max(e,this.context.currentTime)}start(e,t,s){let r=Bt(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(r=this._clampToCurrentTime(r),!this._synced&&this._state.getValueAtTime(r)==="started")me(Br(r,this._state.get(r).time),"Start time must be strictly greater than previous start time"),this._state.cancel(r),this._state.setStateAtTime("started",r),this.log("restart",r),this.restart(r,t,s);else if(this.log("start",r),this._state.setStateAtTime("started",r),this._synced){const i=this._state.get(r);i&&(i.offset=this.toSeconds(Mr(t,0)),i.duration=s?this.toSeconds(s):void 0);const o=this.context.transport.schedule(a=>{this._start(a,t,s)},r);this._scheduled.push(o),this.context.transport.state==="started"&&this.context.transport.getSecondsAtTime(this.immediate())>r&&this._syncedStart(this.now(),this.context.transport.seconds)}else cg(this.context),this._start(r,t,s);return this}stop(e){let t=Bt(e)&&this._synced?this.context.transport.seconds:this.toSeconds(e);if(t=this._clampToCurrentTime(t),this._state.getValueAtTime(t)==="started"||xe(this._state.getNextState("started",t))){if(this.log("stop",t),!this._synced)this._stop(t);else{const s=this.context.transport.schedule(this._stop.bind(this),t);this._scheduled.push(s)}this._state.cancel(t),this._state.setStateAtTime("stopped",t)}return this}restart(e,t,s){return e=this.toSeconds(e),this._state.getValueAtTime(e)==="started"&&(this._state.cancel(e),this._restart(e,t,s)),this}sync(){return this._synced||(this._synced=!0,this._syncedStart=(e,t)=>{if(Br(t,0)){const s=this._state.get(t);if(s&&s.state==="started"&&s.time!==t){const r=t-this.toSeconds(s.time);let i;s.duration&&(i=this.toSeconds(s.duration)-r),this._start(e,this.toSeconds(s.offset)+r,i)}}},this._syncedStop=e=>{const t=this.context.transport.getSecondsAtTime(Math.max(e-this.sampleTime,0));this._state.getValueAtTime(t)==="started"&&this._stop(e)},this.context.transport.on("start",this._syncedStart),this.context.transport.on("loopStart",this._syncedStart),this.context.transport.on("stop",this._syncedStop),this.context.transport.on("pause",this._syncedStop),this.context.transport.on("loopEnd",this._syncedStop)),this}unsync(){return this._synced&&(this.context.transport.off("stop",this._syncedStop),this.context.transport.off("pause",this._syncedStop),this.context.transport.off("loopEnd",this._syncedStop),this.context.transport.off("start",this._syncedStart),this.context.transport.off("loopStart",this._syncedStart)),this._synced=!1,this._scheduled.forEach(e=>this.context.transport.clear(e)),this._scheduled=[],this._state.cancel(0),this._stop(0),this}dispose(){return super.dispose(),this.onstop=Oe,this.unsync(),this._volume.dispose(),this._state.dispose(),this}}class qr extends Wr{constructor(){super(Z(qr.getDefaults(),arguments,["url","onload"])),this.name="ToneBufferSource",this._source=this.context.createBufferSource(),this._internalChannels=[this._source],this._sourceStarted=!1,this._sourceStopped=!1;const e=Z(qr.getDefaults(),arguments,["url","onload"]);ks(this._source,this._gainNode),this._source.onended=()=>this._stopSource(),this.playbackRate=new Re({context:this.context,param:this._source.playbackRate,units:"positive",value:e.playbackRate}),this.loop=e.loop,this.loopStart=e.loopStart,this.loopEnd=e.loopEnd,this._buffer=new Ae(e.url,e.onload,e.onerror),this._internalChannels.push(this._source)}static getDefaults(){return Object.assign(Wr.getDefaults(),{url:new Ae,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,playbackRate:1})}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e}get curve(){return this._curve}set curve(e){this._curve=e}start(e,t,s,r=1){me(this.buffer.loaded,"buffer is either not set or not loaded");const i=this.toSeconds(e);this._startGain(i,r),this.loop?t=Mr(t,this.loopStart):t=Mr(t,0);let o=Math.max(this.toSeconds(t),0);if(this.loop){const a=this.toSeconds(this.loopEnd)||this.buffer.duration,c=this.toSeconds(this.loopStart),l=a-c;Ql(o,a)&&(o=(o-c)%l+c),an(o,this.buffer.duration)&&(o=0)}if(this._source.buffer=this.buffer.get(),this._source.loopEnd=this.toSeconds(this.loopEnd)||this.buffer.duration,Ba(o,this.buffer.duration)&&(this._sourceStarted=!0,this._source.start(i,o)),xe(s)){let a=this.toSeconds(s);a=Math.max(a,0),this.stop(i+a)}return this}_stopSource(e){!this._sourceStopped&&this._sourceStarted&&(this._sourceStopped=!0,this._source.stop(this.toSeconds(e)),this._onended())}get loopStart(){return this._source.loopStart}set loopStart(e){this._source.loopStart=this.toSeconds(e)}get loopEnd(){return this._source.loopEnd}set loopEnd(e){this._source.loopEnd=this.toSeconds(e)}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._source.loop}set loop(e){this._source.loop=e,this._sourceStarted&&this.cancelStop()}dispose(){return super.dispose(),this._source.onended=null,this._source.disconnect(),this._buffer.dispose(),this.playbackRate.dispose(),this}}class eo extends _t{constructor(){super(Z(eo.getDefaults(),arguments,["type"])),this.name="Noise",this._source=null;const e=Z(eo.getDefaults(),arguments,["type"]);this._playbackRate=e.playbackRate,this.type=e.type,this._fadeIn=e.fadeIn,this._fadeOut=e.fadeOut}static getDefaults(){return Object.assign(_t.getDefaults(),{fadeIn:0,fadeOut:0,playbackRate:1,type:"white"})}get type(){return this._type}set type(e){if(me(e in Vf,"Noise: invalid type: "+e),this._type!==e&&(this._type=e,this.state==="started")){const t=this.now();this._stop(t),this._start(t)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e,this._source&&(this._source.playbackRate.value=e)}_start(e){const t=Vf[this._type];this._source=new qr({url:t,context:this.context,fadeIn:this._fadeIn,fadeOut:this._fadeOut,loop:!0,onended:()=>this.onstop(this),playbackRate:this._playbackRate}).connect(this.output),this._source.start(this.toSeconds(e),Math.random()*(t.duration-.001))}_stop(e){this._source&&(this._source.stop(this.toSeconds(e)),this._source=null)}get fadeIn(){return this._fadeIn}set fadeIn(e){this._fadeIn=e,this._source&&(this._source.fadeIn=this._fadeIn)}get fadeOut(){return this._fadeOut}set fadeOut(e){this._fadeOut=e,this._source&&(this._source.fadeOut=this._fadeOut)}_restart(e){this._stop(e),this._start(e)}dispose(){return super.dispose(),this._source&&this._source.disconnect(),this}}const br=44100*5,cl=2,Ln={brown:null,pink:null,white:null},Vf={get brown(){if(!Ln.brown){const n=[];for(let e=0;ethis.onstop(this)});this._oscillator=s,this._wave?this._oscillator.setPeriodicWave(this._wave):this._oscillator.type=this._type,this._oscillator.connect(this.output),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.start(t)}_stop(e){const t=this.toSeconds(e);this._oscillator&&this._oscillator.stop(t)}_restart(e){const t=this.toSeconds(e);return this.log("restart",t),this._oscillator&&this._oscillator.cancelStop(),this._state.cancel(t),this}syncFrequency(){return this.context.transport.syncSignal(this.frequency),this}unsyncFrequency(){return this.context.transport.unsyncSignal(this.frequency),this}_getCachedPeriodicWave(){if(this._type==="custom")return rt._periodicWaveCache.find(t=>t.phase===this._phase&&YA(t.partials,this._partials));{const e=rt._periodicWaveCache.find(t=>t.type===this._type&&t.phase===this._phase);return this._partialCount=e?e.partialCount:this._partialCount,e}}get type(){return this._type}set type(e){this._type=e;const t=["sine","square","sawtooth","triangle"].indexOf(e)!==-1;if(this._phase===0&&t)this._wave=void 0,this._partialCount=0,this._oscillator!==null&&(this._oscillator.type=e);else{const s=this._getCachedPeriodicWave();if(xe(s)){const{partials:r,wave:i}=s;this._wave=i,this._partials=r,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave)}else{const[r,i]=this._getRealImaginary(e,this._phase),o=this.context.createPeriodicWave(r,i);this._wave=o,this._oscillator!==null&&this._oscillator.setPeriodicWave(this._wave),rt._periodicWaveCache.push({imag:i,partialCount:this._partialCount,partials:this._partials,phase:this._phase,real:r,type:this._type,wave:this._wave}),rt._periodicWaveCache.length>100&&rt._periodicWaveCache.shift()}}}get baseType(){return this._type.replace(this.partialCount.toString(),"")}set baseType(e){this.partialCount&&this._type!=="custom"&&e!=="custom"?this.type=e+this.partialCount:this.type=e}get partialCount(){return this._partialCount}set partialCount(e){pn(e,0);let t=this._type;const s=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(this._type);if(s&&(t=s[1]),this._type!=="custom")e===0?this.type=t:this.type=t+e.toString();else{const r=new Float32Array(e);this._partials.forEach((i,o)=>r[o]=i),this._partials=Array.from(r),this.type=this._type}}_getRealImaginary(e,t){let r=2048;const i=new Float32Array(r),o=new Float32Array(r);let a=1;if(e==="custom"){if(a=this._partials.length+1,this._partialCount=this._partials.length,r=a,this._partials.length===0)return[i,o]}else{const c=/^(sine|triangle|square|sawtooth)(\d+)$/.exec(e);c?(a=parseInt(c[2],10)+1,this._partialCount=parseInt(c[2],10),e=c[1],a=Math.max(a,2),r=a):this._partialCount=0,this._partials=[]}for(let c=1;c>1&1?-1:1):u=0,this._partials[c-1]=u;break;case"custom":u=this._partials[c-1];break;default:throw new TypeError("Oscillator: invalid type: "+e)}u!==0?(i[c]=-u*Math.sin(t*c),o[c]=u*Math.cos(t*c)):(i[c]=0,o[c]=0)}return[i,o]}_inverseFFT(e,t,s){let r=0;const i=e.length;for(let o=0;o(e+1)/2}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class Cs extends je{constructor(){super(Object.assign(Z(Cs.getDefaults(),arguments,["value"]))),this.name="Multiply",this.override=!1;const e=Z(Cs.getDefaults(),arguments,["value"]);this._mult=this.input=this.output=new Fe({context:this.context,minValue:e.minValue,maxValue:e.maxValue}),this.factor=this._param=this._mult.gain,this.factor.setValueAtTime(e.value,0)}static getDefaults(){return Object.assign(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._mult.dispose(),this}}class to extends _t{constructor(){super(Z(to.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="AMOscillator",this._modulationScale=new pR({context:this.context}),this._modulationNode=new Fe({context:this.context});const e=Z(to.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.frequency=this._carrier.frequency,this.detune=this._carrier.detune,this._modulator=new rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({context:this.context,units:"positive",value:e.harmonicity}),this.frequency.chain(this.harmonicity,this._modulator.frequency),this._modulator.chain(this._modulationScale,this._modulationNode.gain),this._carrier.chain(this._modulationNode,this.output),Ue(this,["frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(rt.getDefaults(),{harmonicity:1,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){this._modulator.restart(e),this._carrier.restart(e)}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this._modulationScale.dispose(),this}}class no extends _t{constructor(){super(Z(no.getDefaults(),arguments,["frequency","type","modulationType"])),this.name="FMOscillator",this._modulationNode=new Fe({context:this.context,gain:0});const e=Z(no.getDefaults(),arguments,["frequency","type","modulationType"]);this._carrier=new rt({context:this.context,detune:e.detune,frequency:0,onstop:()=>this.onstop(this),phase:e.phase,type:e.type}),this.detune=this._carrier.detune,this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this._modulator=new rt({context:this.context,phase:e.phase,type:e.modulationType}),this.harmonicity=new Cs({context:this.context,units:"positive",value:e.harmonicity}),this.modulationIndex=new Cs({context:this.context,units:"positive",value:e.modulationIndex}),this.frequency.connect(this._carrier.frequency),this.frequency.chain(this.harmonicity,this._modulator.frequency),this.frequency.chain(this.modulationIndex,this._modulationNode),this._modulator.connect(this._modulationNode.gain),this._modulationNode.connect(this._carrier.frequency),this._carrier.connect(this.output),this.detune.connect(this._modulator.detune),Ue(this,["modulationIndex","frequency","detune","harmonicity"])}static getDefaults(){return Object.assign(rt.getDefaults(),{harmonicity:1,modulationIndex:2,modulationType:"square"})}_start(e){this._modulator.start(e),this._carrier.start(e)}_stop(e){this._modulator.stop(e),this._carrier.stop(e)}_restart(e){return this._modulator.restart(e),this._carrier.restart(e),this}get type(){return this._carrier.type}set type(e){this._carrier.type=e}get baseType(){return this._carrier.baseType}set baseType(e){this._carrier.baseType=e}get partialCount(){return this._carrier.partialCount}set partialCount(e){this._carrier.partialCount=e}get modulationType(){return this._modulator.type}set modulationType(e){this._modulator.type=e}get phase(){return this._carrier.phase}set phase(e){this._carrier.phase=e,this._modulator.phase=e}get partials(){return this._carrier.partials}set partials(e){this._carrier.partials=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.harmonicity.dispose(),this._carrier.dispose(),this._modulator.dispose(),this._modulationNode.dispose(),this.modulationIndex.dispose(),this}}class Hr extends _t{constructor(){super(Z(Hr.getDefaults(),arguments,["frequency","width"])),this.name="PulseOscillator",this._widthGate=new Fe({context:this.context,gain:0}),this._thresh=new nr({context:this.context,mapping:t=>t<=0?-1:1});const e=Z(Hr.getDefaults(),arguments,["frequency","width"]);this.width=new je({context:this.context,units:"audioRange",value:e.width}),this._triangle=new rt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase,type:"triangle"}),this.frequency=this._triangle.frequency,this.detune=this._triangle.detune,this._triangle.chain(this._thresh,this.output),this.width.chain(this._widthGate,this._thresh),Ue(this,["width","frequency","detune"])}static getDefaults(){return Object.assign(_t.getDefaults(),{detune:0,frequency:440,phase:0,type:"pulse",width:.2})}_start(e){e=this.toSeconds(e),this._triangle.start(e),this._widthGate.gain.setValueAtTime(1,e)}_stop(e){e=this.toSeconds(e),this._triangle.stop(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(0,e)}_restart(e){this._triangle.restart(e),this._widthGate.gain.cancelScheduledValues(e),this._widthGate.gain.setValueAtTime(1,e)}get phase(){return this._triangle.phase}set phase(e){this._triangle.phase=e}get type(){return"pulse"}get baseType(){return"pulse"}get partials(){return[]}get partialCount(){return 0}set carrierType(e){this._triangle.type=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this._triangle.dispose(),this.width.dispose(),this._widthGate.dispose(),this._thresh.dispose(),this}}class so extends _t{constructor(){super(Z(so.getDefaults(),arguments,["frequency","type","spread"])),this.name="FatOscillator",this._oscillators=[];const e=Z(so.getDefaults(),arguments,["frequency","type","spread"]);this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({context:this.context,units:"cents",value:e.detune}),this._spread=e.spread,this._type=e.type,this._phase=e.phase,this._partials=e.partials,this._partialCount=e.partialCount,this.count=e.count,Ue(this,["frequency","detune"])}static getDefaults(){return Object.assign(rt.getDefaults(),{count:3,spread:20,type:"sawtooth"})}_start(e){e=this.toSeconds(e),this._forEach(t=>t.start(e))}_stop(e){e=this.toSeconds(e),this._forEach(t=>t.stop(e))}_restart(e){this._forEach(t=>t.restart(e))}_forEach(e){for(let t=0;tt.type=e)}get spread(){return this._spread}set spread(e){if(this._spread=e,this._oscillators.length>1){const t=-e/2,s=e/(this._oscillators.length-1);this._forEach((r,i)=>r.detune.value=t+s*i)}}get count(){return this._oscillators.length}set count(e){if(pn(e,1),this._oscillators.length!==e){this._forEach(t=>t.dispose()),this._oscillators=[];for(let t=0;tthis.onstop(this):Oe});this.type==="custom"&&(s.partials=this._partials),this.frequency.connect(s.frequency),this.detune.connect(s.detune),s.detune.overridden=!1,s.connect(this.output),this._oscillators[t]=s}this.spread=this._spread,this.state==="started"&&this._forEach(t=>t.start())}}get phase(){return this._phase}set phase(e){this._phase=e,this._forEach((t,s)=>t.phase=this._phase+s/this.count*360)}get baseType(){return this._oscillators[0].baseType}set baseType(e){this._forEach(t=>t.baseType=e),this._type=this._oscillators[0].type}get partials(){return this._oscillators[0].partials}set partials(e){this._partials=e,this._partialCount=this._partials.length,e.length&&(this._type="custom",this._forEach(t=>t.partials=e))}get partialCount(){return this._oscillators[0].partialCount}set partialCount(e){this._partialCount=e,this._forEach(t=>t.partialCount=e),this._type=this._oscillators[0].type}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.frequency.dispose(),this.detune.dispose(),this._forEach(e=>e.dispose()),this}}class ro extends _t{constructor(){super(Z(ro.getDefaults(),arguments,["frequency","modulationFrequency"])),this.name="PWMOscillator",this.sourceType="pwm",this._scale=new Cs({context:this.context,value:2});const e=Z(ro.getDefaults(),arguments,["frequency","modulationFrequency"]);this._pulse=new Hr({context:this.context,frequency:e.modulationFrequency}),this._pulse.carrierType="sine",this.modulationFrequency=this._pulse.frequency,this._modulator=new rt({context:this.context,detune:e.detune,frequency:e.frequency,onstop:()=>this.onstop(this),phase:e.phase}),this.frequency=this._modulator.frequency,this.detune=this._modulator.detune,this._modulator.chain(this._scale,this._pulse.width),this._pulse.connect(this.output),Ue(this,["modulationFrequency","frequency","detune"])}static getDefaults(){return Object.assign(_t.getDefaults(),{detune:0,frequency:440,modulationFrequency:.4,phase:0,type:"pwm"})}_start(e){e=this.toSeconds(e),this._modulator.start(e),this._pulse.start(e)}_stop(e){e=this.toSeconds(e),this._modulator.stop(e),this._pulse.stop(e)}_restart(e){this._modulator.restart(e),this._pulse.restart(e)}get type(){return"pwm"}get baseType(){return"pwm"}get partials(){return[]}get partialCount(){return 0}get phase(){return this._modulator.phase}set phase(e){this._modulator.phase=e}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this._pulse.dispose(),this._scale.dispose(),this._modulator.dispose(),this}}const Uf={am:to,fat:so,fm:no,oscillator:rt,pulse:Hr,pwm:ro};class sr extends _t{constructor(){super(Z(sr.getDefaults(),arguments,["frequency","type"])),this.name="OmniOscillator";const e=Z(sr.getDefaults(),arguments,["frequency","type"]);this.frequency=new je({context:this.context,units:"frequency",value:e.frequency}),this.detune=new je({context:this.context,units:"cents",value:e.detune}),Ue(this,["frequency","detune"]),this.set(e)}static getDefaults(){return Object.assign(rt.getDefaults(),no.getDefaults(),to.getDefaults(),so.getDefaults(),Hr.getDefaults(),ro.getDefaults())}_start(e){this._oscillator.start(e)}_stop(e){this._oscillator.stop(e)}_restart(e){return this._oscillator.restart(e),this}get type(){let e="";return["am","fm","fat"].some(t=>this._sourceType===t)&&(e=this._sourceType),e+this._oscillator.type}set type(e){e.substr(0,2)==="fm"?(this._createNewOscillator("fm"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,2)==="am"?(this._createNewOscillator("am"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(2)):e.substr(0,3)==="fat"?(this._createNewOscillator("fat"),this._oscillator=this._oscillator,this._oscillator.type=e.substr(3)):e==="pwm"?(this._createNewOscillator("pwm"),this._oscillator=this._oscillator):e==="pulse"?this._createNewOscillator("pulse"):(this._createNewOscillator("oscillator"),this._oscillator=this._oscillator,this._oscillator.type=e)}get partials(){return this._oscillator.partials}set partials(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partials=e)}get partialCount(){return this._oscillator.partialCount}set partialCount(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&(this._oscillator.partialCount=e)}set(e){return Reflect.has(e,"type")&&e.type&&(this.type=e.type),super.set(e),this}_createNewOscillator(e){if(e!==this._sourceType){this._sourceType=e;const t=Uf[e],s=this.now();if(this._oscillator){const r=this._oscillator;r.stop(s),this.context.setTimeout(()=>r.dispose(),this.blockTime)}this._oscillator=new t({context:this.context}),this.frequency.connect(this._oscillator.frequency),this.detune.connect(this._oscillator.detune),this._oscillator.connect(this.output),this._oscillator.onstop=()=>this.onstop(this),this.state==="started"&&this._oscillator.start(s)}}get phase(){return this._oscillator.phase}set phase(e){this._oscillator.phase=e}get sourceType(){return this._sourceType}set sourceType(e){let t="sine";this._oscillator.type!=="pwm"&&this._oscillator.type!=="pulse"&&(t=this._oscillator.type),e==="fm"?this.type="fm"+t:e==="am"?this.type="am"+t:e==="fat"?this.type="fat"+t:e==="oscillator"?this.type=t:e==="pulse"?this.type="pulse":e==="pwm"&&(this.type="pwm")}_getOscType(e,t){return e instanceof Uf[t]}get baseType(){return this._oscillator.baseType}set baseType(e){!this._getOscType(this._oscillator,"pulse")&&!this._getOscType(this._oscillator,"pwm")&&e!=="pulse"&&e!=="pwm"&&(this._oscillator.baseType=e)}get width(){if(this._getOscType(this._oscillator,"pulse"))return this._oscillator.width}get count(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.count}set count(e){this._getOscType(this._oscillator,"fat")&&ws(e)&&(this._oscillator.count=e)}get spread(){if(this._getOscType(this._oscillator,"fat"))return this._oscillator.spread}set spread(e){this._getOscType(this._oscillator,"fat")&&ws(e)&&(this._oscillator.spread=e)}get modulationType(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.modulationType}set modulationType(e){(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))&&Zn(e)&&(this._oscillator.modulationType=e)}get modulationIndex(){if(this._getOscType(this._oscillator,"fm"))return this._oscillator.modulationIndex}get harmonicity(){if(this._getOscType(this._oscillator,"fm")||this._getOscType(this._oscillator,"am"))return this._oscillator.harmonicity}get modulationFrequency(){if(this._getOscType(this._oscillator,"pwm"))return this._oscillator.modulationFrequency}asArray(e=1024){return $e(this,void 0,void 0,function*(){return ur(this,e)})}dispose(){return super.dispose(),this.detune.dispose(),this.frequency.dispose(),this._oscillator.dispose(),this}}class yh extends je{constructor(){super(Object.assign(Z(yh.getDefaults(),arguments,["value"]))),this.override=!1,this.name="Add",this._sum=new Fe({context:this.context}),this.input=this._sum,this.output=this._sum,this.addend=this._param,Zi(this._constantSource,this._sum)}static getDefaults(){return Object.assign(je.getDefaults(),{value:0})}dispose(){return super.dispose(),this._sum.dispose(),this}}class Xa extends Kn{constructor(){super(Object.assign(Z(Xa.getDefaults(),arguments,["min","max"]))),this.name="Scale";const e=Z(Xa.getDefaults(),arguments,["min","max"]);this._mult=this.input=new Cs({context:this.context,value:e.max-e.min}),this._add=this.output=new yh({context:this.context,value:e.min}),this._min=e.min,this._max=e.max,this.input.connect(this.output)}static getDefaults(){return Object.assign(Kn.getDefaults(),{max:1,min:0})}get min(){return this._min}set min(e){this._min=e,this._setRange()}get max(){return this._max}set max(e){this._max=e,this._setRange()}_setRange(){this._add.value=this._min,this._mult.value=this._max-this._min}dispose(){return super.dispose(),this._add.dispose(),this._mult.dispose(),this}}function vg(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(i,n,e),t.set(this,i)}})}}function is(n,e=1/0){const t=new WeakMap;return function(s,r){Reflect.defineProperty(s,r,{configurable:!0,enumerable:!0,get:function(){return t.get(this)},set:function(i){pn(this.toSeconds(i),n,e),t.set(this,i)}})}}class io extends _t{constructor(){super(Z(io.getDefaults(),arguments,["url","onload"])),this.name="Player",this._activeSources=new Set;const e=Z(io.getDefaults(),arguments,["url","onload"]);this._buffer=new Ae({onload:this._onload.bind(this,e.onload),onerror:e.onerror,reverse:e.reverse,url:e.url}),this.autostart=e.autostart,this._loop=e.loop,this._loopStart=e.loopStart,this._loopEnd=e.loopEnd,this._playbackRate=e.playbackRate,this.fadeIn=e.fadeIn,this.fadeOut=e.fadeOut}static getDefaults(){return Object.assign(_t.getDefaults(),{autostart:!1,fadeIn:0,fadeOut:0,loop:!1,loopEnd:0,loopStart:0,onload:Oe,onerror:Oe,playbackRate:1,reverse:!1})}load(e){return $e(this,void 0,void 0,function*(){return yield this._buffer.load(e),this._onload(),this})}_onload(e=Oe){e(),this.autostart&&this.start()}_onSourceEnd(e){this.onstop(this),this._activeSources.delete(e),this._activeSources.size===0&&!this._synced&&this._state.getValueAtTime(this.now())==="started"&&(this._state.cancel(this.now()),this._state.setStateAtTime("stopped",this.now()))}start(e,t,s){return super.start(e,t,s),this}_start(e,t,s){this._loop?t=Mr(t,this._loopStart):t=Mr(t,0);const r=this.toSeconds(t),i=s;s=Mr(s,Math.max(this._buffer.duration-r,0));let o=this.toSeconds(s);o=o/this._playbackRate,e=this.toSeconds(e);const a=new qr({url:this._buffer,context:this.context,fadeIn:this.fadeIn,fadeOut:this.fadeOut,loop:this._loop,loopEnd:this._loopEnd,loopStart:this._loopStart,onended:this._onSourceEnd.bind(this),playbackRate:this._playbackRate}).connect(this.output);!this._loop&&!this._synced&&(this._state.cancel(e+o),this._state.setStateAtTime("stopped",e+o,{implicitEnd:!0})),this._activeSources.add(a),this._loop&&Bt(i)?a.start(e,r):a.start(e,r,o-this.toSeconds(this.fadeOut))}_stop(e){const t=this.toSeconds(e);this._activeSources.forEach(s=>s.stop(t))}restart(e,t,s){return super.restart(e,t,s),this}_restart(e,t,s){var r;(r=[...this._activeSources].pop())===null||r===void 0||r.stop(e),this._start(e,t,s)}seek(e,t){const s=this.toSeconds(t);if(this._state.getValueAtTime(s)==="started"){const r=this.toSeconds(e);this._stop(s),this._start(s,r)}return this}setLoopPoints(e,t){return this.loopStart=e,this.loopEnd=t,this}get loopStart(){return this._loopStart}set loopStart(e){this._loopStart=e,this.buffer.loaded&&pn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopStart=e})}get loopEnd(){return this._loopEnd}set loopEnd(e){this._loopEnd=e,this.buffer.loaded&&pn(this.toSeconds(e),0,this.buffer.duration),this._activeSources.forEach(t=>{t.loopEnd=e})}get buffer(){return this._buffer}set buffer(e){this._buffer.set(e)}get loop(){return this._loop}set loop(e){if(this._loop!==e&&(this._loop=e,this._activeSources.forEach(t=>{t.loop=e}),e)){const t=this._state.getNextState("stopped",this.now());t&&this._state.cancel(t.time)}}get playbackRate(){return this._playbackRate}set playbackRate(e){this._playbackRate=e;const t=this.now(),s=this._state.getNextState("stopped",t);s&&s.implicitEnd&&(this._state.cancel(s.time),this._activeSources.forEach(r=>r.cancelStop())),this._activeSources.forEach(r=>{r.playbackRate.setValueAtTime(e,t)})}get reverse(){return this._buffer.reverse}set reverse(e){this._buffer.reverse=e}get loaded(){return this._buffer.loaded}dispose(){return super.dispose(),this._activeSources.forEach(e=>e.dispose()),this._activeSources.clear(),this._buffer.dispose(),this}}gn([is(0)],io.prototype,"fadeIn",void 0);gn([is(0)],io.prototype,"fadeOut",void 0);class mR extends Kn{constructor(){super(...arguments),this.name="GainToAudio",this._norm=new nr({context:this.context,mapping:e=>Math.abs(e)*2-1}),this.input=this._norm,this.output=this._norm}dispose(){return super.dispose(),this._norm.dispose(),this}}class tn extends ue{constructor(){super(Z(tn.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="Envelope",this._sig=new je({context:this.context,value:0}),this.output=this._sig,this.input=void 0;const e=Z(tn.getDefaults(),arguments,["attack","decay","sustain","release"]);this.attack=e.attack,this.decay=e.decay,this.sustain=e.sustain,this.release=e.release,this.attackCurve=e.attackCurve,this.releaseCurve=e.releaseCurve,this.decayCurve=e.decayCurve}static getDefaults(){return Object.assign(ue.getDefaults(),{attack:.01,attackCurve:"linear",decay:.1,decayCurve:"exponential",release:1,releaseCurve:"exponential",sustain:.5})}get value(){return this.getValueAtTime(this.now())}_getCurve(e,t){if(Zn(e))return e;{let s;for(s in ra)if(ra[s][t]===e)return s;return e}}_setCurve(e,t,s){if(Zn(s)&&Reflect.has(ra,s)){const r=ra[s];qs(r)?e!=="_decayCurve"&&(this[e]=r[t]):this[e]=r}else if(hn(s)&&e!=="_decayCurve")this[e]=s;else throw new Error("Envelope: invalid curve: "+s)}get attackCurve(){return this._getCurve(this._attackCurve,"In")}set attackCurve(e){this._setCurve("_attackCurve","In",e)}get releaseCurve(){return this._getCurve(this._releaseCurve,"Out")}set releaseCurve(e){this._setCurve("_releaseCurve","Out",e)}get decayCurve(){return this._getCurve(this._decayCurve,"Out")}set decayCurve(e){this._setCurve("_decayCurve","Out",e)}triggerAttack(e,t=1){this.log("triggerAttack",e,t),e=this.toSeconds(e);let r=this.toSeconds(this.attack);const i=this.toSeconds(this.decay),o=this.getValueAtTime(e);if(o>0){const a=1/r;r=(1-o)/a}if(r0){const s=this.toSeconds(this.release);s{let e,t;const s=[];for(e=0;e<128;e++)s[e]=Math.sin(e/(128-1)*(Math.PI/2));const r=[],i=6.4;for(e=0;e<128-1;e++){t=e/(128-1);const d=Math.sin(t*(Math.PI*2)*i-Math.PI/2)+1;r[e]=d/10+t*.83}r[128-1]=1;const o=[],a=5;for(e=0;e<128;e++)o[e]=Math.ceil(e/(128-1)*a)/a;const c=[];for(e=0;e<128;e++)t=e/(128-1),c[e]=.5*(1-Math.cos(Math.PI*t));const l=[];for(e=0;e<128;e++){t=e/(128-1);const d=Math.pow(t,3)*4+.2,f=Math.cos(d*Math.PI*2*t);l[e]=Math.abs(f*(1-t))}function u(d){const f=new Array(d.length);for(let m=0;mthis._original_triggerRelease(t);const e=Z(rr.getDefaults(),arguments);this._volume=this.output=new Ts({context:this.context,volume:e.volume}),this.volume=this._volume.volume,Ue(this,"volume")}static getDefaults(){return Object.assign(ue.getDefaults(),{volume:0})}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",0),this.context.transport.on("stop",this._syncedRelease),this.context.transport.on("pause",this._syncedRelease),this.context.transport.on("loopEnd",this._syncedRelease)),this}_syncState(){let e=!1;return this._synced||(this._synced=!0,e=!0),e}_syncMethod(e,t){const s=this["_original_"+e]=this[e];this[e]=(...r)=>{const i=r[t],o=this.context.transport.schedule(a=>{r[t]=a,s.apply(this,r)},i);this._scheduledEvents.push(o)}}unsync(){return this._scheduledEvents.forEach(e=>this.context.transport.clear(e)),this._scheduledEvents=[],this._synced&&(this._synced=!1,this.triggerAttack=this._original_triggerAttack,this.triggerRelease=this._original_triggerRelease,this.context.transport.off("stop",this._syncedRelease),this.context.transport.off("pause",this._syncedRelease),this.context.transport.off("loopEnd",this._syncedRelease)),this}triggerAttackRelease(e,t,s,r){const i=this.toSeconds(s),o=this.toSeconds(t);return this.triggerAttack(e,i,r),this.triggerRelease(i+o),this}dispose(){return super.dispose(),this._volume.dispose(),this.unsync(),this._scheduledEvents=[],this}}class Qn extends rr{constructor(){super(Z(Qn.getDefaults(),arguments));const e=Z(Qn.getDefaults(),arguments);this.portamento=e.portamento,this.onsilence=e.onsilence}static getDefaults(){return Object.assign(rr.getDefaults(),{detune:0,onsilence:Oe,portamento:0})}triggerAttack(e,t,s=1){this.log("triggerAttack",e,t,s);const r=this.toSeconds(t);return this._triggerEnvelopeAttack(r,s),this.setNote(e,r),this}triggerRelease(e){this.log("triggerRelease",e);const t=this.toSeconds(e);return this._triggerEnvelopeRelease(t),this}setNote(e,t){const s=this.toSeconds(t),r=e instanceof Kt?e.toFrequency():e;if(this.portamento>0&&this.getLevelAtTime(s)>.05){const i=this.toSeconds(this.portamento);this.frequency.exponentialRampTo(r,i,s)}else this.frequency.setValueAtTime(r,s);return this}}gn([is(0)],Qn.prototype,"portamento",void 0);class Rc extends tn{constructor(){super(Z(Rc.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="AmplitudeEnvelope",this._gainNode=new Fe({context:this.context,gain:0}),this.output=this._gainNode,this.input=this._gainNode,this._sig.connect(this._gainNode.gain),this.output=this._gainNode,this.input=this._gainNode}dispose(){return super.dispose(),this._gainNode.dispose(),this}}class oo extends Qn{constructor(){super(Z(oo.getDefaults(),arguments)),this.name="Synth";const e=Z(oo.getDefaults(),arguments);this.oscillator=new sr(Object.assign({context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)},e.oscillator)),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.envelope=new Rc(Object.assign({context:this.context},e.envelope)),this.oscillator.chain(this.envelope,this.output),Ue(this,["oscillator","frequency","detune","envelope"])}static getDefaults(){return Object.assign(Qn.getDefaults(),{envelope:Object.assign(Cr(tn.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.3}),oscillator:Object.assign(Cr(sr.getDefaults(),[...Object.keys(_t.getDefaults()),"frequency","detune"]),{type:"triangle"})})}_triggerEnvelopeAttack(e,t){if(this.envelope.triggerAttack(e,t),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this}}class ao extends ue{constructor(){super(Z(ao.getDefaults(),arguments,["frequency","type"])),this.name="BiquadFilter";const e=Z(ao.getDefaults(),arguments,["frequency","type"]);this._filter=this.context.createBiquadFilter(),this.input=this.output=this._filter,this.Q=new Re({context:this.context,units:"number",value:e.Q,param:this._filter.Q}),this.frequency=new Re({context:this.context,units:"frequency",value:e.frequency,param:this._filter.frequency}),this.detune=new Re({context:this.context,units:"cents",value:e.detune,param:this._filter.detune}),this.gain=new Re({context:this.context,units:"decibels",convert:!1,value:e.gain,param:this._filter.gain}),this.type=e.type}static getDefaults(){return Object.assign(ue.getDefaults(),{Q:1,type:"lowpass",frequency:350,detune:0,gain:0})}get type(){return this._filter.type}set type(e){me(["lowpass","highpass","bandpass","lowshelf","highshelf","notch","allpass","peaking"].indexOf(e)!==-1,`Invalid filter type: ${e}`),this._filter.type=e}getFrequencyResponse(e=128){const t=new Float32Array(e);for(let o=0;os.type=e)}get rolloff(){return this._rolloff}set rolloff(e){const t=ws(e)?e:parseInt(e,10),s=[-12,-24,-48,-96];let r=s.indexOf(t);me(r!==-1,`rolloff can only be ${s.join(", ")}`),r+=1,this._rolloff=t,this.input.disconnect(),this._filters.forEach(i=>i.disconnect()),this._filters=new Array(r);for(let i=0;i1);return this._filters.forEach(()=>{t.getFrequencyResponse(e).forEach((i,o)=>s[o]*=i)}),t.dispose(),s}dispose(){return super.dispose(),this._filters.forEach(e=>{e.dispose()}),dh(this,["detune","frequency","gain","Q"]),this.frequency.dispose(),this.Q.dispose(),this.detune.dispose(),this.gain.dispose(),this}}class co extends tn{constructor(){super(Z(co.getDefaults(),arguments,["attack","decay","sustain","release"])),this.name="FrequencyEnvelope";const e=Z(co.getDefaults(),arguments,["attack","decay","sustain","release"]);this._octaves=e.octaves,this._baseFrequency=this.toFrequency(e.baseFrequency),this._exponent=this.input=new Qi({context:this.context,value:e.exponent}),this._scale=this.output=new Xa({context:this.context,min:this._baseFrequency,max:this._baseFrequency*Math.pow(2,this._octaves)}),this._sig.chain(this._exponent,this._scale)}static getDefaults(){return Object.assign(tn.getDefaults(),{baseFrequency:200,exponent:1,octaves:4})}get baseFrequency(){return this._baseFrequency}set baseFrequency(e){const t=this.toFrequency(e);pn(t,0),this._baseFrequency=t,this._scale.min=this._baseFrequency,this.octaves=this._octaves}get octaves(){return this._octaves}set octaves(e){this._octaves=e,this._scale.max=this._baseFrequency*Math.pow(2,e)}get exponent(){return this._exponent.value}set exponent(e){this._exponent.value=e}dispose(){return super.dispose(),this._exponent.dispose(),this._scale.dispose(),this}}class lo extends Qn{constructor(){super(Z(lo.getDefaults(),arguments)),this.name="MonoSynth";const e=Z(lo.getDefaults(),arguments);this.oscillator=new sr(Object.assign(e.oscillator,{context:this.context,detune:e.detune,onstop:()=>this.onsilence(this)})),this.frequency=this.oscillator.frequency,this.detune=this.oscillator.detune,this.filter=new Yr(Object.assign(e.filter,{context:this.context})),this.filterEnvelope=new co(Object.assign(e.filterEnvelope,{context:this.context})),this.envelope=new Rc(Object.assign(e.envelope,{context:this.context})),this.oscillator.chain(this.filter,this.envelope,this.output),this.filterEnvelope.connect(this.filter.frequency),Ue(this,["oscillator","frequency","detune","filter","filterEnvelope","envelope"])}static getDefaults(){return Object.assign(Qn.getDefaults(),{envelope:Object.assign(Cr(tn.getDefaults(),Object.keys(ue.getDefaults())),{attack:.005,decay:.1,release:1,sustain:.9}),filter:Object.assign(Cr(Yr.getDefaults(),Object.keys(ue.getDefaults())),{Q:1,rolloff:-12,type:"lowpass"}),filterEnvelope:Object.assign(Cr(co.getDefaults(),Object.keys(ue.getDefaults())),{attack:.6,baseFrequency:200,decay:.2,exponent:2,octaves:3,release:2,sustain:.5}),oscillator:Object.assign(Cr(sr.getDefaults(),Object.keys(_t.getDefaults())),{type:"sawtooth"})})}_triggerEnvelopeAttack(e,t=1){if(this.envelope.triggerAttack(e,t),this.filterEnvelope.triggerAttack(e),this.oscillator.start(e),this.envelope.sustain===0){const s=this.toSeconds(this.envelope.attack),r=this.toSeconds(this.envelope.decay);this.oscillator.stop(e+s+r)}}_triggerEnvelopeRelease(e){this.envelope.triggerRelease(e),this.filterEnvelope.triggerRelease(e),this.oscillator.stop(e+this.toSeconds(this.envelope.release))}getLevelAtTime(e){return e=this.toSeconds(e),this.envelope.getValueAtTime(e)}dispose(){return super.dispose(),this.oscillator.dispose(),this.envelope.dispose(),this.filterEnvelope.dispose(),this.filter.dispose(),this}}class uo extends oo{constructor(){super(Z(uo.getDefaults(),arguments)),this.name="MembraneSynth",this.portamento=0;const e=Z(uo.getDefaults(),arguments);this.pitchDecay=e.pitchDecay,this.octaves=e.octaves,Ue(this,["oscillator","envelope"])}static getDefaults(){return Pr(Qn.getDefaults(),oo.getDefaults(),{envelope:{attack:.001,attackCurve:"exponential",decay:.4,release:1.4,sustain:.01},octaves:10,oscillator:{type:"sine"},pitchDecay:.05})}setNote(e,t){const s=this.toSeconds(t),r=this.toFrequency(e instanceof Kt?e.toFrequency():e),i=r*this.octaves;return this.oscillator.frequency.setValueAtTime(i,s),this.oscillator.frequency.exponentialRampToValueAtTime(r,s+this.toSeconds(this.pitchDecay)),this}dispose(){return super.dispose(),this}}gn([vg(0)],uo.prototype,"octaves",void 0);gn([is(0)],uo.prototype,"pitchDecay",void 0);const bg=new Set;function vh(n){bg.add(n)}function xg(n,e){const t=`registerProcessor("${n}", ${e})`;bg.add(t)}const gR=` /** * The base AudioWorkletProcessor for use in Tone.js. Works with the [[ToneAudioWorklet]]. */ @@ -374,7 +374,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return delayedSample; } } -`;vg(vR,bR);class ho extends rr{constructor(){super(Z(ho.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const e=Z(ho.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),t={};Object.keys(e.urls).forEach(s=>{const r=parseInt(s,10);if(me(sa(s)||ws(r)&&isFinite(r),`url key is neither a note or midi pitch: ${s}`),sa(s)){const i=new Zt(this.context,s).toMidi();t[i]=e.urls[s]}else ws(r)&&isFinite(r)&&(t[r]=e.urls[r])}),this._buffers=new gh({urls:t,onload:e.onload,baseUrl:e.baseUrl,onerror:e.onerror}),this.attack=e.attack,this.release=e.release,this.curve=e.curve,this._buffers.loaded&&Promise.resolve().then(e.onload)}static getDefaults(){return Object.assign(rr.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:Oe,onerror:Oe,release:.1,urls:{}})}_findClosest(e){let s=0;for(;s<96;){if(this._buffers.has(e+s))return-s;if(this._buffers.has(e-s))return s;s++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,t,s=1){return this.log("triggerAttack",e,t,s),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=gg(new Zt(this.context,r).toFrequency()),o=Math.round(i),a=i-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=mg(c+a),d=new qr({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(t,0,u.duration/h,s),hn(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const f=this._activeSources.get(o),g=f.indexOf(d);g!==-1&&f.splice(g,1)}}}),this}triggerRelease(e,t){return this.log("triggerRelease",e,t),Array.isArray(e)||(e=[e]),e.forEach(s=>{const r=new Zt(this.context,s).toMidi();if(this._activeSources.has(r)&&this._activeSources.get(r).length){const i=this._activeSources.get(r);t=this.toSeconds(t),i.forEach(o=>{o.stop(t)}),this._activeSources.set(r,[])}}),this}releaseAll(e){const t=this.toSeconds(e);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(t)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,t,s,r=1){const i=this.toSeconds(s);return this.triggerAttack(e,i,r),hn(t)?(me(hn(e),"notes must be an array when duration is array"),e.forEach((o,a)=>{const c=t[Math.min(a,t.length-1)];this.triggerRelease(o,i+this.toSeconds(c))})):this.triggerRelease(e,i+this.toSeconds(t)),this}add(e,t,s){if(me(sa(e)||isFinite(e),`note must be a pitch or midi: ${e}`),sa(e)){const r=new Zt(this.context,e).toMidi();this._buffers.add(r,t,s)}else this._buffers.add(e,t,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(e=>{e.forEach(t=>t.dispose())}),this._activeSources.clear(),this}}gn([is(0)],ho.prototype,"attack",void 0);gn([is(0)],ho.prototype,"release",void 0);class Za extends ue{constructor(){super(Object.assign(Z(Za.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new mR({context:this.context}),this.a=new Fe({context:this.context,gain:0}),this.b=new Fe({context:this.context,gain:0}),this.output=new Fe({context:this.context}),this._internalChannels=[this.a,this.b];const e=Z(Za.getDefaults(),arguments,["fade"]);this.fade=new je({context:this.context,units:"normalRange",value:e.fade}),Ve(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",ks(this._split,this.a.gain,0),ks(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(ue.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class Uf extends ue{constructor(e){super(e),this.name="Effect",this._dryWet=new Za({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new Fe({context:this.context}),this.effectReturn=new Fe({context:this.context}),this.input=new Fe({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(e.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Ve(this,"wet")}static getDefaults(){return Object.assign(ue.getDefaults(),{wet:1})}connectEffect(e){return this._internalChannels.push(e),this.effectSend.chain(e,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class Ka extends ue{constructor(){super(Object.assign(Z(Ka.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const e=Z(Ka.getDefaults(),arguments,["pan"]);this.pan=new Re({context:this.context,param:this._panner.pan,value:e.pan,minValue:-1,maxValue:1}),this._panner.channelCount=e.channelCount,this._panner.channelCountMode="explicit",Ve(this,"pan")}static getDefaults(){return Object.assign(ue.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const xR="bit-crusher",wR=` +`;xg(vR,bR);class ho extends rr{constructor(){super(Z(ho.getDefaults(),arguments,["urls","onload","baseUrl"],"urls")),this.name="Sampler",this._activeSources=new Map;const e=Z(ho.getDefaults(),arguments,["urls","onload","baseUrl"],"urls"),t={};Object.keys(e.urls).forEach(s=>{const r=parseInt(s,10);if(me(sa(s)||ws(r)&&isFinite(r),`url key is neither a note or midi pitch: ${s}`),sa(s)){const i=new Kt(this.context,s).toMidi();t[i]=e.urls[s]}else ws(r)&&isFinite(r)&&(t[r]=e.urls[r])}),this._buffers=new gh({urls:t,onload:e.onload,baseUrl:e.baseUrl,onerror:e.onerror}),this.attack=e.attack,this.release=e.release,this.curve=e.curve,this._buffers.loaded&&Promise.resolve().then(e.onload)}static getDefaults(){return Object.assign(rr.getDefaults(),{attack:0,baseUrl:"",curve:"exponential",onload:Oe,onerror:Oe,release:.1,urls:{}})}_findClosest(e){let s=0;for(;s<96;){if(this._buffers.has(e+s))return-s;if(this._buffers.has(e-s))return s;s++}throw new Error(`No available buffers for note: ${e}`)}triggerAttack(e,t,s=1){return this.log("triggerAttack",e,t,s),Array.isArray(e)||(e=[e]),e.forEach(r=>{const i=yg(new Kt(this.context,r).toFrequency()),o=Math.round(i),a=i-o,c=this._findClosest(o),l=o-c,u=this._buffers.get(l),h=_g(c+a),d=new qr({url:u,context:this.context,curve:this.curve,fadeIn:this.attack,fadeOut:this.release,playbackRate:h}).connect(this.output);d.start(t,0,u.duration/h,s),hn(this._activeSources.get(o))||this._activeSources.set(o,[]),this._activeSources.get(o).push(d),d.onended=()=>{if(this._activeSources&&this._activeSources.has(o)){const f=this._activeSources.get(o),m=f.indexOf(d);m!==-1&&f.splice(m,1)}}}),this}triggerRelease(e,t){return this.log("triggerRelease",e,t),Array.isArray(e)||(e=[e]),e.forEach(s=>{const r=new Kt(this.context,s).toMidi();if(this._activeSources.has(r)&&this._activeSources.get(r).length){const i=this._activeSources.get(r);t=this.toSeconds(t),i.forEach(o=>{o.stop(t)}),this._activeSources.set(r,[])}}),this}releaseAll(e){const t=this.toSeconds(e);return this._activeSources.forEach(s=>{for(;s.length;)s.shift().stop(t)}),this}sync(){return this._syncState()&&(this._syncMethod("triggerAttack",1),this._syncMethod("triggerRelease",1)),this}triggerAttackRelease(e,t,s,r=1){const i=this.toSeconds(s);return this.triggerAttack(e,i,r),hn(t)?(me(hn(e),"notes must be an array when duration is array"),e.forEach((o,a)=>{const c=t[Math.min(a,t.length-1)];this.triggerRelease(o,i+this.toSeconds(c))})):this.triggerRelease(e,i+this.toSeconds(t)),this}add(e,t,s){if(me(sa(e)||isFinite(e),`note must be a pitch or midi: ${e}`),sa(e)){const r=new Kt(this.context,e).toMidi();this._buffers.add(r,t,s)}else this._buffers.add(e,t,s);return this}get loaded(){return this._buffers.loaded}dispose(){return super.dispose(),this._buffers.dispose(),this._activeSources.forEach(e=>{e.forEach(t=>t.dispose())}),this._activeSources.clear(),this}}gn([is(0)],ho.prototype,"attack",void 0);gn([is(0)],ho.prototype,"release",void 0);class Za extends ue{constructor(){super(Object.assign(Z(Za.getDefaults(),arguments,["fade"]))),this.name="CrossFade",this._panner=this.context.createStereoPanner(),this._split=this.context.createChannelSplitter(2),this._g2a=new mR({context:this.context}),this.a=new Fe({context:this.context,gain:0}),this.b=new Fe({context:this.context,gain:0}),this.output=new Fe({context:this.context}),this._internalChannels=[this.a,this.b];const e=Z(Za.getDefaults(),arguments,["fade"]);this.fade=new je({context:this.context,units:"normalRange",value:e.fade}),Ue(this,"fade"),this.context.getConstant(1).connect(this._panner),this._panner.connect(this._split),this._panner.channelCount=1,this._panner.channelCountMode="explicit",ks(this._split,this.a.gain,0),ks(this._split,this.b.gain,1),this.fade.chain(this._g2a,this._panner.pan),this.a.connect(this.output),this.b.connect(this.output)}static getDefaults(){return Object.assign(ue.getDefaults(),{fade:.5})}dispose(){return super.dispose(),this.a.dispose(),this.b.dispose(),this.output.dispose(),this.fade.dispose(),this._g2a.dispose(),this._panner.disconnect(),this._split.disconnect(),this}}class Bf extends ue{constructor(e){super(e),this.name="Effect",this._dryWet=new Za({context:this.context}),this.wet=this._dryWet.fade,this.effectSend=new Fe({context:this.context}),this.effectReturn=new Fe({context:this.context}),this.input=new Fe({context:this.context}),this.output=this._dryWet,this.input.fan(this._dryWet.a,this.effectSend),this.effectReturn.connect(this._dryWet.b),this.wet.setValueAtTime(e.wet,0),this._internalChannels=[this.effectReturn,this.effectSend],Ue(this,"wet")}static getDefaults(){return Object.assign(ue.getDefaults(),{wet:1})}connectEffect(e){return this._internalChannels.push(e),this.effectSend.chain(e,this.effectReturn),this}dispose(){return super.dispose(),this._dryWet.dispose(),this.effectSend.dispose(),this.effectReturn.dispose(),this.wet.dispose(),this}}class Ka extends ue{constructor(){super(Object.assign(Z(Ka.getDefaults(),arguments,["pan"]))),this.name="Panner",this._panner=this.context.createStereoPanner(),this.input=this._panner,this.output=this._panner;const e=Z(Ka.getDefaults(),arguments,["pan"]);this.pan=new Re({context:this.context,param:this._panner.pan,value:e.pan,minValue:-1,maxValue:1}),this._panner.channelCount=e.channelCount,this._panner.channelCountMode="explicit",Ue(this,"pan")}static getDefaults(){return Object.assign(ue.getDefaults(),{pan:0,channelCount:1})}dispose(){return super.dispose(),this._panner.disconnect(),this.pan.dispose(),this}}const xR="bit-crusher",wR=` class BitCrusherWorklet extends SingleIOProcessor { static get parameterDescriptors() { @@ -393,7 +393,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho return val; } } -`;vg(xR,wR);class Qa extends ue{constructor(){super(Z(Qa.getDefaults(),arguments,["channels"])),this.name="Merge";const e=Z(Qa.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(e.channels)}static getDefaults(){return Object.assign(ue.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class Ja extends Uf{constructor(){super(Z(Ja.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const e=Z(Ja.getDefaults(),arguments,["decay"]);this._decay=e.decay,this._preDelay=e.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Uf.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(e){e=this.toSeconds(e),pn(e,.001),this._decay=e,this.generate()}get preDelay(){return this._preDelay}set preDelay(e){e=this.toSeconds(e),pn(e,0),this._preDelay=e,this.generate()}generate(){return $e(this,void 0,void 0,function*(){const e=this.ready,t=new Oc(2,this._decay+this._preDelay,this.context.sampleRate),s=new eo({context:t}),r=new eo({context:t}),i=new Qa({context:t});s.connect(i,0,0),r.connect(i,0,1);const o=new Fe({context:t}).toDestination();i.connect(o),s.start(0),r.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=t.render();return this.ready=a.then(Oe),yield e,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class nt extends ue{constructor(){super(Z(nt.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Z(nt.getDefaults(),arguments,["solo"]);this.input=this.output=new Fe({context:this.context}),nt._allSolos.has(this.context)||nt._allSolos.set(this.context,new Set),nt._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(ue.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),nt._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){nt._soloed.has(this.context)||nt._soloed.set(this.context,new Set),nt._soloed.get(this.context).add(this)}_removeSolo(){nt._soloed.has(this.context)&&nt._soloed.get(this.context).delete(this)}_isSoloed(){return nt._soloed.has(this.context)&&nt._soloed.get(this.context).has(this)}_noSolos(){return!nt._soloed.has(this.context)||nt._soloed.has(this.context)&&nt._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),nt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}nt._allSolos=new Map;nt._soloed=new Map;class ec extends ue{constructor(){super(Z(ec.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Z(ec.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Ka({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Ts({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,Ve(this,["pan","volume"])}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class js extends ue{constructor(){super(Z(js.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Z(js.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new nt({solo:e.solo,context:this.context}),this._panVol=this.output=new ec({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Ve(this,["pan","volume"])}static getDefaults(){return Object.assign(ue.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return js.buses.has(e)||js.buses.set(e,new Fe({context:this.context})),js.buses.get(e)}send(e,t=0){const s=this._getBus(e),r=new Fe({context:this.context,units:"decibels",gain:t});return this.connect(r),r.connect(s),r}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}js.buses=new Map;class kR extends ue{constructor(){super(...arguments),this.name="Listener",this.positionX=new Re({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Re({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Re({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Re({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Re({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Re({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Re({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Re({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Re({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(ue.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}Cc(n=>{n.listener=new kR({context:n})});Sc(n=>{n.listener.dispose()});cn().transport;const bh=cn().destination;cn().destination;cn().listener;cn().draw;cn();const xh=new Yr(900,"highpass"),bg=new Ts(-6);bg.chain(xh,bh);const TR=new Ja(3).connect(bg),Dc=new lo({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Dc.oscillator.type="triangle2";Dc.volume.value=-6;Dc.chain(xh,bh);const Pc=new lo({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(TR);Pc.oscillator.type="triangle";Pc.volume.value=-6;Pc.chain(xh,bh);function ER(){return Math.floor((Math.random()-.5)*20)}let Bf=!1;const CR=async(n=0)=>{Bf||(await eR(),Bf=!0);try{if(n>2e3)Pc.triggerAttackRelease(60,.3);else if(n>1e3){let e=310;e+=ER(),Dc.triggerAttackRelease(e,.001)}}catch(e){console.warn(e)}},ia=1800,SR=(n,e)=>n.clone().normalize().clone().negate().normalize().multiplyScalar(e).add(n),OR=(n,e,t,s,r)=>{const i=new Tp,o=1e-5;i.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),i.absarc(o,e-s*2,o,Math.PI,Math.PI/2,!0),i.absarc(n-s*2,e-s*2,o,Math.PI/2,0,!0),i.absarc(n-s*2,o,o,0,-Math.PI/2,!0);const a=new Ay(i,{depth:t-s*2,bevelEnabled:!0,bevelSegments:r,steps:2,bevelSize:s,bevelThickness:s,curveSegments:r});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(g=f.x/n+.5,p=1-(f.z/t+.5)):Math.abs(d.x)>.9?(g=-f.z/t+.5,p=1-(-f.y/e+.5)):Math.abs(d.z)>.9&&(g=f.x/n+.5,p=1-(-f.y/e+.5)),c.push(g,p)}return a.setAttribute("uv",new ua(c,2)),a};OR(10,10,10,2,10);new Oy(10,10,10);const AR=500,RR=800;let Ei=null;const DR=500,xg=(n,e)=>{if(Ei)return null;Ei=setTimeout(()=>{Ei&&(clearTimeout(Ei),Ei=null)},DR);const t=[];return n.forEach(r=>{const i=e.position.distanceTo(CE.set(r.x,r.y,r.z));ir.distance-i.distance).slice(0,AR).map(r=>r.id)};let xr,Ci;const PR=1e3,MR=2e3,NR=n=>{const e=As(),t=Ws(x=>x.isUserDragging),s=Ws(x=>x.isUserScrolling),r=Ws(x=>x.setUserMovedCamera),{data:i,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=Ue(x=>x),{camera:h}=Ye(),[d,f]=b.useState(!1),[g,p]=b.useState(!1),[m,_]=b.useState(bf),T=b.useMemo(()=>{if(a)return new _e(0,0,0);const x=i==null?void 0:i.nodes.find(R=>R.ref_id===(e==null?void 0:e.ref_id)),C=u+300;let S=new _e(0,0,C);if(x&&i){const R=i==null?void 0:i.nodes.filter(B=>{var V;return(V=x.children)==null?void 0:V.find(U=>U===B.id)}),O=new _e(x.x,x.y,x.z);let L=new _e(0,0,0);R.map(B=>(L=L.add(new _e(B.x,B.y,B.z).normalize()),B));const z=x.scale?1-1/(x.scale+10):1,W=O.sub(L).multiplyScalar(.8*z);S=O.add(W)}return S},[a,e,i,u]),w=b.useMemo(()=>{if(a)return new _e(0,0,0);const x=i==null?void 0:i.nodes.find(C=>C.ref_id===(e==null?void 0:e.ref_id));return new _e((x==null?void 0:x.x)||0,(x==null?void 0:x.y)||0,(x==null?void 0:x.z)||0)},[a,e,i]);b.useEffect(()=>{var x;a&&((x=n.current)==null||x.setLookAt(ps.x,ps.y,ps.z,0,0,0,!1)),y()},[a]),b.useEffect(()=>{a?_(AE):(e==null?void 0:e.node_type)==="topic"?_(OE):_(bf)},[e,_,a]),b.useEffect(()=>{v()},[l]),b.useEffect(()=>{(t||s)&&(f(!0),p(!0))},[t,s,f,p]),b.useEffect(()=>{if(e)if(!a&&o==="earth"&&(n!=null&&n.current)){const x=n.current.camera.position.distanceTo(new _e),C=SR(w,-x/2);n.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else xr&&clearTimeout(xr),xr=setTimeout(()=>{p(!0),clearTimeout(xr)},MR),y();return()=>{xr&&clearTimeout(xr),Ci&&clearTimeout(Ci)}},[e]),qt(x=>{n.current&&(d||k(T,x.camera),g||E(w,x.camera))});const y=()=>{if(e){const x=h.position.distanceTo(T);CR(x)}v()},v=()=>{f(!1),p(!1),r(!1),Ci&&clearTimeout(Ci),Ci=setTimeout(()=>{f(!0),p(!0)},PR)},k=(x,C)=>{if(C.position.distanceTo(x){var S;(S=n==null?void 0:n.current)==null||S.setLookAt(C.position.x,C.position.y,C.position.z,x.x,x.y,x.z,!0)};return null};let oa=null;const IR=(n,{enabled:e})=>{const t=As();NR(n);const{graphRadius:s}=Ue(r=>r);return b.useEffect(()=>{e||(oa==null||oa.kill(),oa=null)},[e]),b.useEffect(()=>{!t&&n.current&&n.current.setLookAt($i.x,$i.y,s+200,0,0,0,!0)},[t,s]),null},$R=({disableAnimations:n})=>{const e=b.useRef(null),{data:t,setNearbyNodeIds:s,setDisableCameraRotation:r}=Ue(h=>h),[i]=b.useState(.8),{camera:o}=Ye(),[a,c,l,u]=Ws(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return IR(e,{enabled:!n&&!l&&!a}),b.useEffect(()=>{if(!a){const h=xg((t==null?void 0:t.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,t==null?void 0:t.nodes,s,a]),b.useEffect(()=>{a&&r(!0)},[a,r]),P.jsx(jp,{ref:e,boundaryEnclosesCamera:!0,dollyToCursor:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:i})},FR=({node:n})=>{const{getNodeKeysByType:e}=Hn(r=>r),t=e(n.node_type)||"",s=n!=null&&n.properties?n==null?void 0:n.properties[t]:"";return P.jsx(LR,{children:P.jsxs(jR,{children:[P.jsx(zR,{children:P.jsx(Dy,{type:n.node_type})}),s&&P.jsx(VR,{children:s})]})})},LR=ye(Me)` +`;xg(xR,wR);class Qa extends ue{constructor(){super(Z(Qa.getDefaults(),arguments,["channels"])),this.name="Merge";const e=Z(Qa.getDefaults(),arguments,["channels"]);this._merger=this.output=this.input=this.context.createChannelMerger(e.channels)}static getDefaults(){return Object.assign(ue.getDefaults(),{channels:2})}dispose(){return super.dispose(),this._merger.disconnect(),this}}class Ja extends Bf{constructor(){super(Z(Ja.getDefaults(),arguments,["decay"])),this.name="Reverb",this._convolver=this.context.createConvolver(),this.ready=Promise.resolve();const e=Z(Ja.getDefaults(),arguments,["decay"]);this._decay=e.decay,this._preDelay=e.preDelay,this.generate(),this.connectEffect(this._convolver)}static getDefaults(){return Object.assign(Bf.getDefaults(),{decay:1.5,preDelay:.01})}get decay(){return this._decay}set decay(e){e=this.toSeconds(e),pn(e,.001),this._decay=e,this.generate()}get preDelay(){return this._preDelay}set preDelay(e){e=this.toSeconds(e),pn(e,0),this._preDelay=e,this.generate()}generate(){return $e(this,void 0,void 0,function*(){const e=this.ready,t=new Oc(2,this._decay+this._preDelay,this.context.sampleRate),s=new eo({context:t}),r=new eo({context:t}),i=new Qa({context:t});s.connect(i,0,0),r.connect(i,0,1);const o=new Fe({context:t}).toDestination();i.connect(o),s.start(0),r.start(0),o.gain.setValueAtTime(0,0),o.gain.setValueAtTime(1,this._preDelay),o.gain.exponentialApproachValueAtTime(0,this._preDelay,this.decay);const a=t.render();return this.ready=a.then(Oe),yield e,this._convolver.buffer=(yield a).get(),this})}dispose(){return super.dispose(),this._convolver.disconnect(),this}}class nt extends ue{constructor(){super(Z(nt.getDefaults(),arguments,["solo"])),this.name="Solo";const e=Z(nt.getDefaults(),arguments,["solo"]);this.input=this.output=new Fe({context:this.context}),nt._allSolos.has(this.context)||nt._allSolos.set(this.context,new Set),nt._allSolos.get(this.context).add(this),this.solo=e.solo}static getDefaults(){return Object.assign(ue.getDefaults(),{solo:!1})}get solo(){return this._isSoloed()}set solo(e){e?this._addSolo():this._removeSolo(),nt._allSolos.get(this.context).forEach(t=>t._updateSolo())}get muted(){return this.input.gain.value===0}_addSolo(){nt._soloed.has(this.context)||nt._soloed.set(this.context,new Set),nt._soloed.get(this.context).add(this)}_removeSolo(){nt._soloed.has(this.context)&&nt._soloed.get(this.context).delete(this)}_isSoloed(){return nt._soloed.has(this.context)&&nt._soloed.get(this.context).has(this)}_noSolos(){return!nt._soloed.has(this.context)||nt._soloed.has(this.context)&&nt._soloed.get(this.context).size===0}_updateSolo(){this._isSoloed()?this.input.gain.value=1:this._noSolos()?this.input.gain.value=1:this.input.gain.value=0}dispose(){return super.dispose(),nt._allSolos.get(this.context).delete(this),this._removeSolo(),this}}nt._allSolos=new Map;nt._soloed=new Map;class ec extends ue{constructor(){super(Z(ec.getDefaults(),arguments,["pan","volume"])),this.name="PanVol";const e=Z(ec.getDefaults(),arguments,["pan","volume"]);this._panner=this.input=new Ka({context:this.context,pan:e.pan,channelCount:e.channelCount}),this.pan=this._panner.pan,this._volume=this.output=new Ts({context:this.context,volume:e.volume}),this.volume=this._volume.volume,this._panner.connect(this._volume),this.mute=e.mute,Ue(this,["pan","volume"])}static getDefaults(){return Object.assign(ue.getDefaults(),{mute:!1,pan:0,volume:0,channelCount:1})}get mute(){return this._volume.mute}set mute(e){this._volume.mute=e}dispose(){return super.dispose(),this._panner.dispose(),this.pan.dispose(),this._volume.dispose(),this.volume.dispose(),this}}class js extends ue{constructor(){super(Z(js.getDefaults(),arguments,["volume","pan"])),this.name="Channel";const e=Z(js.getDefaults(),arguments,["volume","pan"]);this._solo=this.input=new nt({solo:e.solo,context:this.context}),this._panVol=this.output=new ec({context:this.context,pan:e.pan,volume:e.volume,mute:e.mute,channelCount:e.channelCount}),this.pan=this._panVol.pan,this.volume=this._panVol.volume,this._solo.connect(this._panVol),Ue(this,["pan","volume"])}static getDefaults(){return Object.assign(ue.getDefaults(),{pan:0,volume:0,mute:!1,solo:!1,channelCount:1})}get solo(){return this._solo.solo}set solo(e){this._solo.solo=e}get muted(){return this._solo.muted||this.mute}get mute(){return this._panVol.mute}set mute(e){this._panVol.mute=e}_getBus(e){return js.buses.has(e)||js.buses.set(e,new Fe({context:this.context})),js.buses.get(e)}send(e,t=0){const s=this._getBus(e),r=new Fe({context:this.context,units:"decibels",gain:t});return this.connect(r),r.connect(s),r}receive(e){return this._getBus(e).connect(this),this}dispose(){return super.dispose(),this._panVol.dispose(),this.pan.dispose(),this.volume.dispose(),this._solo.dispose(),this}}js.buses=new Map;class kR extends ue{constructor(){super(...arguments),this.name="Listener",this.positionX=new Re({context:this.context,param:this.context.rawContext.listener.positionX}),this.positionY=new Re({context:this.context,param:this.context.rawContext.listener.positionY}),this.positionZ=new Re({context:this.context,param:this.context.rawContext.listener.positionZ}),this.forwardX=new Re({context:this.context,param:this.context.rawContext.listener.forwardX}),this.forwardY=new Re({context:this.context,param:this.context.rawContext.listener.forwardY}),this.forwardZ=new Re({context:this.context,param:this.context.rawContext.listener.forwardZ}),this.upX=new Re({context:this.context,param:this.context.rawContext.listener.upX}),this.upY=new Re({context:this.context,param:this.context.rawContext.listener.upY}),this.upZ=new Re({context:this.context,param:this.context.rawContext.listener.upZ})}static getDefaults(){return Object.assign(ue.getDefaults(),{positionX:0,positionY:0,positionZ:0,forwardX:0,forwardY:0,forwardZ:-1,upX:0,upY:1,upZ:0})}dispose(){return super.dispose(),this.positionX.dispose(),this.positionY.dispose(),this.positionZ.dispose(),this.forwardX.dispose(),this.forwardY.dispose(),this.forwardZ.dispose(),this.upX.dispose(),this.upY.dispose(),this.upZ.dispose(),this}}Cc(n=>{n.listener=new kR({context:n})});Sc(n=>{n.listener.dispose()});cn().transport;const bh=cn().destination;cn().destination;cn().listener;cn().draw;cn();const xh=new Yr(900,"highpass"),wg=new Ts(-6);wg.chain(xh,bh);const TR=new Ja(3).connect(wg),Dc=new lo({envelope:{attack:0,decay:.9,sustain:.2,release:.1}});Dc.oscillator.type="triangle2";Dc.volume.value=-6;Dc.chain(xh,bh);const Pc=new lo({envelope:{attack:.4,decay:.9,sustain:.7,release:.6}}).connect(TR);Pc.oscillator.type="triangle";Pc.volume.value=-6;Pc.chain(xh,bh);function ER(){return Math.floor((Math.random()-.5)*20)}let Wf=!1;const CR=async(n=0)=>{Wf||(await eR(),Wf=!0);try{if(n>2e3)Pc.triggerAttackRelease(60,.3);else if(n>1e3){let e=310;e+=ER(),Dc.triggerAttackRelease(e,.001)}}catch(e){console.warn(e)}},ia=1800,SR=(n,e)=>n.clone().normalize().clone().negate().normalize().multiplyScalar(e).add(n),OR=(n,e,t,s,r)=>{const i=new Ep,o=1e-5;i.absarc(o,o,o,-Math.PI/2,-Math.PI,!0),i.absarc(o,e-s*2,o,Math.PI,Math.PI/2,!0),i.absarc(n-s*2,e-s*2,o,Math.PI/2,0,!0),i.absarc(n-s*2,o,o,0,-Math.PI/2,!0);const a=new Ry(i,{depth:t-s*2,bevelEnabled:!0,bevelSegments:r,steps:2,bevelSize:s,bevelThickness:s,curveSegments:r});a.center();const c=[],l=a.getAttribute("normal"),u=a.getAttribute("position");for(let h=0;h.9?(m=f.x/n+.5,p=1-(f.z/t+.5)):Math.abs(d.x)>.9?(m=-f.z/t+.5,p=1-(-f.y/e+.5)):Math.abs(d.z)>.9&&(m=f.x/n+.5,p=1-(-f.y/e+.5)),c.push(m,p)}return a.setAttribute("uv",new ua(c,2)),a};OR(10,10,10,2,10);new Ay(10,10,10);const AR=500,RR=800;let Ei=null;const DR=500,kg=(n,e)=>{if(Ei)return null;Ei=setTimeout(()=>{Ei&&(clearTimeout(Ei),Ei=null)},DR);const t=[];return n.forEach(r=>{const i=e.position.distanceTo(CE.set(r.x,r.y,r.z));ir.distance-i.distance).slice(0,AR).map(r=>r.id)};let xr,Ci;const PR=1e3,MR=2e3,NR=n=>{const e=As(),t=Ws(k=>k.isUserDragging),s=Ws(k=>k.isUserScrolling),r=Ws(k=>k.setUserMovedCamera),{data:i,graphStyle:o,showSelectionGraph:a,setNearbyNodeIds:c,cameraFocusTrigger:l,graphRadius:u}=ze(k=>k),{camera:h}=Ye(),[d,f]=v.useState(!1),[m,p]=v.useState(!1),[g,_]=v.useState(xf),T=v.useMemo(()=>{if(a)return new _e(0,0,0);const k=i==null?void 0:i.nodes.find(R=>R.ref_id===(e==null?void 0:e.ref_id)),C=u+300;let S=new _e(0,0,C);if(k&&i){const R=i==null?void 0:i.nodes.filter(B=>{var V;return(V=k.children)==null?void 0:V.find(U=>U===B.id)}),O=new _e(k.x,k.y,k.z);let L=new _e(0,0,0);R.map(B=>(L=L.add(new _e(B.x,B.y,B.z).normalize()),B));const z=k.scale?1-1/(k.scale+10):1,W=O.sub(L).multiplyScalar(.8*z);S=O.add(W)}return S},[a,e,i,u]),w=v.useMemo(()=>{if(a)return new _e(0,0,0);const k=i==null?void 0:i.nodes.find(C=>C.ref_id===(e==null?void 0:e.ref_id));return new _e((k==null?void 0:k.x)||0,(k==null?void 0:k.y)||0,(k==null?void 0:k.z)||0)},[a,e,i]);v.useEffect(()=>{var k;a&&((k=n.current)==null||k.setLookAt(ps.x,ps.y,ps.z,0,0,0,!1)),b()},[a]),v.useEffect(()=>{a?_(AE):(e==null?void 0:e.node_type)==="topic"?_(OE):_(xf)},[e,_,a]),v.useEffect(()=>{y()},[l]),v.useEffect(()=>{(t||s)&&(f(!0),p(!0))},[t,s,f,p]),v.useEffect(()=>{if(e)if(!a&&o==="earth"&&(n!=null&&n.current)){const k=n.current.camera.position.distanceTo(new _e),C=SR(w,-k/2);n.current.setLookAt(C.x,C.y,C.z,0,0,0,!0)}else xr&&clearTimeout(xr),xr=setTimeout(()=>{p(!0),clearTimeout(xr)},MR),b();return()=>{xr&&clearTimeout(xr),Ci&&clearTimeout(Ci)}},[e]),Ht(k=>{n.current&&(d||x(T,k.camera),m||E(w,k.camera))});const b=()=>{if(e){const k=h.position.distanceTo(T);CR(k)}y()},y=()=>{f(!1),p(!1),r(!1),Ci&&clearTimeout(Ci),Ci=setTimeout(()=>{f(!0),p(!0)},PR)},x=(k,C)=>{if(C.position.distanceTo(k){var S;(S=n==null?void 0:n.current)==null||S.setLookAt(C.position.x,C.position.y,C.position.z,k.x,k.y,k.z,!0)};return null};let oa=null;const IR=(n,{enabled:e})=>{const t=As();NR(n);const{graphRadius:s}=ze(r=>r);return v.useEffect(()=>{e||(oa==null||oa.kill(),oa=null)},[e]),v.useEffect(()=>{!t&&n.current&&n.current.setLookAt($i.x,$i.y,s+200,0,0,0,!0)},[t,s]),null},$R=({disableAnimations:n})=>{const e=v.useRef(null),{data:t,setNearbyNodeIds:s,setDisableCameraRotation:r}=ze(h=>h),[i]=v.useState(.8),{camera:o}=Ye(),[a,c,l,u]=Ws(h=>[h.isUserDragging,h.setIsUserDragging,h.isUserScrolling,h.isUserScrollingOnHtmlPanel]);return IR(e,{enabled:!n&&!l&&!a}),v.useEffect(()=>{if(!a){const h=kg((t==null?void 0:t.nodes)||[],o);h&&s(h)}},[o,o.position,o.position.x,o.position.y,o.position.z,t==null?void 0:t.nodes,s,a]),v.useEffect(()=>{a&&r(!0)},[a,r]),P.jsx(zp,{ref:e,boundaryEnclosesCamera:!0,dollyToCursor:!0,enabled:!u,makeDefault:!0,maxDistance:12e3,minDistance:100,onEnd:()=>c(!1),onStart:()=>c(!0),smoothTime:i})},FR=({node:n})=>{const{getNodeKeysByType:e}=Hn(r=>r),t=e(n.node_type)||"",s=n!=null&&n.properties?n==null?void 0:n.properties[t]:"";return P.jsx(LR,{children:P.jsxs(jR,{children:[P.jsx(zR,{children:P.jsx(Py,{type:n.node_type})}),s&&P.jsx(VR,{children:s})]})})},LR=ye(Me)` width: 390px; min-height: 100px; background: ${oe.HOVER_CARD_BG}; @@ -409,14 +409,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex-direction: column; gap: 4px; align-items: flex-start; -`,zR=ye(_p)` +`,zR=ye(yp)` font-family: Barlow; font-size: 20px; font-weight: 600; line-height: 24px; color: ${oe.white}; margin: 0; -`,VR=ye(_p)` +`,VR=ye(yp)` font-family: Barlow; font-size: 14px; font-weight: 400; @@ -431,7 +431,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho text-overflow: ellipsis; line-clamp: 3; -webkit-line-clamp: 3; -`,tc=70,UR=()=>{const n=b.useRef(null),e=b.useRef(null),t=xp();return b.useEffect(()=>{n.current&&(n.current.style.display=t?"block":"none")},[t]),b.useEffect(()=>{const s=document.getElementById("universe-canvas");let r;const i=n.current,o=e.current,a=c=>{if(!i||!o)return;c.target.tagName!=="CANVAS"?(i.style.display="none",o.style.display="none"):(s&&(s.style.cursor="none"),o.style.display="flex"),i.style.display="block";const u=i.offsetWidth,h=i.offsetHeight,d=window.innerWidth-u-10,f=window.innerHeight-h-10,g=Math.min(c.clientX+10,d),p=Math.min(c.clientY+10,f);r=requestAnimationFrame(()=>{i.style.transform=`translate(${g}px, ${p}px)`,o.style.transform=`translate(${c.clientX-tc/2}px, ${c.clientY-tc/2}px)`})};return window.addEventListener("mousemove",a),()=>{window.removeEventListener("mousemove",a),cancelAnimationFrame(r)}},[]),P.jsxs(P.Fragment,{children:[P.jsx(WR,{ref:e,children:P.jsx(Me,{className:"inner-circle",children:P.jsx("span",{className:"inner-circle__center",children:"+"})})}),P.jsx(BR,{ref:n,children:t&&P.jsx(FR,{node:t})})]})},BR=ye(Me)` +`,tc=70,UR=()=>{const n=v.useRef(null),e=v.useRef(null),t=wp();return v.useEffect(()=>{n.current&&(n.current.style.display=t?"block":"none")},[t]),v.useEffect(()=>{const s=document.getElementById("universe-canvas");let r;const i=n.current,o=e.current,a=c=>{if(!i||!o)return;c.target.tagName!=="CANVAS"?(i.style.display="none",o.style.display="none"):(s&&(s.style.cursor="none"),o.style.display="flex"),i.style.display="block";const u=i.offsetWidth,h=i.offsetHeight,d=window.innerWidth-u-10,f=window.innerHeight-h-10,m=Math.min(c.clientX+10,d),p=Math.min(c.clientY+10,f);r=requestAnimationFrame(()=>{i.style.transform=`translate(${m}px, ${p}px)`,o.style.transform=`translate(${c.clientX-tc/2}px, ${c.clientY-tc/2}px)`})};return window.addEventListener("mousemove",a),()=>{window.removeEventListener("mousemove",a),cancelAnimationFrame(r)}},[]),P.jsxs(P.Fragment,{children:[P.jsx(WR,{ref:e,children:P.jsx(Me,{className:"inner-circle",children:P.jsx("span",{className:"inner-circle__center",children:"+"})})}),P.jsx(BR,{ref:n,children:t&&P.jsx(FR,{node:t})})]})},BR=ye(Me)` position: fixed; /* Fixed position for the tooltip */ left: 0; top: 0; @@ -501,7 +501,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin-top: -2px; } } -`;function zn(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function wg(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*! +`;function zn(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Tg(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e}/*! * GSAP 3.12.4 * https://gsap.com * @@ -509,7 +509,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Bt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Gr={duration:.5,overwrite:!1,delay:0},wh,mt,Ke,Kt=1e8,Ie=1/Kt,tu=Math.PI*2,qR=tu/4,HR=0,kg=Math.sqrt,YR=Math.cos,GR=Math.sin,dt=function(e){return typeof e=="string"},Qe=function(e){return typeof e=="function"},Jn=function(e){return typeof e=="number"},kh=function(e){return typeof e>"u"},Rn=function(e){return typeof e=="object"},Rt=function(e){return e!==!1},Th=function(){return typeof window<"u"},aa=function(e){return Qe(e)||dt(e)},Tg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gt=Array.isArray,nu=/(?:-?\.?\d|\.)+/gi,Eg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Or=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ll=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Cg=/[+-]=-?[.\d]+/,Sg=/[^,'"\[\]\s]+/gi,XR=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ge,Gt,su,Eh,Wt={},nc={},Og,Ag=function(e){return(nc=ir(e,Wt))&&It},Ch=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},fo=function(e,t){return!t&&console.warn(e)},Rg=function(e,t){return e&&(Wt[e]=t)&&nc&&(nc[e]=t)||Wt},po=function(){return 0},ZR={suppressEvents:!0,isStart:!0,kill:!1},pa={suppressEvents:!0,kill:!1},KR={suppressEvents:!0},Sh={},gs=[],ru={},Dg,Ft={},ul={},Wf=30,ma=[],Oh="",Ah=function(e){var t=e[0],s,r;if(Rn(t)||Qe(t)||(e=[e]),!(s=(t._gsap||{}).harness)){for(r=ma.length;r--&&!ma[r].targetTest(t););s=ma[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new t_(e[r],s)))||e.splice(r,1);return e},Ys=function(e){return e._gsap||Ah(Qt(e))[0]._gsap},Pg=function(e,t,s){return(s=e[t])&&Qe(s)?e[t]():kh(s)&&e.getAttribute&&e.getAttribute(t)||s},Dt=function(e,t){return(e=e.split(",")).forEach(t)||e},st=function(e){return Math.round(e*1e5)/1e5||0},ut=function(e){return Math.round(e*1e7)/1e7||0},Nr=function(e,t){var s=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),s==="+"?e+r:s==="-"?e-r:s==="*"?e*r:e/r},QR=function(e,t){for(var s=t.length,r=0;e.indexOf(t[r])<0&&++ra;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[s],e[s]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Mc=function(e,t,s,r){s===void 0&&(s="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[s]===t&&(e[s]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ss=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Gs=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var s=e;s;)s._dirty=1,s=s.parent;return e},tD=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},iu=function(e,t,s,r){return e._startAt&&(mt?e._startAt.revert(pa):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},nD=function n(e){return!e||e._ts&&n(e.parent)},Hf=function(e){return e._repeat?Xr(e._tTime,e=e.duration()+e._rDelay)*e:0},Xr=function(e,t){var s=Math.floor(e/=t);return e&&s===e?s-1:s},ic=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Nc=function(e){return e._end=ut(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ie)||0))},Ic=function(e,t){var s=e._dp;return s&&s.smoothChildTiming&&e._ts&&(e._start=ut(s._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Nc(e),s._dirty||Gs(s,e)),e},Fg=function(e,t){var s;if((t._time||!t._dur&&t._initted||t._startIe)&&t.render(s,!0)),Gs(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&s.totalTime(s._tTime),s=s._dp;e._zTime=-Ie}},kn=function(e,t,s,r){return t.parent&&Ss(t),t._start=ut((Jn(s)?s:s||e!==Ge?Yt(e,s,t):e._time)+t._delay),t._end=ut(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),$g(e,t,"_first","_last",e._sort?"_start":0),ou(t)||(e._recent=t),r||Fg(e,t),e._ts<0&&Ic(e,e._tTime),e},Lg=function(e,t){return(Wt.ScrollTrigger||Ch("scrollTrigger",t))&&Wt.ScrollTrigger.create(t,e)},jg=function(e,t,s,r,i){if(Dh(e,t,i),!e._initted)return 1;if(!s&&e._pt&&!mt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Dg!==jt.frame)return gs.push(e),e._lazy=[i,r],1},sD=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},ou=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},rD=function(e,t,s,r){var i=e.ratio,o=t<0||!t&&(!e._start&&sD(e)&&!(!e._initted&&ou(e))||(e._ts<0||e._dp._ts<0)&&!ou(e))?0:1,a=e._rDelay,c=0,l,u,h;if(a&&e._repeat&&(c=Lo(0,e._tDur,t),u=Xr(c,a),e._yoyo&&u&1&&(o=1-o),u!==Xr(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||mt||r||e._zTime===Ie||!t&&e._zTime){if(!e._initted&&jg(e,t,r,s,c))return;for(h=e._zTime,e._zTime=t||(s?Ie:0),s||(s=t&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=c,l=e._pt;l;)l.r(o,l.d),l=l._next;t<0&&iu(e,t,s,!0),e._onUpdate&&!s&&zt(e,"onUpdate"),c&&e._repeat&&!s&&e.parent&&zt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Ss(e,1),!s&&!mt&&(zt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},iD=function(e,t,s){var r;if(s>t)for(r=e._first;r&&r._start<=s;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=s;){if(r.data==="isPause"&&r._start0&&!r&&Ic(e,e._tTime=e._tDur*a),e.parent&&Nc(e),s||Gs(e.parent,e),e},Yf=function(e){return e instanceof wt?Gs(e):Zr(e,e._dur)},oD={_start:0,endTime:po,totalDuration:po},Yt=function n(e,t,s){var r=e.labels,i=e._recent||oD,o=e.duration()>=Kt?i.endTime(!1):e._dur,a,c,l;return dt(t)&&(isNaN(t)||t in r)?(c=t.charAt(0),l=t.substr(-1)==="%",a=t.indexOf("="),c==="<"||c===">"?(a>=0&&(t=t.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(t.substr(1))||0)*(l?(a<0?i:s).totalDuration()/100:1)):a<0?(t in r||(r[t]=o),r[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),l&&s&&(c=c/100*(gt(s)?s[0]:s).totalDuration()),a>1?n(e,t.substr(0,a-1),s)+c:o+c)):t==null?o:+t},ji=function(e,t,s){var r=Jn(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],a,c;if(r&&(o.duration=t[1]),o.parent=s,e){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Rt(c.vars.inherit)&&c.parent;o.immediateRender=Rt(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new ot(t[0],o,t[i+1])},Ps=function(e,t){return e||e===0?t(e):t},Lo=function(e,t,s){return st?t:s},pt=function(e,t){return!dt(e)||!(t=XR.exec(e))?"":t[1]},aD=function(e,t,s){return Ps(s,function(r){return Lo(e,t,r)})},au=[].slice,zg=function(e,t){return e&&Rn(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Rn(e[0]))&&!e.nodeType&&e!==Gt},cD=function(e,t,s){return s===void 0&&(s=[]),e.forEach(function(r){var i;return dt(r)&&!t||zg(r,1)?(i=s).push.apply(i,Qt(r)):s.push(r)})||s},Qt=function(e,t,s){return Ke&&!t&&Ke.selector?Ke.selector(e):dt(e)&&!s&&(su||!Kr())?au.call((t||Eh).querySelectorAll(e),0):gt(e)?cD(e,s):zg(e)?au.call(e,0):e?[e]:[]},cu=function(e){return e=Qt(e)[0]||fo("Invalid scope")||{},function(t){var s=e.current||e.nativeElement||e;return Qt(t,s.querySelectorAll?s:s===e?fo("Invalid scope")||Eh.createElement("div"):e)}},Vg=function(e){return e.sort(function(){return .5-Math.random()})},Ug=function(e){if(Qe(e))return e;var t=Rn(e)?e:{each:e},s=Xs(t.ease),r=t.from||0,i=parseFloat(t.base)||0,o={},a=r>0&&r<1,c=isNaN(r)||a,l=t.axis,u=r,h=r;return dt(r)?u=h={center:.5,edges:.5,end:1}[r]||0:!a&&c&&(u=r[0],h=r[1]),function(d,f,g){var p=(g||t).length,m=o[p],_,T,w,y,v,k,E,x,C;if(!m){if(C=t.grid==="auto"?0:(t.grid||[1,Kt])[1],!C){for(E=-Kt;E<(E=g[C++].getBoundingClientRect().left)&&CE&&(E=v),vp?p-1:l?l==="y"?p/C:C:Math.max(C,p/C))||0)*(r==="edges"?-1:1),m.b=p<0?i-p:i,m.u=pt(t.amount||t.each)||0,s=s&&p<0?Qg(s):s}return p=(m[d]-m.min)/m.max||0,ut(m.b+(s?s(p):p)*m.v)+m.u}},lu=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var r=ut(Math.round(parseFloat(s)/e)*e*t);return(r-r%1)/t+(Jn(s)?0:pt(s))}},Bg=function(e,t){var s=gt(e),r,i;return!s&&Rn(e)&&(r=s=e.radius||Kt,e.values?(e=Qt(e.values),(i=!Jn(e[0]))&&(r*=r)):e=lu(e.increment)),Ps(t,s?Qe(e)?function(o){return i=e(o),Math.abs(i-o)<=r?i:o}:function(o){for(var a=parseFloat(i?o.x:o),c=parseFloat(i?o.y:0),l=Kt,u=0,h=e.length,d,f;h--;)i?(d=e[h].x-a,f=e[h].y-c,d=d*d+f*f):d=Math.abs(e[h]-a),dr?i-o:o)})},mo=function(e){for(var t=0,s="",r,i,o,a;~(r=e.indexOf("random(",t));)o=e.indexOf(")",r),a=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(a?Sg:nu),s+=e.substr(t,r-t)+Wg(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return s+e.substr(t,e.length-t)},Hg=function(e,t,s,r,i){var o=t-e,a=r-s;return Ps(i,function(c){return s+((c-e)/o*a||0)})},pD=function n(e,t,s,r){var i=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!i){var o=dt(e),a={},c,l,u,h,d;if(s===!0&&(r=1)&&(s=null),o)e={p:e},t={p:t};else if(gt(e)&&!gt(t)){for(u=[],h=e.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,i=a);return c},zt=function(e,t,s){var r=e.vars,i=r[t],o=Ke,a=e._ctx,c,l,u;if(i)return c=r[t+"Params"],l=r.callbackScope||e,s&&gs.length&&sc(),a&&(Ke=a),u=c?i.apply(l,c):i.call(l),Ke=o,u},Ri=function(e){return Ss(e),e.scrollTrigger&&e.scrollTrigger.kill(!!mt),e.progress()<1&&zt(e,"onInterrupt"),e},Ar,Yg=[],Gg=function(e){if(Th()&&e){e=!e.name&&e.default||e;var t=e.name,s=Qe(e),r=t&&!s&&e.init?function(){this._props=[]}:e,i={init:po,render:Nh,add:Rh,kill:RD,modifier:AD,rawVars:0},o={targetTest:0,get:0,getSetter:Mh,aliases:{},register:0};if(Kr(),e!==r){if(Ft[t])return;nn(r,nn(rc(e,i),o)),ir(r.prototype,ir(i,rc(e,o))),Ft[r.prop=t]=r,e.targetTest&&(ma.push(r),Sh[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Rg(t,r),e.register&&e.register(It,r,Pt)}else e&&Yg.push(e)},Ne=255,Di={aqua:[0,Ne,Ne],lime:[0,Ne,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ne],navy:[0,0,128],white:[Ne,Ne,Ne],olive:[128,128,0],yellow:[Ne,Ne,0],orange:[Ne,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ne,0,0],pink:[Ne,192,203],cyan:[0,Ne,Ne],transparent:[Ne,Ne,Ne,0]},hl=function(e,t,s){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(s-t)*e*6:e<.5?s:e*3<2?t+(s-t)*(2/3-e)*6:t)*Ne+.5|0},Xg=function(e,t,s){var r=e?Jn(e)?[e>>16,e>>8&Ne,e&Ne]:0:Di.black,i,o,a,c,l,u,h,d,f,g;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Di[e])r=Di[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+i+i+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Ne,r&Ne,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Ne,e&Ne]}else if(e.substr(0,3)==="hsl"){if(r=g=e.match(nu),!t)c=+r[0]%360/360,l=+r[1]/100,u=+r[2]/100,o=u<=.5?u*(l+1):u+l-u*l,i=u*2-o,r.length>3&&(r[3]*=1),r[0]=hl(c+1/3,i,o),r[1]=hl(c,i,o),r[2]=hl(c-1/3,i,o);else if(~e.indexOf("="))return r=e.match(Eg),s&&r.length<4&&(r[3]=1),r}else r=e.match(nu)||Di.transparent;r=r.map(Number)}return t&&!g&&(i=r[0]/Ne,o=r[1]/Ne,a=r[2]/Ne,h=Math.max(i,o,a),d=Math.min(i,o,a),u=(h+d)/2,h===d?c=l=0:(f=h-d,l=u>.5?f/(2-h-d):f/(h+d),c=h===i?(o-a)/f+(oe&&(s+=_-t),r+=_,v=r-s,w=v-o,(w>0||T)&&(k=++h.frame,d=v-h.time*1e3,h.time=v=v/1e3,o+=w+(w>=i?4:i-w),y=1),T||(c=l(p)),y)for(f=0;f=_&&f--},_listeners:a},h}(),Kr=function(){return!go&&jt.wake()},we={},gD=/^[\d.\-M][\d.\-,\s]/,_D=/["']/g,yD=function(e){for(var t={},s=e.substr(1,e.length-3).split(":"),r=s[0],i=1,o=s.length,a,c,l;i1&&s.config?s.config.apply(null,~e.indexOf("{")?[yD(t[1])]:vD(e).split(",").map(Ng)):we._CE&&gD.test(e)?we._CE("",e):s},Qg=function(e){return function(t){return 1-e(1-t)}},Jg=function n(e,t){for(var s=e._first,r;s;)s instanceof wt?n(s,t):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==t&&(s.timeline?n(s.timeline,t):(r=s._ease,s._ease=s._yEase,s._yEase=r,s._yoyo=t)),s=s._next},Xs=function(e,t){return e&&(Qe(e)?e:we[e]||bD(e))||t},hr=function(e,t,s,r){s===void 0&&(s=function(c){return 1-t(1-c)}),r===void 0&&(r=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var i={easeIn:t,easeOut:s,easeInOut:r},o;return Dt(e,function(a){we[a]=Wt[a]=i,we[o=a.toLowerCase()]=s;for(var c in i)we[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=we[a+"."+c]=i[c]}),i},e_=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},dl=function n(e,t,s){var r=t>=1?t:1,i=(s||(e?.3:.45))/(t<1?t:1),o=i/tu*(Math.asin(1/r)||0),a=function(u){return u===1?1:r*Math.pow(2,-10*u)*GR((u-o)*i)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:e_(a);return i=tu/i,c.config=function(l,u){return n(e,l,u)},c},fl=function n(e,t){t===void 0&&(t=1.70158);var s=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?s:e==="in"?function(i){return 1-s(1-i)}:e_(s);return r.config=function(i){return n(e,i)},r};Dt("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;hr(n+",Power"+(t-1),e?function(s){return Math.pow(s,t)}:function(s){return s},function(s){return 1-Math.pow(1-s,t)},function(s){return s<.5?Math.pow(s*2,t)/2:1-Math.pow((1-s)*2,t)/2})});we.Linear.easeNone=we.none=we.Linear.easeIn;hr("Elastic",dl("in"),dl("out"),dl());(function(n,e){var t=1/e,s=2*t,r=2.5*t,i=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,Zr(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,r){if(Kr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Ic(this,s),!i._dp||i.parent||Fg(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&kn(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Ie||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Mg(this,s,r)),this},e.time=function(s,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Hf(this))%(this._dur+this._rDelay)||(s?this._dur:0),r):this._time},e.totalProgress=function(s,r){return arguments.length?this.totalTime(this.totalDuration()*s,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(s,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Hf(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(s,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*i,r):this._repeat?Xr(this._tTime,i)+1:1},e.timeScale=function(s,r){if(!arguments.length)return this._rts===-Ie?0:this._rts;if(this._rts===s)return this;var i=this.parent&&this._ts?ic(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ie?0:this._rts,this.totalTime(Lo(-Math.abs(this._delay),this._tDur,i),r!==!1),Nc(this),tD(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Kr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ie&&(this._tTime-=Ie)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&kn(r,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(Rt(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var r=this.parent||this._dp;return r?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ic(r.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=KR);var r=mt;return mt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),mt=r,this},e.globalTime=function(s){for(var r=this,i=arguments.length?s:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(s):i},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Yf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var r=this._time;return this._rDelay=s,Yf(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,r){return this.totalTime(Yt(this,s),Rt(r))},e.restart=function(s,r){return this.play().totalTime(s?-this._delay:0,Rt(r))},e.play=function(s,r){return s!=null&&this.seek(s,r),this.reversed(!1).paused(!1)},e.reverse=function(s,r){return s!=null&&this.seek(s||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(s,r){return s!=null&&this.seek(s,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ie:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ie,this},e.isActive=function(){var s=this.parent||this._dp,r=this._start,i;return!!(!s||this._ts&&this._initted&&s.isActive()&&(i=s.rawTime(!0))>=r&&i1?(r?(o[s]=r,i&&(o[s+"Params"]=i),s==="onUpdate"&&(this._onUpdate=r)):delete o[s],this):o[s]},e.then=function(s){var r=this;return new Promise(function(i){var o=Qe(s)?s:Ig,a=function(){var l=r.then;r.then=null,Qe(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=l),i(o),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){Ri(this)},n}();nn(_o.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ie,_prom:0,_ps:!1,_rts:1});var wt=function(n){wg(e,n);function e(s,r){var i;return s===void 0&&(s={}),i=n.call(this,s)||this,i.labels={},i.smoothChildTiming=!!s.smoothChildTiming,i.autoRemoveChildren=!!s.autoRemoveChildren,i._sort=Rt(s.sortChildren),Ge&&kn(s.parent||Ge,zn(i),r),s.reversed&&i.reverse(),s.paused&&i.paused(!0),s.scrollTrigger&&Lg(zn(i),s.scrollTrigger),i}var t=e.prototype;return t.to=function(r,i,o){return ji(0,arguments,this),this},t.from=function(r,i,o){return ji(1,arguments,this),this},t.fromTo=function(r,i,o,a){return ji(2,arguments,this),this},t.set=function(r,i,o){return i.duration=0,i.parent=this,Li(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new ot(r,i,Yt(this,o),1),this},t.call=function(r,i,o){return kn(this,ot.delayedCall(0,r,i),o)},t.staggerTo=function(r,i,o,a,c,l,u){return o.duration=i,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new ot(r,o,Yt(this,c)),this},t.staggerFrom=function(r,i,o,a,c,l,u){return o.runBackwards=1,Li(o).immediateRender=Rt(o.immediateRender),this.staggerTo(r,i,o,a,c,l,u)},t.staggerFromTo=function(r,i,o,a,c,l,u,h){return a.startAt=o,Li(a).immediateRender=Rt(a.immediateRender),this.staggerTo(r,i,a,c,l,u,h)},t.render=function(r,i,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=r<=0?0:ut(r),h=this._zTime<0!=r<0&&(this._initted||!l),d,f,g,p,m,_,T,w,y,v,k,E;if(this!==Ge&&u>c&&r>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,r+=this._time-a),d=u,y=this._start,w=this._ts,_=!w,h&&(l||(a=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(k=this._yoyo,m=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(m*100+r,i,o);if(d=ut(u%m),u===c?(p=this._repeat,d=l):(p=~~(u/m),p&&p===u/m&&(d=l,p--),d>l&&(d=l)),v=Xr(this._tTime,m),!a&&this._tTime&&v!==p&&this._tTime-v*m-this._dur<=0&&(v=p),k&&p&1&&(d=l-d,E=1),p!==v&&!this._lock){var x=k&&v&1,C=x===(k&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(g=f._next,(f._act||d>=f._start)&&f._ts&&T!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,i,o),d!==this._time||!this._ts&&!_){T=0,g&&(u+=this._zTime=-Ie);break}}f=g}else{f=this._last;for(var S=r<0?r:d;f;){if(g=f._prev,(f._act||S<=f._end)&&f._ts&&T!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(S-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(S-f._start)*f._ts,i,o||mt&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){T=0,g&&(u+=this._zTime=S?-Ie:Ie);break}}f=g}}if(T&&!i&&(this.pause(),T.render(d>=a?0:-Ie)._zTime=d>=a?1:-1,this._ts))return this._start=y,Nc(this),this.render(r,i,o);this._onUpdate&&!i&&zt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(y===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ss(this,1),!i&&!(r<0&&!a)&&(u||a||!c)&&(zt(this,u===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Jn(i)||(i=Yt(this,i,r)),!(r instanceof _o)){if(gt(r))return r.forEach(function(a){return o.add(a,i)}),this;if(dt(r))return this.addLabel(r,i);if(Qe(r))r=ot.delayedCall(0,r);else return this}return this!==r?kn(this,r,i):this},t.getChildren=function(r,i,o,a){r===void 0&&(r=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),a===void 0&&(a=-Kt);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof ot?i&&c.push(l):(o&&c.push(l),r&&c.push.apply(c,l.getChildren(!0,i,o)))),l=l._next;return c},t.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},t.remove=function(r){return dt(r)?this.removeLabel(r):Qe(r)?this.killTweensOf(r):(Mc(this,r),r===this._recent&&(this._recent=this._last),Gs(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ut(jt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=Yt(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var a=ot.delayedCall(0,i||po,o);return a.data="isPause",this._hasPause=1,kn(this,a,Yt(this,r))},t.removePause=function(r){var i=this._first;for(r=Yt(this,r);i;)i._start===r&&i.data==="isPause"&&Ss(i),i=i._next},t.killTweensOf=function(r,i,o){for(var a=this.getTweensOf(r,o),c=a.length;c--;)hs!==a[c]&&a[c].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],a=Qt(r),c=this._first,l=Jn(i),u;c;)c instanceof ot?QR(c._targets,a)&&(l?(!hs||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&o.push(c):(u=c.getTweensOf(a,i)).length&&o.push.apply(o,u),c=c._next;return o},t.tweenTo=function(r,i){i=i||{};var o=this,a=Yt(o,r),c=i,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,f,g=ot.to(o,nn({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ie,onStart:function(){if(o.pause(),!f){var m=i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());g._dur!==m&&Zr(g,m,0,1).render(g._time,!0,!0),f=1}u&&u.apply(g,h||[])}},i));return d?g.render(0):g},t.tweenFromTo=function(r,i,o){return this.tweenTo(i,nn({startAt:{time:Yt(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),Gf(this,Yt(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),Gf(this,Yt(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Ie)},t.shiftChildren=function(r,i,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=r,a._end+=r),a=a._next;if(i)for(l in c)c[l]>=o&&(c[l]+=r);return Gs(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return n.prototype.invalidate.call(this,r)},t.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Gs(this)},t.totalDuration=function(r){var i=0,o=this,a=o._last,c=Kt,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,kn(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(i-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>i&&a._ts&&(i=a._end),a=l;Zr(o,o===Ge&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(Ge._ts&&(Mg(Ge,ic(r,Ge)),Dg=jt.frame),jt.frame>=Wf){Wf+=Bt.autoSleep||120;var i=Ge._first;if((!i||!i._ts)&&Bt.autoSleep&&jt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||jt.sleep()}}},e}(_o);nn(wt.prototype,{_lock:0,_hasPause:0,_forcing:0});var xD=function(e,t,s,r,i,o,a){var c=new Pt(this._pt,e,t,0,1,a_,null,i),l=0,u=0,h,d,f,g,p,m,_,T;for(c.b=s,c.e=r,s+="",r+="",(_=~r.indexOf("random("))&&(r=mo(r)),o&&(T=[s,r],o(T,e,t),s=T[0],r=T[1]),d=s.match(ll)||[];h=ll.exec(r);)g=h[0],p=r.substring(l,h.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),g!==d[u++]&&(m=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:p||u===1?p:",",s:m,c:g.charAt(1)==="="?Nr(m,g)-m:parseFloat(g)-m,m:f&&f<4?Math.round:0},l=ll.lastIndex);return c.c=l")}),y.duration();else{k={};for(x in g)x==="ease"||x==="easeEach"||ED(x,g[x],k,g.easeEach);for(x in k)for(L=k[x].sort(function(B,V){return B.t-V.t}),O=0,v=0;vc-Ie&&!u?c:rl&&(d=l)),_=this._yoyo&&g&1,_&&(y=this._yEase,d=l-d),m=Xr(this._tTime,p),d===a&&!o&&this._initted&&g===m)return this._tTime=h,this;g!==m&&(w&&this._yEase&&Jg(w,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(ut(p*g),!0).invalidate()._lock=0))}if(!this._initted){if(jg(this,u?r:d,o,i,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&g!==m))return this;if(l!==this._dur)return this.render(r,i,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=T=(y||this._ease)(d/l),this._from&&(this.ratio=T=1-T),d&&!a&&!i&&!g&&(zt(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(T,f.d),f=f._next;w&&w.render(r<0?r:!d&&_?-Ie:w._dur*w._ease(d/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(u&&iu(this,r,i,o),zt(this,"onUpdate")),this._repeat&&g!==m&&this.vars.onRepeat&&!i&&this.parent&&zt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&iu(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ss(this,1),!i&&!(u&&!a)&&(h||a||_)&&(zt(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),n.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,a,c){go||jt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Dh(this,l),u=this._ease(l/this._dur),kD(this,r,i,o,a,u,l,c)?this.resetTo(r,i,o,a,1):(Ic(this,0),this.parent||$g(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Ri(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,hs&&hs.vars.overwrite!==!0)._first||Ri(this),this.parent&&o!==this.timeline.totalDuration()&&Zr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=r?Qt(r):a,l=this._ptLookup,u=this._pt,h,d,f,g,p,m,_;if((!i||i==="all")&&eD(a,c))return i==="all"&&(this._pt=0),Ri(this);for(h=this._op=this._op||[],i!=="all"&&(dt(i)&&(p={},Dt(i,function(T){return p[T]=1}),i=p),i=TD(a,i)),_=a.length;_--;)if(~c.indexOf(a[_])){d=l[_],i==="all"?(h[_]=i,g=d,f={}):(f=h[_]=h[_]||{},g=i);for(p in g)m=d&&d[p],m&&((!("kill"in m.d)||m.d.kill(p)===!0)&&Mc(this,m,"_pt"),delete d[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&u&&Ri(this),this},e.to=function(r,i){return new e(r,i,arguments[2])},e.from=function(r,i){return ji(1,arguments)},e.delayedCall=function(r,i,o,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(r,i,o){return ji(2,arguments)},e.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(r,i)},e.killTweensOf=function(r,i,o){return Ge.killTweensOf(r,i,o)},e}(_o);nn(ot.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Dt("staggerTo,staggerFrom,staggerFromTo",function(n){ot[n]=function(){var e=new wt,t=au.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var Ph=function(e,t,s){return e[t]=s},i_=function(e,t,s){return e[t](s)},CD=function(e,t,s,r){return e[t](r.fp,s)},SD=function(e,t,s){return e.setAttribute(t,s)},Mh=function(e,t){return Qe(e[t])?i_:kh(e[t])&&e.setAttribute?SD:Ph},o_=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},OD=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},a_=function(e,t){var s=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;s;)r=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+r,s=s._next;r+=t.c}t.set(t.t,t.p,r,t)},Nh=function(e,t){for(var s=t._pt;s;)s.r(e,s.d),s=s._next},AD=function(e,t,s,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,s),i=o},RD=function(e){for(var t=this._pt,s,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Mc(this,t,"_pt"):t.dep||(s=1),t=r;return!s},DD=function(e,t,s,r){r.mSet(e,t,r.m.call(r.tween,s,r.mt),r)},c_=function(e){for(var t=e._pt,s,r,i,o;t;){for(s=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:o)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:o=t,t=s}e._pt=i},Pt=function(){function n(t,s,r,i,o,a,c,l,u){this.t=s,this.s=i,this.c=o,this.p=r,this.r=a||o_,this.d=c||this,this.set=l||Ph,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(s,r,i){this.mSet=this.mSet||this.set,this.set=DD,this.m=s,this.mt=i,this.tween=r},n}();Dt(Oh+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(n){return Sh[n]=1});Wt.TweenMax=Wt.TweenLite=ot;Wt.TimelineLite=Wt.TimelineMax=wt;Ge=new wt({sortChildren:!1,defaults:Gr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Bt.stringFilter=Kg;var Zs=[],ga={},PD=[],Zf=0,MD=0,pl=function(e){return(ga[e]||PD).map(function(t){return t()})},hu=function(){var e=Date.now(),t=[];e-Zf>2&&(pl("matchMediaInit"),Zs.forEach(function(s){var r=s.queries,i=s.conditions,o,a,c,l;for(a in r)o=Gt.matchMedia(r[a]).matches,o&&(c=1),o!==i[a]&&(i[a]=o,l=1);l&&(s.revert(),c&&t.push(s))}),pl("matchMediaRevert"),t.forEach(function(s){return s.onMatch(s,function(r){return s.add(null,r)})}),Zf=e,pl("matchMedia"))},l_=function(){function n(t,s){this.selector=s&&cu(s),this.data=[],this._r=[],this.isReverted=!1,this.id=MD++,t&&this.add(t)}var e=n.prototype;return e.add=function(s,r,i){Qe(s)&&(i=r,r=s,s=Qe);var o=this,a=function(){var l=Ke,u=o.selector,h;return l&&l!==o&&l.data.push(o),i&&(o.selector=cu(i)),Ke=o,h=r.apply(o,arguments),Qe(h)&&o._r.push(h),Ke=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Qe?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},e.ignore=function(s){var r=Ke;Ke=null,s(this),Ke=r},e.getTweens=function(){var s=[];return this.data.forEach(function(r){return r instanceof n?s.push.apply(s,r.getTweens()):r instanceof ot&&!(r.parent&&r.parent.data==="nested")&&s.push(r)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,r){var i=this;if(s?function(){for(var a=i.getTweens(),c=i.data.length,l;c--;)l=i.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=i.data.length;c--;)l=i.data[c],l instanceof wt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof ot)&&l.revert&&l.revert(s);i._r.forEach(function(u){return u(s,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Zs.length;o--;)Zs[o].id===this.id&&Zs.splice(o,1)},e.revert=function(s){this.kill(s||{})},n}(),ND=function(){function n(t){this.contexts=[],this.scope=t}var e=n.prototype;return e.add=function(s,r,i){Rn(s)||(s={matches:s});var o=new l_(0,i||this.scope),a=o.conditions={},c,l,u;Ke&&!o.selector&&(o.selector=Ke.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=s;for(l in s)l==="all"?u=1:(c=Gt.matchMedia(s[l]),c&&(Zs.indexOf(o)<0&&Zs.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(hu):c.addEventListener("change",hu)));return u&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(s){this.kill(s||{})},e.kill=function(s){this.contexts.forEach(function(r){return r.kill(s,!0)})},n}(),oc={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),s=0;s1){var r=e.map(function(u){return It.quickSetter(u,t,s)}),i=r.length;return function(u){for(var h=i;h--;)r[h](u)}}e=e[0]||{};var o=Ft[t],a=Ys(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;Ar._pt=0,h.init(e,s?u+s:u,Ar,0,[e]),h.render(1,h),Ar._pt&&Nh(1,Ar)}:a.set(e,c);return o?l:function(u){return l(e,c,s?u+s:u,a,1)}},quickTo:function(e,t,s){var r,i=It.to(e,ir((r={},r[t]="+=0.1",r.paused=!0,r),s||{})),o=function(c,l,u){return i.resetTo(t,c,l,u)};return o.tween=i,o},isTweening:function(e){return Ge.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Xs(e.ease,Gr.ease)),qf(Gr,e||{})},config:function(e){return qf(Bt,e||{})},registerEffect:function(e){var t=e.name,s=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Ft[a]&&!Wt[a]&&fo(t+" effect requires "+a+" plugin.")}),ul[t]=function(a,c,l){return s(Qt(a),nn(c||{},i),l)},o&&(wt.prototype[t]=function(a,c,l){return this.add(ul[t](a,Rn(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){we[e]=Xs(t)},parseEase:function(e,t){return arguments.length?Xs(e,t):we},getById:function(e){return Ge.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var s=new wt(e),r,i;for(s.smoothChildTiming=Rt(e.smoothChildTiming),Ge.remove(s),s._dp=0,s._time=s._tTime=Ge._time,r=Ge._first;r;)i=r._next,(t||!(!r._dur&&r instanceof ot&&r.vars.onComplete===r._targets[0]))&&kn(s,r,r._start-r._delay),r=i;return kn(Ge,s,0),s},context:function(e,t){return e?new l_(e,t):Ke},matchMedia:function(e){return new ND(e)},matchMediaRefresh:function(){return Zs.forEach(function(e){var t=e.conditions,s,r;for(r in t)t[r]&&(t[r]=!1,s=1);s&&e.revert()})||hu()},addEventListener:function(e,t){var s=ga[e]||(ga[e]=[]);~s.indexOf(t)||s.push(t)},removeEventListener:function(e,t){var s=ga[e],r=s&&s.indexOf(t);r>=0&&s.splice(r,1)},utils:{wrap:dD,wrapYoyo:fD,distribute:Ug,random:Wg,snap:Bg,normalize:hD,getUnit:pt,clamp:aD,splitColor:Xg,toArray:Qt,selector:cu,mapRange:Hg,pipe:lD,unitize:uD,interpolate:pD,shuffle:Vg},install:Ag,effects:ul,ticker:jt,updateRoot:wt.updateRoot,plugins:Ft,globalTimeline:Ge,core:{PropTween:Pt,globals:Rg,Tween:ot,Timeline:wt,Animation:_o,getCache:Ys,_removeLinkedListItem:Mc,reverting:function(){return mt},context:function(e){return e&&Ke&&(Ke.data.push(e),e._ctx=Ke),Ke},suppressOverwrites:function(e){return wh=e}}};Dt("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return oc[n]=ot[n]});jt.add(wt.updateRoot);Ar=oc.to({},{duration:0});var ID=function(e,t){for(var s=e._pt;s&&s.p!==t&&s.op!==t&&s.fp!==t;)s=s._next;return s},$D=function(e,t){var s=e._targets,r,i,o;for(r in t)for(i=s.length;i--;)o=e._ptLookup[i][r],o&&(o=o.d)&&(o._pt&&(o=ID(o,r)),o&&o.modifier&&o.modifier(t[r],e,s[i],r))},ml=function(e,t){return{name:e,rawVars:1,init:function(r,i,o){o._onInit=function(a){var c,l;if(dt(i)&&(c={},Dt(i,function(u){return c[u]=1}),i=c),t){c={};for(l in i)c[l]=t(i[l]);i=c}$D(a,i)}}}},It=oc.registerPlugin({name:"attr",init:function(e,t,s,r,i){var o,a,c;this.tween=s;for(o in t)c=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(c||0)+"",t[o],r,i,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(e,t){for(var s=t._pt;s;)mt?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",init:function(e,t){for(var s=t.length;s--;)this.add(e,s,e[s]||0,t[s],0,0,0,0,0,1)}},ml("roundProps",lu),ml("modifiers"),ml("snap",Bg))||oc;ot.version=wt.version=It.version="3.12.4";Og=1;Th()&&Kr();we.Power0;we.Power1;we.Power2;we.Power3;we.Power4;we.Linear;we.Quad;we.Cubic;we.Quart;we.Quint;we.Strong;we.Elastic;we.Back;we.SteppedEase;we.Bounce;we.Sine;we.Expo;we.Circ;/*! +*/var Wt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Gr={duration:.5,overwrite:!1,delay:0},wh,mt,Ke,Qt=1e8,Ie=1/Qt,tu=Math.PI*2,qR=tu/4,HR=0,Eg=Math.sqrt,YR=Math.cos,GR=Math.sin,dt=function(e){return typeof e=="string"},Qe=function(e){return typeof e=="function"},Jn=function(e){return typeof e=="number"},kh=function(e){return typeof e>"u"},Rn=function(e){return typeof e=="object"},Rt=function(e){return e!==!1},Th=function(){return typeof window<"u"},aa=function(e){return Qe(e)||dt(e)},Cg=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gt=Array.isArray,nu=/(?:-?\.?\d|\.)+/gi,Sg=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Or=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ll=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Og=/[+-]=-?[.\d]+/,Ag=/[^,'"\[\]\s]+/gi,XR=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ge,Xt,su,Eh,qt={},nc={},Rg,Dg=function(e){return(nc=ir(e,qt))&&$t},Ch=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},fo=function(e,t){return!t&&console.warn(e)},Pg=function(e,t){return e&&(qt[e]=t)&&nc&&(nc[e]=t)||qt},po=function(){return 0},ZR={suppressEvents:!0,isStart:!0,kill:!1},pa={suppressEvents:!0,kill:!1},KR={suppressEvents:!0},Sh={},gs=[],ru={},Mg,Lt={},ul={},qf=30,ma=[],Oh="",Ah=function(e){var t=e[0],s,r;if(Rn(t)||Qe(t)||(e=[e]),!(s=(t._gsap||{}).harness)){for(r=ma.length;r--&&!ma[r].targetTest(t););s=ma[r]}for(r=e.length;r--;)e[r]&&(e[r]._gsap||(e[r]._gsap=new s_(e[r],s)))||e.splice(r,1);return e},Ys=function(e){return e._gsap||Ah(Jt(e))[0]._gsap},Ng=function(e,t,s){return(s=e[t])&&Qe(s)?e[t]():kh(s)&&e.getAttribute&&e.getAttribute(t)||s},Dt=function(e,t){return(e=e.split(",")).forEach(t)||e},st=function(e){return Math.round(e*1e5)/1e5||0},ut=function(e){return Math.round(e*1e7)/1e7||0},Nr=function(e,t){var s=t.charAt(0),r=parseFloat(t.substr(2));return e=parseFloat(e),s==="+"?e+r:s==="-"?e-r:s==="*"?e*r:e/r},QR=function(e,t){for(var s=t.length,r=0;e.indexOf(t[r])<0&&++ra;)o=o._prev;return o?(t._next=o._next,o._next=t):(t._next=e[s],e[s]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e,t},Mc=function(e,t,s,r){s===void 0&&(s="_first"),r===void 0&&(r="_last");var i=t._prev,o=t._next;i?i._next=o:e[s]===t&&(e[s]=o),o?o._prev=i:e[r]===t&&(e[r]=i),t._next=t._prev=t.parent=null},Ss=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},Gs=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var s=e;s;)s._dirty=1,s=s.parent;return e},tD=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},iu=function(e,t,s,r){return e._startAt&&(mt?e._startAt.revert(pa):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,r))},nD=function n(e){return!e||e._ts&&n(e.parent)},Yf=function(e){return e._repeat?Xr(e._tTime,e=e.duration()+e._rDelay)*e:0},Xr=function(e,t){var s=Math.floor(e/=t);return e&&s===e?s-1:s},ic=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Nc=function(e){return e._end=ut(e._start+(e._tDur/Math.abs(e._ts||e._rts||Ie)||0))},Ic=function(e,t){var s=e._dp;return s&&s.smoothChildTiming&&e._ts&&(e._start=ut(s._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Nc(e),s._dirty||Gs(s,e)),e},jg=function(e,t){var s;if((t._time||!t._dur&&t._initted||t._startIe)&&t.render(s,!0)),Gs(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&s.totalTime(s._tTime),s=s._dp;e._zTime=-Ie}},kn=function(e,t,s,r){return t.parent&&Ss(t),t._start=ut((Jn(s)?s:s||e!==Ge?Gt(e,s,t):e._time)+t._delay),t._end=ut(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),Lg(e,t,"_first","_last",e._sort?"_start":0),ou(t)||(e._recent=t),r||jg(e,t),e._ts<0&&Ic(e,e._tTime),e},zg=function(e,t){return(qt.ScrollTrigger||Ch("scrollTrigger",t))&&qt.ScrollTrigger.create(t,e)},Vg=function(e,t,s,r,i){if(Dh(e,t,i),!e._initted)return 1;if(!s&&e._pt&&!mt&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&Mg!==zt.frame)return gs.push(e),e._lazy=[i,r],1},sD=function n(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||n(t))},ou=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},rD=function(e,t,s,r){var i=e.ratio,o=t<0||!t&&(!e._start&&sD(e)&&!(!e._initted&&ou(e))||(e._ts<0||e._dp._ts<0)&&!ou(e))?0:1,a=e._rDelay,c=0,l,u,h;if(a&&e._repeat&&(c=Lo(0,e._tDur,t),u=Xr(c,a),e._yoyo&&u&1&&(o=1-o),u!==Xr(e._tTime,a)&&(i=1-o,e.vars.repeatRefresh&&e._initted&&e.invalidate())),o!==i||mt||r||e._zTime===Ie||!t&&e._zTime){if(!e._initted&&Vg(e,t,r,s,c))return;for(h=e._zTime,e._zTime=t||(s?Ie:0),s||(s=t&&!h),e.ratio=o,e._from&&(o=1-o),e._time=0,e._tTime=c,l=e._pt;l;)l.r(o,l.d),l=l._next;t<0&&iu(e,t,s,!0),e._onUpdate&&!s&&Vt(e,"onUpdate"),c&&e._repeat&&!s&&e.parent&&Vt(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===o&&(o&&Ss(e,1),!s&&!mt&&(Vt(e,o?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},iD=function(e,t,s){var r;if(s>t)for(r=e._first;r&&r._start<=s;){if(r.data==="isPause"&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=s;){if(r.data==="isPause"&&r._start0&&!r&&Ic(e,e._tTime=e._tDur*a),e.parent&&Nc(e),s||Gs(e.parent,e),e},Gf=function(e){return e instanceof wt?Gs(e):Zr(e,e._dur)},oD={_start:0,endTime:po,totalDuration:po},Gt=function n(e,t,s){var r=e.labels,i=e._recent||oD,o=e.duration()>=Qt?i.endTime(!1):e._dur,a,c,l;return dt(t)&&(isNaN(t)||t in r)?(c=t.charAt(0),l=t.substr(-1)==="%",a=t.indexOf("="),c==="<"||c===">"?(a>=0&&(t=t.replace(/=/,"")),(c==="<"?i._start:i.endTime(i._repeat>=0))+(parseFloat(t.substr(1))||0)*(l?(a<0?i:s).totalDuration()/100:1)):a<0?(t in r||(r[t]=o),r[t]):(c=parseFloat(t.charAt(a-1)+t.substr(a+1)),l&&s&&(c=c/100*(gt(s)?s[0]:s).totalDuration()),a>1?n(e,t.substr(0,a-1),s)+c:o+c)):t==null?o:+t},ji=function(e,t,s){var r=Jn(t[1]),i=(r?2:1)+(e<2?0:1),o=t[i],a,c;if(r&&(o.duration=t[1]),o.parent=s,e){for(a=o,c=s;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Rt(c.vars.inherit)&&c.parent;o.immediateRender=Rt(a.immediateRender),e<2?o.runBackwards=1:o.startAt=t[i-1]}return new ot(t[0],o,t[i+1])},Ps=function(e,t){return e||e===0?t(e):t},Lo=function(e,t,s){return st?t:s},pt=function(e,t){return!dt(e)||!(t=XR.exec(e))?"":t[1]},aD=function(e,t,s){return Ps(s,function(r){return Lo(e,t,r)})},au=[].slice,Ug=function(e,t){return e&&Rn(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&Rn(e[0]))&&!e.nodeType&&e!==Xt},cD=function(e,t,s){return s===void 0&&(s=[]),e.forEach(function(r){var i;return dt(r)&&!t||Ug(r,1)?(i=s).push.apply(i,Jt(r)):s.push(r)})||s},Jt=function(e,t,s){return Ke&&!t&&Ke.selector?Ke.selector(e):dt(e)&&!s&&(su||!Kr())?au.call((t||Eh).querySelectorAll(e),0):gt(e)?cD(e,s):Ug(e)?au.call(e,0):e?[e]:[]},cu=function(e){return e=Jt(e)[0]||fo("Invalid scope")||{},function(t){var s=e.current||e.nativeElement||e;return Jt(t,s.querySelectorAll?s:s===e?fo("Invalid scope")||Eh.createElement("div"):e)}},Bg=function(e){return e.sort(function(){return .5-Math.random()})},Wg=function(e){if(Qe(e))return e;var t=Rn(e)?e:{each:e},s=Xs(t.ease),r=t.from||0,i=parseFloat(t.base)||0,o={},a=r>0&&r<1,c=isNaN(r)||a,l=t.axis,u=r,h=r;return dt(r)?u=h={center:.5,edges:.5,end:1}[r]||0:!a&&c&&(u=r[0],h=r[1]),function(d,f,m){var p=(m||t).length,g=o[p],_,T,w,b,y,x,E,k,C;if(!g){if(C=t.grid==="auto"?0:(t.grid||[1,Qt])[1],!C){for(E=-Qt;E<(E=m[C++].getBoundingClientRect().left)&&CE&&(E=y),yp?p-1:l?l==="y"?p/C:C:Math.max(C,p/C))||0)*(r==="edges"?-1:1),g.b=p<0?i-p:i,g.u=pt(t.amount||t.each)||0,s=s&&p<0?e_(s):s}return p=(g[d]-g.min)/g.max||0,ut(g.b+(s?s(p):p)*g.v)+g.u}},lu=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(s){var r=ut(Math.round(parseFloat(s)/e)*e*t);return(r-r%1)/t+(Jn(s)?0:pt(s))}},qg=function(e,t){var s=gt(e),r,i;return!s&&Rn(e)&&(r=s=e.radius||Qt,e.values?(e=Jt(e.values),(i=!Jn(e[0]))&&(r*=r)):e=lu(e.increment)),Ps(t,s?Qe(e)?function(o){return i=e(o),Math.abs(i-o)<=r?i:o}:function(o){for(var a=parseFloat(i?o.x:o),c=parseFloat(i?o.y:0),l=Qt,u=0,h=e.length,d,f;h--;)i?(d=e[h].x-a,f=e[h].y-c,d=d*d+f*f):d=Math.abs(e[h]-a),dr?i-o:o)})},mo=function(e){for(var t=0,s="",r,i,o,a;~(r=e.indexOf("random(",t));)o=e.indexOf(")",r),a=e.charAt(r+7)==="[",i=e.substr(r+7,o-r-7).match(a?Ag:nu),s+=e.substr(t,r-t)+Hg(a?i:+i[0],a?0:+i[1],+i[2]||1e-5),t=o+1;return s+e.substr(t,e.length-t)},Gg=function(e,t,s,r,i){var o=t-e,a=r-s;return Ps(i,function(c){return s+((c-e)/o*a||0)})},pD=function n(e,t,s,r){var i=isNaN(e+t)?0:function(f){return(1-f)*e+f*t};if(!i){var o=dt(e),a={},c,l,u,h,d;if(s===!0&&(r=1)&&(s=null),o)e={p:e},t={p:t};else if(gt(e)&&!gt(t)){for(u=[],h=e.length,d=h-2,l=1;l(a=Math.abs(a))&&(c=o,i=a);return c},Vt=function(e,t,s){var r=e.vars,i=r[t],o=Ke,a=e._ctx,c,l,u;if(i)return c=r[t+"Params"],l=r.callbackScope||e,s&&gs.length&&sc(),a&&(Ke=a),u=c?i.apply(l,c):i.call(l),Ke=o,u},Ri=function(e){return Ss(e),e.scrollTrigger&&e.scrollTrigger.kill(!!mt),e.progress()<1&&Vt(e,"onInterrupt"),e},Ar,Xg=[],Zg=function(e){if(Th()&&e){e=!e.name&&e.default||e;var t=e.name,s=Qe(e),r=t&&!s&&e.init?function(){this._props=[]}:e,i={init:po,render:Nh,add:Rh,kill:RD,modifier:AD,rawVars:0},o={targetTest:0,get:0,getSetter:Mh,aliases:{},register:0};if(Kr(),e!==r){if(Lt[t])return;nn(r,nn(rc(e,i),o)),ir(r.prototype,ir(i,rc(e,o))),Lt[r.prop=t]=r,e.targetTest&&(ma.push(r),Sh[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}Pg(t,r),e.register&&e.register($t,r,Pt)}else e&&Xg.push(e)},Ne=255,Di={aqua:[0,Ne,Ne],lime:[0,Ne,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Ne],navy:[0,0,128],white:[Ne,Ne,Ne],olive:[128,128,0],yellow:[Ne,Ne,0],orange:[Ne,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Ne,0,0],pink:[Ne,192,203],cyan:[0,Ne,Ne],transparent:[Ne,Ne,Ne,0]},hl=function(e,t,s){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(s-t)*e*6:e<.5?s:e*3<2?t+(s-t)*(2/3-e)*6:t)*Ne+.5|0},Kg=function(e,t,s){var r=e?Jn(e)?[e>>16,e>>8&Ne,e&Ne]:0:Di.black,i,o,a,c,l,u,h,d,f,m;if(!r){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Di[e])r=Di[e];else if(e.charAt(0)==="#"){if(e.length<6&&(i=e.charAt(1),o=e.charAt(2),a=e.charAt(3),e="#"+i+i+o+o+a+a+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return r=parseInt(e.substr(1,6),16),[r>>16,r>>8&Ne,r&Ne,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),r=[e>>16,e>>8&Ne,e&Ne]}else if(e.substr(0,3)==="hsl"){if(r=m=e.match(nu),!t)c=+r[0]%360/360,l=+r[1]/100,u=+r[2]/100,o=u<=.5?u*(l+1):u+l-u*l,i=u*2-o,r.length>3&&(r[3]*=1),r[0]=hl(c+1/3,i,o),r[1]=hl(c,i,o),r[2]=hl(c-1/3,i,o);else if(~e.indexOf("="))return r=e.match(Sg),s&&r.length<4&&(r[3]=1),r}else r=e.match(nu)||Di.transparent;r=r.map(Number)}return t&&!m&&(i=r[0]/Ne,o=r[1]/Ne,a=r[2]/Ne,h=Math.max(i,o,a),d=Math.min(i,o,a),u=(h+d)/2,h===d?c=l=0:(f=h-d,l=u>.5?f/(2-h-d):f/(h+d),c=h===i?(o-a)/f+(oe&&(s+=_-t),r+=_,y=r-s,w=y-o,(w>0||T)&&(x=++h.frame,d=y-h.time*1e3,h.time=y=y/1e3,o+=w+(w>=i?4:i-w),b=1),T||(c=l(p)),b)for(f=0;f=_&&f--},_listeners:a},h}(),Kr=function(){return!go&&zt.wake()},we={},gD=/^[\d.\-M][\d.\-,\s]/,_D=/["']/g,yD=function(e){for(var t={},s=e.substr(1,e.length-3).split(":"),r=s[0],i=1,o=s.length,a,c,l;i1&&s.config?s.config.apply(null,~e.indexOf("{")?[yD(t[1])]:vD(e).split(",").map($g)):we._CE&&gD.test(e)?we._CE("",e):s},e_=function(e){return function(t){return 1-e(1-t)}},t_=function n(e,t){for(var s=e._first,r;s;)s instanceof wt?n(s,t):s.vars.yoyoEase&&(!s._yoyo||!s._repeat)&&s._yoyo!==t&&(s.timeline?n(s.timeline,t):(r=s._ease,s._ease=s._yEase,s._yEase=r,s._yoyo=t)),s=s._next},Xs=function(e,t){return e&&(Qe(e)?e:we[e]||bD(e))||t},hr=function(e,t,s,r){s===void 0&&(s=function(c){return 1-t(1-c)}),r===void 0&&(r=function(c){return c<.5?t(c*2)/2:1-t((1-c)*2)/2});var i={easeIn:t,easeOut:s,easeInOut:r},o;return Dt(e,function(a){we[a]=qt[a]=i,we[o=a.toLowerCase()]=s;for(var c in i)we[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=we[a+"."+c]=i[c]}),i},n_=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},dl=function n(e,t,s){var r=t>=1?t:1,i=(s||(e?.3:.45))/(t<1?t:1),o=i/tu*(Math.asin(1/r)||0),a=function(u){return u===1?1:r*Math.pow(2,-10*u)*GR((u-o)*i)+1},c=e==="out"?a:e==="in"?function(l){return 1-a(1-l)}:n_(a);return i=tu/i,c.config=function(l,u){return n(e,l,u)},c},fl=function n(e,t){t===void 0&&(t=1.70158);var s=function(o){return o?--o*o*((t+1)*o+t)+1:0},r=e==="out"?s:e==="in"?function(i){return 1-s(1-i)}:n_(s);return r.config=function(i){return n(e,i)},r};Dt("Linear,Quad,Cubic,Quart,Quint,Strong",function(n,e){var t=e<5?e+1:e;hr(n+",Power"+(t-1),e?function(s){return Math.pow(s,t)}:function(s){return s},function(s){return 1-Math.pow(1-s,t)},function(s){return s<.5?Math.pow(s*2,t)/2:1-Math.pow((1-s)*2,t)/2})});we.Linear.easeNone=we.none=we.Linear.easeIn;hr("Elastic",dl("in"),dl("out"),dl());(function(n,e){var t=1/e,s=2*t,r=2.5*t,i=function(a){return a0?s+(s+this._rDelay)*this._repeat:s):this.totalDuration()&&this._dur},e.totalDuration=function(s){return arguments.length?(this._dirty=0,Zr(this,this._repeat<0?s:(s-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(s,r){if(Kr(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Ic(this,s),!i._dp||i.parent||jg(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&s0||!this._tDur&&!s)&&kn(this._dp,this,this._start-this._delay)}return(this._tTime!==s||!this._dur&&!r||this._initted&&Math.abs(this._zTime)===Ie||!s&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=s),Ig(this,s,r)),this},e.time=function(s,r){return arguments.length?this.totalTime(Math.min(this.totalDuration(),s+Yf(this))%(this._dur+this._rDelay)||(s?this._dur:0),r):this._time},e.totalProgress=function(s,r){return arguments.length?this.totalTime(this.totalDuration()*s,r):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(s,r){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-s:s)+Yf(this),r):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(s,r){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(s-1)*i,r):this._repeat?Xr(this._tTime,i)+1:1},e.timeScale=function(s,r){if(!arguments.length)return this._rts===-Ie?0:this._rts;if(this._rts===s)return this;var i=this.parent&&this._ts?ic(this.parent._time,this):this._tTime;return this._rts=+s||0,this._ts=this._ps||s===-Ie?0:this._rts,this.totalTime(Lo(-Math.abs(this._delay),this._tDur,i),r!==!1),Nc(this),tD(this)},e.paused=function(s){return arguments.length?(this._ps!==s&&(this._ps=s,s?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Kr(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==Ie&&(this._tTime-=Ie)))),this):this._ps},e.startTime=function(s){if(arguments.length){this._start=s;var r=this.parent||this._dp;return r&&(r._sort||!this.parent)&&kn(r,this,s-this._delay),this}return this._start},e.endTime=function(s){return this._start+(Rt(s)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(s){var r=this.parent||this._dp;return r?s&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?ic(r.rawTime(s),this):this._tTime:this._tTime},e.revert=function(s){s===void 0&&(s=KR);var r=mt;return mt=s,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(s),this.totalTime(-.01,s.suppressEvents)),this.data!=="nested"&&s.kill!==!1&&this.kill(),mt=r,this},e.globalTime=function(s){for(var r=this,i=arguments.length?s:r.rawTime();r;)i=r._start+i/(Math.abs(r._ts)||1),r=r._dp;return!this.parent&&this._sat?this._sat.globalTime(s):i},e.repeat=function(s){return arguments.length?(this._repeat=s===1/0?-2:s,Gf(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(s){if(arguments.length){var r=this._time;return this._rDelay=s,Gf(this),r?this.time(r):this}return this._rDelay},e.yoyo=function(s){return arguments.length?(this._yoyo=s,this):this._yoyo},e.seek=function(s,r){return this.totalTime(Gt(this,s),Rt(r))},e.restart=function(s,r){return this.play().totalTime(s?-this._delay:0,Rt(r))},e.play=function(s,r){return s!=null&&this.seek(s,r),this.reversed(!1).paused(!1)},e.reverse=function(s,r){return s!=null&&this.seek(s||this.totalDuration(),r),this.reversed(!0).paused(!1)},e.pause=function(s,r){return s!=null&&this.seek(s,r),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(s){return arguments.length?(!!s!==this.reversed()&&this.timeScale(-this._rts||(s?-Ie:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-Ie,this},e.isActive=function(){var s=this.parent||this._dp,r=this._start,i;return!!(!s||this._ts&&this._initted&&s.isActive()&&(i=s.rawTime(!0))>=r&&i1?(r?(o[s]=r,i&&(o[s+"Params"]=i),s==="onUpdate"&&(this._onUpdate=r)):delete o[s],this):o[s]},e.then=function(s){var r=this;return new Promise(function(i){var o=Qe(s)?s:Fg,a=function(){var l=r.then;r.then=null,Qe(o)&&(o=o(r))&&(o.then||o===r)&&(r.then=l),i(o),r.then=l};r._initted&&r.totalProgress()===1&&r._ts>=0||!r._tTime&&r._ts<0?a():r._prom=a})},e.kill=function(){Ri(this)},n}();nn(_o.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-Ie,_prom:0,_ps:!1,_rts:1});var wt=function(n){Tg(e,n);function e(s,r){var i;return s===void 0&&(s={}),i=n.call(this,s)||this,i.labels={},i.smoothChildTiming=!!s.smoothChildTiming,i.autoRemoveChildren=!!s.autoRemoveChildren,i._sort=Rt(s.sortChildren),Ge&&kn(s.parent||Ge,zn(i),r),s.reversed&&i.reverse(),s.paused&&i.paused(!0),s.scrollTrigger&&zg(zn(i),s.scrollTrigger),i}var t=e.prototype;return t.to=function(r,i,o){return ji(0,arguments,this),this},t.from=function(r,i,o){return ji(1,arguments,this),this},t.fromTo=function(r,i,o,a){return ji(2,arguments,this),this},t.set=function(r,i,o){return i.duration=0,i.parent=this,Li(i).repeatDelay||(i.repeat=0),i.immediateRender=!!i.immediateRender,new ot(r,i,Gt(this,o),1),this},t.call=function(r,i,o){return kn(this,ot.delayedCall(0,r,i),o)},t.staggerTo=function(r,i,o,a,c,l,u){return o.duration=i,o.stagger=o.stagger||a,o.onComplete=l,o.onCompleteParams=u,o.parent=this,new ot(r,o,Gt(this,c)),this},t.staggerFrom=function(r,i,o,a,c,l,u){return o.runBackwards=1,Li(o).immediateRender=Rt(o.immediateRender),this.staggerTo(r,i,o,a,c,l,u)},t.staggerFromTo=function(r,i,o,a,c,l,u,h){return a.startAt=o,Li(a).immediateRender=Rt(a.immediateRender),this.staggerTo(r,i,a,c,l,u,h)},t.render=function(r,i,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,l=this._dur,u=r<=0?0:ut(r),h=this._zTime<0!=r<0&&(this._initted||!l),d,f,m,p,g,_,T,w,b,y,x,E;if(this!==Ge&&u>c&&r>=0&&(u=c),u!==this._tTime||o||h){if(a!==this._time&&l&&(u+=this._time-a,r+=this._time-a),d=u,b=this._start,w=this._ts,_=!w,h&&(l||(a=this._zTime),(r||!i)&&(this._zTime=r)),this._repeat){if(x=this._yoyo,g=l+this._rDelay,this._repeat<-1&&r<0)return this.totalTime(g*100+r,i,o);if(d=ut(u%g),u===c?(p=this._repeat,d=l):(p=~~(u/g),p&&p===u/g&&(d=l,p--),d>l&&(d=l)),y=Xr(this._tTime,g),!a&&this._tTime&&y!==p&&this._tTime-y*g-this._dur<=0&&(y=p),x&&p&1&&(d=l-d,E=1),p!==y&&!this._lock){var k=x&&y&1,C=k===(x&&p&1);if(p=a&&r>=0)for(f=this._first;f;){if(m=f._next,(f._act||d>=f._start)&&f._ts&&T!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(d-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(d-f._start)*f._ts,i,o),d!==this._time||!this._ts&&!_){T=0,m&&(u+=this._zTime=-Ie);break}}f=m}else{f=this._last;for(var S=r<0?r:d;f;){if(m=f._prev,(f._act||S<=f._end)&&f._ts&&T!==f){if(f.parent!==this)return this.render(r,i,o);if(f.render(f._ts>0?(S-f._start)*f._ts:(f._dirty?f.totalDuration():f._tDur)+(S-f._start)*f._ts,i,o||mt&&(f._initted||f._startAt)),d!==this._time||!this._ts&&!_){T=0,m&&(u+=this._zTime=S?-Ie:Ie);break}}f=m}}if(T&&!i&&(this.pause(),T.render(d>=a?0:-Ie)._zTime=d>=a?1:-1,this._ts))return this._start=b,Nc(this),this.render(r,i,o);this._onUpdate&&!i&&Vt(this,"onUpdate",!0),(u===c&&this._tTime>=this.totalDuration()||!u&&a)&&(b===this._start||Math.abs(w)!==Math.abs(this._ts))&&(this._lock||((r||!l)&&(u===c&&this._ts>0||!u&&this._ts<0)&&Ss(this,1),!i&&!(r<0&&!a)&&(u||a||!c)&&(Vt(this,u===c&&r>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u0)&&this._prom())))}return this},t.add=function(r,i){var o=this;if(Jn(i)||(i=Gt(this,i,r)),!(r instanceof _o)){if(gt(r))return r.forEach(function(a){return o.add(a,i)}),this;if(dt(r))return this.addLabel(r,i);if(Qe(r))r=ot.delayedCall(0,r);else return this}return this!==r?kn(this,r,i):this},t.getChildren=function(r,i,o,a){r===void 0&&(r=!0),i===void 0&&(i=!0),o===void 0&&(o=!0),a===void 0&&(a=-Qt);for(var c=[],l=this._first;l;)l._start>=a&&(l instanceof ot?i&&c.push(l):(o&&c.push(l),r&&c.push.apply(c,l.getChildren(!0,i,o)))),l=l._next;return c},t.getById=function(r){for(var i=this.getChildren(1,1,1),o=i.length;o--;)if(i[o].vars.id===r)return i[o]},t.remove=function(r){return dt(r)?this.removeLabel(r):Qe(r)?this.killTweensOf(r):(Mc(this,r),r===this._recent&&(this._recent=this._last),Gs(this))},t.totalTime=function(r,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ut(zt.time-(this._ts>0?r/this._ts:(this.totalDuration()-r)/-this._ts))),n.prototype.totalTime.call(this,r,i),this._forcing=0,this):this._tTime},t.addLabel=function(r,i){return this.labels[r]=Gt(this,i),this},t.removeLabel=function(r){return delete this.labels[r],this},t.addPause=function(r,i,o){var a=ot.delayedCall(0,i||po,o);return a.data="isPause",this._hasPause=1,kn(this,a,Gt(this,r))},t.removePause=function(r){var i=this._first;for(r=Gt(this,r);i;)i._start===r&&i.data==="isPause"&&Ss(i),i=i._next},t.killTweensOf=function(r,i,o){for(var a=this.getTweensOf(r,o),c=a.length;c--;)hs!==a[c]&&a[c].kill(r,i);return this},t.getTweensOf=function(r,i){for(var o=[],a=Jt(r),c=this._first,l=Jn(i),u;c;)c instanceof ot?QR(c._targets,a)&&(l?(!hs||c._initted&&c._ts)&&c.globalTime(0)<=i&&c.globalTime(c.totalDuration())>i:!i||c.isActive())&&o.push(c):(u=c.getTweensOf(a,i)).length&&o.push.apply(o,u),c=c._next;return o},t.tweenTo=function(r,i){i=i||{};var o=this,a=Gt(o,r),c=i,l=c.startAt,u=c.onStart,h=c.onStartParams,d=c.immediateRender,f,m=ot.to(o,nn({ease:i.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale())||Ie,onStart:function(){if(o.pause(),!f){var g=i.duration||Math.abs((a-(l&&"time"in l?l.time:o._time))/o.timeScale());m._dur!==g&&Zr(m,g,0,1).render(m._time,!0,!0),f=1}u&&u.apply(m,h||[])}},i));return d?m.render(0):m},t.tweenFromTo=function(r,i,o){return this.tweenTo(i,nn({startAt:{time:Gt(this,r)}},o))},t.recent=function(){return this._recent},t.nextLabel=function(r){return r===void 0&&(r=this._time),Xf(this,Gt(this,r))},t.previousLabel=function(r){return r===void 0&&(r=this._time),Xf(this,Gt(this,r),1)},t.currentLabel=function(r){return arguments.length?this.seek(r,!0):this.previousLabel(this._time+Ie)},t.shiftChildren=function(r,i,o){o===void 0&&(o=0);for(var a=this._first,c=this.labels,l;a;)a._start>=o&&(a._start+=r,a._end+=r),a=a._next;if(i)for(l in c)c[l]>=o&&(c[l]+=r);return Gs(this)},t.invalidate=function(r){var i=this._first;for(this._lock=0;i;)i.invalidate(r),i=i._next;return n.prototype.invalidate.call(this,r)},t.clear=function(r){r===void 0&&(r=!0);for(var i=this._first,o;i;)o=i._next,this.remove(i),i=o;return this._dp&&(this._time=this._tTime=this._pTime=0),r&&(this.labels={}),Gs(this)},t.totalDuration=function(r){var i=0,o=this,a=o._last,c=Qt,l,u,h;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-r:r));if(o._dirty){for(h=o.parent;a;)l=a._prev,a._dirty&&a.totalDuration(),u=a._start,u>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,kn(o,a,u-a._delay,1)._lock=0):c=u,u<0&&a._ts&&(i-=u,(!h&&!o._dp||h&&h.smoothChildTiming)&&(o._start+=u/o._ts,o._time-=u,o._tTime-=u),o.shiftChildren(-u,!1,-1/0),c=0),a._end>i&&a._ts&&(i=a._end),a=l;Zr(o,o===Ge&&o._time>i?o._time:i,1,1),o._dirty=0}return o._tDur},e.updateRoot=function(r){if(Ge._ts&&(Ig(Ge,ic(r,Ge)),Mg=zt.frame),zt.frame>=qf){qf+=Wt.autoSleep||120;var i=Ge._first;if((!i||!i._ts)&&Wt.autoSleep&&zt._listeners.length<2){for(;i&&!i._ts;)i=i._next;i||zt.sleep()}}},e}(_o);nn(wt.prototype,{_lock:0,_hasPause:0,_forcing:0});var xD=function(e,t,s,r,i,o,a){var c=new Pt(this._pt,e,t,0,1,l_,null,i),l=0,u=0,h,d,f,m,p,g,_,T;for(c.b=s,c.e=r,s+="",r+="",(_=~r.indexOf("random("))&&(r=mo(r)),o&&(T=[s,r],o(T,e,t),s=T[0],r=T[1]),d=s.match(ll)||[];h=ll.exec(r);)m=h[0],p=r.substring(l,h.index),f?f=(f+1)%5:p.substr(-5)==="rgba("&&(f=1),m!==d[u++]&&(g=parseFloat(d[u-1])||0,c._pt={_next:c._pt,p:p||u===1?p:",",s:g,c:m.charAt(1)==="="?Nr(g,m)-g:parseFloat(m)-g,m:f&&f<4?Math.round:0},l=ll.lastIndex);return c.c=l")}),b.duration();else{x={};for(k in m)k==="ease"||k==="easeEach"||ED(k,m[k],x,m.easeEach);for(k in x)for(L=x[k].sort(function(B,V){return B.t-V.t}),O=0,y=0;yc-Ie&&!u?c:rl&&(d=l)),_=this._yoyo&&m&1,_&&(b=this._yEase,d=l-d),g=Xr(this._tTime,p),d===a&&!o&&this._initted&&m===g)return this._tTime=h,this;m!==g&&(w&&this._yEase&&t_(w,_),this.vars.repeatRefresh&&!_&&!this._lock&&this._time!==l&&this._initted&&(this._lock=o=1,this.render(ut(p*m),!0).invalidate()._lock=0))}if(!this._initted){if(Vg(this,u?r:d,o,i,h))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&m!==g))return this;if(l!==this._dur)return this.render(r,i,o)}if(this._tTime=h,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=T=(b||this._ease)(d/l),this._from&&(this.ratio=T=1-T),d&&!a&&!i&&!m&&(Vt(this,"onStart"),this._tTime!==h))return this;for(f=this._pt;f;)f.r(T,f.d),f=f._next;w&&w.render(r<0?r:!d&&_?-Ie:w._dur*w._ease(d/this._dur),i,o)||this._startAt&&(this._zTime=r),this._onUpdate&&!i&&(u&&iu(this,r,i,o),Vt(this,"onUpdate")),this._repeat&&m!==g&&this.vars.onRepeat&&!i&&this.parent&&Vt(this,"onRepeat"),(h===this._tDur||!h)&&this._tTime===h&&(u&&!this._onUpdate&&iu(this,r,!0,!0),(r||!l)&&(h===this._tDur&&this._ts>0||!h&&this._ts<0)&&Ss(this,1),!i&&!(u&&!a)&&(h||a||_)&&(Vt(this,h===c?"onComplete":"onReverseComplete",!0),this._prom&&!(h0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(r){return(!r||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(r),n.prototype.invalidate.call(this,r)},t.resetTo=function(r,i,o,a,c){go||zt.wake(),this._ts||this.play();var l=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||Dh(this,l),u=this._ease(l/this._dur),kD(this,r,i,o,a,u,l,c)?this.resetTo(r,i,o,a,1):(Ic(this,0),this.parent||Lg(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(r,i){if(i===void 0&&(i="all"),!r&&(!i||i==="all"))return this._lazy=this._pt=0,this.parent?Ri(this):this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(r,i,hs&&hs.vars.overwrite!==!0)._first||Ri(this),this.parent&&o!==this.timeline.totalDuration()&&Zr(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=r?Jt(r):a,l=this._ptLookup,u=this._pt,h,d,f,m,p,g,_;if((!i||i==="all")&&eD(a,c))return i==="all"&&(this._pt=0),Ri(this);for(h=this._op=this._op||[],i!=="all"&&(dt(i)&&(p={},Dt(i,function(T){return p[T]=1}),i=p),i=TD(a,i)),_=a.length;_--;)if(~c.indexOf(a[_])){d=l[_],i==="all"?(h[_]=i,m=d,f={}):(f=h[_]=h[_]||{},m=i);for(p in m)g=d&&d[p],g&&((!("kill"in g.d)||g.d.kill(p)===!0)&&Mc(this,g,"_pt"),delete d[p]),f!=="all"&&(f[p]=1)}return this._initted&&!this._pt&&u&&Ri(this),this},e.to=function(r,i){return new e(r,i,arguments[2])},e.from=function(r,i){return ji(1,arguments)},e.delayedCall=function(r,i,o,a){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:r,onComplete:i,onReverseComplete:i,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},e.fromTo=function(r,i,o){return ji(2,arguments)},e.set=function(r,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(r,i)},e.killTweensOf=function(r,i,o){return Ge.killTweensOf(r,i,o)},e}(_o);nn(ot.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Dt("staggerTo,staggerFrom,staggerFromTo",function(n){ot[n]=function(){var e=new wt,t=au.call(arguments,0);return t.splice(n==="staggerFromTo"?5:4,0,0),e[n].apply(e,t)}});var Ph=function(e,t,s){return e[t]=s},a_=function(e,t,s){return e[t](s)},CD=function(e,t,s,r){return e[t](r.fp,s)},SD=function(e,t,s){return e.setAttribute(t,s)},Mh=function(e,t){return Qe(e[t])?a_:kh(e[t])&&e.setAttribute?SD:Ph},c_=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},OD=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},l_=function(e,t){var s=t._pt,r="";if(!e&&t.b)r=t.b;else if(e===1&&t.e)r=t.e;else{for(;s;)r=s.p+(s.m?s.m(s.s+s.c*e):Math.round((s.s+s.c*e)*1e4)/1e4)+r,s=s._next;r+=t.c}t.set(t.t,t.p,r,t)},Nh=function(e,t){for(var s=t._pt;s;)s.r(e,s.d),s=s._next},AD=function(e,t,s,r){for(var i=this._pt,o;i;)o=i._next,i.p===r&&i.modifier(e,t,s),i=o},RD=function(e){for(var t=this._pt,s,r;t;)r=t._next,t.p===e&&!t.op||t.op===e?Mc(this,t,"_pt"):t.dep||(s=1),t=r;return!s},DD=function(e,t,s,r){r.mSet(e,t,r.m.call(r.tween,s,r.mt),r)},u_=function(e){for(var t=e._pt,s,r,i,o;t;){for(s=t._next,r=i;r&&r.pr>t.pr;)r=r._next;(t._prev=r?r._prev:o)?t._prev._next=t:i=t,(t._next=r)?r._prev=t:o=t,t=s}e._pt=i},Pt=function(){function n(t,s,r,i,o,a,c,l,u){this.t=s,this.s=i,this.c=o,this.p=r,this.r=a||c_,this.d=c||this,this.set=l||Ph,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=n.prototype;return e.modifier=function(s,r,i){this.mSet=this.mSet||this.set,this.set=DD,this.m=s,this.mt=i,this.tween=r},n}();Dt(Oh+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(n){return Sh[n]=1});qt.TweenMax=qt.TweenLite=ot;qt.TimelineLite=qt.TimelineMax=wt;Ge=new wt({sortChildren:!1,defaults:Gr,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Wt.stringFilter=Jg;var Zs=[],ga={},PD=[],Kf=0,MD=0,pl=function(e){return(ga[e]||PD).map(function(t){return t()})},hu=function(){var e=Date.now(),t=[];e-Kf>2&&(pl("matchMediaInit"),Zs.forEach(function(s){var r=s.queries,i=s.conditions,o,a,c,l;for(a in r)o=Xt.matchMedia(r[a]).matches,o&&(c=1),o!==i[a]&&(i[a]=o,l=1);l&&(s.revert(),c&&t.push(s))}),pl("matchMediaRevert"),t.forEach(function(s){return s.onMatch(s,function(r){return s.add(null,r)})}),Kf=e,pl("matchMedia"))},h_=function(){function n(t,s){this.selector=s&&cu(s),this.data=[],this._r=[],this.isReverted=!1,this.id=MD++,t&&this.add(t)}var e=n.prototype;return e.add=function(s,r,i){Qe(s)&&(i=r,r=s,s=Qe);var o=this,a=function(){var l=Ke,u=o.selector,h;return l&&l!==o&&l.data.push(o),i&&(o.selector=cu(i)),Ke=o,h=r.apply(o,arguments),Qe(h)&&o._r.push(h),Ke=l,o.selector=u,o.isReverted=!1,h};return o.last=a,s===Qe?a(o,function(c){return o.add(null,c)}):s?o[s]=a:a},e.ignore=function(s){var r=Ke;Ke=null,s(this),Ke=r},e.getTweens=function(){var s=[];return this.data.forEach(function(r){return r instanceof n?s.push.apply(s,r.getTweens()):r instanceof ot&&!(r.parent&&r.parent.data==="nested")&&s.push(r)}),s},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(s,r){var i=this;if(s?function(){for(var a=i.getTweens(),c=i.data.length,l;c--;)l=i.data[c],l.data==="isFlip"&&(l.revert(),l.getChildren(!0,!0,!1).forEach(function(u){return a.splice(a.indexOf(u),1)}));for(a.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,h){return h.g-u.g||-1/0}).forEach(function(u){return u.t.revert(s)}),c=i.data.length;c--;)l=i.data[c],l instanceof wt?l.data!=="nested"&&(l.scrollTrigger&&l.scrollTrigger.revert(),l.kill()):!(l instanceof ot)&&l.revert&&l.revert(s);i._r.forEach(function(u){return u(s,i)}),i.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),r)for(var o=Zs.length;o--;)Zs[o].id===this.id&&Zs.splice(o,1)},e.revert=function(s){this.kill(s||{})},n}(),ND=function(){function n(t){this.contexts=[],this.scope=t}var e=n.prototype;return e.add=function(s,r,i){Rn(s)||(s={matches:s});var o=new h_(0,i||this.scope),a=o.conditions={},c,l,u;Ke&&!o.selector&&(o.selector=Ke.selector),this.contexts.push(o),r=o.add("onMatch",r),o.queries=s;for(l in s)l==="all"?u=1:(c=Xt.matchMedia(s[l]),c&&(Zs.indexOf(o)<0&&Zs.push(o),(a[l]=c.matches)&&(u=1),c.addListener?c.addListener(hu):c.addEventListener("change",hu)));return u&&r(o,function(h){return o.add(null,h)}),this},e.revert=function(s){this.kill(s||{})},e.kill=function(s){this.contexts.forEach(function(r){return r.kill(s,!0)})},n}(),oc={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),s=0;s1){var r=e.map(function(u){return $t.quickSetter(u,t,s)}),i=r.length;return function(u){for(var h=i;h--;)r[h](u)}}e=e[0]||{};var o=Lt[t],a=Ys(e),c=a.harness&&(a.harness.aliases||{})[t]||t,l=o?function(u){var h=new o;Ar._pt=0,h.init(e,s?u+s:u,Ar,0,[e]),h.render(1,h),Ar._pt&&Nh(1,Ar)}:a.set(e,c);return o?l:function(u){return l(e,c,s?u+s:u,a,1)}},quickTo:function(e,t,s){var r,i=$t.to(e,ir((r={},r[t]="+=0.1",r.paused=!0,r),s||{})),o=function(c,l,u){return i.resetTo(t,c,l,u)};return o.tween=i,o},isTweening:function(e){return Ge.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=Xs(e.ease,Gr.ease)),Hf(Gr,e||{})},config:function(e){return Hf(Wt,e||{})},registerEffect:function(e){var t=e.name,s=e.effect,r=e.plugins,i=e.defaults,o=e.extendTimeline;(r||"").split(",").forEach(function(a){return a&&!Lt[a]&&!qt[a]&&fo(t+" effect requires "+a+" plugin.")}),ul[t]=function(a,c,l){return s(Jt(a),nn(c||{},i),l)},o&&(wt.prototype[t]=function(a,c,l){return this.add(ul[t](a,Rn(c)?c:(l=c)&&{},this),l)})},registerEase:function(e,t){we[e]=Xs(t)},parseEase:function(e,t){return arguments.length?Xs(e,t):we},getById:function(e){return Ge.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var s=new wt(e),r,i;for(s.smoothChildTiming=Rt(e.smoothChildTiming),Ge.remove(s),s._dp=0,s._time=s._tTime=Ge._time,r=Ge._first;r;)i=r._next,(t||!(!r._dur&&r instanceof ot&&r.vars.onComplete===r._targets[0]))&&kn(s,r,r._start-r._delay),r=i;return kn(Ge,s,0),s},context:function(e,t){return e?new h_(e,t):Ke},matchMedia:function(e){return new ND(e)},matchMediaRefresh:function(){return Zs.forEach(function(e){var t=e.conditions,s,r;for(r in t)t[r]&&(t[r]=!1,s=1);s&&e.revert()})||hu()},addEventListener:function(e,t){var s=ga[e]||(ga[e]=[]);~s.indexOf(t)||s.push(t)},removeEventListener:function(e,t){var s=ga[e],r=s&&s.indexOf(t);r>=0&&s.splice(r,1)},utils:{wrap:dD,wrapYoyo:fD,distribute:Wg,random:Hg,snap:qg,normalize:hD,getUnit:pt,clamp:aD,splitColor:Kg,toArray:Jt,selector:cu,mapRange:Gg,pipe:lD,unitize:uD,interpolate:pD,shuffle:Bg},install:Dg,effects:ul,ticker:zt,updateRoot:wt.updateRoot,plugins:Lt,globalTimeline:Ge,core:{PropTween:Pt,globals:Pg,Tween:ot,Timeline:wt,Animation:_o,getCache:Ys,_removeLinkedListItem:Mc,reverting:function(){return mt},context:function(e){return e&&Ke&&(Ke.data.push(e),e._ctx=Ke),Ke},suppressOverwrites:function(e){return wh=e}}};Dt("to,from,fromTo,delayedCall,set,killTweensOf",function(n){return oc[n]=ot[n]});zt.add(wt.updateRoot);Ar=oc.to({},{duration:0});var ID=function(e,t){for(var s=e._pt;s&&s.p!==t&&s.op!==t&&s.fp!==t;)s=s._next;return s},$D=function(e,t){var s=e._targets,r,i,o;for(r in t)for(i=s.length;i--;)o=e._ptLookup[i][r],o&&(o=o.d)&&(o._pt&&(o=ID(o,r)),o&&o.modifier&&o.modifier(t[r],e,s[i],r))},ml=function(e,t){return{name:e,rawVars:1,init:function(r,i,o){o._onInit=function(a){var c,l;if(dt(i)&&(c={},Dt(i,function(u){return c[u]=1}),i=c),t){c={};for(l in i)c[l]=t(i[l]);i=c}$D(a,i)}}}},$t=oc.registerPlugin({name:"attr",init:function(e,t,s,r,i){var o,a,c;this.tween=s;for(o in t)c=e.getAttribute(o)||"",a=this.add(e,"setAttribute",(c||0)+"",t[o],r,i,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(e,t){for(var s=t._pt;s;)mt?s.set(s.t,s.p,s.b,s):s.r(e,s.d),s=s._next}},{name:"endArray",init:function(e,t){for(var s=t.length;s--;)this.add(e,s,e[s]||0,t[s],0,0,0,0,0,1)}},ml("roundProps",lu),ml("modifiers"),ml("snap",qg))||oc;ot.version=wt.version=$t.version="3.12.4";Rg=1;Th()&&Kr();we.Power0;we.Power1;we.Power2;we.Power3;we.Power4;we.Linear;we.Quad;we.Cubic;we.Quart;we.Quint;we.Strong;we.Elastic;we.Back;we.SteppedEase;we.Bounce;we.Sine;we.Expo;we.Circ;/*! * CSSPlugin 3.12.4 * https://gsap.com * @@ -517,7 +517,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com -*/var Kf,ds,Ir,Ih,Us,Qf,$h,FD=function(){return typeof window<"u"},es={},Ls=180/Math.PI,$r=Math.PI/180,wr=Math.atan2,Jf=1e8,Fh=/([A-Z])/g,LD=/(left|right|width|margin|padding|x)/i,jD=/[\s,\(]\S/,Tn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},du=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},zD=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},VD=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},UD=function(e,t){var s=t.s+t.c*e;t.set(t.t,t.p,~~(s+(s<0?-.5:.5))+t.u,t)},u_=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},h_=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},BD=function(e,t,s){return e.style[t]=s},WD=function(e,t,s){return e.style.setProperty(t,s)},qD=function(e,t,s){return e._gsap[t]=s},HD=function(e,t,s){return e._gsap.scaleX=e._gsap.scaleY=s},YD=function(e,t,s,r,i){var o=e._gsap;o.scaleX=o.scaleY=s,o.renderTransform(i,o)},GD=function(e,t,s,r,i){var o=e._gsap;o[t]=s,o.renderTransform(i,o)},Xe="transform",Mt=Xe+"Origin",XD=function n(e,t){var s=this,r=this.target,i=r.style,o=r._gsap;if(e in es&&i){if(this.tfm=this.tfm||{},e!=="transform")e=Tn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return s.tfm[a]=Un(r,a)}):this.tfm[e]=o.x?o[e]:Un(r,e),e===Mt&&(this.tfm.zOrigin=o.zOrigin);else return Tn.transform.split(",").forEach(function(a){return n.call(s,a,t)});if(this.props.indexOf(Xe)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Mt,t,"")),e=Xe}(i||t)&&this.props.push(e,t,i[e])},d_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ZD=function(){var e=this.props,t=this.target,s=t.style,r=t._gsap,i,o;for(i=0;i=0?ep[o]:"")+e},pu=function(){FD()&&window.document&&(Kf=window,ds=Kf.document,Ir=ds.documentElement,Us=fu("div")||{style:{}},fu("div"),Xe=Qr(Xe),Mt=Xe+"Origin",Us.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",p_=!!Qr("perspective"),$h=It.core.reverting,Ih=1)},gl=function n(e){var t=fu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,r=this.nextSibling,i=this.style.cssText,o;if(Ir.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(r?s.insertBefore(this,r):s.appendChild(this)),Ir.removeChild(t),this.style.cssText=i,o},tp=function(e,t){for(var s=t.length;s--;)if(e.hasAttribute(t[s]))return e.getAttribute(t[s])},m_=function(e){var t;try{t=e.getBBox()}catch{t=gl.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===gl||(t=gl.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+tp(e,["x","cx","x1"])||0,y:+tp(e,["y","cy","y1"])||0,width:0,height:0}:t},g_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&m_(e))},or=function(e,t){if(t){var s=e.style,r;t in es&&t!==Mt&&(t=Xe),s.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),s.removeProperty(r==="--"?t:t.replace(Fh,"-$1").toLowerCase())):s.removeAttribute(t)}},fs=function(e,t,s,r,i,o){var a=new Pt(e._pt,t,s,0,1,o?h_:u_);return e._pt=a,a.b=r,a.e=i,e._props.push(s),a},np={deg:1,rad:1,turn:1},KD={grid:1,flex:1},Os=function n(e,t,s,r){var i=parseFloat(s)||0,o=(s+"").trim().substr((i+"").length)||"px",a=Us.style,c=LD.test(t),l=e.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=r==="px",f=r==="%",g,p,m,_;if(r===o||!i||np[r]||np[o])return i;if(o!=="px"&&!d&&(i=n(e,t,s,"px")),_=e.getCTM&&g_(e),(f||o==="%")&&(es[t]||~t.indexOf("adius")))return g=_?e.getBBox()[c?"width":"height"]:e[u],st(f?i/g*h:i/100*g);if(a[c?"width":"height"]=h+(d?o:r),p=~t.indexOf("adius")||r==="em"&&e.appendChild&&!l?e:e.parentNode,_&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===ds||!p.appendChild)&&(p=ds.body),m=p._gsap,m&&f&&m.width&&c&&m.time===jt.time&&!m.uncache)return st(i/m.width*h);if(f&&(t==="height"||t==="width")){var T=e.style[t];e.style[t]=h+r,g=e[u],T?e.style[t]=T:or(e,t)}else(f||o==="%")&&!KD[Cn(p,"display")]&&(a.position=Cn(e,"position")),p===e&&(a.position="static"),p.appendChild(Us),g=Us[u],p.removeChild(Us),a.position="absolute";return c&&f&&(m=Ys(p),m.time=jt.time,m.width=p[u]),st(d?g*i/h:g&&i?h/g*i:0)},Un=function(e,t,s,r){var i;return Ih||pu(),t in Tn&&t!=="transform"&&(t=Tn[t],~t.indexOf(",")&&(t=t.split(",")[0])),es[t]&&t!=="transform"?(i=vo(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:cc(Cn(e,Mt))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=ac[t]&&ac[t](e,t,s)||Cn(e,t)||Pg(e,t)||(t==="opacity"?1:0))),s&&!~(i+"").trim().indexOf(" ")?Os(e,t,i,s)+s:i},QD=function(e,t,s,r){if(!s||s==="none"){var i=Qr(t,e,1),o=i&&Cn(e,i,1);o&&o!==s?(t=i,s=o):t==="borderColor"&&(s=Cn(e,"borderTopColor"))}var a=new Pt(this._pt,e.style,t,0,1,a_),c=0,l=0,u,h,d,f,g,p,m,_,T,w,y,v;if(a.b=s,a.e=r,s+="",r+="",r==="auto"&&(p=e.style[t],e.style[t]=r,r=Cn(e,t)||r,p?e.style[t]=p:or(e,t)),u=[s,r],Kg(u),s=u[0],r=u[1],d=s.match(Or)||[],v=r.match(Or)||[],v.length){for(;h=Or.exec(r);)m=h[0],T=r.substring(c,h.index),g?g=(g+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(g=1),m!==(p=d[l++]||"")&&(f=parseFloat(p)||0,y=p.substr((f+"").length),m.charAt(1)==="="&&(m=Nr(f,m)+y),_=parseFloat(m),w=m.substr((_+"").length),c=Or.lastIndex-w.length,w||(w=w||Bt.units[t]||y,c===r.length&&(r+=w,a.e+=w)),y!==w&&(f=Os(e,t,p,w)||0),a._pt={_next:a._pt,p:T||l===1?T:",",s:f,c:_-f,m:g&&g<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=i[l],es[a]&&(c=1,a=a==="transformOrigin"?Mt:Xe),or(s,a);c&&(or(s,Xe),o&&(o.svg&&s.removeAttribute("transform"),vo(s,1),o.uncache=1,d_(r)))}},ac={clearProps:function(e,t,s,r,i){if(i.data!=="isFromStart"){var o=e._pt=new Pt(e._pt,t,s,0,0,eP);return o.u=r,o.pr=-10,o.tween=i,e._props.push(s),1}}},yo=[1,0,0,1,0,0],__={},y_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},rp=function(e){var t=Cn(e,Xe);return y_(t)?yo:t.substr(7).match(Eg).map(st)},Lh=function(e,t){var s=e._gsap||Ys(e),r=e.style,i=rp(e),o,a,c,l;return s.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?yo:i):(i===yo&&!e.offsetParent&&e!==Ir&&!s.svg&&(c=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,Ir.appendChild(e)),i=rp(e),c?r.display=c:or(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):Ir.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},mu=function(e,t,s,r,i,o){var a=e._gsap,c=i||Lh(e,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,f=c[0],g=c[1],p=c[2],m=c[3],_=c[4],T=c[5],w=t.split(" "),y=parseFloat(w[0])||0,v=parseFloat(w[1])||0,k,E,x,C;s?c!==yo&&(E=f*m-g*p)&&(x=y*(m/E)+v*(-p/E)+(p*T-m*_)/E,C=y*(-g/E)+v*(f/E)-(f*T-g*_)/E,y=x,v=C):(k=m_(e),y=k.x+(~w[0].indexOf("%")?y/100*k.width:y),v=k.y+(~(w[1]||w[0]).indexOf("%")?v/100*k.height:v)),r||r!==!1&&a.smooth?(_=y-l,T=v-u,a.xOffset=h+(_*f+T*p)-_,a.yOffset=d+(_*g+T*m)-T):a.xOffset=a.yOffset=0,a.xOrigin=y,a.yOrigin=v,a.smooth=!!r,a.origin=t,a.originIsAbsolute=!!s,e.style[Mt]="0px 0px",o&&(fs(o,a,"xOrigin",l,y),fs(o,a,"yOrigin",u,v),fs(o,a,"xOffset",h,a.xOffset),fs(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",y+" "+v)},vo=function(e,t){var s=e._gsap||new t_(e);if("x"in s&&!t&&!s.uncache)return s;var r=e.style,i=s.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=Cn(e,Mt)||"0",u,h,d,f,g,p,m,_,T,w,y,v,k,E,x,C,S,R,O,L,z,W,B,V,U,X,K,Q,F,j,A,I;return u=h=d=p=m=_=T=w=y=0,f=g=1,s.svg=!!(e.getCTM&&g_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[Xe]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Xe]!=="none"?c[Xe]:"")),r.scale=r.rotate=r.translate="none"),E=Lh(e,s.svg),s.svg&&(s.uncache?(U=e.getBBox(),l=s.xOrigin-U.x+"px "+(s.yOrigin-U.y)+"px",V=""):V=!t&&e.getAttribute("data-svg-origin"),mu(e,V||l,!!V||s.originIsAbsolute,s.smooth!==!1,E)),v=s.xOrigin||0,k=s.yOrigin||0,E!==yo&&(R=E[0],O=E[1],L=E[2],z=E[3],u=W=E[4],h=B=E[5],E.length===6?(f=Math.sqrt(R*R+O*O),g=Math.sqrt(z*z+L*L),p=R||O?wr(O,R)*Ls:0,T=L||z?wr(L,z)*Ls+p:0,T&&(g*=Math.abs(Math.cos(T*$r))),s.svg&&(u-=v-(v*R+k*L),h-=k-(v*O+k*z))):(I=E[6],j=E[7],K=E[8],Q=E[9],F=E[10],A=E[11],u=E[12],h=E[13],d=E[14],x=wr(I,F),m=x*Ls,x&&(C=Math.cos(-x),S=Math.sin(-x),V=W*C+K*S,U=B*C+Q*S,X=I*C+F*S,K=W*-S+K*C,Q=B*-S+Q*C,F=I*-S+F*C,A=j*-S+A*C,W=V,B=U,I=X),x=wr(-L,F),_=x*Ls,x&&(C=Math.cos(-x),S=Math.sin(-x),V=R*C-K*S,U=O*C-Q*S,X=L*C-F*S,A=z*S+A*C,R=V,O=U,L=X),x=wr(O,R),p=x*Ls,x&&(C=Math.cos(x),S=Math.sin(x),V=R*C+O*S,U=W*C+B*S,O=O*C-R*S,B=B*C-W*S,R=V,W=U),m&&Math.abs(m)+Math.abs(p)>359.9&&(m=p=0,_=180-_),f=st(Math.sqrt(R*R+O*O+L*L)),g=st(Math.sqrt(B*B+I*I)),x=wr(W,B),T=Math.abs(x)>2e-4?x*Ls:0,y=A?1/(A<0?-A:A):0),s.svg&&(V=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!y_(Cn(e,Xe)),V&&e.setAttribute("transform",V))),Math.abs(T)>90&&Math.abs(T)<270&&(i?(f*=-1,T+=p<=0?180:-180,p+=p<=0?180:-180):(g*=-1,T+=T<=0?180:-180)),t=t||s.uncache,s.x=u-((s.xPercent=u&&(!t&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!t&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=st(f),s.scaleY=st(g),s.rotation=st(p)+a,s.rotationX=st(m)+a,s.rotationY=st(_)+a,s.skewX=T+a,s.skewY=w+a,s.transformPerspective=y+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!t&&s.zOrigin||0)&&(r[Mt]=cc(l)),s.xOffset=s.yOffset=0,s.force3D=Bt.force3D,s.renderTransform=s.svg?nP:p_?v_:tP,s.uncache=0,s},cc=function(e){return(e=e.split(" "))[0]+" "+e[1]},_l=function(e,t,s){var r=pt(t);return st(parseFloat(t)+parseFloat(Os(e,"x",s+"px",r)))+r},tP=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,v_(e,t)},$s="0deg",Si="0px",Fs=") ",v_=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,f=s.skewY,g=s.scaleX,p=s.scaleY,m=s.transformPerspective,_=s.force3D,T=s.target,w=s.zOrigin,y="",v=_==="auto"&&e&&e!==1||_===!0;if(w&&(h!==$s||u!==$s)){var k=parseFloat(u)*$r,E=Math.sin(k),x=Math.cos(k),C;k=parseFloat(h)*$r,C=Math.cos(k),o=_l(T,o,E*C*-w),a=_l(T,a,-Math.sin(k)*-w),c=_l(T,c,x*C*-w+w)}m!==Si&&(y+="perspective("+m+Fs),(r||i)&&(y+="translate("+r+"%, "+i+"%) "),(v||o!==Si||a!==Si||c!==Si)&&(y+=c!==Si||v?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Fs),l!==$s&&(y+="rotate("+l+Fs),u!==$s&&(y+="rotateY("+u+Fs),h!==$s&&(y+="rotateX("+h+Fs),(d!==$s||f!==$s)&&(y+="skew("+d+", "+f+Fs),(g!==1||p!==1)&&(y+="scale("+g+", "+p+Fs),T.style[Xe]=y||"translate(0, 0)"},nP=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,f=s.target,g=s.xOrigin,p=s.yOrigin,m=s.xOffset,_=s.yOffset,T=s.forceCSS,w=parseFloat(o),y=parseFloat(a),v,k,E,x,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=$r,l*=$r,v=Math.cos(c)*h,k=Math.sin(c)*h,E=Math.sin(c-l)*-d,x=Math.cos(c-l)*d,l&&(u*=$r,C=Math.tan(l-u),C=Math.sqrt(1+C*C),E*=C,x*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),v*=C,k*=C)),v=st(v),k=st(k),E=st(E),x=st(x)):(v=h,x=d,k=E=0),(w&&!~(o+"").indexOf("px")||y&&!~(a+"").indexOf("px"))&&(w=Os(f,"x",o,"px"),y=Os(f,"y",a,"px")),(g||p||m||_)&&(w=st(w+g-(g*v+p*E)+m),y=st(y+p-(g*k+p*x)+_)),(r||i)&&(C=f.getBBox(),w=st(w+r/100*C.width),y=st(y+i/100*C.height)),C="matrix("+v+","+k+","+E+","+x+","+w+","+y+")",f.setAttribute("transform",C),T&&(f.style[Xe]=C)},sP=function(e,t,s,r,i){var o=360,a=dt(i),c=parseFloat(i)*(a&&~i.indexOf("rad")?Ls:1),l=c-r,u=r+l+"deg",h,d;return a&&(h=i.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*Jf)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*Jf)%o-~~(l/o)*o)),e._pt=d=new Pt(e._pt,t,s,r,l,zD),d.e=u,d.u="deg",e._props.push(s),d},ip=function(e,t){for(var s in t)e[s]=t[s];return e},rP=function(e,t,s){var r=ip({},s._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,f,g;r.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Xe]=t,a=vo(s,1),or(s,Xe),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Xe],o[Xe]=t,a=vo(s,1),o[Xe]=l);for(c in es)l=r[c],u=a[c],l!==u&&i.indexOf(c)<0&&(f=pt(l),g=pt(u),h=f!==g?Os(s,c,l,g):parseFloat(l),d=parseFloat(u),e._pt=new Pt(e._pt,a,c,h,d-h,du),e._pt.u=g||0,e._props.push(c));ip(a,r)};Dt("padding,margin,Width,Radius",function(n,e){var t="Top",s="Right",r="Bottom",i="Left",o=(e<3?[t,s,r,i]:[t+i,t+s,r+s,r+i]).map(function(a){return e<2?n+a:"border"+a+n});ac[e>1?"border"+n:n]=function(a,c,l,u,h){var d,f;if(arguments.length<4)return d=o.map(function(g){return Un(a,g,l)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(u+"").split(" "),f={},o.forEach(function(g,p){return f[g]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(c,f,h)}});var b_={name:"css",register:pu,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,s,r,i){var o=this._props,a=e.style,c=s.vars.startAt,l,u,h,d,f,g,p,m,_,T,w,y,v,k,E,x;Ih||pu(),this.styles=this.styles||f_(e),x=this.styles.props,this.tween=s;for(p in t)if(p!=="autoRound"&&(u=t[p],!(Ft[p]&&n_(p,t,s,r,e,i)))){if(f=typeof u,g=ac[p],f==="function"&&(u=u.call(s,r,e,i),f=typeof u),f==="string"&&~u.indexOf("random(")&&(u=mo(u)),g)g(this,e,p,u,s)&&(E=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",_s.lastIndex=0,_s.test(l)||(m=pt(l),_=pt(u)),_?m!==_&&(l=Os(e,p,l,_)+_):m&&(u+=m),this.add(a,"setProperty",l,u,r,i,0,0,p),o.push(p),x.push(p,0,a[p]);else if(f!=="undefined"){if(c&&p in c?(l=typeof c[p]=="function"?c[p].call(s,r,e,i):c[p],dt(l)&&~l.indexOf("random(")&&(l=mo(l)),pt(l+"")||l==="auto"||(l+=Bt.units[p]||pt(Un(e,p))||""),(l+"").charAt(1)==="="&&(l=Un(e,p))):l=Un(e,p),d=parseFloat(l),T=f==="string"&&u.charAt(1)==="="&&u.substr(0,2),T&&(u=u.substr(2)),h=parseFloat(u),p in Tn&&(p==="autoAlpha"&&(d===1&&Un(e,"visibility")==="hidden"&&h&&(d=0),x.push("visibility",0,a.visibility),fs(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=Tn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),w=p in es,w){if(this.styles.save(p),y||(v=e._gsap,v.renderTransform&&!t.parseTransform||vo(e,t.parseTransform),k=t.smoothOrigin!==!1&&v.smooth,y=this._pt=new Pt(this._pt,a,Xe,0,1,v.renderTransform,v,0,-1),y.dep=1),p==="scale")this._pt=new Pt(this._pt,v,"scaleY",v.scaleY,(T?Nr(v.scaleY,T+h):h)-v.scaleY||0,du),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){x.push(Mt,0,a[Mt]),u=JD(u),v.svg?mu(e,u,0,k,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==v.zOrigin&&fs(this,v,"zOrigin",v.zOrigin,_),fs(this,a,p,cc(l),cc(u)));continue}else if(p==="svgOrigin"){mu(e,u,1,k,0,this);continue}else if(p in __){sP(this,v,p,d,T?Nr(d,T+u):u);continue}else if(p==="smoothOrigin"){fs(this,v,"smooth",v.smooth,u);continue}else if(p==="force3D"){v[p]=u;continue}else if(p==="transform"){rP(this,u,e);continue}}else p in a||(p=Qr(p)||p);if(w||(h||h===0)&&(d||d===0)&&!jD.test(u)&&p in a)m=(l+"").substr((d+"").length),h||(h=0),_=pt(u)||(p in Bt.units?Bt.units[p]:m),m!==_&&(d=Os(e,p,l,_)),this._pt=new Pt(this._pt,w?v:a,p,d,(T?Nr(d,T+h):h)-d,!w&&(_==="px"||p==="zIndex")&&t.autoRound!==!1?UD:du),this._pt.u=_||0,m!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=VD);else if(p in a)QD.call(this,e,p,l,T?T+u:u);else if(p in e)this.add(e,p,l||e[p],T?T+u:u,r,i);else if(p!=="parseTransform"){Ch(p,u);continue}w||(p in a?x.push(p,0,a[p]):x.push(p,1,l||e[p])),o.push(p)}}E&&c_(this)},render:function(e,t){if(t.tween._time||!$h())for(var s=t._pt;s;)s.r(e,s.d),s=s._next;else t.styles.revert()},get:Un,aliases:Tn,getSetter:function(e,t,s){var r=Tn[t];return r&&r.indexOf(",")<0&&(t=r),t in es&&t!==Mt&&(e._gsap.x||Un(e,"x"))?s&&Qf===s?t==="scale"?HD:qD:(Qf=s||{})&&(t==="scale"?YD:GD):e.style&&!kh(e.style[t])?BD:~t.indexOf("-")?WD:Mh(e,t)},core:{_removeProperty:or,_getMatrix:Lh}};It.utils.checkPrefix=Qr;It.core.getStyleSaver=f_;(function(n,e,t,s){var r=Dt(n+","+e+","+t,function(i){es[i]=1});Dt(e,function(i){Bt.units[i]="deg",__[i]=1}),Tn[r[13]]=n+","+e,Dt(s,function(i){var o=i.split(":");Tn[o[1]]=r[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Bt.units[n]="px"});It.registerPlugin(b_);var Ks=It.registerPlugin(b_)||It;Ks.core.Tween;const x_=n=>{const e=b.useRef(null),t=b.useRef(null),s=Jt(f=>f.nodesNormalized),{label:r,source:i,target:o,sourceX:a,sourceY:c,sourceZ:l,targetX:u,targetY:h,targetZ:d}=n;return b.useEffect(()=>{if(e.current){const f=e.current;Ks.fromTo(f.material,{linewidth:vf*15},{linewidth:vf,duration:1})}},[e,a]),qt(()=>{const f=s.get(i),g=s.get(o);if(!e.current||!t.current||!f||!g)return;const{hoveredNode:p,searchQuery:m,selectedNodeTypes:_,selectedLinkTypes:T}=Ue.getState(),w=e.current,y=p,v=T.includes(r)||_.includes(f==null?void 0:f.node_type)&&_.includes(g.node_type);if(!v&&!y&&!m){t.current.visible=!1;return}w.visible=!1,t.current.visible=!1,v&&(w.visible=!0,t.current.visible=!0),(y==null?void 0:y.ref_id)===i||(y==null?void 0:y.ref_id)===o?(w.visible=!0,t.current.visible=!0,Ks.to(w.material,{linewidth:6,duration:.5,ease:"power1.out"})):Ks.to(w.material,{linewidth:1,duration:.5,ease:"power1.out"})}),P.jsxs("group",{ref:t,children:[P.jsx(vp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[a,c,l,u,h,d]}),P.jsx(Au,{children:P.jsx(xu,{anchorX:"center",anchorY:"middle",color:"white",...wu,fontSize:10,children:r})})]})};x_.displayName="LineComponent";const iP=b.memo(x_),op=new _e(0,0,0),w_=b.memo(n=>{const{sourceX:e,sourceY:t,sourceZ:s,targetX:r,targetY:i,targetZ:o,color:a}=n,c=b.useRef(null);return qt(()=>{c.current&&(c.current.start.set(e||0,t||0,s||0),c.current.end.set(r,i,o))}),P.jsx(P.Fragment,{children:P.jsx(F1,{ref:c,color:a,end:op,start:op})})});w_.displayName="LineInstance";const k_=b.memo(({linksPosition:n})=>{const[e,t]=Jt(a=>[a.dataInitial,a.nodesNormalized]),[s,r,i]=Ue(a=>[a.showSelectionGraph,a.searchQuery,a.selectedNodeTypes]),o=Hn(a=>a.normalizedSchemasByType);return P.jsxs(P.Fragment,{children:[P.jsx("group",{name:"simulation-3d-group__connections",visible:!s,children:e==null?void 0:e.links.map(a=>{const c=n.get(a.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return P.jsx(iP,{label:a.edge_type,source:a.source,sourceX:c.sx,sourceY:c.sy,sourceZ:c.sz,target:a.target,targetX:c.tx,targetY:c.ty,targetZ:c.tz},a.ref_id)})}),P.jsx("group",{visible:!r&&!i.length,children:P.jsx(I1,{limit:1e3,lineWidth:.05,children:e==null?void 0:e.links.map(a=>{var d;const c=n.get(a.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0},l=t.get(a.source)||"",h=(l?(d=o[l.node_type])==null?void 0:d.primary_color:"white")||"white";return P.jsx(w_,{color:h,sourceX:c.sx,sourceY:c.sy,sourceZ:c.sz,targetX:c.tx,targetY:c.ty,targetZ:c.tz},a.ref_id)})})})]})});k_.displayName="Connections";const oP=({node:n,isFixed:e,isLast:t})=>{var h,d,f;const{normalizedSchemasByType:s,getNodeKeysByType:r}=Hn(g=>g),i=b.useRef(null),o=(h=s[n.node_type])==null?void 0:h.icon,a=o?hc[o]:null,c=r(n.node_type)||"",l=n!=null&&n.properties?n==null?void 0:n.properties[c]:"",u=l?_a(l,30):"";return b.useEffect(()=>{i.current&&e&&Ks.to(i.current,{scale:.1,duration:1,ease:"power3.out"})},[e]),P.jsx(xo,{ref:i,as:"div",center:!0,className:"sprite",sprite:!0,children:t||e?P.jsx(aP,{align:"center",justify:"center",children:P.jsxs(P.Fragment,{children:[P.jsx(lP,{children:P.jsx(uP,{align:"center",height:32,justify:"center",radius:"50%",src:((d=n==null?void 0:n.properties)==null?void 0:d.image_url)||"",width:32,children:(f=n==null?void 0:n.properties)!=null&&f.image_url?null:P.jsx("span",{children:a?P.jsx(a,{}):P.jsx(Vi,{})})})}),P.jsx(cP,{children:u})]})}):null})},aP=ye(Me)` +*/var Qf,ds,Ir,Ih,Us,Jf,$h,FD=function(){return typeof window<"u"},es={},Ls=180/Math.PI,$r=Math.PI/180,wr=Math.atan2,ep=1e8,Fh=/([A-Z])/g,LD=/(left|right|width|margin|padding|x)/i,jD=/[\s,\(]\S/,Tn={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},du=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},zD=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},VD=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},UD=function(e,t){var s=t.s+t.c*e;t.set(t.t,t.p,~~(s+(s<0?-.5:.5))+t.u,t)},d_=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},f_=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},BD=function(e,t,s){return e.style[t]=s},WD=function(e,t,s){return e.style.setProperty(t,s)},qD=function(e,t,s){return e._gsap[t]=s},HD=function(e,t,s){return e._gsap.scaleX=e._gsap.scaleY=s},YD=function(e,t,s,r,i){var o=e._gsap;o.scaleX=o.scaleY=s,o.renderTransform(i,o)},GD=function(e,t,s,r,i){var o=e._gsap;o[t]=s,o.renderTransform(i,o)},Xe="transform",Mt=Xe+"Origin",XD=function n(e,t){var s=this,r=this.target,i=r.style,o=r._gsap;if(e in es&&i){if(this.tfm=this.tfm||{},e!=="transform")e=Tn[e]||e,~e.indexOf(",")?e.split(",").forEach(function(a){return s.tfm[a]=Un(r,a)}):this.tfm[e]=o.x?o[e]:Un(r,e),e===Mt&&(this.tfm.zOrigin=o.zOrigin);else return Tn.transform.split(",").forEach(function(a){return n.call(s,a,t)});if(this.props.indexOf(Xe)>=0)return;o.svg&&(this.svgo=r.getAttribute("data-svg-origin"),this.props.push(Mt,t,"")),e=Xe}(i||t)&&this.props.push(e,t,i[e])},p_=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},ZD=function(){var e=this.props,t=this.target,s=t.style,r=t._gsap,i,o;for(i=0;i=0?tp[o]:"")+e},pu=function(){FD()&&window.document&&(Qf=window,ds=Qf.document,Ir=ds.documentElement,Us=fu("div")||{style:{}},fu("div"),Xe=Qr(Xe),Mt=Xe+"Origin",Us.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",g_=!!Qr("perspective"),$h=$t.core.reverting,Ih=1)},gl=function n(e){var t=fu("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),s=this.parentNode,r=this.nextSibling,i=this.style.cssText,o;if(Ir.appendChild(t),t.appendChild(this),this.style.display="block",e)try{o=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=n}catch{}else this._gsapBBox&&(o=this._gsapBBox());return s&&(r?s.insertBefore(this,r):s.appendChild(this)),Ir.removeChild(t),this.style.cssText=i,o},np=function(e,t){for(var s=t.length;s--;)if(e.hasAttribute(t[s]))return e.getAttribute(t[s])},__=function(e){var t;try{t=e.getBBox()}catch{t=gl.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===gl||(t=gl.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+np(e,["x","cx","x1"])||0,y:+np(e,["y","cy","y1"])||0,width:0,height:0}:t},y_=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&__(e))},or=function(e,t){if(t){var s=e.style,r;t in es&&t!==Mt&&(t=Xe),s.removeProperty?(r=t.substr(0,2),(r==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),s.removeProperty(r==="--"?t:t.replace(Fh,"-$1").toLowerCase())):s.removeAttribute(t)}},fs=function(e,t,s,r,i,o){var a=new Pt(e._pt,t,s,0,1,o?f_:d_);return e._pt=a,a.b=r,a.e=i,e._props.push(s),a},sp={deg:1,rad:1,turn:1},KD={grid:1,flex:1},Os=function n(e,t,s,r){var i=parseFloat(s)||0,o=(s+"").trim().substr((i+"").length)||"px",a=Us.style,c=LD.test(t),l=e.tagName.toLowerCase()==="svg",u=(l?"client":"offset")+(c?"Width":"Height"),h=100,d=r==="px",f=r==="%",m,p,g,_;if(r===o||!i||sp[r]||sp[o])return i;if(o!=="px"&&!d&&(i=n(e,t,s,"px")),_=e.getCTM&&y_(e),(f||o==="%")&&(es[t]||~t.indexOf("adius")))return m=_?e.getBBox()[c?"width":"height"]:e[u],st(f?i/m*h:i/100*m);if(a[c?"width":"height"]=h+(d?o:r),p=~t.indexOf("adius")||r==="em"&&e.appendChild&&!l?e:e.parentNode,_&&(p=(e.ownerSVGElement||{}).parentNode),(!p||p===ds||!p.appendChild)&&(p=ds.body),g=p._gsap,g&&f&&g.width&&c&&g.time===zt.time&&!g.uncache)return st(i/g.width*h);if(f&&(t==="height"||t==="width")){var T=e.style[t];e.style[t]=h+r,m=e[u],T?e.style[t]=T:or(e,t)}else(f||o==="%")&&!KD[Cn(p,"display")]&&(a.position=Cn(e,"position")),p===e&&(a.position="static"),p.appendChild(Us),m=Us[u],p.removeChild(Us),a.position="absolute";return c&&f&&(g=Ys(p),g.time=zt.time,g.width=p[u]),st(d?m*i/h:m&&i?h/m*i:0)},Un=function(e,t,s,r){var i;return Ih||pu(),t in Tn&&t!=="transform"&&(t=Tn[t],~t.indexOf(",")&&(t=t.split(",")[0])),es[t]&&t!=="transform"?(i=vo(e,r),i=t!=="transformOrigin"?i[t]:i.svg?i.origin:cc(Cn(e,Mt))+" "+i.zOrigin+"px"):(i=e.style[t],(!i||i==="auto"||r||~(i+"").indexOf("calc("))&&(i=ac[t]&&ac[t](e,t,s)||Cn(e,t)||Ng(e,t)||(t==="opacity"?1:0))),s&&!~(i+"").trim().indexOf(" ")?Os(e,t,i,s)+s:i},QD=function(e,t,s,r){if(!s||s==="none"){var i=Qr(t,e,1),o=i&&Cn(e,i,1);o&&o!==s?(t=i,s=o):t==="borderColor"&&(s=Cn(e,"borderTopColor"))}var a=new Pt(this._pt,e.style,t,0,1,l_),c=0,l=0,u,h,d,f,m,p,g,_,T,w,b,y;if(a.b=s,a.e=r,s+="",r+="",r==="auto"&&(p=e.style[t],e.style[t]=r,r=Cn(e,t)||r,p?e.style[t]=p:or(e,t)),u=[s,r],Jg(u),s=u[0],r=u[1],d=s.match(Or)||[],y=r.match(Or)||[],y.length){for(;h=Or.exec(r);)g=h[0],T=r.substring(c,h.index),m?m=(m+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(m=1),g!==(p=d[l++]||"")&&(f=parseFloat(p)||0,b=p.substr((f+"").length),g.charAt(1)==="="&&(g=Nr(f,g)+b),_=parseFloat(g),w=g.substr((_+"").length),c=Or.lastIndex-w.length,w||(w=w||Wt.units[t]||b,c===r.length&&(r+=w,a.e+=w)),b!==w&&(f=Os(e,t,p,w)||0),a._pt={_next:a._pt,p:T||l===1?T:",",s:f,c:_-f,m:m&&m<4||t==="zIndex"?Math.round:0});a.c=c-1;)a=i[l],es[a]&&(c=1,a=a==="transformOrigin"?Mt:Xe),or(s,a);c&&(or(s,Xe),o&&(o.svg&&s.removeAttribute("transform"),vo(s,1),o.uncache=1,p_(r)))}},ac={clearProps:function(e,t,s,r,i){if(i.data!=="isFromStart"){var o=e._pt=new Pt(e._pt,t,s,0,0,eP);return o.u=r,o.pr=-10,o.tween=i,e._props.push(s),1}}},yo=[1,0,0,1,0,0],v_={},b_=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},ip=function(e){var t=Cn(e,Xe);return b_(t)?yo:t.substr(7).match(Sg).map(st)},Lh=function(e,t){var s=e._gsap||Ys(e),r=e.style,i=ip(e),o,a,c,l;return s.svg&&e.getAttribute("transform")?(c=e.transform.baseVal.consolidate().matrix,i=[c.a,c.b,c.c,c.d,c.e,c.f],i.join(",")==="1,0,0,1,0,0"?yo:i):(i===yo&&!e.offsetParent&&e!==Ir&&!s.svg&&(c=r.display,r.display="block",o=e.parentNode,(!o||!e.offsetParent)&&(l=1,a=e.nextElementSibling,Ir.appendChild(e)),i=ip(e),c?r.display=c:or(e,"display"),l&&(a?o.insertBefore(e,a):o?o.appendChild(e):Ir.removeChild(e))),t&&i.length>6?[i[0],i[1],i[4],i[5],i[12],i[13]]:i)},mu=function(e,t,s,r,i,o){var a=e._gsap,c=i||Lh(e,!0),l=a.xOrigin||0,u=a.yOrigin||0,h=a.xOffset||0,d=a.yOffset||0,f=c[0],m=c[1],p=c[2],g=c[3],_=c[4],T=c[5],w=t.split(" "),b=parseFloat(w[0])||0,y=parseFloat(w[1])||0,x,E,k,C;s?c!==yo&&(E=f*g-m*p)&&(k=b*(g/E)+y*(-p/E)+(p*T-g*_)/E,C=b*(-m/E)+y*(f/E)-(f*T-m*_)/E,b=k,y=C):(x=__(e),b=x.x+(~w[0].indexOf("%")?b/100*x.width:b),y=x.y+(~(w[1]||w[0]).indexOf("%")?y/100*x.height:y)),r||r!==!1&&a.smooth?(_=b-l,T=y-u,a.xOffset=h+(_*f+T*p)-_,a.yOffset=d+(_*m+T*g)-T):a.xOffset=a.yOffset=0,a.xOrigin=b,a.yOrigin=y,a.smooth=!!r,a.origin=t,a.originIsAbsolute=!!s,e.style[Mt]="0px 0px",o&&(fs(o,a,"xOrigin",l,b),fs(o,a,"yOrigin",u,y),fs(o,a,"xOffset",h,a.xOffset),fs(o,a,"yOffset",d,a.yOffset)),e.setAttribute("data-svg-origin",b+" "+y)},vo=function(e,t){var s=e._gsap||new s_(e);if("x"in s&&!t&&!s.uncache)return s;var r=e.style,i=s.scaleX<0,o="px",a="deg",c=getComputedStyle(e),l=Cn(e,Mt)||"0",u,h,d,f,m,p,g,_,T,w,b,y,x,E,k,C,S,R,O,L,z,W,B,V,U,X,K,J,F,j,A,I;return u=h=d=p=g=_=T=w=b=0,f=m=1,s.svg=!!(e.getCTM&&y_(e)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(r[Xe]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Xe]!=="none"?c[Xe]:"")),r.scale=r.rotate=r.translate="none"),E=Lh(e,s.svg),s.svg&&(s.uncache?(U=e.getBBox(),l=s.xOrigin-U.x+"px "+(s.yOrigin-U.y)+"px",V=""):V=!t&&e.getAttribute("data-svg-origin"),mu(e,V||l,!!V||s.originIsAbsolute,s.smooth!==!1,E)),y=s.xOrigin||0,x=s.yOrigin||0,E!==yo&&(R=E[0],O=E[1],L=E[2],z=E[3],u=W=E[4],h=B=E[5],E.length===6?(f=Math.sqrt(R*R+O*O),m=Math.sqrt(z*z+L*L),p=R||O?wr(O,R)*Ls:0,T=L||z?wr(L,z)*Ls+p:0,T&&(m*=Math.abs(Math.cos(T*$r))),s.svg&&(u-=y-(y*R+x*L),h-=x-(y*O+x*z))):(I=E[6],j=E[7],K=E[8],J=E[9],F=E[10],A=E[11],u=E[12],h=E[13],d=E[14],k=wr(I,F),g=k*Ls,k&&(C=Math.cos(-k),S=Math.sin(-k),V=W*C+K*S,U=B*C+J*S,X=I*C+F*S,K=W*-S+K*C,J=B*-S+J*C,F=I*-S+F*C,A=j*-S+A*C,W=V,B=U,I=X),k=wr(-L,F),_=k*Ls,k&&(C=Math.cos(-k),S=Math.sin(-k),V=R*C-K*S,U=O*C-J*S,X=L*C-F*S,A=z*S+A*C,R=V,O=U,L=X),k=wr(O,R),p=k*Ls,k&&(C=Math.cos(k),S=Math.sin(k),V=R*C+O*S,U=W*C+B*S,O=O*C-R*S,B=B*C-W*S,R=V,W=U),g&&Math.abs(g)+Math.abs(p)>359.9&&(g=p=0,_=180-_),f=st(Math.sqrt(R*R+O*O+L*L)),m=st(Math.sqrt(B*B+I*I)),k=wr(W,B),T=Math.abs(k)>2e-4?k*Ls:0,b=A?1/(A<0?-A:A):0),s.svg&&(V=e.getAttribute("transform"),s.forceCSS=e.setAttribute("transform","")||!b_(Cn(e,Xe)),V&&e.setAttribute("transform",V))),Math.abs(T)>90&&Math.abs(T)<270&&(i?(f*=-1,T+=p<=0?180:-180,p+=p<=0?180:-180):(m*=-1,T+=T<=0?180:-180)),t=t||s.uncache,s.x=u-((s.xPercent=u&&(!t&&s.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*s.xPercent/100:0)+o,s.y=h-((s.yPercent=h&&(!t&&s.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-h)?-50:0)))?e.offsetHeight*s.yPercent/100:0)+o,s.z=d+o,s.scaleX=st(f),s.scaleY=st(m),s.rotation=st(p)+a,s.rotationX=st(g)+a,s.rotationY=st(_)+a,s.skewX=T+a,s.skewY=w+a,s.transformPerspective=b+o,(s.zOrigin=parseFloat(l.split(" ")[2])||!t&&s.zOrigin||0)&&(r[Mt]=cc(l)),s.xOffset=s.yOffset=0,s.force3D=Wt.force3D,s.renderTransform=s.svg?nP:g_?x_:tP,s.uncache=0,s},cc=function(e){return(e=e.split(" "))[0]+" "+e[1]},_l=function(e,t,s){var r=pt(t);return st(parseFloat(t)+parseFloat(Os(e,"x",s+"px",r)))+r},tP=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,x_(e,t)},$s="0deg",Si="0px",Fs=") ",x_=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.z,l=s.rotation,u=s.rotationY,h=s.rotationX,d=s.skewX,f=s.skewY,m=s.scaleX,p=s.scaleY,g=s.transformPerspective,_=s.force3D,T=s.target,w=s.zOrigin,b="",y=_==="auto"&&e&&e!==1||_===!0;if(w&&(h!==$s||u!==$s)){var x=parseFloat(u)*$r,E=Math.sin(x),k=Math.cos(x),C;x=parseFloat(h)*$r,C=Math.cos(x),o=_l(T,o,E*C*-w),a=_l(T,a,-Math.sin(x)*-w),c=_l(T,c,k*C*-w+w)}g!==Si&&(b+="perspective("+g+Fs),(r||i)&&(b+="translate("+r+"%, "+i+"%) "),(y||o!==Si||a!==Si||c!==Si)&&(b+=c!==Si||y?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Fs),l!==$s&&(b+="rotate("+l+Fs),u!==$s&&(b+="rotateY("+u+Fs),h!==$s&&(b+="rotateX("+h+Fs),(d!==$s||f!==$s)&&(b+="skew("+d+", "+f+Fs),(m!==1||p!==1)&&(b+="scale("+m+", "+p+Fs),T.style[Xe]=b||"translate(0, 0)"},nP=function(e,t){var s=t||this,r=s.xPercent,i=s.yPercent,o=s.x,a=s.y,c=s.rotation,l=s.skewX,u=s.skewY,h=s.scaleX,d=s.scaleY,f=s.target,m=s.xOrigin,p=s.yOrigin,g=s.xOffset,_=s.yOffset,T=s.forceCSS,w=parseFloat(o),b=parseFloat(a),y,x,E,k,C;c=parseFloat(c),l=parseFloat(l),u=parseFloat(u),u&&(u=parseFloat(u),l+=u,c+=u),c||l?(c*=$r,l*=$r,y=Math.cos(c)*h,x=Math.sin(c)*h,E=Math.sin(c-l)*-d,k=Math.cos(c-l)*d,l&&(u*=$r,C=Math.tan(l-u),C=Math.sqrt(1+C*C),E*=C,k*=C,u&&(C=Math.tan(u),C=Math.sqrt(1+C*C),y*=C,x*=C)),y=st(y),x=st(x),E=st(E),k=st(k)):(y=h,k=d,x=E=0),(w&&!~(o+"").indexOf("px")||b&&!~(a+"").indexOf("px"))&&(w=Os(f,"x",o,"px"),b=Os(f,"y",a,"px")),(m||p||g||_)&&(w=st(w+m-(m*y+p*E)+g),b=st(b+p-(m*x+p*k)+_)),(r||i)&&(C=f.getBBox(),w=st(w+r/100*C.width),b=st(b+i/100*C.height)),C="matrix("+y+","+x+","+E+","+k+","+w+","+b+")",f.setAttribute("transform",C),T&&(f.style[Xe]=C)},sP=function(e,t,s,r,i){var o=360,a=dt(i),c=parseFloat(i)*(a&&~i.indexOf("rad")?Ls:1),l=c-r,u=r+l+"deg",h,d;return a&&(h=i.split("_")[1],h==="short"&&(l%=o,l!==l%(o/2)&&(l+=l<0?o:-o)),h==="cw"&&l<0?l=(l+o*ep)%o-~~(l/o)*o:h==="ccw"&&l>0&&(l=(l-o*ep)%o-~~(l/o)*o)),e._pt=d=new Pt(e._pt,t,s,r,l,zD),d.e=u,d.u="deg",e._props.push(s),d},op=function(e,t){for(var s in t)e[s]=t[s];return e},rP=function(e,t,s){var r=op({},s._gsap),i="perspective,force3D,transformOrigin,svgOrigin",o=s.style,a,c,l,u,h,d,f,m;r.svg?(l=s.getAttribute("transform"),s.setAttribute("transform",""),o[Xe]=t,a=vo(s,1),or(s,Xe),s.setAttribute("transform",l)):(l=getComputedStyle(s)[Xe],o[Xe]=t,a=vo(s,1),o[Xe]=l);for(c in es)l=r[c],u=a[c],l!==u&&i.indexOf(c)<0&&(f=pt(l),m=pt(u),h=f!==m?Os(s,c,l,m):parseFloat(l),d=parseFloat(u),e._pt=new Pt(e._pt,a,c,h,d-h,du),e._pt.u=m||0,e._props.push(c));op(a,r)};Dt("padding,margin,Width,Radius",function(n,e){var t="Top",s="Right",r="Bottom",i="Left",o=(e<3?[t,s,r,i]:[t+i,t+s,r+s,r+i]).map(function(a){return e<2?n+a:"border"+a+n});ac[e>1?"border"+n:n]=function(a,c,l,u,h){var d,f;if(arguments.length<4)return d=o.map(function(m){return Un(a,m,l)}),f=d.join(" "),f.split(d[0]).length===5?d[0]:f;d=(u+"").split(" "),f={},o.forEach(function(m,p){return f[m]=d[p]=d[p]||d[(p-1)/2|0]}),a.init(c,f,h)}});var w_={name:"css",register:pu,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,s,r,i){var o=this._props,a=e.style,c=s.vars.startAt,l,u,h,d,f,m,p,g,_,T,w,b,y,x,E,k;Ih||pu(),this.styles=this.styles||m_(e),k=this.styles.props,this.tween=s;for(p in t)if(p!=="autoRound"&&(u=t[p],!(Lt[p]&&r_(p,t,s,r,e,i)))){if(f=typeof u,m=ac[p],f==="function"&&(u=u.call(s,r,e,i),f=typeof u),f==="string"&&~u.indexOf("random(")&&(u=mo(u)),m)m(this,e,p,u,s)&&(E=1);else if(p.substr(0,2)==="--")l=(getComputedStyle(e).getPropertyValue(p)+"").trim(),u+="",_s.lastIndex=0,_s.test(l)||(g=pt(l),_=pt(u)),_?g!==_&&(l=Os(e,p,l,_)+_):g&&(u+=g),this.add(a,"setProperty",l,u,r,i,0,0,p),o.push(p),k.push(p,0,a[p]);else if(f!=="undefined"){if(c&&p in c?(l=typeof c[p]=="function"?c[p].call(s,r,e,i):c[p],dt(l)&&~l.indexOf("random(")&&(l=mo(l)),pt(l+"")||l==="auto"||(l+=Wt.units[p]||pt(Un(e,p))||""),(l+"").charAt(1)==="="&&(l=Un(e,p))):l=Un(e,p),d=parseFloat(l),T=f==="string"&&u.charAt(1)==="="&&u.substr(0,2),T&&(u=u.substr(2)),h=parseFloat(u),p in Tn&&(p==="autoAlpha"&&(d===1&&Un(e,"visibility")==="hidden"&&h&&(d=0),k.push("visibility",0,a.visibility),fs(this,a,"visibility",d?"inherit":"hidden",h?"inherit":"hidden",!h)),p!=="scale"&&p!=="transform"&&(p=Tn[p],~p.indexOf(",")&&(p=p.split(",")[0]))),w=p in es,w){if(this.styles.save(p),b||(y=e._gsap,y.renderTransform&&!t.parseTransform||vo(e,t.parseTransform),x=t.smoothOrigin!==!1&&y.smooth,b=this._pt=new Pt(this._pt,a,Xe,0,1,y.renderTransform,y,0,-1),b.dep=1),p==="scale")this._pt=new Pt(this._pt,y,"scaleY",y.scaleY,(T?Nr(y.scaleY,T+h):h)-y.scaleY||0,du),this._pt.u=0,o.push("scaleY",p),p+="X";else if(p==="transformOrigin"){k.push(Mt,0,a[Mt]),u=JD(u),y.svg?mu(e,u,0,x,0,this):(_=parseFloat(u.split(" ")[2])||0,_!==y.zOrigin&&fs(this,y,"zOrigin",y.zOrigin,_),fs(this,a,p,cc(l),cc(u)));continue}else if(p==="svgOrigin"){mu(e,u,1,x,0,this);continue}else if(p in v_){sP(this,y,p,d,T?Nr(d,T+u):u);continue}else if(p==="smoothOrigin"){fs(this,y,"smooth",y.smooth,u);continue}else if(p==="force3D"){y[p]=u;continue}else if(p==="transform"){rP(this,u,e);continue}}else p in a||(p=Qr(p)||p);if(w||(h||h===0)&&(d||d===0)&&!jD.test(u)&&p in a)g=(l+"").substr((d+"").length),h||(h=0),_=pt(u)||(p in Wt.units?Wt.units[p]:g),g!==_&&(d=Os(e,p,l,_)),this._pt=new Pt(this._pt,w?y:a,p,d,(T?Nr(d,T+h):h)-d,!w&&(_==="px"||p==="zIndex")&&t.autoRound!==!1?UD:du),this._pt.u=_||0,g!==_&&_!=="%"&&(this._pt.b=l,this._pt.r=VD);else if(p in a)QD.call(this,e,p,l,T?T+u:u);else if(p in e)this.add(e,p,l||e[p],T?T+u:u,r,i);else if(p!=="parseTransform"){Ch(p,u);continue}w||(p in a?k.push(p,0,a[p]):k.push(p,1,l||e[p])),o.push(p)}}E&&u_(this)},render:function(e,t){if(t.tween._time||!$h())for(var s=t._pt;s;)s.r(e,s.d),s=s._next;else t.styles.revert()},get:Un,aliases:Tn,getSetter:function(e,t,s){var r=Tn[t];return r&&r.indexOf(",")<0&&(t=r),t in es&&t!==Mt&&(e._gsap.x||Un(e,"x"))?s&&Jf===s?t==="scale"?HD:qD:(Jf=s||{})&&(t==="scale"?YD:GD):e.style&&!kh(e.style[t])?BD:~t.indexOf("-")?WD:Mh(e,t)},core:{_removeProperty:or,_getMatrix:Lh}};$t.utils.checkPrefix=Qr;$t.core.getStyleSaver=m_;(function(n,e,t,s){var r=Dt(n+","+e+","+t,function(i){es[i]=1});Dt(e,function(i){Wt.units[i]="deg",v_[i]=1}),Tn[r[13]]=n+","+e,Dt(s,function(i){var o=i.split(":");Tn[o[1]]=r[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Dt("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(n){Wt.units[n]="px"});$t.registerPlugin(w_);var Ks=$t.registerPlugin(w_)||$t;Ks.core.Tween;const k_=n=>{const e=v.useRef(null),t=v.useRef(null),s=Nt(f=>f.nodesNormalized),{label:r,source:i,target:o,sourceX:a,sourceY:c,sourceZ:l,targetX:u,targetY:h,targetZ:d}=n;return v.useEffect(()=>{if(e.current){const f=e.current;Ks.fromTo(f.material,{linewidth:bf*15},{linewidth:bf,duration:1})}},[e,a]),Ht(()=>{const f=s.get(i),m=s.get(o);if(!e.current||!t.current||!f||!m)return;const{hoveredNode:p,searchQuery:g,selectedNodeTypes:_,selectedLinkTypes:T}=ze.getState(),w=e.current,b=p,y=T.includes(r)||_.includes(f==null?void 0:f.node_type)&&_.includes(m.node_type);if(!y&&!b&&!g){t.current.visible=!1;return}w.visible=!1,t.current.visible=!1,y&&(w.visible=!0,t.current.visible=!0),(b==null?void 0:b.ref_id)===i||(b==null?void 0:b.ref_id)===o?(w.visible=!0,t.current.visible=!0,Ks.to(w.material,{linewidth:6,duration:.5,ease:"power1.out"})):Ks.to(w.material,{linewidth:1,duration:.5,ease:"power1.out"})}),P.jsxs("group",{ref:t,children:[P.jsx(bp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[a,c,l,u,h,d]}),P.jsx(Au,{children:P.jsx(xu,{anchorX:"center",anchorY:"middle",color:"white",...wu,fontSize:10,children:r})})]})};k_.displayName="LineComponent";const iP=v.memo(k_),ap=new _e(0,0,0),T_=v.memo(n=>{const{sourceX:e,sourceY:t,sourceZ:s,targetX:r,targetY:i,targetZ:o,color:a}=n,c=v.useRef(null);return Ht(()=>{c.current&&(c.current.start.set(e||0,t||0,s||0),c.current.end.set(r,i,o))}),P.jsx(P.Fragment,{children:P.jsx(L1,{ref:c,color:a,end:ap,start:ap})})});T_.displayName="LineInstance";const E_=v.memo(({linksPosition:n})=>{var l;const[e,t]=Nt(u=>[u.dataInitial,u.nodesNormalized]),[s,r,i,o,a]=ze(u=>[u.showSelectionGraph,u.searchQuery,u.selectedNodeTypes,u.highlightNodes,u.hoveredNode]),c=Hn(u=>u.normalizedSchemasByType);return P.jsxs(P.Fragment,{children:[P.jsx("group",{name:"simulation-3d-group__connections",visible:!s,children:(l=e==null?void 0:e.links)!=null&&l.length?P.jsx(P.Fragment,{children:e==null?void 0:e.links.map(u=>{const h=n.get(u.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return P.jsx(iP,{label:u.edge_type,source:u.source,sourceX:h.sx,sourceY:h.sy,sourceZ:h.sz,target:u.target,targetX:h.tx,targetY:h.ty,targetZ:h.tz},u.ref_id)})}):null}),P.jsx("group",{visible:!r&&!i.length&&!o.length&&!a,children:P.jsx($1,{limit:1e3,lineWidth:.05,children:e==null?void 0:e.links.map(u=>{var p;const h=n.get(u.ref_id)||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0},d=t.get(u.source)||"",m=(d?(p=c[d.node_type])==null?void 0:p.primary_color:"white")||"white";return P.jsx(T_,{color:m,sourceX:h.sx,sourceY:h.sy,sourceZ:h.sz,targetX:h.tx,targetY:h.ty,targetZ:h.tz},u.ref_id)})})},e==null?void 0:e.links.length)]})});E_.displayName="Connections";const oP=({node:n,isFixed:e,isLast:t})=>{var h,d,f;const{normalizedSchemasByType:s,getNodeKeysByType:r}=Hn(m=>m),i=v.useRef(null),o=(h=s[n.node_type])==null?void 0:h.icon,a=o?hc[o]:null,c=r(n.node_type)||"",l=n!=null&&n.properties?n==null?void 0:n.properties[c]:"",u=l?_a(l,30):"";return v.useEffect(()=>{i.current&&e&&Ks.to(i.current,{scale:.1,duration:1,ease:"power3.out"})},[e]),P.jsx(xo,{ref:i,as:"div",center:!0,className:"sprite",sprite:!0,children:t||e?P.jsx(aP,{align:"center",justify:"center",children:P.jsxs(P.Fragment,{children:[P.jsx(lP,{children:P.jsx(uP,{align:"center",height:32,justify:"center",radius:"50%",src:((d=n==null?void 0:n.properties)==null?void 0:d.image_url)||"",width:32,children:(f=n==null?void 0:n.properties)!=null&&f.image_url?null:P.jsx("span",{children:a?P.jsx(a,{}):P.jsx(Vi,{})})})}),P.jsx(cP,{children:u})]})}):null})},aP=ye(Me)` background: ${oe.gray100}; padding: 8px; border-radius: 8px; @@ -557,9 +557,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: ${({height:n})=>`${n}px`}; border-radius: ${({radius:n})=>`${n}`}; font-size: 20px; -`,T_=b.memo(n=>{const{node:e,x:t,y:s,z:r,iX:i,iY:o,iZ:a,onRemove:c,isFixed:l,isLast:u}=n,h=b.useRef(null);return b.useEffect(()=>{h.current&&!l&&Ks.fromTo(h.current.position,{x:i,y:o,z:a},{x:t,y:s,z:r,duration:1,ease:"power3.out"})},[t,s,r,i,o,a,l]),b.useEffect(()=>{h.current&&l&&Ks.to(h.current.position,{x:t,y:s,z:r,duration:2,ease:"power3.out",onComplete:()=>{c&&c(e.ref_id)}})},[e.fx,e.fy,e.fz,e.ref_id,c,l,t,s,r]),P.jsx("mesh",{ref:h,position:[i,o,a],scale:e.scale||1,userData:e,children:P.jsx(oP,{isFixed:l,isLast:u,node:e})})});T_.displayName="CandidateWrapper";const E_=b.memo(()=>{const{activeNode:n,simulation:e}=Ue(c=>c),t=b.useRef([""]),[s,r]=b.useState(0),i={x:(n==null?void 0:n.fx)||0,y:(n==null?void 0:n.fy)||0,z:(n==null?void 0:n.fz)||0},o=200,a=c=>{t.current=t.current.filter(l=>l!==c),r(s+1)};return P.jsx(P.Fragment,{children:e.nodes().slice(-5).filter(c=>c.fx===void 0||t.current.some(l=>l===c.ref_id)).map((c,l,u)=>{const d=c.fx||i.x+Math.cos(0)*o,f=c.fy||i.y+Math.sin(0)*o,g=c.fz||i.z;return t.current.includes(c.ref_id)||t.current.push(c.ref_id),P.jsx(T_,{isFixed:typeof c.fx=="number",isLast:l===u.length-1,iX:i.x,iY:i.y,iZ:i.z,node:c,onRemove:a,x:d,y:f,z:g},c.ref_id)})})});E_.displayName="Candidates";const C_=b.memo(({color:n,scale:e,name:t,index:s,node:r,nodeType:i})=>{const o=b.useRef(null),a=b.useRef(null);return qt(()=>{var g;if(!o.current||!a.current)return;const{searchQuery:c,simulation:l,selectedNodeTypes:u,selectedLinkTypes:h}=Ue.getState(),{nodesNormalized:d}=Jt.getState(),f=l==null?void 0:l.nodes()[s];if(typeof(f==null?void 0:f.fx)=="number")o.current.scale.set(e,e,e);else{o.current.scale.set(0,0,0);return}if(c){const p=t.toLowerCase().includes(c.toLowerCase()),m=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(m,m,m)}else if(u.length){const p=u.includes(i),m=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(m,m,m)}else if(h.length){const p=d.get(r.ref_id),m=(g=p==null?void 0:p.edgeTypes)==null?void 0:g.some(w=>h.includes(w)),_=m?1:.1,T=!!m;a.current.visible=T,o.current.scale.set(_,_,_)}else o.current.scale.set(1,1,1),a.current.visible=!0}),P.jsxs(Au,{ref:o,follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"group-name",visible:!1,children:[P.jsxs("mesh",{ref:a,name:"instance-helper",scale:[e,e,e],userData:r,children:[P.jsx("sphereGeometry",{args:[30,16,16]}),P.jsx("meshBasicMaterial",{color:"white",opacity:0,transparent:!0})]}),P.jsx(Vp,{color:n,name:"instance",scale:e})]})});C_.displayName="Point";const hP=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],dP=()=>{const n=As(),e=Jt(o=>o.dataInitial),{normalizedSchemasByType:t}=Hn(o=>o),s=yu(),r=b.useMemo(()=>new Ry(30,.5,16,100),[]),{getNodeKeysByType:i}=Hn(o=>o);return P.jsx(P.Fragment,{children:P.jsxs(N1,{geometry:r,limit:1e3,range:1e3,visible:!n||!0,children:[P.jsx("meshBasicMaterial",{}),e==null?void 0:e.nodes.map((o,a)=>{var f;const l=((f=t[o.node_type])==null?void 0:f.primary_color)??(hP[s.indexOf(o.node_type)]||oe.white),u=o.scale||1,h=i(o.node_type)||"",d=h&&(o!=null&&o.properties)&&(o==null?void 0:o.properties[h])||"";return P.jsx(C_,{color:l,index:a,name:d,node:o,nodeType:o.node_type,scale:u},o.ref_id)})]})})},fP=b.memo(dP);function pP(n){const e=b.useRef(n);b.useEffect(()=>{const t=Object.entries(n).reduce((s,[r,i])=>(e.current[r]!==i&&(s[r]=[e.current[r],i]),s),{});Object.keys(t).length>0&&console.log("Changed props:",t),e.current=n})}const mP=n=>{const e=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return n.replace(e,t=>/^[\d*#]$/.test(t)?t:"")},S_={metalness:.9,roughness:0},O_=new dc,A_=O_.load("noimage.jpeg");new fc({...S_,map:A_});const gP=.4;new fc({...S_,map:A_,transparent:!0,opacity:gP});const ca={},_P=n=>{const[e,t]=b.useState(null);return b.useEffect(()=>{var r;if(!n){t(null);return}const s=n;if((r=ca[s])!=null&&r.texture){t(ca[s].texture);return}O_.load(n,i=>{ca[s]={texture:i,material:new fc({map:i})},t(i)},void 0,()=>{t(null)})},[n]),b.useEffect(()=>()=>{e&&(Object.values(ca).some(r=>r.texture===e)||e.dispose())},[e]),{texture:e}};function yP(n){const e=_a(n,30),t=e.split(" ");if(t.length<=5)return e;const s=Math.ceil(t.length/3),r=s*2,i=t.slice(0,s).join(" "),o=t.slice(s,r).join(" "),a=t.slice(r).join(" ");return`${i} +`,C_=v.memo(n=>{const{node:e,x:t,y:s,z:r,iX:i,iY:o,iZ:a,onRemove:c,isFixed:l,isLast:u}=n,h=v.useRef(null);return v.useEffect(()=>{h.current&&!l&&Ks.fromTo(h.current.position,{x:i,y:o,z:a},{x:t,y:s,z:r,duration:1,ease:"power3.out"})},[t,s,r,i,o,a,l]),v.useEffect(()=>{h.current&&l&&Ks.to(h.current.position,{x:t,y:s,z:r,duration:2,ease:"power3.out",onComplete:()=>{c&&c(e.ref_id)}})},[e.fx,e.fy,e.fz,e.ref_id,c,l,t,s,r]),P.jsx("mesh",{ref:h,position:[i,o,a],scale:e.scale||1,userData:e,children:P.jsx(oP,{isFixed:l,isLast:u,node:e})})});C_.displayName="CandidateWrapper";const S_=v.memo(()=>{const{activeNode:n,simulation:e}=ze(c=>c),t=v.useRef([""]),[s,r]=v.useState(0),i={x:(n==null?void 0:n.fx)||0,y:(n==null?void 0:n.fy)||0,z:(n==null?void 0:n.fz)||0},o=200,a=c=>{t.current=t.current.filter(l=>l!==c),r(s+1)};return P.jsx(P.Fragment,{children:e.nodes().slice(-5).filter(c=>c.fx===void 0||t.current.some(l=>l===c.ref_id)).map((c,l,u)=>{const d=c.fx||i.x+Math.cos(0)*o,f=c.fy||i.y+Math.sin(0)*o,m=c.fz||i.z;return t.current.includes(c.ref_id)||t.current.push(c.ref_id),P.jsx(C_,{isFixed:typeof c.fx=="number",isLast:l===u.length-1,iX:i.x,iY:i.y,iZ:i.z,node:c,onRemove:a,x:d,y:f,z:m},c.ref_id)})})});S_.displayName="Candidates";const O_=v.memo(({color:n,scale:e,name:t,index:s,node:r,nodeType:i})=>{const o=v.useRef(null),a=v.useRef(null);return Ht(()=>{var m;if(!o.current||!a.current)return;const{searchQuery:c,simulation:l,selectedNodeTypes:u,selectedLinkTypes:h}=ze.getState(),{nodesNormalized:d}=Nt.getState(),f=l==null?void 0:l.nodes()[s];if(typeof(f==null?void 0:f.fx)=="number")o.current.scale.set(e,e,e);else{o.current.scale.set(0,0,0);return}if(c){const p=t.toLowerCase().includes(c.toLowerCase()),g=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(g,g,g)}else if(u.length){const p=u.includes(i),g=p?1:.1,_=!!p;a.current.visible=_,o.current.scale.set(g,g,g)}else if(h.length){const p=d.get(r.ref_id),g=(m=p==null?void 0:p.edgeTypes)==null?void 0:m.some(w=>h.includes(w)),_=g?1:.1,T=!!g;a.current.visible=T,o.current.scale.set(_,_,_)}else o.current.scale.set(1,1,1),a.current.visible=!0}),P.jsxs(Au,{ref:o,follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"group-name",visible:!1,children:[P.jsxs("mesh",{ref:a,name:"instance-helper",scale:[e,e,e],userData:r,children:[P.jsx("sphereGeometry",{args:[30,16,16]}),P.jsx("meshBasicMaterial",{color:"white",opacity:0,transparent:!0})]}),P.jsx(Up,{color:n,name:"instance",scale:e})]})});O_.displayName="Point";const hP=["#fff","#9747FF","#00887A","#0098A6","#0288D1","#33691E","#465A65","#512DA7","#5C6BC0","#5D4038","#662C00","#689F39","#6B1B00","#750000","#78909C","#7E57C2","#8C6E63","#AA47BC","#BF360C","#C2175B","#EC407A","#EF6C00","#F5511E","#FF9696","#FFC064","#FFCD29","#FFEA60"],dP=()=>{const n=As(),e=Nt(o=>o.dataInitial),{normalizedSchemasByType:t}=Hn(o=>o),s=yu(),r=v.useMemo(()=>new Dy(30,.5,16,100),[]),{getNodeKeysByType:i}=Hn(o=>o);return P.jsx(P.Fragment,{children:P.jsxs(I1,{geometry:r,limit:1e3,range:1e3,visible:!n||!0,children:[P.jsx("meshBasicMaterial",{}),e==null?void 0:e.nodes.map((o,a)=>{var f;const l=((f=t[o.node_type])==null?void 0:f.primary_color)??(hP[s.indexOf(o.node_type)]||oe.white),u=o.scale||1,h=i(o.node_type)||"",d=h&&(o!=null&&o.properties)&&(o==null?void 0:o.properties[h])||"";return P.jsx(O_,{color:l,index:a,name:d,node:o,nodeType:o.node_type,scale:u},o.ref_id)})]})})},fP=v.memo(dP);function pP(n){const e=v.useRef(n);v.useEffect(()=>{const t=Object.entries(n).reduce((s,[r,i])=>(e.current[r]!==i&&(s[r]=[e.current[r],i]),s),{});Object.keys(t).length>0&&console.log("Changed props:",t),e.current=n})}const mP=n=>{const e=/(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff]|[\u0023-\u0039]\ufe0f?\u20e3|\u3299|\u3297|\u303d|\u3030|\u24c2|\ud83c[\udd70-\udd71]|\ud83c[\udd7e-\udd7f]|\ud83c\udd8e|\ud83c[\udd91-\udd9a]|\ud83c[\udde6-\uddff]|\ud83c[\ude01-\ude02]|\ud83c\ude1a|\ud83c\ude2f|\ud83c[\ude32-\ude3a]|\ud83c[\ude50-\ude51]|\u203c|\u2049|[\u25aa-\u25ab]|\u25b6|\u25c0|[\u25fb-\u25fe]|\u00a9|\u00ae|\u2122|\u2139|\ud83c\udc04|[\u2600-\u26FF]|\u2b05|\u2b06|\u2b07|\u2b1b|\u2b1c|\u2b50|\u2b55|\u231a|\u231b|\u2328|\u23cf|[\u23e9-\u23f3]|[\u23f8-\u23fa]|\ud83c\udccf|\u2934|\u2935|[\u2190-\u21ff])/g;return n.replace(e,t=>/^[\d*#]$/.test(t)?t:"")},A_={metalness:.9,roughness:0},R_=new dc,D_=R_.load("noimage.jpeg");new fc({...A_,map:D_});const gP=.4;new fc({...A_,map:D_,transparent:!0,opacity:gP});const ca={},_P=n=>{const[e,t]=v.useState(null);return v.useEffect(()=>{var r;if(!n){t(null);return}const s=n;if((r=ca[s])!=null&&r.texture){t(ca[s].texture);return}R_.load(n,i=>{ca[s]={texture:i,material:new fc({map:i})},t(i)},void 0,()=>{t(null)})},[n]),v.useEffect(()=>()=>{e&&(Object.values(ca).some(r=>r.texture===e)||e.dispose())},[e]),{texture:e}};function yP(n){const e=_a(n,30),t=e.split(" ");if(t.length<=5)return e;const s=Math.ceil(t.length/3),r=s*2,i=t.slice(0,s).join(" "),o=t.slice(s,r).join(" "),a=t.slice(r).join(" ");return`${i} ${o} -${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color:r}=n,i=b.useRef(null),o=b.useRef(null),a=b.useRef(null),c=b.useRef(null);pP(n);const l=b.useRef(new _e),{texture:u}=_P(((v=e.properties)==null?void 0:v.image_url)||""),{normalizedSchemasByType:h,getNodeKeysByType:d}=Hn(C=>C),f=d(e.node_type)||"",g=f&&(e!=null&&e.properties)?mP(String((e==null?void 0:e.properties[f])||"")):"";qt(({camera:C,clock:S})=>{var X,K;if(!o.current||!a.current)return;const{selectedNode:R,hoveredNode:O,activeEdge:L,searchQuery:z,selectedNodeTypes:W,selectedLinkTypes:B}=Ue.getState(),V=()=>{const Q=l.current.setFromMatrixPosition(o.current.matrixWorld);o.current&&(o.current.visible=s?!0:Q.distanceTo(C.position)<1500)};if(z.length<3&&!W.length&&!B.length?(a.current.visible=!0,V()):(o.current.visible=!1,a.current.visible=!1),e.ref_id===(R==null?void 0:R.ref_id)||e.ref_id===(O==null?void 0:O.ref_id)||(L==null?void 0:L.target)===e.ref_id||(L==null?void 0:L.source)===e.ref_id||z&&g.toLowerCase().includes(z.toLowerCase())||W.includes(e.node_type)||((X=e.edgeTypes)==null?void 0:X.some(Q=>B.includes(Q)))){o.current&&!o.current.visible&&(o.current.visible=!0);const Q=S.getElapsedTime(),F=2,j=Q%F/F,A=1+j*2,I=1-j;if(c.current&&!c.current.visible){c.current.visible=!0,c.current.scale.set(A,A,A);const{material:Y}=c.current;Y instanceof qh&&(Y.opacity=I)}return}(K=c.current)!=null&&K.visible&&(c.current.visible=!1)});const p=(k=h[e.node_type])==null?void 0:k.primary_color,m=(E=h[e.node_type])==null?void 0:E.icon,_=p??r,w=(m?hc[m]:null)?m:"NodesIcon",y={u_texture:{value:u},u_radius:{value:.5}};return P.jsx(Au,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:e,children:P.jsxs("mesh",{ref:o,name:e.ref_id,userData:e,visible:!t,children:[P.jsxs("mesh",{ref:a,name:"event-handler",children:[P.jsx("boxGeometry",{args:[40,40,40]}),P.jsx("meshStandardMaterial",{opacity:0,transparent:!0})]}),P.jsxs("mesh",{ref:c,position:[0,0,-2],children:[P.jsx("ringGeometry",{args:[29,30,32]})," ",P.jsx("meshBasicMaterial",{color:_,opacity:.5,side:ya,transparent:!0})]}),(x=e.properties)!=null&&x.image_url&&u?P.jsx(ty,{args:[10*2,10*2],scale:2,children:P.jsx("shaderMaterial",{fragmentShader:` +${a}`}const P_=v.memo(n=>{var y,x,E,k;const{node:e,hide:t,ignoreDistance:s,color:r}=n,i=v.useRef(null),o=v.useRef(null),a=v.useRef(null),c=v.useRef(null);pP(n);const l=v.useRef(new _e),{texture:u}=_P(((y=e.properties)==null?void 0:y.image_url)||""),{normalizedSchemasByType:h,getNodeKeysByType:d}=Hn(C=>C),f=d(e.node_type)||"",m=f&&(e!=null&&e.properties)?mP(String((e==null?void 0:e.properties[f])||"")):e.name||"";Ht(({camera:C,clock:S})=>{var K,J;if(!o.current||!a.current)return;const{selectedNode:R,hoveredNode:O,activeEdge:L,searchQuery:z,selectedNodeTypes:W,selectedLinkTypes:B,hoveredNodeSiblings:V}=ze.getState(),U=()=>{const F=l.current.setFromMatrixPosition(o.current.matrixWorld);o.current&&(o.current.visible=s?!0:F.distanceTo(C.position)<1500)};if(z.length<3&&!W.length&&!B.length?(a.current.visible=!0,U()):(o.current.visible=!1,a.current.visible=!1),e.ref_id===(R==null?void 0:R.ref_id)||e.ref_id===(O==null?void 0:O.ref_id)||(L==null?void 0:L.target)===e.ref_id||(L==null?void 0:L.source)===e.ref_id||z&&m.toLowerCase().includes(z.toLowerCase())||W.includes(e.node_type)||V.includes(e.ref_id)||((K=e.edgeTypes)==null?void 0:K.some(F=>B.includes(F)))){o.current&&!o.current.visible&&(o.current.visible=!0);const F=S.getElapsedTime(),j=2,A=F%j/j,I=1+A*2,Y=1-A;if(c.current&&!c.current.visible){c.current.visible=!0,c.current.scale.set(I,I,I);const{material:$}=c.current;$ instanceof Hh&&($.opacity=Y)}return}(J=c.current)!=null&&J.visible&&(c.current.visible=!1)});const p=(x=h[e.node_type])==null?void 0:x.primary_color,g=(E=h[e.node_type])==null?void 0:E.icon,_=p??r,w=(g?hc[g]:null)?g:"NodesIcon",b={u_texture:{value:u},u_radius:{value:.5}};return P.jsx(Au,{follow:!0,lockX:!1,lockY:!1,lockZ:!1,name:"billboard",userData:e,children:P.jsxs("mesh",{ref:o,name:e.ref_id,userData:e,visible:!t,children:[P.jsxs("mesh",{ref:a,name:"event-handler",children:[P.jsx("boxGeometry",{args:[40,40,40]}),P.jsx("meshStandardMaterial",{opacity:0,transparent:!0})]}),P.jsxs("mesh",{ref:c,position:[0,0,-2],children:[P.jsx("ringGeometry",{args:[29,30,32]})," ",P.jsx("meshBasicMaterial",{color:_,opacity:.5,side:ya,transparent:!0})]}),(k=e.properties)!=null&&k.image_url&&u?P.jsx(ny,{args:[10*2,10*2],scale:2,children:P.jsx("shaderMaterial",{fragmentShader:` uniform sampler2D u_texture; uniform float u_radius; varying vec2 vUv; @@ -573,13 +573,13 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color discard; // Discard pixels outside the circle } } - `,uniforms:y,vertexShader:` + `,uniforms:b,vertexShader:` varying vec2 vUv; void main() { vUv = uv; gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0); } - `})}):P.jsx(S1,{ref:i,name:"svg",onUpdate:C=>{C.traverse(S=>{S instanceof Ep&&(S.material=new qh({color:_}))})},position:[-15,15,0],scale:2,src:`svg-icons/${w}.svg`,userData:e}),g&&P.jsx(xu,{color:_,fillOpacity:1,name:"text",position:[0,-65,0],scale:1,userData:e,...wu,fontSize:20,children:yP(g)})]})})},(n,e)=>n.hide===e.hide&&n.ignoreDistance===e.ignoreDistance&&n.node.ref_id===e.node.ref_id);R_.displayName="TextNode";const D_=b.memo(n=>{const{node:e,color:t,isFixed:s}=n;return P.jsx("mesh",{name:"wr2",scale:e.scale||1,userData:e,children:P.jsx("mesh",{visible:s,children:P.jsx(R_,{color:t,ignoreDistance:!1,node:e,scale:e.scale||1},e.ref_id)})},e.ref_id)},(n,e)=>n.isFixed===e.isFixed);D_.displayName="NodeWrapper";const vP=200,P_=b.memo(()=>{const n=As(),e=xp(),t=b.useRef(null),s=b.useRef(null),{selectionGraphData:r,showSelectionGraph:i,setHoveredNode:o,setIsHovering:a,simulation:c}=Ue(w=>w),l=yu(),u=Jt(w=>w.dataInitial),h=Jt(w=>w.nodesNormalized),d=bo(w=>w.setTranscriptOpen);qt(()=>{});const f=b.useCallback(w=>!!(i&&!r.nodes.find(y=>y.ref_id===w.ref_id)),[i,r]),g=b.useCallback(w=>{const y=w==null?void 0:w[0];y&&(d(!1),y.userData&&(f(y.userData)||Ue.getState().setSelectedNode((y==null?void 0:y.userData)||null)))},[d,f]),p=b.useRef(null),m=b.useCallback(w=>{w.stopPropagation(),p.current&&(clearTimeout(p.current),p.current=null),e&&(a(!1),o(null))},[a,o,e]),_=b.useCallback(w=>{var k;const v=w.intersections.map(E=>E.object)[0];if(p.current&&(clearTimeout(p.current),p.current=null),(k=v==null?void 0:v.userData)!=null&&k.ref_id){const E=v.userData;f(E)||(w.stopPropagation(),p.current=setTimeout(()=>{a(!0),o(E)},vP))}},[o,f,a]),T=i&&!!n;return P.jsxs(P.Fragment,{children:[P.jsx("group",{ref:t,name:"simulation-3d-group__nodes",visible:!T,children:u==null?void 0:u.nodes.map((w,y)=>{const v=ny[l.indexOf(w.node_type)]||oe.white,k=c.nodes()[y],E=typeof(k==null?void 0:k.fx)=="number",x=h.get(w.ref_id);return x?P.jsx(D_,{color:v,isFixed:E,node:x,scale:w.scale||1},w.ref_id):null})}),P.jsx(C1,{filter:w=>w.filter(y=>{var v;return!!((v=y.userData)!=null&&v.ref_id)}),onChange:g,onPointerOut:m,onPointerOver:_,children:P.jsx("group",{ref:s,name:"simulation-3d-group__node-points",children:P.jsx(fP,{})})}),P.jsx(E_,{})]})});P_.displayName="Cubes";const bP={earthRef:null},xP=mp(n=>({...bP,setEarthRef:e=>n({earthRef:e})})),wP=new _e(0,0,0),kP=()=>{const n=b.useRef(null),e=b.useRef(null),{graphStyle:t,showSelectionGraph:s}=Ue(a=>a),r=xP(a=>a.setEarthRef),i=Bs("textures/earth/galaxy.png"),o=Bs("textures/earth/clouds.png");return qt(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(wP))}),b.useLayoutEffect(()=>{n.current&&r(n)},[r]),t!=="earth"||s?null:P.jsxs(P.Fragment,{children:[P.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[P.jsx("sphereGeometry",{args:[ia,200,200]}),P.jsx(TP,{})]}),P.jsxs("mesh",{children:[P.jsx("sphereGeometry",{args:[ia+2,200,200]}),P.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),P.jsxs("mesh",{children:[P.jsx("sphereGeometry",{args:[ia*4,200,200]}),P.jsx("meshStandardMaterial",{map:i,opacity:.4,side:ya,transparent:!0})]}),P.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,ia*3]})]})},TP=()=>{const n=Bs("textures/earth/earth.jpeg"),e=Bs("textures/earth/bump.jpeg"),t=Bs("textures/earth/water.png"),s=b.useMemo(()=>new fc({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return P.jsx("meshStandardMaterial",{...s})},EP="C",CP=256,SP=256,OP={g:"LottieFiles AE 0.1.20"},AP=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],RP="5.5.7",DP=60,PP=104,MP=0,NP=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],IP={nm:EP,h:CP,w:SP,meta:OP,layers:AP,v:RP,fr:DP,op:PP,ip:MP,assets:NP},$P=({meshId:n})=>{const e=b.useRef(null);return b.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=W_.loadAnimation({container:t,animationData:IP,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),P.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},yl=()=>Math.floor(Math.random()*2001)-1e3,FP=()=>P.jsx(P.Fragment,{children:["a","b","c"].map(n=>{const e=yl(),t=yl(),s=yl();return P.jsx("mesh",{position:[e,t,s],children:P.jsx(xo,{center:!0,sprite:!0,children:P.jsx(LP,{children:P.jsx($P,{meshId:n})})})},n)})}),LP=ye.div` + `})}):P.jsx(O1,{ref:i,name:"svg",onUpdate:C=>{C.traverse(S=>{S instanceof Cp&&(S.material=new Hh({color:_}))})},position:[-15,15,0],scale:2,src:`svg-icons/${w}.svg`,userData:e}),m&&P.jsx(xu,{color:_,fillOpacity:1,name:"text",position:[0,-65,0],scale:1,userData:e,...wu,fontSize:20,children:yP(m)})]})})},(n,e)=>n.hide===e.hide&&n.ignoreDistance===e.ignoreDistance&&n.node.ref_id===e.node.ref_id);P_.displayName="TextNode";const M_=v.memo(n=>{const{node:e,color:t,isFixed:s}=n;return P.jsx("mesh",{name:"wr2",scale:e.scale||1,userData:e,children:P.jsx("mesh",{visible:s,children:P.jsx(P_,{color:t,ignoreDistance:!1,node:e,scale:e.scale||1},e.ref_id)})},e.ref_id)},(n,e)=>n.isFixed===e.isFixed);M_.displayName="NodeWrapper";const vP=200,N_=v.memo(()=>{const n=As(),e=wp(),t=v.useRef(null),s=v.useRef(null),{selectionGraphData:r,showSelectionGraph:i,setHoveredNode:o,setIsHovering:a,simulation:c}=ze(w=>w),l=yu(),u=Nt(w=>w.dataInitial),h=Nt(w=>w.nodesNormalized),d=bo(w=>w.setTranscriptOpen);Ht(()=>{});const f=v.useCallback(w=>!!(i&&!r.nodes.find(b=>b.ref_id===w.ref_id)),[i,r]),m=v.useCallback(w=>{const b=w==null?void 0:w[0];b&&(d(!1),b.userData&&(f(b.userData)||ze.getState().setSelectedNode((b==null?void 0:b.userData)||null)))},[d,f]),p=v.useRef(null),g=v.useCallback(w=>{w.stopPropagation(),p.current&&(clearTimeout(p.current),p.current=null),e&&(a(!1),o(null))},[a,o,e]),_=v.useCallback(w=>{var x;const y=w.intersections.map(E=>E.object)[0];if(p.current&&(clearTimeout(p.current),p.current=null),(x=y==null?void 0:y.userData)!=null&&x.ref_id){const E=y.userData;f(E)||(w.stopPropagation(),p.current=setTimeout(()=>{a(!0),o(E)},vP))}},[o,f,a]),T=i&&!!n;return P.jsxs(P.Fragment,{children:[P.jsx("group",{ref:t,name:"simulation-3d-group__nodes",visible:!T,children:u==null?void 0:u.nodes.map((w,b)=>{const y=sy[l.indexOf(w.node_type)]||oe.white,x=c.nodes()[b],E=typeof(x==null?void 0:x.fx)=="number",k=h.get(w.ref_id);return k?P.jsx(M_,{color:y,isFixed:E,node:k,scale:w.scale||1},w.ref_id):null})}),P.jsx(S1,{filter:w=>w.filter(b=>{var y;return!!((y=b.userData)!=null&&y.ref_id)}),onChange:m,onPointerOut:g,onPointerOver:_,children:P.jsx("group",{ref:s,name:"simulation-3d-group__node-points",children:P.jsx(fP,{})})}),P.jsx(S_,{})]})});N_.displayName="Cubes";const bP={earthRef:null},xP=gp(n=>({...bP,setEarthRef:e=>n({earthRef:e})})),wP=new _e(0,0,0),kP=()=>{const n=v.useRef(null),e=v.useRef(null),{graphStyle:t,showSelectionGraph:s}=ze(a=>a),r=xP(a=>a.setEarthRef),i=Bs("textures/earth/galaxy.png"),o=Bs("textures/earth/clouds.png");return Ht(({camera:a})=>{e.current&&e.current.position.copy(a.getWorldPosition(wP))}),v.useLayoutEffect(()=>{n.current&&r(n)},[r]),t!=="earth"||s?null:P.jsxs(P.Fragment,{children:[P.jsxs("mesh",{ref:n,userData:{type:"earth"},children:[P.jsx("sphereGeometry",{args:[ia,200,200]}),P.jsx(TP,{})]}),P.jsxs("mesh",{children:[P.jsx("sphereGeometry",{args:[ia+2,200,200]}),P.jsx("meshStandardMaterial",{alphaMap:o,map:o,transparent:!0})]}),P.jsxs("mesh",{children:[P.jsx("sphereGeometry",{args:[ia*4,200,200]}),P.jsx("meshStandardMaterial",{map:i,opacity:.4,side:ya,transparent:!0})]}),P.jsx("directionalLight",{ref:e,intensity:.9,position:[0,0,ia*3]})]})},TP=()=>{const n=Bs("textures/earth/earth.jpeg"),e=Bs("textures/earth/bump.jpeg"),t=Bs("textures/earth/water.png"),s=v.useMemo(()=>new fc({map:n,bumpMap:e,aoMap:e,roughnessMap:e,metalnessMap:t,toneMapped:!0,roughness:35,metalness:0}),[n,e,t]);return P.jsx("meshStandardMaterial",{...s})},EP="C",CP=256,SP=256,OP={g:"LottieFiles AE 0.1.20"},AP=[{ty:0,nm:"I",sr:1,st:0,op:26,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_0",ind:1},{ty:0,nm:"I",sr:1,st:26,op:52,ip:26,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_1",ind:2},{ty:0,nm:"I",sr:1,st:52,op:78,ip:52,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_2",ind:3},{ty:0,nm:"I",sr:1,st:78,op:108,ip:78,hasMask:!1,ao:0,ks:{a:{a:0,k:[128,128,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],w:256,h:256,refId:"comp_3",ind:4}],RP="5.5.7",DP=60,PP=104,MP=0,NP=[{nm:"",id:"comp_0",layers:[{ty:4,nm:"I",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.656,.016],[0,20],[-34.641,0],[.016,-19.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,10],[17.321,30],[17.321,-10],[51.962,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,-9.984],[17.32,10],[17.32,-30],[-17.32,-50.016]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,30],[17.32,50],[17.305,10],[-17.32,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,10],[-51.962,30],[-51.962,-10],[-17.321,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]},{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,20],[-34.641,0],[0,-20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:1}]},{nm:"",id:"comp_1",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,-10.016],[-17.32,-30],[17.32,-50],[51.961,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:33,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:35,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[.015,-20],[0,20],[34.641,40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.324,30],[-17.34,-9.984],[17.336,-30.016],[17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:31,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1},{ty:4,nm:"F",sr:1,st:-20,op:34,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.305,30],[-17.336,-9.984],[17.336,-30.016],[17.32,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:11,parent:1},{ty:4,nm:"S",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,-10],[17.321,30],[-17.321,10],[-17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.305,50],[-51.961,30],[-17.321,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:12,parent:1},{ty:4,nm:"T",sr:1,st:-20,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.016,-20.016],[-34.643,-40],[-34.641,.016],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:13,parent:1}]},{nm:"",id:"comp_2",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,.031],[.047,-19.969],[34.652,.031],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.321,30],[-51.962,10],[-51.962,-30],[-17.321,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,30],[-17.32,10],[-17.32,-30],[17.32,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[17.32,-9.984],[17.32,-50],[-17.32,-30]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,50],[17.32,30],[17.336,-10],[-17.336,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"F",sr:1,st:0,op:30,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[51.962,30],[17.321,10],[17.321,-30],[51.962,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"T",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-34.656,0],[.015,-20],[34.656,0],[.012,20.062]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1}]},{nm:"",id:"comp_3",layers:[{ty:4,nm:"R",sr:1,st:0,op:30,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[0,0,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[128,128,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:0}},ef:[],shapes:[],ind:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:2,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[.015,60.016],[-34.642,40],[-34.641,0],[0,20]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,30]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:3,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:4,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,10],[-17.321,30],[-17.321,-10],[17.321,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-29.984],[17.348,10],[-17.305,30],[-17.305,-9.984]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:5,parent:1},{ty:4,nm:"F",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:6,parent:1},{ty:4,nm:"S",sr:1,st:0,op:13,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.321,30],[-17.321,10],[-17.321,-30],[17.321,-10]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-10],[-17.32,-30.016],[-51.961,-10],[-17.305,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[61.962,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:7,parent:1},{ty:4,nm:"T",sr:1,st:0,op:32,ip:0,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"T",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,20],[-34.641,0],[0,-20],[34.641,0]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[34.641,0],[0,-20],[0,-60.016],[34.641,-40]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[44.641,70]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:8,parent:1},{ty:4,nm:"S",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"S",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[-17.32,10],[-17.32,-30],[17.32,-10],[17.32,30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.312,-10],[-17.313,10],[17.332,30],[51.977,10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,60]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:9,parent:1},{ty:4,nm:"F",sr:1,st:0,op:32,ip:13,hasMask:!1,ao:0,ks:{a:{a:0,k:[44.641,50,0]},s:{a:0,k:[100,100,100]},sk:{a:0,k:0},p:{a:0,k:[0,0,0]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}},ef:[],shapes:[{ty:"gr",nm:"F",it:[{ty:"sh",nm:"P",d:1,ks:{a:1,k:[{o:{x:.8,y:0},i:{x:.2,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.32,10],[-17.32,30],[-17.32,-10],[17.32,-30]]}],t:0},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[17.336,-30],[17.32,10],[-17.32,30],[-17.336,-10]]}],t:26}]}},{ty:"st",nm:"S",lc:1,lj:2,ml:1,o:{a:0,k:100},w:{a:0,k:4},c:{a:0,k:[1,1,1]}},{ty:"tr",a:{a:0,k:[0,0]},s:{a:0,k:[100,100]},sk:{a:0,k:0},p:{a:0,k:[27.32,40]},r:{a:0,k:0},sa:{a:0,k:0},o:{a:0,k:100}}]}],ind:10,parent:1}]}],IP={nm:EP,h:CP,w:SP,meta:OP,layers:AP,v:RP,fr:DP,op:PP,ip:MP,assets:NP},$P=({meshId:n})=>{const e=v.useRef(null);return v.useEffect(()=>{const t=document.getElementById(`lottie-animation-${n}`);return t&&(e.current=q_.loadAnimation({container:t,animationData:IP,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[n]),P.jsx("div",{id:`lottie-animation-${n}`,style:{width:"2em",height:"2em"}})},yl=()=>Math.floor(Math.random()*2001)-1e3,FP=()=>P.jsx(P.Fragment,{children:["a","b","c"].map(n=>{const e=yl(),t=yl(),s=yl();return P.jsx("mesh",{position:[e,t,s],children:P.jsx(xo,{center:!0,sprite:!0,children:P.jsx(LP,{children:P.jsx($P,{meshId:n})})})},n)})}),LP=ye.div` border: 2px solid white; border-radius: 50%; display: flex; @@ -587,7 +587,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color justify-content: center; color: white; font-size: 20px; -`,Oi=n=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:n?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:n?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:n?"#ffffff66":"#5078f2",fontColor:n?"#ffffff66":"#fff"}}),jP=new _e,M_=b.memo(()=>{var x,C;const n=b.useRef(null),e=bo(S=>S.setSidebarOpen),[t,s]=N.useState(null),{open:r}=Ai("editNodeName"),{open:i}=Ai("addEdgeToNode"),{open:o}=Ai("mergeToNode"),{open:a}=Ai("createBounty"),[c]=_u(S=>[S.isAdmin]),[l]=Jt(S=>[S.addNewNode]),u=As(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:f,setShowSelectionGraph:g}=Ue(S=>S),p=Py(),m=b.useCallback(async()=>{try{if(u!=null&&u.ref_id){const S=await yp(u==null?void 0:u.ref_id,d.nodes.length||0);S&&l(S)}}catch(S){console.error(S)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);qt(()=>{_()});const _=b.useCallback(()=>{const S=h?d:p;if(n.current){const R=S==null?void 0:S.nodes.find(O=>O.ref_id===(u==null?void 0:u.ref_id));if(R){const O=jP.set(R==null?void 0:R.x,R==null?void 0:R.y,R==null?void 0:R.z);n.current.position.copy(O)}}},[u,h,d,p]),T=b.useMemo(()=>{const S=c?[{key:"control-key-1",colors:Oi(h).focus,icon:P.jsx(hy,{}),left:-80,className:"add",onClick:O=>{s(O.currentTarget)}},{key:"control-key-2",colors:Oi(h).focus,icon:P.jsx(wp,{}),left:-40,className:"edit",onClick:()=>{r()}}]:[],R=[{key:"control-key-4",colors:Oi(h).focus,icon:P.jsx(q_,{}),left:0,className:"expand",onClick:()=>{const O=!h;g(O),O&&e(!0)}},{key:"control-key-5",colors:Oi(!0).close,icon:P.jsx(Vi,{}),left:40,className:"exit",onClick:()=>{m()}},{key:"control-key-6",colors:Oi(!0).close,icon:P.jsx(H_,{}),left:40,className:"exit",onClick:()=>{g(!1),f(null)}}];return[...S,...R].map((O,L)=>({...O,left:-80+L*40}))},[c,h,r,g,e,m,f]);if(!u)return null;const w=()=>{s(null)},y=!!t,v=y?"simple-popover":void 0,k=((x=u==null?void 0:u.node_type)==null?void 0:x.toLowerCase())==="repository",E=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return P.jsx("group",{ref:n,children:P.jsxs(xo,{center:!0,className:"control-panel",onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),onPointerDown:S=>S.stopPropagation(),onPointerOut:S=>S.stopPropagation(),onPointerOver:S=>S.stopPropagation(),onPointerUp:S=>S.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[T.map(S=>P.jsx(zP,{backgroundColor:S.colors.backgroundColor,borderColor:S.colors.borderColor,className:S.className,fontColor:S.colors.fontColor,left:S.left,onClick:R=>{R.stopPropagation(),S.onClick(R)},children:S.icon},S.key)),E&&P.jsx(UP,{left:2,onClick:()=>{a()},children:"Create Test"}),P.jsx(VP,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:v,onClose:w,open:y,transformOrigin:{vertical:"top",horizontal:"right"},children:k?P.jsxs(P.Fragment,{children:[P.jsxs(kr,{"data-testid":"generate_tests",onClick:()=>{w()},children:[P.jsx(ap,{children:P.jsx(Bh,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),P.jsxs(kr,{"data-testid":"add_comments",onClick:()=>{w()},children:[P.jsxs(ap,{children:[P.jsx(cy,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),P.jsxs(kr,{"data-testid":"review_bugs",onClick:()=>{w()},children:[P.jsx(ly,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),P.jsxs(kr,{"data-testid":"find_vulnerabilities",onClick:()=>{w()},children:[P.jsx(uy,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):P.jsxs(P.Fragment,{children:[P.jsxs(kr,{"data-testid":"merge",onClick:()=>{o(),w()},children:[P.jsx(ay,{"data-testid":"MergeIcon"})," Merge"]}),P.jsxs(kr,{"data-testid":"add_edge",onClick:()=>{i(),w()},children:[P.jsx(Bh,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});M_.displayName="NodeControls";const zP=ye.div` +`,Oi=n=>({close:{backgroundColor:"rgba(48, 51, 66, 1)",borderColor:"#fff",fontColor:"rgba(255, 255, 255, 1)"},focus:{backgroundColor:n?"rgba(255, 255, 255, 0.90);":"rgba(255, 255, 255, 0.90)",borderColor:n?"#FFDB58bb":"#fff",fontColor:"rgba(48, 51, 66, 1)"},menu:{backgroundColor:"#00000066",borderColor:n?"#ffffff66":"#5078f2",fontColor:n?"#ffffff66":"#fff"}}),jP=new _e,I_=v.memo(()=>{var k,C;const n=v.useRef(null),e=bo(S=>S.setSidebarOpen),[t,s]=N.useState(null),{open:r}=Ai("editNodeName"),{open:i}=Ai("addEdgeToNode"),{open:o}=Ai("mergeToNode"),{open:a}=Ai("createBounty"),[c]=_u(S=>[S.isAdmin]),[l]=Nt(S=>[S.addNewNode]),u=As(),{showSelectionGraph:h,selectionGraphData:d,setSelectedNode:f,setShowSelectionGraph:m}=ze(S=>S),p=My(),g=v.useCallback(async()=>{try{if(u!=null&&u.ref_id){const S=await vp(u==null?void 0:u.ref_id,d.nodes.length||0);S&&l(S)}}catch(S){console.error(S)}},[l,u==null?void 0:u.ref_id,d.nodes.length]);Ht(()=>{_()});const _=v.useCallback(()=>{const S=h?d:p;if(n.current){const R=S==null?void 0:S.nodes.find(O=>O.ref_id===(u==null?void 0:u.ref_id));if(R){const O=jP.set(R==null?void 0:R.x,R==null?void 0:R.y,R==null?void 0:R.z);n.current.position.copy(O)}}},[u,h,d,p]),T=v.useMemo(()=>{const S=c?[{key:"control-key-1",colors:Oi(h).focus,icon:P.jsx(dy,{}),left:-80,className:"add",onClick:O=>{s(O.currentTarget)}},{key:"control-key-2",colors:Oi(h).focus,icon:P.jsx(kp,{}),left:-40,className:"edit",onClick:()=>{r()}}]:[],R=[{key:"control-key-4",colors:Oi(h).focus,icon:P.jsx(H_,{}),left:0,className:"expand",onClick:()=>{const O=!h;m(O),O&&e(!0)}},{key:"control-key-5",colors:Oi(!0).close,icon:P.jsx(Vi,{}),left:40,className:"exit",onClick:()=>{g()}},{key:"control-key-6",colors:Oi(!0).close,icon:P.jsx(Y_,{}),left:40,className:"exit",onClick:()=>{m(!1),f(null)}}];return[...S,...R].map((O,L)=>({...O,left:-80+L*40}))},[c,h,r,m,e,g,f]);if(!u)return null;const w=()=>{s(null)},b=!!t,y=b?"simple-popover":void 0,x=((k=u==null?void 0:u.node_type)==null?void 0:k.toLowerCase())==="repository",E=!!(u&&((C=u==null?void 0:u.node_type)==null?void 0:C.toLowerCase())==="function");return P.jsx("group",{ref:n,children:P.jsxs(xo,{center:!0,className:"control-panel",onClick:S=>S.stopPropagation(),onKeyDown:S=>S.stopPropagation(),onPointerDown:S=>S.stopPropagation(),onPointerOut:S=>S.stopPropagation(),onPointerOver:S=>S.stopPropagation(),onPointerUp:S=>S.stopPropagation(),sprite:!0,zIndexRange:[16777271,16777272],children:[T.map(S=>P.jsx(zP,{backgroundColor:S.colors.backgroundColor,borderColor:S.colors.borderColor,className:S.className,fontColor:S.colors.fontColor,left:S.left,onClick:R=>{R.stopPropagation(),S.onClick(R)},children:S.icon},S.key)),E&&P.jsx(UP,{left:2,onClick:()=>{a()},children:"Create Test"}),P.jsx(VP,{anchorEl:t,anchorOrigin:{vertical:"bottom",horizontal:"right"},id:y,onClose:w,open:b,transformOrigin:{vertical:"top",horizontal:"right"},children:x?P.jsxs(P.Fragment,{children:[P.jsxs(kr,{"data-testid":"generate_tests",onClick:()=>{w()},children:[P.jsx(cp,{children:P.jsx(Wh,{"data-testid":"AddCircleIcon"})}),"Generate Tests"]}),P.jsxs(kr,{"data-testid":"add_comments",onClick:()=>{w()},children:[P.jsxs(cp,{children:[P.jsx(ly,{"data-testid":"DocumentIcon"})," "]}),"Add Comments"]}),P.jsxs(kr,{"data-testid":"review_bugs",onClick:()=>{w()},children:[P.jsx(uy,{"data-testid":"ConstructionIcon"})," Review Bugs"]}),P.jsxs(kr,{"data-testid":"find_vulnerabilities",onClick:()=>{w()},children:[P.jsx(hy,{"data-testid":"RobotIcon"})," Find Vulnerabilities"]})]}):P.jsxs(P.Fragment,{children:[P.jsxs(kr,{"data-testid":"merge",onClick:()=>{o(),w()},children:[P.jsx(cy,{"data-testid":"MergeIcon"})," Merge"]}),P.jsxs(kr,{"data-testid":"add_edge",onClick:()=>{i(),w()},children:[P.jsx(Wh,{"data-testid":"AddCircleIcon"}),"Add edge"]})]})})]})})});I_.displayName="NodeControls";const zP=ye.div` position: fixed; top: -60px; left: ${n=>-7+n.left}px; @@ -618,7 +618,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color background: ${oe.BUTTON1_HOVER}; color: ${oe.GRAY3}; } -`,VP=ye(dy)` +`,VP=ye(fy)` && { z-index: 9999; } @@ -634,7 +634,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color background-color: transparent !important; margin: 2px; } -`,ap=ye.div` +`,cp=ye.div` display: flex; align-items: center; justify-content: start; @@ -663,12 +663,12 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color &:hover { transform: scale(1.05); } -`,N_=b.memo(()=>P.jsx(P.Fragment,{children:P.jsx(M_,{})}));N_.displayName="NodeDetailsPanel";const BP=()=>{const{dataInitial:n,isLoadingNew:e,isFetching:t,dataNew:s,resetDataNew:r}=Jt(m=>m),i=b.useRef(null),{normalizedSchemasByType:o}=Hn(m=>m),a=b.useRef(new Map),c=b.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:f,setGraphRadius:g}=Ue(m=>m),p=Ue(m=>m.removeSimulation);return b.useEffect(()=>{if(!s)return;const m=s.nodes||[],_=s.links||[],T=structuredClone(m),w=structuredClone(_);if(u){const y=Y_.isEqual(s,n);d.addNodesAndLinks(T,w,y)}u||h(T,w)},[l,s,u,h,d,n]),b.useEffect(()=>{n||p()},[n,p]),b.useEffect(()=>{u&&d.setForces()},[f,d,u]),b.useEffect(()=>{u&&u.on("end",()=>{if(r(),u.nodes().forEach(m=>{m.fx=m.x,m.fy=m.y,m.fz=m.z,c.current.set(m.ref_id,{x:m.x,y:m.y,z:m.z})}),i!=null&&i.current){const m=i.current.getObjectByName("simulation-3d-group__nodes"),_=i.current.getObjectByName("simulation-3d-group__node-points"),T=i.current.getObjectByName("simulation-3d-group__connections");m&&m.children.forEach((v,k)=>{const E=u.nodes()[k];E&&v.position.set(E.x,E.y,E.z)}),_&&_.children[0].children.forEach((v,k)=>{const E=u.nodes()[k];E&&v.position.set(E.x,E.y,E.z)}),a.current.clear(),n==null||n.links.forEach(v=>{const k=c.current.get(v.source)||{x:0,y:0,z:0},E=c.current.get(v.target)||{x:0,y:0,z:0},{x,y:C,z:S}=k,{x:R,y:O,z:L}=E;a.current.set(v.ref_id,{sx:x,sy:C,sz:S,tx:R,ty:O,tz:L})}),T&&T.children.forEach((v,k)=>{const E=v.children[0],x=v.children[1];if(E instanceof bu){const C=E,S=n==null?void 0:n.links[k];if(S){const R=c.current.get(S.source)||{x:0,y:0,z:0},O=c.current.get(S.target)||{x:0,y:0,z:0};if(!R||!O){console.warn(`Missing source or target node for link: ${S==null?void 0:S.ref_id}`);return}const{x:L,y:z,z:W}=R,{x:B,y:V,z:U}=O;a.current.set(S.ref_id,{sx:L,sy:z,sz:W,tx:B,ty:V,tz:U}),x.position.set((L+B)/2,(z+V)/2,(W+U)/2),C.geometry.setPositions([L,z,W,B,V,U]);const{material:X}=C;X.transparent=!0,X.opacity=.3}}});const w=new Cp().setFromObject(m),y=new Sp;w.getBoundingSphere(y),y.radius&&g(y.radius)}})},[n,u,g,o,r]),u?P.jsxs("group",{ref:i,children:[P.jsx(P_,{}),f==="earth"&&P.jsx(kP,{}),(e||t)&&P.jsx(FP,{}),f!=="earth"&&P.jsx(k_,{linksPosition:a.current}),P.jsx(N_,{})]}):null},WP=()=>{const{normalizedSchemasByType:n}=Hn(o=>o),e=yu(),t=Ue(o=>o.setSelectedNodeTypes),s=Ue(o=>o.selectedNodeTypes),r=Ue(o=>o.resetSelectedNodeTypes);function i(o){t(o)}return P.jsxs(qP,{children:[P.jsx(cp,{className:Fr({isActive:!s.length}),onClick:()=>r(),children:P.jsx("div",{className:"text",children:"All Nodes"})}),e.map(o=>{var l;const a=(l=n[o])==null?void 0:l.icon,c=hc[a]||Vi;return P.jsxs(cp,{className:Fr({isActive:s.includes(o)}),onClick:()=>i(o),children:[P.jsx("div",{className:"icon",children:P.jsx(c,{})}),P.jsx("div",{className:"text",children:o})]},o)})]})},qP=ye(Me).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,$_=v.memo(()=>P.jsx(P.Fragment,{children:P.jsx(I_,{})}));$_.displayName="NodeDetailsPanel";const BP=()=>{const{dataInitial:n,isLoadingNew:e,isFetching:t,dataNew:s,resetDataNew:r}=Nt(_=>_),i=v.useRef(null),{normalizedSchemasByType:o}=Hn(_=>_);pm({useClustering:!1});const a=v.useRef(new Map),c=v.useRef(new Map),{setData:l,simulation:u,simulationCreate:h,simulationHelpers:d,graphStyle:f,setGraphRadius:m}=ze(_=>_),p=ze(_=>_.highlightNodes),g=ze(_=>_.removeSimulation);return v.useEffect(()=>{p.length&&(d==null||d.addClusterForce(),d.simulationRestart())},[d,p]),v.useEffect(()=>{if(!s)return;const _=s.nodes||[],T=s.links||[],w=structuredClone(_),b=structuredClone(T);if(u){const y=G_.isEqual(s,n);d.addNodesAndLinks(w,b,y)}u||h(w,b)},[l,s,u,h,d,n]),v.useEffect(()=>{},[g]),v.useEffect(()=>{u&&d.setForces()},[f,d,u]),v.useEffect(()=>{u&&u.on("end",()=>{if(r(),u.nodes().forEach(_=>{_.fx=_.x,_.fy=_.y,_.fz=_.z,c.current.set(_.ref_id,{x:_.x,y:_.y,z:_.z})}),i!=null&&i.current){const _=i.current.getObjectByName("simulation-3d-group__nodes"),T=i.current.getObjectByName("simulation-3d-group__node-points"),w=i.current.getObjectByName("simulation-3d-group__connections");_&&_.children.forEach((x,E)=>{const k=u.nodes()[E];k&&x.position.set(k.x,k.y,k.z)}),T&&T.children[0].children.forEach((x,E)=>{const k=u.nodes()[E];k&&x.position.set(k.x,k.y,k.z)}),a.current.clear(),n==null||n.links.forEach(x=>{const E=c.current.get(x.source)||{x:0,y:0,z:0},k=c.current.get(x.target)||{x:0,y:0,z:0},{x:C,y:S,z:R}=E,{x:O,y:L,z}=k;a.current.set(x.ref_id,{sx:C,sy:S,sz:R,tx:O,ty:L,tz:z})}),w&&w.children.forEach((x,E)=>{const k=x.children[0],C=x.children[1];if(k instanceof bu){const S=k,R=n==null?void 0:n.links[E];if(R){const O=c.current.get(R.source)||{x:0,y:0,z:0},L=c.current.get(R.target)||{x:0,y:0,z:0};if(!O||!L){console.warn(`Missing source or target node for link: ${R==null?void 0:R.ref_id}`);return}const{x:z,y:W,z:B}=O,{x:V,y:U,z:X}=L;a.current.set(R.ref_id,{sx:z,sy:W,sz:B,tx:V,ty:U,tz:X}),C.position.set((z+V)/2,(W+U)/2,(B+X)/2),S.geometry.setPositions([z,W,B,V,U,X]);const{material:K}=S;K.transparent=!0,K.opacity=.3}}});const b=new Sp().setFromObject(_),y=new Op;b.getBoundingSphere(y),y.radius&&m(y.radius)}})},[n,u,m,o,r]),u?P.jsxs("group",{ref:i,children:[P.jsx(N_,{}),f==="earth"&&P.jsx(kP,{}),(e||t)&&P.jsx(FP,{}),f!=="earth"&&P.jsx(E_,{linksPosition:a.current}),P.jsx($_,{})]}):null},WP=()=>{const{normalizedSchemasByType:n}=Hn(o=>o),e=yu(),t=ze(o=>o.setSelectedNodeTypes),s=ze(o=>o.selectedNodeTypes),r=ze(o=>o.resetSelectedNodeTypes);function i(o){t(o)}return P.jsxs(qP,{children:[P.jsx(lp,{className:Fr({isActive:!s.length}),onClick:()=>r(),children:P.jsx("div",{className:"text",children:"All Nodes"})}),e.map(o=>{var l;const a=(l=n[o])==null?void 0:l.icon,c=hc[a]||Vi;return P.jsxs(lp,{className:Fr({isActive:s.includes(o)}),onClick:()=>i(o),children:[P.jsx("div",{className:"icon",children:P.jsx(c,{})}),P.jsx("div",{className:"text",children:o})]},o)})]})},qP=ye(Me).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` flex: 1 1 100%; flex-wrap: wrap; gap: 8px; padding: 8px; -`,cp=ye(Me).attrs({align:"center",direction:"row",justify:"flex-start"})` +`,lp=ye(Me).attrs({align:"center",direction:"row",justify:"flex-start"})` color: ${oe.white}; background: ${oe.BG1}; padding: 6px 10px 6px 8px; @@ -706,12 +706,12 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color .text { } -`,HP=()=>{const n=Jt(i=>i.linkTypes),e=Ue(i=>i.setSelectedLinkTypes),t=Ue(i=>i.selectedLinkTypes),s=Ue(i=>i.resetSelectedLinkTypes);function r(i){e(i)}return P.jsxs(YP,{children:[P.jsx(lp,{className:Fr({isActive:!t.length}),onClick:()=>s(),children:P.jsx("div",{className:"text",children:"All Links"})}),n.map(i=>P.jsx(lp,{className:Fr({isActive:t.includes(i)}),onClick:()=>r(i),children:P.jsx("div",{className:"text",children:i})},i))]})},YP=ye(Me).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,HP=()=>{const n=Nt(i=>i.linkTypes),e=ze(i=>i.setSelectedLinkTypes),t=ze(i=>i.selectedLinkTypes),s=ze(i=>i.resetSelectedLinkTypes);function r(i){e(i)}return P.jsxs(YP,{children:[P.jsx(up,{className:Fr({isActive:!t.length}),onClick:()=>s(),children:P.jsx("div",{className:"text",children:"All Links"})}),n.map(i=>P.jsx(up,{className:Fr({isActive:t.includes(i)}),onClick:()=>r(i),children:P.jsx("div",{className:"text",children:i})},i))]})},YP=ye(Me).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` flex: 1 1 100%; flex-wrap: wrap; gap: 8px; padding: 8px; -`,lp=ye(Me).attrs({align:"center",direction:"row",justify:"flex-start"})` +`,up=ye(Me).attrs({align:"center",direction:"row",justify:"flex-start"})` color: ${oe.white}; background: ${oe.BG1}; padding: 6px 10px 6px 8px; @@ -749,7 +749,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color .text { } -`,GP=()=>{const[n,e]=Ue(t=>[t.setSearchQuery,t.searchQuery]);return P.jsxs(XP,{children:[P.jsxs(ZP,{children:[P.jsx(KP,{id:"graph-search",onChange:t=>n(t.target.value),placeholder:"Search graph",type:"text",value:e}),P.jsx(QP,{"data-testid":"search_action_icon",onClick:()=>{n("")},children:P.jsx(P.Fragment,{children:e!=null&&e.trim()?P.jsx(X_,{}):null})})]}),P.jsx(WP,{}),P.jsx(HP,{})]})},XP=ye(Me)` +`,GP=()=>{const[n,e]=ze(t=>[t.setSearchQuery,t.searchQuery]);return P.jsxs(XP,{children:[P.jsxs(ZP,{children:[P.jsx(KP,{id:"graph-search",onChange:t=>n(t.target.value),placeholder:"Search graph",type:"text",value:e}),P.jsx(QP,{"data-testid":"search_action_icon",onClick:()=>{n("")},children:P.jsx(P.Fragment,{children:e!=null&&e.trim()?P.jsx(Z_,{}):null})})]}),P.jsx(WP,{}),P.jsx(HP,{})]})},XP=ye(Me)` position: absolute; top: 0; left: 0; @@ -792,7 +792,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color color: ${oe.GRAY7}; } - ${({loading:n})=>n&&G_` + ${({loading:n})=>n&&X_` background-image: url('https://i.gifer.com/ZZ5H.gif'); background-size: 25px 25px; background-position: right center; @@ -807,7 +807,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color margin-left: -42px; z-index: 2; width: 30px; -`,JP=({fullSize:n=!0})=>{const e=bo(t=>t.sidebarIsOpen);return P.jsx(eM,{align:"center",className:Fr({"sidebar-is-open":e&&!n}),justify:"center",children:P.jsx(My,{color:oe.SECONDARY_BLUE,size:64})})},eM=ye(Me)` +`,JP=({fullSize:n=!0})=>{const e=bo(t=>t.sidebarIsOpen);return P.jsx(eM,{align:"center",className:Fr({"sidebar-is-open":e&&!n}),justify:"center",children:P.jsx(Ny,{color:oe.SECONDARY_BLUE,size:64})})},eM=ye(Me)` position: absolute; left: 0; right: 0; @@ -815,13 +815,13 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color top: 0; background-color: ${oe.black}; z-index: 1; -`,I_=n=>{const e=b.useRef(null),{label:t,sourceX:s,sourceY:r,sourceZ:i,targetX:o,targetY:a,targetZ:c}=n;return P.jsxs("group",{children:[P.jsx(vp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[s,r,i,o,a,c]}),P.jsxs("mesh",{children:[P.jsx("planeGeometry",{args:[t.length*1,2]}),P.jsx("meshBasicMaterial",{color:"black"}),P.jsx(xu,{anchorX:"center",anchorY:"middle",color:"white",...wu,scale:1.5,children:t})]})]})};I_.displayName="Connection";const tM=b.memo(I_),nM="#68BE3E",$_=b.memo(({links:n,nodes:e})=>{const t=b.useRef(null),s=b.useRef(new Map),{setSelectionGraphRadius:r}=Ue(kp(i=>i));return b.useEffect(()=>{if(!t.current)return;t.current.children.forEach((l,u)=>{const h=l.children[0],d=l.children[1];if(h instanceof bu){const f=h,g=n[u];if(g){const p=e.find(x=>x.ref_id===g.source),m=e.find(x=>x.ref_id===g.target);if(!p||!m)return;const{x:_,y:T}=p,{x:w,y}=m;s.current.set(g.ref_id,{sx:_,sy:T,tx:w,ty:y,sz:0,tz:0});const v=new _e((_+w)/2,(T+y)/2,0);d.position.set(v.x,v.y,1);let k=Math.atan2(y-T,w-_);(w<_||Math.abs(w-_)<.01&&ynew _e(l.x,l.y,l.z)),a=new Cp().setFromPoints(o),c=new Sp;a.getBoundingSphere(c),r(c.radius)},[n,r,e]),P.jsx("group",{ref:t,name:"simulation-3d-group__connections",children:n==null?void 0:n.map(i=>{var a;const o=((a=s.current)==null?void 0:a.get(i.ref_id))||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return P.jsx(tM,{label:i.edge_type,sourceX:o.sx,sourceY:o.sy,sourceZ:o.sz,targetX:o.tx,targetY:o.ty,targetZ:o.tz},i.ref_id)})})});$_.displayName="Connections";const sM=({onClick:n,node:e,selected:t,rounded:s=!0,x:r,y:i,z:o,id:a})=>{var k,E,x,C,S,R;const c=b.useRef(null),[l]=_u(O=>[O.isAdmin]),{open:u}=Ai("editNodeName"),{normalizedSchemasByType:h,getNodeKeysByType:d}=Hn(O=>O),f=Ue(O=>O.setSelectedNode),g=new _e(r,i,o);qt(()=>{c.current&&c.current.position.lerp(g,.05)});const p=(k=h[e.node_type])==null?void 0:k.icon,m=p?hc[p]:null,_=d(e.node_type)||"",T=e!=null&&e.properties?e==null?void 0:e.properties[_]:"",w=T?_a(T,30):"",y=_!=="description"?(E=e.properties)==null?void 0:E.description:"",v=y?_a(y,60):"";return P.jsx("mesh",{ref:c,children:P.jsx(xo,{center:!0,sprite:!0,zIndexRange:[0,0],children:P.jsx(rM,{align:"center",direction:"row",justify:"flex-start",children:P.jsx(P.Fragment,{children:t?P.jsxs(iM,{className:Fr({"has-padding":v}),rounded:!1,children:[l&&P.jsx(oM,{onClick:()=>u(),children:P.jsx(wp,{})}),P.jsx(aM,{onClick:()=>f(null),children:P.jsx(fy,{})}),P.jsx("div",{children:P.jsx(up,{align:"center",height:v?48:100,justify:"center",radius:"6px",src:((x=e==null?void 0:e.properties)==null?void 0:x.image_url)||"",width:v?72:200,children:(C=e==null?void 0:e.properties)!=null&&C.image_url?null:P.jsx("span",{children:m?P.jsx(m,{}):P.jsx(Vi,{})})})}),P.jsxs(Me,{align:"flex-start",children:[P.jsx(vl,{className:"selected__title",children:w}),v?P.jsx(vl,{children:v}):null]})]}):P.jsxs(P.Fragment,{children:[P.jsx(F_,{onClick:()=>n(a),rounded:s,children:P.jsx(up,{align:"center",height:32,justify:"center",radius:"50%",src:((S=e==null?void 0:e.properties)==null?void 0:S.image_url)||"",width:32,children:(R=e==null?void 0:e.properties)!=null&&R.image_url?null:P.jsx("span",{children:m?P.jsx(m,{}):P.jsx(Vi,{})})})}),P.jsx(vl,{children:w})]})})})})})},rM=ye(Me)` +`,F_=n=>{const e=v.useRef(null),{label:t,sourceX:s,sourceY:r,sourceZ:i,targetX:o,targetY:a,targetZ:c}=n;return P.jsxs("group",{children:[P.jsx(bp,{ref:e,color:"white",isLine2:!0,lineWidth:2,name:"line",points:[s,r,i,o,a,c]}),P.jsxs("mesh",{children:[P.jsx("planeGeometry",{args:[t.length*1,2]}),P.jsx("meshBasicMaterial",{color:"black"}),P.jsx(xu,{anchorX:"center",anchorY:"middle",color:"white",...wu,scale:1.5,children:t})]})]})};F_.displayName="Connection";const tM=v.memo(F_),nM="#68BE3E",L_=v.memo(({links:n,nodes:e})=>{const t=v.useRef(null),s=v.useRef(new Map),{setSelectionGraphRadius:r}=ze(Tp(i=>i));return v.useEffect(()=>{if(!t.current)return;t.current.children.forEach((l,u)=>{const h=l.children[0],d=l.children[1];if(h instanceof bu){const f=h,m=n[u];if(m){const p=e.find(k=>k.ref_id===m.source),g=e.find(k=>k.ref_id===m.target);if(!p||!g)return;const{x:_,y:T}=p,{x:w,y:b}=g;s.current.set(m.ref_id,{sx:_,sy:T,tx:w,ty:b,sz:0,tz:0});const y=new _e((_+w)/2,(T+b)/2,0);d.position.set(y.x,y.y,1);let x=Math.atan2(b-T,w-_);(w<_||Math.abs(w-_)<.01&&bnew _e(l.x,l.y,l.z)),a=new Sp().setFromPoints(o),c=new Op;a.getBoundingSphere(c),r(c.radius)},[n,r,e]),P.jsx("group",{ref:t,name:"simulation-3d-group__connections",children:n==null?void 0:n.map(i=>{var a;const o=((a=s.current)==null?void 0:a.get(i.ref_id))||{sx:0,sy:0,sz:0,tx:0,ty:0,tz:0};return P.jsx(tM,{label:i.edge_type,sourceX:o.sx,sourceY:o.sy,sourceZ:o.sz,targetX:o.tx,targetY:o.ty,targetZ:o.tz},i.ref_id)})})});L_.displayName="Connections";const sM=({onClick:n,node:e,selected:t,rounded:s=!0,x:r,y:i,z:o,id:a})=>{var x,E,k,C,S,R;const c=v.useRef(null),[l]=_u(O=>[O.isAdmin]),{open:u}=Ai("editNodeName"),{normalizedSchemasByType:h,getNodeKeysByType:d}=Hn(O=>O),f=ze(O=>O.setSelectedNode),m=new _e(r,i,o);Ht(()=>{c.current&&c.current.position.lerp(m,.05)});const p=(x=h[e.node_type])==null?void 0:x.icon,g=p?hc[p]:null,_=d(e.node_type)||"",T=e!=null&&e.properties&&_?(e==null?void 0:e.properties[_])||"":e.name||"",w=T?_a(T,30):"",b=_!=="description"?(E=e.properties)==null?void 0:E.description:"",y=b?_a(b,60):"";return P.jsx("mesh",{ref:c,children:P.jsx(xo,{center:!0,sprite:!0,zIndexRange:[0,0],children:P.jsx(rM,{align:"center",direction:"row",justify:"flex-start",children:P.jsx(P.Fragment,{children:t?P.jsxs(iM,{className:Fr({"has-padding":y}),rounded:!1,children:[l&&P.jsx(oM,{onClick:()=>u(),children:P.jsx(kp,{})}),P.jsx(aM,{onClick:()=>f(null),children:P.jsx(py,{})}),P.jsx("div",{children:P.jsx(hp,{align:"center",height:y?48:100,justify:"center",radius:"6px",src:((k=e==null?void 0:e.properties)==null?void 0:k.image_url)||"",width:y?72:200,children:(C=e==null?void 0:e.properties)!=null&&C.image_url?null:P.jsx("span",{children:g?P.jsx(g,{}):P.jsx(Vi,{})})})}),P.jsxs(Me,{align:"flex-start",children:[P.jsx(vl,{className:"selected__title",children:w}),y?P.jsx(vl,{children:y}):null]})]}):P.jsxs(P.Fragment,{children:[P.jsx(j_,{onClick:()=>n(a),rounded:s,children:P.jsx(hp,{align:"center",height:32,justify:"center",radius:"50%",src:((S=e==null?void 0:e.properties)==null?void 0:S.image_url)||"",width:32,children:(R=e==null?void 0:e.properties)!=null&&R.image_url?null:P.jsx("span",{children:g?P.jsx(g,{}):P.jsx(Vi,{})})})}),P.jsx(vl,{children:w})]})})})})})},rM=ye(Me)` background: black; `,vl=ye(Me)` color: ${oe.white}; margin-left: 16px; width: 100px; -`,F_=ye(Me)` +`,j_=ye(Me)` text-align: center; width: 48px; height: 48px; @@ -843,7 +843,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color &:hover { outline-offset: 4px; } -`,iM=ye(F_)` +`,iM=ye(j_)` width: 200px; height: 100px; flex-direction: row; @@ -867,7 +867,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color margin-left: 0; width: auto; } -`,L_=ye(Me)` +`,z_=ye(Me)` width: 30px; height: 30px; border-radius: 40px; @@ -881,7 +881,7 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color transition: opacity 0.4s; box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5); position: absolute; /* Position relative to the parent */ -`,oM=ye(L_)` +`,oM=ye(z_)` left: 130px; top: -10px; background: ${oe.white}; @@ -896,10 +896,10 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color &:hover { transform: scale(1.1); } -`,aM=ye(L_)` +`,aM=ye(z_)` right: -10px; top: -10px; -`,up=ye(Me)` +`,hp=ye(Me)` background-image: ${({src:n})=>`url(${n})`}; background-size: cover; background-position: center; @@ -908,10 +908,10 @@ ${a}`}const R_=b.memo(n=>{var v,k,E,x;const{node:e,hide:t,ignoreDistance:s,color height: ${({height:n})=>`${n}px`}; border-radius: ${({radius:n})=>`${n}`}; font-size: 20px; -`,la=50,cM=7,j_=b.memo(()=>{var g;const[n,e]=b.useState(),{addNewNode:t,nodesNormalized:s}=Jt(p=>p),r=As(),i=b.useRef(null),[o,a]=b.useState(null),c=b.useRef(new Map),l=sy(r==null?void 0:r.ref_id),{setSelectedNode:u}=Ue(kp(p=>p)),h=b.useMemo(()=>{if(!(n!=null&&n.nodes.length))return{nodes:[],links:[]};const p=(o==null?void 0:o.nodes)||[],m=(o==null?void 0:o.links.filter(x=>!n.links.some(C=>C.ref_id===x.ref_id)))||[],_=n.nodes.filter(x=>!p.some(C=>C.ref_id===x.ref_id)),T=p.at(-1),w=T?{x:T.x,y:T.y}:{x:0,y:0},y=Math.atan2(w.y,w.x),v=p.length+_.length-1,k=Math.PI*2/v;return{nodes:[...p,..._.map((x,C)=>{const S=y+k*(C+1),R=x.ref_id===(r==null?void 0:r.ref_id)?0:Math.cos(S)*la,O=x.ref_id===(r==null?void 0:r.ref_id)?0:Math.sin(S)*la,L=(x.ref_id===(r==null?void 0:r.ref_id),0);return{...x,x:R,y:O,z:L}})],links:[...n.links,...m]}},[n==null?void 0:n.nodes,n==null?void 0:n.links,o==null?void 0:o.nodes,o==null?void 0:o.links,r==null?void 0:r.ref_id]),d=b.useMemo(()=>{var m;if((m=h==null?void 0:h.nodes)!=null&&m.length)return h;if(o)return{nodes:o.nodes,links:o.links};const p=r!=null&&r.ref_id?s.get((r==null?void 0:r.ref_id)||""):null;return{nodes:p?[{...p,x:0,y:0,z:0}]:[],links:[]}},[h,o,r==null?void 0:r.ref_id,s]);b.useEffect(()=>{r&&(async()=>{if(r!=null&&r.ref_id&&r.ref_id!==l)try{const m=await yp(r.ref_id,0,5,{useSubGraph:!1});if(m){const _=m.nodes.filter((v,k)=>v.ref_id!==r.ref_id&&k({...v,x:0,y:0,z:0})),{...r,x:0,y:0,z:0,fx:0,fy:0,fz:0}],y=m.edges.filter(v=>w.some(k=>k.ref_id===v.target)&&w.some(k=>k.ref_id===v.source));e({nodes:w,links:y}),c.current=new Map,t({nodes:_,edges:y})}}catch(m){console.error(m)}})()},[t,l,r,e]);const f=b.useCallback(p=>{if(r){const m=d.nodes.find(x=>x.ref_id===p);if(!m)return;const _=(o==null?void 0:o.nodes.filter(x=>x.ref_id!==m.ref_id))||[],T=[{...m,isPathNode:!1},..._.length?_:[{...r,isPathNode:!0}]].slice(0,3),w=Math.atan2(-m.y,-m.x),y=la*Math.cos(w),v=la*Math.sin(w),k=T.map((x,C)=>C===0?{...x,x:0,y:0,z:0,fx:0,fy:0,fz:0,isPathNode:!0}:C===1?T.length===3?{...x,x:y/2,y:v/2,z:0,fx:y/2,fy:v/2,fz:0,isPathNode:!0}:{...x,x:y,y:v,z:0,fx:y,fy:v,fz:0,isPathNode:!0}:{...x,x:y,y:v,z:0,fx:y,fy:v,fz:0,isPathNode:!0}),E=d.links.filter(x=>k.some(C=>C.ref_id===x.target)&&k.some(C=>C.ref_id===x.source));e(null),a({nodes:k,links:E}),u(m)}},[d.links,d.nodes,o,r,u]);return P.jsx(P.Fragment,{children:P.jsxs("group",{ref:i,name:"simulation-2d-group",children:[(g=d.nodes)==null?void 0:g.map(p=>P.jsx(sM,{id:p.ref_id,node:p,onClick:f,selected:p.ref_id===(r==null?void 0:r.ref_id),x:p.x,y:p.y,z:p.z},p.ref_id)),P.jsx($_,{links:d.links,nodes:d.nodes})]})})});j_.displayName="SelectionDataNodes";const lM=()=>{const n=b.useRef(null),e=Ue(s=>s.selectionGraphRadius),[t]=b.useState(.8);return b.useEffect(()=>{if(console.log(e,"radius"),n.current){const s=n.current.getDistanceToFitSphere(55);n.current.setLookAt(ps.x,ps.y,s,0,0,0,!0)}},[e]),P.jsx(jp,{ref:n,azimuthRotateSpeed:0,boundaryEnclosesCamera:!0,makeDefault:!0,maxDistance:12e3,minDistance:1,polarRotateSpeed:0,smoothTime:t})},uM=()=>P.jsxs(P.Fragment,{children:[P.jsx(bp,{}),P.jsx(lM,{}),P.jsx(j_,{})]});var fp;const hM=((fp=window.location)==null?void 0:fp.hostname)==="graphmindset.sphinx.chat",hp=()=>P.jsx(xo,{children:P.jsx(w1,{})}),dM=()=>{const{universeColor:n}=gE("universe",{universeColor:oe.black}),e=As();return b.useMemo(()=>e!=null&&e.node_type?ry(e.node_type):SE,[e]),P.jsxs(P.Fragment,{children:[P.jsx("color",{args:[oe.BLUE_PRESS_STATE||n],attach:"transparent"}),P.jsx(bp,{}),P.jsx($R,{}),P.jsxs(z1,{children:[!1,P.jsx(BP,{})]})]})};let bl=null;const dp={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[$i.x,$i.y,$i.z]},fM=()=>{const[n,e,t]=[Ws(c=>c.setIsUserScrollingOnHtmlPanel),Ws(c=>c.setIsUserScrolling),Ws(c=>c.setUserMovedCamera)],s=Jt(c=>c.isFetching),r=bo(c=>c.universeQuestionIsOpen),i=As(),o=b.useCallback(c=>{var h;const{target:l}=c,{offsetParent:u}=l;bl&&clearTimeout(bl),(h=u==null?void 0:u.classList)!=null&&h.contains("html-panel")&&u.clientHeight{e(!1),n(!1)},200)},[e,n,t]),a=b.useCallback(c=>Z_(c,"threeState"),[]);return P.jsxs(pM,{children:[P.jsxs(b.Suspense,{fallback:null,children:[P.jsx(dm,{hidden:!0,isRoot:!0}),P.jsxs(zh,{camera:dp,frameloop:i?"demand":"always",id:"universe-canvas",onCreated:a,onWheel:o,children:[jh&&P.jsx(Vh,{position:"top-right",style:{top:"80px"}}),P.jsxs(b.Suspense,{fallback:P.jsx(hp,{}),children:[P.jsx(L1,{}),P.jsx(vd,{}),P.jsx(bd,{}),P.jsx(dM,{})]})]}),hM&&P.jsx(GP,{}),P.jsx(UR,{}),i?P.jsx(mM,{children:P.jsxs(zh,{camera:{...dp,position:[ps.x,ps.y,ps.z]},id:"selection-canvas",onCreated:({gl:c})=>{c.setClearColor("#000000"),c.setClearAlpha(.8)},children:[jh&&P.jsx(Vh,{position:"top-right",style:{top:"80px"}}),P.jsxs(b.Suspense,{fallback:P.jsx(hp,{}),children:[P.jsx(vd,{}),P.jsx(bd,{}),P.jsx(uM,{})]})]})}):null]}),r&&P.jsx(yE,{}),s&&P.jsx(JP,{fullSize:!1}),P.jsx(py,{})]})},pM=ye(Me)` +`,la=50,cM=7,V_=v.memo(()=>{var p;const[n,e]=v.useState(),{addNewNode:t,nodesNormalized:s}=Nt(g=>g),r=Nt(g=>g.dataInitial),i=As(),o=v.useRef(null),[a,c]=v.useState(null),l=v.useRef(new Map),u=ry(i==null?void 0:i.ref_id),{setSelectedNode:h}=ze(Tp(g=>g)),d=v.useMemo(()=>{if(!(n!=null&&n.nodes.length))return{nodes:[],links:[]};const g=(a==null?void 0:a.nodes)||[],_=(a==null?void 0:a.links.filter(C=>!n.links.some(S=>S.ref_id===C.ref_id)))||[],T=n.nodes.filter(C=>!g.some(S=>S.ref_id===C.ref_id)),w=g.at(-1),b=w?{x:w.x,y:w.y}:{x:0,y:0},y=Math.atan2(b.y,b.x),x=g.length+T.length-1,E=Math.PI*2/x;return{nodes:[...g,...T.map((C,S)=>{const R=y+E*(S+1),O=C.ref_id===(i==null?void 0:i.ref_id)?0:Math.cos(R)*la,L=C.ref_id===(i==null?void 0:i.ref_id)?0:Math.sin(R)*la,z=(C.ref_id===(i==null?void 0:i.ref_id),0);return{...C,x:O,y:L,z}})],links:[...n.links,..._]}},[n==null?void 0:n.nodes,n==null?void 0:n.links,a==null?void 0:a.nodes,a==null?void 0:a.links,i==null?void 0:i.ref_id]),f=v.useMemo(()=>{var _;if((_=d==null?void 0:d.nodes)!=null&&_.length)return d;if(a)return{nodes:a.nodes,links:a.links};const g=i!=null&&i.ref_id?s.get((i==null?void 0:i.ref_id)||""):null;return{nodes:g?[{...g,x:0,y:0,z:0}]:[],links:[]}},[d,a,i==null?void 0:i.ref_id,s]);v.useEffect(()=>{const g=async()=>{if(i!=null&&i.ref_id&&i.ref_id!==u)try{const _=await vp(i.ref_id,0,5,{useSubGraph:!1});if(_){const T=_.nodes.filter((x,E)=>x.ref_id!==i.ref_id&&E({...x,x:0,y:0,z:0})),{...i,x:0,y:0,z:0,fx:0,fy:0,fz:0}],y=_.edges.filter(x=>b.some(E=>E.ref_id===x.target)&&b.some(E=>E.ref_id===x.source));e({nodes:b,links:y}),l.current=new Map,t({nodes:T,edges:y})}}catch(_){console.error(_)}};if(i)if(i.node_type==="Question"){const _=s.get(i.ref_id);if(!_)return;const T=(_.sources||[]).map(x=>s.get(x)).filter(x=>!!x),w=(_.targets||[]).map(x=>s.get(x)).filter(x=>!!x),b=[...T,...w,{...i,x:0,y:0,z:0,fx:0,fy:0,fz:0}],y=((r==null?void 0:r.links)||[]).filter(x=>b.some(E=>E.ref_id===x.source&&x.target===i.ref_id||E.ref_id===x.target&&x.source===i.ref_id));e({nodes:b,links:y})}else g()},[t,u,i,e,s,r==null?void 0:r.links]);const m=v.useCallback(g=>{if(i){const _=f.nodes.find(C=>C.ref_id===g);if(!_)return;const T=(a==null?void 0:a.nodes.filter(C=>C.ref_id!==_.ref_id))||[],w=[{..._,isPathNode:!1},...T.length?T:[{...i,isPathNode:!0}]].slice(0,3),b=Math.atan2(-_.y,-_.x),y=la*Math.cos(b),x=la*Math.sin(b),E=w.map((C,S)=>S===0?{...C,x:0,y:0,z:0,fx:0,fy:0,fz:0,isPathNode:!0}:S===1?w.length===3?{...C,x:y/2,y:x/2,z:0,fx:y/2,fy:x/2,fz:0,isPathNode:!0}:{...C,x:y,y:x,z:0,fx:y,fy:x,fz:0,isPathNode:!0}:{...C,x:y,y:x,z:0,fx:y,fy:x,fz:0,isPathNode:!0}),k=f.links.filter(C=>E.some(S=>S.ref_id===C.target)&&E.some(S=>S.ref_id===C.source));e(null),c({nodes:E,links:k}),h(_)}},[f.links,f.nodes,a,i,h]);return P.jsx(P.Fragment,{children:P.jsxs("group",{ref:o,name:"simulation-2d-group",children:[(p=f.nodes)==null?void 0:p.map(g=>P.jsx(sM,{id:g.ref_id,node:g,onClick:m,selected:g.ref_id===(i==null?void 0:i.ref_id),x:g.x,y:g.y,z:g.z},g.ref_id)),P.jsx(L_,{links:f.links,nodes:f.nodes})]})})});V_.displayName="SelectionDataNodes";const lM=()=>{const n=v.useRef(null),e=ze(s=>s.selectionGraphRadius),[t]=v.useState(.8);return v.useEffect(()=>{if(console.log(e,"radius"),n.current){const s=n.current.getDistanceToFitSphere(55);n.current.setLookAt(ps.x,ps.y,s,0,0,0,!0)}},[e]),P.jsx(zp,{ref:n,azimuthRotateSpeed:0,boundaryEnclosesCamera:!0,makeDefault:!0,maxDistance:12e3,minDistance:1,polarRotateSpeed:0,smoothTime:t})},uM=()=>P.jsxs(P.Fragment,{children:[P.jsx(xp,{}),P.jsx(lM,{}),P.jsx(V_,{})]});var pp;const hM=((pp=window.location)==null?void 0:pp.hostname)==="graphmindset.sphinx.chat",dp=()=>P.jsx(xo,{children:P.jsx(k1,{})}),dM=()=>{var s;const{universeColor:n}=pm("universe",{universeColor:oe.black}),e=Nt(r=>r.dataInitial),t=As();return v.useMemo(()=>t!=null&&t.node_type?iy(t.node_type):SE,[t]),P.jsxs(P.Fragment,{children:[P.jsx("color",{args:[oe.BLUE_PRESS_STATE||n],attach:"transparent"}),P.jsx(xp,{}),P.jsx($R,{}),P.jsxs(V1,{children:[!1,(s=e==null?void 0:e.nodes)!=null&&s.length?P.jsx(BP,{}):null]})]})};let bl=null;const fp={aspect:window.innerWidth/window.innerHeight,far:3e4,near:1,position:[$i.x,$i.y,$i.z]},fM=()=>{const[n,e,t]=[Ws(c=>c.setIsUserScrollingOnHtmlPanel),Ws(c=>c.setIsUserScrolling),Ws(c=>c.setUserMovedCamera)],s=Nt(c=>c.isFetching),r=bo(c=>c.universeQuestionIsOpen),i=As(),o=v.useCallback(c=>{var h;const{target:l}=c,{offsetParent:u}=l;bl&&clearTimeout(bl),(h=u==null?void 0:u.classList)!=null&&h.contains("html-panel")&&u.clientHeight{e(!1),n(!1)},200)},[e,n,t]),a=v.useCallback(c=>K_(c,"threeState"),[]);return P.jsxs(pM,{children:[P.jsxs(v.Suspense,{fallback:null,children:[P.jsx(fm,{hidden:!0,isRoot:!0}),P.jsxs(Vh,{camera:fp,frameloop:i?"demand":"always",id:"universe-canvas",onCreated:a,onWheel:o,children:[zh&&P.jsx(Uh,{position:"top-right",style:{top:"80px"}}),P.jsxs(v.Suspense,{fallback:P.jsx(dp,{}),children:[P.jsx(j1,{}),P.jsx(bd,{}),P.jsx(xd,{}),P.jsx(dM,{})]})]}),hM&&P.jsx(GP,{}),P.jsx(UR,{}),i?P.jsx(mM,{children:P.jsxs(Vh,{camera:{...fp,position:[ps.x,ps.y,ps.z]},id:"selection-canvas",onCreated:({gl:c})=>{c.setClearColor("#000000"),c.setClearAlpha(.8)},children:[zh&&P.jsx(Uh,{position:"top-right",style:{top:"80px"}}),P.jsxs(v.Suspense,{fallback:P.jsx(dp,{}),children:[P.jsx(bd,{}),P.jsx(xd,{}),P.jsx(uM,{})]})]})}):null]}),r&&P.jsx(yE,{}),s&&P.jsx(JP,{fullSize:!1}),P.jsx(my,{})]})},pM=ye(Me)` flex: 1 1 100%; position: relative; `,mM=ye(Me)` position: absolute; inset: 0; -`,rN=b.memo(fM);export{rN as Universe}; +`,rN=v.memo(fM);export{rN as Universe}; diff --git a/build/assets/index-bd265d78.js b/build/assets/index-a1075bd4.js similarity index 92% rename from build/assets/index-bd265d78.js rename to build/assets/index-a1075bd4.js index 93d540997..b911f76aa 100644 --- a/build/assets/index-bd265d78.js +++ b/build/assets/index-a1075bd4.js @@ -1,4 +1,4 @@ -import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bt as C,bv as R,aY as D}from"./index-8f1177e3.js";import{aD as I,h as z,n as E}from"./index-9e906cde.js";import{S as L}from"./Skeleton-0caad96e.js";import{C as T}from"./ClipLoader-5d1618f3.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(I,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` +import{s as i,a as t,F as c,j as e,e as j,r as l,u as $,B as w,bt as C,bv as R,aY as D}from"./index-04f9e7e6.js";import{aD as I,h as z,n as E}from"./index-292d93f3.js";import{S as L}from"./Skeleton-38c1ef25.js";import{C as T}from"./ClipLoader-c5e3f404.js";const G=({nodeName:p})=>e.jsx(c,{children:e.jsxs(c,{align:"center",direction:"column",justify:"space-between",children:[e.jsx(A,{children:e.jsx(I,{})}),e.jsxs(M,{children:["Are you sure you want to delete ",p||"this item","?"]})]})}),M=i(c)` color: ${t.white}; font-family: 'Barlow'; font-size: 20px; diff --git a/build/assets/index-2ee36238.js b/build/assets/index-a5296771.js similarity index 85% rename from build/assets/index-2ee36238.js rename to build/assets/index-a5296771.js index 265d847d7..74038f0f3 100644 --- a/build/assets/index-2ee36238.js +++ b/build/assets/index-a5296771.js @@ -1 +1 @@ -import{c as f,bt as m}from"./index-8f1177e3.js";import{D as y}from"./constants-0d6f6cd8.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; +import{c as f,bt as m}from"./index-04f9e7e6.js";import{D as y}from"./constants-2b0c7022.js";const c={data:null,ids:[],loading:!1,total:0,filters:{is_muted:!1,sortBy:y,page:0,pageSize:50}};let s=null;const S=f((a,n)=>({...c,setTopics:async()=>{a({loading:!0}),s&&s.abort();const t=new AbortController,{signal:p}=t;s=t;const{data:d,ids:g,filters:e}=n(),u=T(e);e.page===0&&a({data:null,ids:[],total:0});try{const o=await m(u,p),i=e.page===0?{}:{...d||{}},l=e.page===0?[]:[...g];o.data.forEach(r=>{i[r.ref_id]=r,l.push(r.ref_id)}),a({data:i,ids:l,total:o.totalCount}),a({loading:!1})}catch(o){console.error(o)}},setFilters:t=>a({filters:{...n().filters,page:0,...t}}),terminate:()=>a(c)})),T=a=>({muted:a.is_muted?"True":"False",skip:String(a.page*a.pageSize),limit:String(a.pageSize),sort_by:a.sortBy,...a.search?{search:a.search}:{node_type:"Topic"}});export{S as u}; diff --git a/build/assets/index-48bbbe33.js b/build/assets/index-c4f1167d.js similarity index 91% rename from build/assets/index-48bbbe33.js rename to build/assets/index-c4f1167d.js index 6c27a73e7..e71be1682 100644 --- a/build/assets/index-48bbbe33.js +++ b/build/assets/index-c4f1167d.js @@ -1,4 +1,4 @@ -import{r as p,i as T,j as e,F as x,C as I,bd as _,bp as L,s as n,T as v,e as A,t as B,aY as E,v as F,a as M,bs as N,B as k}from"./index-8f1177e3.js";import{as as O,at as z,au as D,n as Y}from"./index-9e906cde.js";import{u as w}from"./index-2ee36238.js";import{S as P,A as R,I as X}from"./constants-0d6f6cd8.js";import{A as H,T as W}from"./index-d9032019.js";import{C as U}from"./ClipLoader-5d1618f3.js";import"./index-26468b48.js";import"./Stack-55a7903f.js";import"./createSvgIcon-9333dda0.js";import"./TextareaAutosize-ba1f6749.js";const $=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[m,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const g={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(g=>g.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(P,{onClick:()=>a(null),size:"medium",children:e.jsx(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},q=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx($,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(O,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(z,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),G=n(v)` +import{r as p,i as T,j as e,F as x,C as I,bd as _,bp as L,s as n,T as v,e as A,t as B,aY as E,v as F,a as M,bs as N,B as k}from"./index-04f9e7e6.js";import{as as O,at as z,au as D,n as Y}from"./index-292d93f3.js";import{u as w}from"./index-a5296771.js";import{S as P,A as R,I as X}from"./constants-2b0c7022.js";import{A as H,T as W}from"./index-30313f81.js";import{C as U}from"./ClipLoader-c5e3f404.js";import"./index-782ff866.js";import"./Stack-9bdcdce4.js";import"./createSvgIcon-a3d1c07a.js";import"./TextareaAutosize-6a1de228.js";const $=({topicId:s,onSelect:a,selectedValue:d,dataId:c})=>{const[u,h]=p.useState([]),[m,f]=p.useState(!1),j=p.useMemo(()=>{const o=async i=>{const g={is_muted:"False",sort_by:R,search:i,skip:"0",limit:"1000"};f(!0);try{const C=(await L(g.search)).data.filter(y=>(y==null?void 0:y.ref_id)!==s);h(C)}catch{h([])}finally{f(!1)}};return T.debounce(o,300)},[s]),r=o=>{const i=o.trim();if(!i){h([]);return}i.length>2&&j(o)},b=o=>{const i=o?u.find(g=>g.ref_id===o.value):null;a(i||null)},t=o=>({label:o.search_value,value:o.ref_id,type:o.node_type}),S=o=>o.map(t);return d?e.jsxs(x,{align:"center",basis:"100%",direction:"row",grow:1,shrink:1,children:[e.jsx("span",{children:d.search_value}),e.jsx(P,{onClick:()=>a(null),size:"medium",children:e.jsx(I,{})})]}):e.jsx(H,{dataId:c,handleInputChange:r,isLoading:m,onSelect:b,options:S(u)||_,selectedValue:d?t(d):null})},q=({from:s,onSelect:a,selectedToNode:d,isSwapped:c,setIsSwapped:u})=>e.jsxs(x,{mb:20,children:[e.jsx(x,{align:"center",direction:"row",justify:"space-between",mb:18,children:e.jsx(x,{align:"center",direction:"row",children:e.jsx(G,{children:"Merge topic"})})}),e.jsxs(Q,{swap:c,children:[e.jsx(J,{children:e.jsx(V,{disabled:!0,label:c?"To":"From",swap:c,value:s==null?void 0:s.name})}),e.jsxs(x,{my:16,children:[e.jsx(ee,{children:"Type"}),e.jsx(v,{children:"IS ALIAS"})]}),e.jsx(x,{"data-testid":"to-section-container",children:e.jsxs(Z,{children:[e.jsx(te,{children:c?"From":"To"}),e.jsx($,{dataId:"to-node",onSelect:a,selectedValue:d,topicId:s==null?void 0:s.ref_id})]})}),e.jsxs(K,{children:[e.jsx(oe,{children:e.jsx(O,{})}),e.jsx(se,{"data-testid":"swap-icon",onClick:u,children:e.jsx(z,{})}),e.jsx(ne,{children:e.jsx(D,{})})]})]})]}),G=n(v)` font-size: 22px; font-weight: 600; font-family: 'Barlow'; diff --git a/build/assets/index-ca6739d4.js b/build/assets/index-dfd22792.js similarity index 99% rename from build/assets/index-ca6739d4.js rename to build/assets/index-dfd22792.js index 9bb422f8a..a64c3d014 100644 --- a/build/assets/index-ca6739d4.js +++ b/build/assets/index-dfd22792.js @@ -1,4 +1,4 @@ -import{r as P,a9 as hf,x as qr,bJ as pf,J as er,bK as $d,j as L,a as fo,bL as e1,bM as t1}from"./index-8f1177e3.js";import{N as Aa,U as vl,X as n1,Y as r1,g as mf,m as i1,C as wo,Z as o1,O as yl,I as xl,_ as Rs,$ as Da,a0 as s1,a1,a2 as l1,a3 as u1,a4 as c1,a5 as f1,a6 as d1,V as ct,e as $r,a7 as h1,k as p1,j as Sl,v as Is,a8 as gf,h as el,a9 as tl,aa as Mi,ab as m1,w as wl,ac as g1,ad as nl,ae as oc,af as v1,ag as Ai,n as vf,ah as y1,o as Co,ai as yf,aj as x1,ak as S1,al as w1,am as C1,an as _1,L as sc,ao as E1,ap as k1,M as T1,u as P1,aq as Cl,ar as ac,as as Zr,at as M1,l as Ia}from"./three.module-ba6167ce.js";var xf={exports:{}},ei={};/** +import{r as P,a9 as hf,x as qr,bJ as pf,J as er,bK as $d,j as L,a as fo,bL as e1,bM as t1}from"./index-04f9e7e6.js";import{N as Aa,U as vl,X as n1,Y as r1,g as mf,m as i1,C as wo,Z as o1,O as yl,I as xl,_ as Rs,$ as Da,a0 as s1,a1,a2 as l1,a3 as u1,a4 as c1,a5 as f1,a6 as d1,V as ct,e as $r,a7 as h1,k as p1,j as Sl,v as Is,a8 as gf,h as el,a9 as tl,aa as Mi,ab as m1,w as wl,ac as g1,ad as nl,ae as oc,af as v1,ag as Ai,n as vf,ah as y1,o as Co,ai as yf,aj as x1,ak as S1,al as w1,am as C1,an as _1,L as sc,ao as E1,ap as k1,M as T1,u as P1,aq as Cl,ar as ac,as as Zr,at as M1,l as Ia}from"./three.module-ba6167ce.js";var xf={exports:{}},ei={};/** * @license React * react-reconciler-constants.production.min.js * diff --git a/build/assets/index-18ba9b8b.js b/build/assets/index-e289962d.js similarity index 96% rename from build/assets/index-18ba9b8b.js rename to build/assets/index-e289962d.js index ee3cab40f..c8b63eb7a 100644 --- a/build/assets/index-18ba9b8b.js +++ b/build/assets/index-e289962d.js @@ -1,4 +1,4 @@ -import{z as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aX as ee,b5 as te,an as se,aV as L,aW as F,ba as B,bb as ne,q as oe,bc as re,bd as ie,be as ae,e as O,t as ce,u as le,aU as de,N as I,aY as pe,v as xe,ah as me,ag as ue,b8 as he}from"./index-8f1177e3.js";import{a9 as fe,h as ye}from"./index-9e906cde.js";import{f as ge}from"./index-c7f888ab.js";import{C as U}from"./ClipLoader-5d1618f3.js";import{p as q}from"./index-efc984a3.js";import{A as je}from"./index-d9032019.js";import{c as we}from"./index-64f1c910.js";import"./three.module-ba6167ce.js";import"./index-26468b48.js";import"./Stack-55a7903f.js";import"./createSvgIcon-9333dda0.js";import"./TextareaAutosize-ba1f6749.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` +import{z as Z,s as g,a as b,F as t,T,b as V,r as y,j as e,B as C,aX as ee,b5 as te,an as se,aV as L,aW as F,ba as B,bb as ne,q as oe,bc as re,bd as ie,be as ae,e as O,t as ce,u as le,aU as de,N as I,aY as pe,v as xe,ah as me,ag as ue,b8 as he}from"./index-04f9e7e6.js";import{a9 as fe,h as ye}from"./index-292d93f3.js";import{f as ge}from"./index-6d28c8a5.js";import{C as U}from"./ClipLoader-c5e3f404.js";import{p as q}from"./index-efc984a3.js";import{A as je}from"./index-30313f81.js";import{c as we}from"./index-64f1c910.js";import"./three.module-ba6167ce.js";import"./index-782ff866.js";import"./Stack-9bdcdce4.js";import"./createSvgIcon-a3d1c07a.js";import"./TextareaAutosize-6a1de228.js";const be=async(o,a,c="")=>await Z.post(`/${o}`,JSON.stringify(a),{Authorization:c}),Se=async(o,a,c,m,d,r)=>{const x=o==="Create custom type"?"schema":"node",l={node_data:{...a,...o==="Image"&&{source_link:c}},node_type:o,name:m,pubkey:r};return be(x,l,d)},Ne=({onClick:o,loading:a,error:c})=>{const m=V(l=>l.budget),[d,r]=y.useState(10),x="node";return y.useEffect(()=>{(async()=>{try{const h=await te(x);r(h.data.price)}catch(h){console.error("cannot fetch",h)}})()},[x]),e.jsxs(t,{children:[e.jsx(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:e.jsx(t,{align:"center",direction:"row",children:e.jsx(ke,{children:"Approve Cost"})})}),e.jsxs(t,{align:"center",direction:"row",justify:"space-between",mb:20,children:[e.jsxs(Te,{children:[e.jsx("div",{className:"title",children:"COST"}),e.jsxs("div",{className:"value","data-testid":"check-price",children:[d," sats"]})]}),e.jsxs(Ce,{children:[e.jsx("div",{className:"title",children:"BUDGET"}),e.jsxs("div",{className:"value",children:[ge(m)," sats"]})]})]}),e.jsx(t,{children:e.jsx(C,{color:"secondary","data-testid":"check-icon",disabled:a||!!c,onClick:o,size:"large",startIcon:a?e.jsx(R,{children:e.jsx(U,{color:b.lightGray,size:12})}):e.jsxs(R,{children:[" ",e.jsx(fe,{})]}),type:"submit",variant:"contained",children:"Approve"})}),c?e.jsx(ze,{children:e.jsxs(ve,{children:[e.jsx(ee,{className:"errorIcon"}),e.jsx("span",{children:c})]})}):null]})},Te=g(t).attrs({direction:"column",align:"space-between",justify:"flex-start"})` width: 141px; height: 61px; border: 1px solid ${b.GRAY7}; diff --git a/build/assets/index-c0d858f0.js b/build/assets/index-e6c92504.js similarity index 77% rename from build/assets/index-c0d858f0.js rename to build/assets/index-e6c92504.js index 4f4d16d17..62a47f046 100644 --- a/build/assets/index-c0d858f0.js +++ b/build/assets/index-e6c92504.js @@ -1,4 +1,4 @@ -import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as Ps,x as ce,j as h,M as pb,L as fb,O as Mr,aj as qL,Y as Jt,P as Hi,S as gb,H as jl,U as Cr,V as hb,a3 as Fl,ak as HL,al as WL,am as VO,s as B,a as M,ad as YO,an as mb,o as Bl,F,t as VL,u as Pr,b as Ul,ao as KO,v as YL,T as pt,ap as KL,A as dn,k as Ct,d as bb,aq as ei,ar as Tt,as as XL,a9 as ft,B as Mt,n as XO,q as ZO,C as JO,y as ZL,at as QO,e as Pv,p as JL,au as e1,av as t1,aw as ti,ax as Ne,J as U,ay as QL,az as eM,aA as tM,aB as Gl,aC as rM,aD as nM,aE as aM,aF as iM,aG as r1,aH as oM,aI as zl,aJ as sM,aK as lM,aL as uM,aM as cM,ac as dM,aN as $v,l as pM,aO as fM,aP as gM,I as hM,aQ as mM,E as bM,_ as ir,aR as yM,aS as vM}from"./index-8f1177e3.js";import{w as na,x as $s,y as ac,z as n1,G as SM,J as EM,K as xM,L as jv,Q as js,U as Tn,W as Fv,X as fs,Y as a1,Z as wM,g as yb,_ as i1,b as $r,$ as vn,a0 as o1,h as s1,a1 as _M,u as Mo,a2 as TM,a3 as vb,a4 as ql,a5 as AM,a6 as l1,a7 as u1,a8 as OM,P as kM,a9 as c1,aa as RM,ab as IM,ac as NM,ad as CM,d as Sb,e as Eb,ae as DM,af as LM,ag as MM,n as Pt,ah as d1,ai as PM,f as p1,aj as $M,c as Po,M as jM,V as FM,ak as BM,al as UM,v as GM,am as f1,an as zM}from"./index-9e906cde.js";import{c as qM,a as ic,C as Hl}from"./ClipLoader-5d1618f3.js";import{S as g1}from"./Skeleton-0caad96e.js";import{u as h1,P as xb,a as HM,F as WM}from"./Stack-55a7903f.js";import{T as ri}from"./index-26468b48.js";import{S as VM,F as Bv,i as $o,g as yr,t as YM,_ as m1,a as KM,b as XM,c as ia,d as wb,e as ZM,f as JM,h as QM,j as jo,m as eP,k as tP,l as rP,n as b1,o as nP,p as aP}from"./isPlainObject-2fea37bb.js";import{c as _b}from"./createSvgIcon-9333dda0.js";import{useBriefDescriptionStore as iP}from"./index-fff133ec.js";import{P as we,p as oP}from"./index-8fe66f52.js";import{u as y1}from"./index-bdc490cb.js";const Uv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",sP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Uv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await sP(t),n={amount:t,refid:e};return await HO.post("/boost",JSON.stringify(n)),r};function Tb(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const uP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Mv.groupBy(r,i=>i.timestamp),a=Mv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},cP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},dP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},pP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},fP=pP;function gP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const hP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function Gv(e,t){var r;const{index:n}=(r=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},SP=e=>e;let bs;function oc(){return bs===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?bs=CSS.supports("touch-action","none"):bs=!0),bs}function EP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:m,scale:b=SP,step:S=1,tabIndex:v,value:O}=e,_=P.useRef(),[w,A]=P.useState(-1),[x,E]=P.useState(-1),[k,N]=P.useState(!1),I=P.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),q=Array.isArray(D);let H=q?D.slice().sort(S1):[D];H=H.map(te=>hi(te,l,s));const z=o===!0&&S!==null?[...Array(Math.floor((s-l)/S)+1)].map((te,de)=>({value:l+S*de})):o||[],W=z.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:V,ref:J}=WO(),[ae,re]=P.useState(-1),ue=P.useRef(),Se=zs(J,ue),Q=zs(m,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));V(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=H[ve],qe=W.indexOf(ge);let De=de.target.valueAsNumber;if(z&&S==null){const Ge=W[W.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Je;if(Je=mP(Ge,l,s),S)Je=yP(Je,S,l);else{const rr=Gv(W,Je);Je=W[rr]}Je=hi(Je,l,s);let jt=0;if(q){de?jt=ee.current:jt=Gv(H,Je),a&&(Je=hi(Je,H[jt-1]||-1/0,H[jt+1]||1/0));const rr=Je;Je=zv({values:H,newValue:Je,index:jt}),a&&de||(jt=Je.indexOf(rr),ee.current=jt)}return{newValue:Je,activeIndex:jt}},X=Ps(te=>{const de=gs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});hs({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>hP&&N(!0),j&&!ms(ye,D)&&j(te,ye,ve)}),Ee=Ps(te=>{const de=gs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=Ps(te=>{if(n)return;oc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=gs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});hs({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!ms(ge,D)&&j(te,ge,qe)}I.current=0;const ve=$s(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=P.useCallback(()=>{const te=$s(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);P.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:oc()}),()=>{te.removeEventListener("touchstart",fe,{passive:oc()}),he()}},[he,fe]),P.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=gs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});hs({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!ms(qe,D)&&j(de,qe,De)}I.current=0;const ge=$s(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=qs(q?H[0]:l,l,s),et=qs(H[H.length-1],l,s)-nt,tr=(te={})=>{const de=ac(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:Q},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:vP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ac(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:v,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},fP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ac(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:z,open:x,range:q,rootRef:Q,trackLeap:et,trackOffset:nt,values:H,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const xP=_b(h.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),wP=_b(h.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),_P=_b(h.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function TP(e){return fb("MuiCheckbox",e)}const AP=pb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),sc=AP,OP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=hb(i,TP,t);return ce({},t,o)},RP=Mr(VM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Jt(r.size)}`],r.color!=="default"&&t[`color${Jt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${sc.checked}, &.${sc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${sc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IP=h.jsx(wP,{}),NP=h.jsx(xP,{}),CP=h.jsx(_P,{}),DP=P.forwardRef(function(t,r){var n,a;const i=gb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IP,color:s="primary",icon:l=NP,indeterminate:c=!1,indeterminateIcon:d=CP,inputProps:p,size:g="medium",className:m}=i,b=jl(i,OP),S=c?d:l,v=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=kP(O);return h.jsx(RP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:P.cloneElement(S,{fontSize:(n=S.props.fontSize)!=null?n:g}),checkedIcon:P.cloneElement(v,{fontSize:(a=v.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,m)},b,{classes:_}))}),LP=DP,MP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function PP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function $P(e){return typeof e=="function"?e():e}function ys(e,t,r){const n=$P(r),a=PP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const jP=P.forwardRef(function(t,r){const n=Fl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:m,onEntered:b,onEntering:S,onExit:v,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=SM}=t,E=jl(t,MP),k=P.useRef(null),N=zs(l.ref,k,r),I=G=>V=>{G&&(V===void 0?G(k.current):G(k.current,V))},D=I((G,V)=>{ys(d,G,c),xM(G),m&&m(G,V)}),L=I((G,V)=>{const J=jv({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},J)),G.style.transition=n.transitions.create("transform",ce({},J)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,V)}),j=I(b),q=I(_),H=I(G=>{const V=jv({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",V),G.style.transition=n.transitions.create("transform",V),ys(d,G,c),v&&v(G)}),z=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),W=G=>{o&&o(k.current,G)},K=P.useCallback(()=>{k.current&&ys(d,k.current,c)},[d,c]);return P.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=EM(()=>{k.current&&ys(d,k.current,c)}),V=n1(k.current);return V.addEventListener("resize",G),()=>{G.clear(),V.removeEventListener("resize",G)}},[d,g,c]),P.useEffect(()=>{g||K()},[g,K]),h.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:H,onExited:z,onExiting:q,addEndListener:W,appear:s,in:g,timeout:A},E,{children:(G,V)=>P.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},V))}))}),Ca=jP,FP=e=>!e||!js(e),BP=FP;function UP(e){return fb("MuiSlider",e)}const GP=pb("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dr=GP,zP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function qP(e){const{children:t,className:r,value:n}=e,a=zP(e);return t?P.cloneElement(t,{className:Cr(t.props.className)},h.jsxs(P.Fragment,{children:[t.props.children,h.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:h.jsx("span",{className:a.circle,children:h.jsx("span",{className:a.label,children:n})})})]})):null}const HP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function qv(e){return e}const WP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Jt(r.color)}`],r.size!=="medium"&&t[`size${Jt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ce({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ce({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),VP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),YP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),KP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Jt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Jt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ce({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),XP=Mr(qP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),ZP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>VO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),JP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>VO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary})),QP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return hb(c,UP,o)},e$=({children:e})=>e,t$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,S,v,O,_,w,A,x,E,k,N,I,D;const L=gb({props:t,name:"MuiSlider"}),q=Fl().direction==="rtl",{"aria-label":H,"aria-valuetext":z,"aria-labelledby":W,component:K="span",components:G={},componentsProps:V={},color:J="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:Q,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=qv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=qv}=L,tr=jl(L,HP),Pe=ce({},L,{isRtl:q,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:J,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Je,trackLeap:jt,getThumbStyle:rr}=EP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=QP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:WP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:VP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:YP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:KP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:XP,Jr=(m=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?m:ZP,xr=(S=(v=he==null?void 0:he.markLabel)!=null?v:G.MarkLabel)!=null?S:JP,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:V.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:V.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:V.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:V.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:V.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:V.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:V.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:V.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},BP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Je),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Jr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Qr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return h.jsxs(Kr,ce({},le,{children:[h.jsx(Xr,ce({},Gn)),h.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=qs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),h.jsxs(P.Fragment,{children:[h.jsx(Jr,ce({"data-index":We},Oe,!js(Jr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?h.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!js(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=qs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?e$:Bn;return h.jsx(ct,ce({},!js(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:h.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:h.jsx(Qr,ce({"data-index":We,"aria-label":Q?Q(We):H,"aria-valuenow":Ee(_e),"aria-labelledby":W,"aria-valuetext":Ie?Ie(Ee(_e),We):z,value:Ge[We]},da))}))}),We)})]}))}),Wl=t$;function r$(e){return fb("MuiTooltip",e)}const n$=pb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=n$,a$=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function i$(e){return Math.round(e*1e5)/1e5}const o$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return hb(o,r$,t)},s$=Mr(xb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),l$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${i$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),u$=Mr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vs=!1,lc=null,mi={x:0,y:0};function Ss(e,t){return r=>{t&&t(r),e(r)}}const c$=P.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,m,b,S,v,O,_,w,A,x;const E=gb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:q=!1,disableInteractive:H=!1,disableTouchListener:z=!1,enterDelay:W=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:V=!1,id:J,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:Q,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=Fv,TransitionProps:Ee}=E,fe=jl(E,a$),he=P.isValidElement(N)?N:h.jsx("span",{children:N}),je=Fl(),nt=je.direction==="rtl",[et,tr]=P.useState(),[Pe,$e]=P.useState(null),Ye=P.useRef(!1),$t=H||V,Kt=P.useRef(),te=P.useRef(),de=P.useRef(),ye=P.useRef(),[ve,ge]=h1({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=HM(J),Ge=P.useRef(),Je=P.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);P.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Je()},[Je]);const jt=ke=>{clearTimeout(lc),vs=!0,ge(!0),Se&&!qe&&Se(ke)},rr=Ps(ke=>{clearTimeout(lc),lc=setTimeout(()=>{vs=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),W||vs&&K?te.current=setTimeout(()=>{jt(ke)},vs?K:W):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=WO(),[,Jr]=P.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Je(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Je(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};P.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=zs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=P.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!q?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},V?{onMouseMove:En}:{}),ut={};z||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),q||(Ft.onMouseOver=Ss(_r,Ft.onMouseOver),Ft.onMouseLeave=Ss(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Ss(Qr,Ft.onFocus),Ft.onBlur=Ss(xr,Ft.onBlur),$t||(ut.onFocus=Qr,ut.onBlur=xr));const zn=P.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=o$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:s$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:Fv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:l$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:u$,tt=fs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(m=(b=ee.popper)!=null?b:D.popper)==null?void 0:m.className)}),Oe),ct=fs(_e,ce({},Ee,(S=ee.transition)!=null?S:D.transition),Oe),Or=fs(We,ce({},(v=ee.tooltip)!=null?v:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=fs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return h.jsxs(P.Fragment,{children:[P.cloneElement(he,Ft),h.jsx(da,ce({as:Ue??xb,placement:Ie,anchorEl:V?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>h.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:h.jsxs(We,ce({},Or,{children:[ie,k?h.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),d$=c$,p$=(e,t="down")=>{const r=Fl(),[n,a]=P.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return P.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},f$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function g$(e){return e.tldr_topic??e.name}var Hs=globalThis&&globalThis.__assign||function(){return Hs=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` +import{z as WO,ag as xa,i as Pv,ah as GL,r as M,ai as VO,Z as qs,$ as zL,a2 as $s,x as ce,j as m,M as fb,L as gb,O as Mr,aj as qL,Y as Jt,P as Hi,S as hb,H as Fl,U as Cr,V as mb,a3 as Bl,ak as HL,al as WL,am as YO,s as B,a as P,ad as KO,an as bb,o as Ul,F,t as VL,u as Pr,b as Gl,n as Mo,ao as XO,v as YL,T as pt,ap as KL,A as dn,k as Ct,d as yb,aq as ei,ar as Tt,as as XL,a9 as ft,B as Mt,q as ZO,C as JO,y as ZL,at as QO,e as $v,p as JL,au as e1,av as t1,aw as ti,ax as Ne,J as U,ay as QL,az as eM,aA as tM,aB as zl,aC as rM,aD as nM,aE as aM,aF as iM,aG as r1,aH as oM,aI as ql,aJ as sM,aK as lM,aL as uM,aM as cM,ac as dM,aN as jv,l as pM,aO as fM,aP as gM,I as hM,aQ as mM,E as bM,_ as ir,aR as yM,aS as vM}from"./index-04f9e7e6.js";import{w as na,x as js,y as ic,z as n1,G as SM,J as EM,K as xM,L as Fv,Q as Fs,U as Tn,W as Bv,X as gs,Y as a1,Z as wM,g as vb,_ as i1,b as $r,$ as vn,a0 as o1,h as s1,a1 as _M,u as Po,a2 as TM,a3 as Sb,a4 as Hl,a5 as AM,a6 as l1,a7 as u1,a8 as OM,P as kM,a9 as c1,aa as RM,ab as IM,ac as NM,ad as CM,d as Eb,e as xb,ae as DM,af as LM,ag as MM,n as Pt,ah as d1,ai as PM,f as p1,aj as $M,c as $o,M as jM,V as FM,ak as BM,al as UM,v as GM,am as f1,an as zM}from"./index-292d93f3.js";import{c as qM,a as oc,C as Wl}from"./ClipLoader-c5e3f404.js";import{S as g1}from"./Skeleton-38c1ef25.js";import{u as h1,P as wb,a as HM,F as WM}from"./Stack-9bdcdce4.js";import{T as ri}from"./index-782ff866.js";import{S as VM,F as Uv,i as jo,g as yr,t as YM,_ as m1,a as KM,b as XM,c as ia,d as _b,e as ZM,f as JM,h as QM,j as Fo,m as eP,k as tP,l as rP,n as b1,o as nP,p as aP}from"./isPlainObject-0689f20b.js";import{c as Tb}from"./createSvgIcon-a3d1c07a.js";import{useBriefDescriptionStore as iP}from"./index-734a9b6e.js";import{P as we,p as oP}from"./index-0f3ae51e.js";import{u as y1}from"./index-51ac9e53.js";const Gv="023d8eb306f0027b902fbdc81d33b49b6558b3434d374626f8c324979c92d47c21",sP=async e=>{let t=await xa.enable(!0);if(t||console.warn("Sphinx enable failed, means no pubkey and no budget (including budget of 0)"),t=await xa.keysend(Gv,e),!(t!=null&&t.success)){if(t=await xa.topup(),t||(t=await xa.authorize()),!(t!=null&&t.budget)||(t==null?void 0:t.budget){const r=await sP(t),n={amount:t,refid:e};return await WO.post("/boost",JSON.stringify(n)),r};function Ab(e){return e?String(e).replace(/[[]{2}/g,"").replace(/[\]]{2}/g,""):""}const uP=e=>{const[t,r]=e.split("-")||["",""];return parseInt(r,10)!==0?`${t} - ${r}`:t},v1=(e,t)=>{if(!t)return null;const r=e.filter(i=>i.show_title&&i.link&&i.show_title===t.show_title&&i.episode_title===t.episode_title),n=Pv.groupBy(r,i=>i.timestamp),a=Pv.values(n).reduce((i,o)=>(o[0]&&i.push(o[0]),i),[]);return a.sort((i,o)=>{var p,g;const[s]=((p=i.timestamp)==null?void 0:p.split("-"))||[""],[l]=((g=o.timestamp)==null?void 0:g.split("-"))||[""],c=na(s),d=na(l);return c-d}),a},cP=async e=>{await GL(async()=>{try{await xa.saveGraphData({metaData:{date:Math.floor(new Date().getTime()/1e3),...e},type:"second_brain_consumed_content"})}catch(t){console.warn(t)}})},dP=e=>{const t=/((http|https):\/\/[^\s]+)/g,r=/@(\w+)/g;let n=e.replace(/\\/g,"");return n=n.replace(/'/g,"’"),n=n.replace(/\n/g,"
"),n=n.replace(t,'$1'),n=n.replace(r,'@$1'),n},pP={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},fP=pP;function gP(e,t,r=(n,a)=>n===a){return e.length===t.length&&e.every((n,a)=>r(n,t[a]))}const hP=2;function S1(e,t){return e-t}function hi(e,t,r){return e==null?t:Math.min(Math.max(t,e),r)}function zv(e,t){var r;const{index:n}=(r=e.reduce((a,i,o)=>{const s=Math.abs(t-i);return a===null||s({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},SP=e=>e;let ys;function sc(){return ys===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?ys=CSS.supports("touch-action","none"):ys=!0),ys}function EP(e){const{"aria-labelledby":t,defaultValue:r,disabled:n=!1,disableSwap:a=!1,isRtl:i=!1,marks:o=!1,max:s=100,min:l=0,name:c,onChange:d,onChangeCommitted:p,orientation:g="horizontal",rootRef:h,scale:b=SP,step:S=1,tabIndex:v,value:O}=e,_=M.useRef(),[w,A]=M.useState(-1),[x,E]=M.useState(-1),[k,N]=M.useState(!1),I=M.useRef(0),[D,L]=h1({controlled:O,default:r??l,name:"Slider"}),j=d&&((te,de,ye)=>{const ve=te.nativeEvent||te,ge=new ve.constructor(ve.type,ve);Object.defineProperty(ge,"target",{writable:!0,value:{value:de,name:c}}),d(ge,de,ye)}),q=Array.isArray(D);let H=q?D.slice().sort(S1):[D];H=H.map(te=>hi(te,l,s));const z=o===!0&&S!==null?[...Array(Math.floor((s-l)/S)+1)].map((te,de)=>({value:l+S*de})):o||[],W=z.map(te=>te.value),{isFocusVisibleRef:K,onBlur:G,onFocus:V,ref:J}=VO(),[ae,re]=M.useState(-1),ue=M.useRef(),Se=qs(J,ue),Q=qs(h,Se),Ie=te=>de=>{var ye;const ve=Number(de.currentTarget.getAttribute("data-index"));V(de),K.current===!0&&re(ve),E(ve),te==null||(ye=te.onFocus)==null||ye.call(te,de)},Ue=te=>de=>{var ye;G(de),K.current===!1&&re(-1),E(-1),te==null||(ye=te.onBlur)==null||ye.call(te,de)};zL(()=>{if(n&&ue.current.contains(document.activeElement)){var te;(te=document.activeElement)==null||te.blur()}},[n]),n&&w!==-1&&A(-1),n&&ae!==-1&&re(-1);const xe=te=>de=>{var ye;(ye=te.onChange)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index")),ge=H[ve],qe=W.indexOf(ge);let De=de.target.valueAsNumber;if(z&&S==null){const Ge=W[W.length-1];De>Ge?De=Ge:De{const{current:ye}=ue,{width:ve,height:ge,bottom:qe,left:De}=ye.getBoundingClientRect();let Ge;oe.indexOf("vertical")===0?Ge=(qe-te.y)/ge:Ge=(te.x-De)/ve,oe.indexOf("-reverse")!==-1&&(Ge=1-Ge);let Je;if(Je=mP(Ge,l,s),S)Je=yP(Je,S,l);else{const rr=zv(W,Je);Je=W[rr]}Je=hi(Je,l,s);let jt=0;if(q){de?jt=ee.current:jt=zv(H,Je),a&&(Je=hi(Je,H[jt-1]||-1/0,H[jt+1]||1/0));const rr=Je;Je=qv({values:H,newValue:Je,index:jt}),a&&de||(jt=Je.indexOf(rr),ee.current=jt)}return{newValue:Je,activeIndex:jt}},X=$s(te=>{const de=hs(te,_);if(!de)return;if(I.current+=1,te.type==="mousemove"&&te.buttons===0){Ee(te);return}const{newValue:ye,activeIndex:ve}=ie({finger:de,move:!0});ms({sliderRef:ue,activeIndex:ve,setActive:A}),L(ye),!k&&I.current>hP&&N(!0),j&&!bs(ye,D)&&j(te,ye,ve)}),Ee=$s(te=>{const de=hs(te,_);if(N(!1),!de)return;const{newValue:ye}=ie({finger:de,move:!0});A(-1),te.type==="touchend"&&E(-1),p&&p(te,ye),_.current=void 0,he()}),fe=$s(te=>{if(n)return;sc()||te.preventDefault();const de=te.changedTouches[0];de!=null&&(_.current=de.identifier);const ye=hs(te,_);if(ye!==!1){const{newValue:ge,activeIndex:qe}=ie({finger:ye});ms({sliderRef:ue,activeIndex:qe,setActive:A}),L(ge),j&&!bs(ge,D)&&j(te,ge,qe)}I.current=0;const ve=js(ue.current);ve.addEventListener("touchmove",X),ve.addEventListener("touchend",Ee)}),he=M.useCallback(()=>{const te=js(ue.current);te.removeEventListener("mousemove",X),te.removeEventListener("mouseup",Ee),te.removeEventListener("touchmove",X),te.removeEventListener("touchend",Ee)},[Ee,X]);M.useEffect(()=>{const{current:te}=ue;return te.addEventListener("touchstart",fe,{passive:sc()}),()=>{te.removeEventListener("touchstart",fe,{passive:sc()}),he()}},[he,fe]),M.useEffect(()=>{n&&he()},[n,he]);const je=te=>de=>{var ye;if((ye=te.onMouseDown)==null||ye.call(te,de),n||de.defaultPrevented||de.button!==0)return;de.preventDefault();const ve=hs(de,_);if(ve!==!1){const{newValue:qe,activeIndex:De}=ie({finger:ve});ms({sliderRef:ue,activeIndex:De,setActive:A}),L(qe),j&&!bs(qe,D)&&j(de,qe,De)}I.current=0;const ge=js(ue.current);ge.addEventListener("mousemove",X),ge.addEventListener("mouseup",Ee)},nt=Hs(q?H[0]:l,l,s),et=Hs(H[H.length-1],l,s)-nt,tr=(te={})=>{const de=ic(te),ye={onMouseDown:je(de||{})},ve=ce({},de,ye);return ce({},te,{ref:Q},ve)},Pe=te=>de=>{var ye;(ye=te.onMouseOver)==null||ye.call(te,de);const ve=Number(de.currentTarget.getAttribute("data-index"));E(ve)},$e=te=>de=>{var ye;(ye=te.onMouseLeave)==null||ye.call(te,de),E(-1)};return{active:w,axis:oe,axisProps:vP,dragging:k,focusedThumbIndex:ae,getHiddenInputProps:(te={})=>{var de;const ye=ic(te),ve={onChange:xe(ye||{}),onFocus:Ie(ye||{}),onBlur:Ue(ye||{})},ge=ce({},ye,ve);return ce({tabIndex:v,"aria-labelledby":t,"aria-orientation":g,"aria-valuemax":b(s),"aria-valuemin":b(l),name:c,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(de=e.step)!=null?de:void 0,disabled:n},te,ge,{style:ce({},fP,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:tr,getThumbProps:(te={})=>{const de=ic(te),ye={onMouseOver:Pe(de||{}),onMouseLeave:$e(de||{})};return ce({},te,de,ye)},marks:z,open:x,range:q,rootRef:Q,trackLeap:et,trackOffset:nt,values:H,getThumbStyle:te=>({pointerEvents:w!==-1&&w!==te?"none":void 0})}}const xP=Tb(m.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),wP=Tb(m.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),_P=Tb(m.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function TP(e){return gb("MuiCheckbox",e)}const AP=fb("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),lc=AP,OP=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],kP=e=>{const{classes:t,indeterminate:r,color:n,size:a}=e,i={root:["root",r&&"indeterminate",`color${Jt(n)}`,`size${Jt(a)}`]},o=mb(i,TP,t);return ce({},t,o)},RP=Mr(VM,{shouldForwardProp:e=>qL(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${Jt(r.size)}`],r.color!=="default"&&t[`color${Jt(r.color)}`]]}})(({theme:e,ownerState:t})=>ce({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hi(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${lc.checked}, &.${lc.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${lc.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),IP=m.jsx(wP,{}),NP=m.jsx(xP,{}),CP=m.jsx(_P,{}),DP=M.forwardRef(function(t,r){var n,a;const i=hb({props:t,name:"MuiCheckbox"}),{checkedIcon:o=IP,color:s="primary",icon:l=NP,indeterminate:c=!1,indeterminateIcon:d=CP,inputProps:p,size:g="medium",className:h}=i,b=Fl(i,OP),S=c?d:l,v=c?d:o,O=ce({},i,{color:s,indeterminate:c,size:g}),_=kP(O);return m.jsx(RP,ce({type:"checkbox",inputProps:ce({"data-indeterminate":c},p),icon:M.cloneElement(S,{fontSize:(n=S.props.fontSize)!=null?n:g}),checkedIcon:M.cloneElement(v,{fontSize:(a=v.props.fontSize)!=null?a:g}),ownerState:O,ref:r,className:Cr(_.root,h)},b,{classes:_}))}),LP=DP,MP=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function PP(e,t,r){const n=t.getBoundingClientRect(),a=r&&r.getBoundingClientRect(),i=n1(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const c=i.getComputedStyle(t);o=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const c=o.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?a?`translateX(${a.right+s-n.left}px)`:`translateX(${i.innerWidth+s-n.left}px)`:e==="right"?a?`translateX(-${n.right-a.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?a?`translateY(${a.bottom+l-n.top}px)`:`translateY(${i.innerHeight+l-n.top}px)`:a?`translateY(-${n.top-a.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function $P(e){return typeof e=="function"?e():e}function vs(e,t,r){const n=$P(r),a=PP(e,t,n);a&&(t.style.webkitTransform=a,t.style.transform=a)}const jP=M.forwardRef(function(t,r){const n=Bl(),a={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:c,direction:d="down",easing:p=a,in:g,onEnter:h,onEntered:b,onEntering:S,onExit:v,onExited:O,onExiting:_,style:w,timeout:A=i,TransitionComponent:x=SM}=t,E=Fl(t,MP),k=M.useRef(null),N=qs(l.ref,k,r),I=G=>V=>{G&&(V===void 0?G(k.current):G(k.current,V))},D=I((G,V)=>{vs(d,G,c),xM(G),h&&h(G,V)}),L=I((G,V)=>{const J=Fv({timeout:A,style:w,easing:p},{mode:"enter"});G.style.webkitTransition=n.transitions.create("-webkit-transform",ce({},J)),G.style.transition=n.transitions.create("transform",ce({},J)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,V)}),j=I(b),q=I(_),H=I(G=>{const V=Fv({timeout:A,style:w,easing:p},{mode:"exit"});G.style.webkitTransition=n.transitions.create("-webkit-transform",V),G.style.transition=n.transitions.create("transform",V),vs(d,G,c),v&&v(G)}),z=I(G=>{G.style.webkitTransition="",G.style.transition="",O&&O(G)}),W=G=>{o&&o(k.current,G)},K=M.useCallback(()=>{k.current&&vs(d,k.current,c)},[d,c]);return M.useEffect(()=>{if(g||d==="down"||d==="right")return;const G=EM(()=>{k.current&&vs(d,k.current,c)}),V=n1(k.current);return V.addEventListener("resize",G),()=>{G.clear(),V.removeEventListener("resize",G)}},[d,g,c]),M.useEffect(()=>{g||K()},[g,K]),m.jsx(x,ce({nodeRef:k,onEnter:D,onEntered:j,onEntering:L,onExit:H,onExited:z,onExiting:q,addEndListener:W,appear:s,in:g,timeout:A},E,{children:(G,V)=>M.cloneElement(l,ce({ref:N,style:ce({visibility:G==="exited"&&!g?"hidden":void 0},w,l.props.style)},V))}))}),Ca=jP,FP=e=>!e||!Fs(e),BP=FP;function UP(e){return gb("MuiSlider",e)}const GP=fb("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),Dr=GP,zP=e=>{const{open:t}=e;return{offset:Cr(t&&Dr.valueLabelOpen),circle:Dr.valueLabelCircle,label:Dr.valueLabelLabel}};function qP(e){const{children:t,className:r,value:n}=e,a=zP(e);return t?M.cloneElement(t,{className:Cr(t.props.className)},m.jsxs(M.Fragment,{children:[t.props.children,m.jsx("span",{className:Cr(a.offset,r),"aria-hidden":!0,children:m.jsx("span",{className:a.circle,children:m.jsx("span",{className:a.label,children:n})})})]})):null}const HP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Hv(e){return e}const WP=Mr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`color${Jt(r.color)}`],r.size!=="medium"&&t[`size${Jt(r.size)}`],r.marked&&t.marked,r.orientation==="vertical"&&t.vertical,r.track==="inverted"&&t.trackInverted,r.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>ce({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&ce({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&ce({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${Dr.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Dr.dragging}`]:{[`& .${Dr.thumb}, & .${Dr.track}`]:{transition:"none"}}})),VP=Mr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>ce({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),YP=Mr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?HL(e.palette[t.color].main,.62):WL(e.palette[t.color].main,.5);return ce({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:r})}),KP=Mr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.thumb,t[`thumbColor${Jt(r.color)}`],r.size!=="medium"&&t[`thumbSize${Jt(r.size)}`]]}})(({theme:e,ownerState:t})=>ce({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":ce({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${Dr.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Dr.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Hi(e.palette[t.color].main,.16)}`},[`&.${Dr.disabled}`]:{"&:hover":{boxShadow:"none"}}})),XP=Mr(qP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>ce({[`&.${Dr.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),ZP=Mr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>YO(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:r}=e;return[t.mark,r&&t.markActive]}})(({theme:e,ownerState:t,markActive:r})=>ce({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),JP=Mr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>YO(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:r})=>ce({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(e.vars||e).palette.text.primary})),QP=e=>{const{disabled:t,dragging:r,marked:n,orientation:a,track:i,classes:o,color:s,size:l}=e,c={root:["root",t&&"disabled",r&&"dragging",n&&"marked",a==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",s&&`color${Jt(s)}`,l&&`size${Jt(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${Jt(l)}`,s&&`thumbColor${Jt(s)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return mb(c,UP,o)},e$=({children:e})=>e,t$=M.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,h,b,S,v,O,_,w,A,x,E,k,N,I,D;const L=hb({props:t,name:"MuiSlider"}),q=Bl().direction==="rtl",{"aria-label":H,"aria-valuetext":z,"aria-labelledby":W,component:K="span",components:G={},componentsProps:V={},color:J="primary",classes:ae,className:re,disableSwap:ue=!1,disabled:Se=!1,getAriaLabel:Q,getAriaValueText:Ie,marks:Ue=!1,max:xe=100,min:ee=0,orientation:oe="horizontal",size:ie="medium",step:X=1,scale:Ee=Hv,slotProps:fe,slots:he,track:je="normal",valueLabelDisplay:nt="off",valueLabelFormat:et=Hv}=L,tr=Fl(L,HP),Pe=ce({},L,{isRtl:q,max:xe,min:ee,classes:ae,disabled:Se,disableSwap:ue,orientation:oe,marks:Ue,color:J,size:ie,step:X,scale:Ee,track:je,valueLabelDisplay:nt,valueLabelFormat:et}),{axisProps:$e,getRootProps:Ye,getHiddenInputProps:$t,getThumbProps:Kt,open:te,active:de,axis:ye,focusedThumbIndex:ve,range:ge,dragging:qe,marks:De,values:Ge,trackOffset:Je,trackLeap:jt,getThumbStyle:rr}=EP(ce({},Pe,{rootRef:r}));Pe.marked=De.length>0&&De.some(_e=>_e.label),Pe.dragging=qe,Pe.focusedThumbIndex=ve;const ze=QP(Pe),Kr=(n=(a=he==null?void 0:he.root)!=null?a:G.Root)!=null?n:WP,Xr=(i=(o=he==null?void 0:he.rail)!=null?o:G.Rail)!=null?i:VP,Zr=(s=(l=he==null?void 0:he.track)!=null?l:G.Track)!=null?s:YP,He=(c=(d=he==null?void 0:he.thumb)!=null?d:G.Thumb)!=null?c:KP,Bn=(p=(g=he==null?void 0:he.valueLabel)!=null?g:G.ValueLabel)!=null?p:XP,Jr=(h=(b=he==null?void 0:he.mark)!=null?b:G.Mark)!=null?h:ZP,xr=(S=(v=he==null?void 0:he.markLabel)!=null?v:G.MarkLabel)!=null?S:JP,Qr=(O=(_=he==null?void 0:he.input)!=null?_:G.Input)!=null?O:"input",wr=(w=fe==null?void 0:fe.root)!=null?w:V.root,_r=(A=fe==null?void 0:fe.rail)!=null?A:V.rail,Tr=(x=fe==null?void 0:fe.track)!=null?x:V.track,Un=(E=fe==null?void 0:fe.thumb)!=null?E:V.thumb,Fr=(k=fe==null?void 0:fe.valueLabel)!=null?k:V.valueLabel,li=(N=fe==null?void 0:fe.mark)!=null?N:V.mark,Ar=(I=fe==null?void 0:fe.markLabel)!=null?I:V.markLabel,En=(D=fe==null?void 0:fe.input)!=null?D:V.input,le=Tn({elementType:Kr,getSlotProps:Ye,externalSlotProps:wr,externalForwardedProps:tr,additionalProps:ce({},BP(Kr)&&{as:K}),ownerState:ce({},Pe,wr==null?void 0:wr.ownerState),className:[ze.root,re]}),Gn=Tn({elementType:Xr,externalSlotProps:_r,ownerState:Pe,className:ze.rail}),Ft=Tn({elementType:Zr,externalSlotProps:Tr,additionalProps:{style:ce({},$e[ye].offset(Je),$e[ye].leap(jt))},ownerState:ce({},Pe,Tr==null?void 0:Tr.ownerState),className:ze.track}),ut=Tn({elementType:He,getSlotProps:Kt,externalSlotProps:Un,ownerState:ce({},Pe,Un==null?void 0:Un.ownerState),className:ze.thumb}),zn=Tn({elementType:Bn,externalSlotProps:Fr,ownerState:ce({},Pe,Fr==null?void 0:Fr.ownerState),className:ze.valueLabel}),Oe=Tn({elementType:Jr,externalSlotProps:li,ownerState:Pe,className:ze.mark}),nr=Tn({elementType:xr,externalSlotProps:Ar,ownerState:Pe,className:ze.markLabel}),da=Tn({elementType:Qr,getSlotProps:$t,externalSlotProps:En,ownerState:Pe});return m.jsxs(Kr,ce({},le,{children:[m.jsx(Xr,ce({},Gn)),m.jsx(Zr,ce({},Ft)),De.filter(_e=>_e.value>=ee&&_e.value<=xe).map((_e,We)=>{const kt=Hs(_e.value,ee,xe),tt=$e[ye].offset(kt);let ct;return je===!1?ct=Ge.indexOf(_e.value)!==-1:ct=je==="normal"&&(ge?_e.value>=Ge[0]&&_e.value<=Ge[Ge.length-1]:_e.value<=Ge[0])||je==="inverted"&&(ge?_e.value<=Ge[0]||_e.value>=Ge[Ge.length-1]:_e.value>=Ge[0]),m.jsxs(M.Fragment,{children:[m.jsx(Jr,ce({"data-index":We},Oe,!Fs(Jr)&&{markActive:ct},{style:ce({},tt,Oe.style),className:Cr(Oe.className,ct&&ze.markActive)})),_e.label!=null?m.jsx(xr,ce({"aria-hidden":!0,"data-index":We},nr,!Fs(xr)&&{markLabelActive:ct},{style:ce({},tt,nr.style),className:Cr(ze.markLabel,nr.className,ct&&ze.markLabelActive),children:_e.label})):null]},We)}),Ge.map((_e,We)=>{const kt=Hs(_e,ee,xe),tt=$e[ye].offset(kt),ct=nt==="off"?e$:Bn;return m.jsx(ct,ce({},!Fs(ct)&&{valueLabelFormat:et,valueLabelDisplay:nt,value:typeof et=="function"?et(Ee(_e),We):et,index:We,open:te===We||de===We||nt==="on",disabled:Se},zn,{children:m.jsx(He,ce({"data-index":We},ut,{className:Cr(ze.thumb,ut.className,de===We&&ze.active,ve===We&&ze.focusVisible),style:ce({},tt,rr(We),ut.style),children:m.jsx(Qr,ce({"data-index":We,"aria-label":Q?Q(We):H,"aria-valuenow":Ee(_e),"aria-labelledby":W,"aria-valuetext":Ie?Ie(Ee(_e),We):z,value:Ge[We]},da))}))}),We)})]}))}),Vl=t$;function r$(e){return gb("MuiTooltip",e)}const n$=fb("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Nn=n$,a$=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function i$(e){return Math.round(e*1e5)/1e5}const o$=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:a,placement:i}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",a&&"touch",`tooltipPlacement${Jt(i.split("-")[0])}`],arrow:["arrow"]};return mb(o,r$,t)},s$=Mr(wb,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>ce({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Nn.arrow}`]:ce({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Nn.arrow}`]:ce({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),l$=Mr("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${Jt(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>ce({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${i$(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Nn.popper}[data-popper-placement*="left"] &`]:ce({transformOrigin:"right center"},t.isRtl?ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):ce({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Nn.popper}[data-popper-placement*="right"] &`]:ce({transformOrigin:"left center"},t.isRtl?ce({marginRight:"14px"},t.touch&&{marginRight:"24px"}):ce({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Nn.popper}[data-popper-placement*="top"] &`]:ce({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Nn.popper}[data-popper-placement*="bottom"] &`]:ce({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),u$=Mr("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Hi(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ss=!1,uc=null,mi={x:0,y:0};function Es(e,t){return r=>{t&&t(r),e(r)}}const c$=M.forwardRef(function(t,r){var n,a,i,o,s,l,c,d,p,g,h,b,S,v,O,_,w,A,x;const E=hb({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:N,components:I={},componentsProps:D={},describeChild:L=!1,disableFocusListener:j=!1,disableHoverListener:q=!1,disableInteractive:H=!1,disableTouchListener:z=!1,enterDelay:W=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:V=!1,id:J,leaveDelay:ae=0,leaveTouchDelay:re=1500,onClose:ue,onOpen:Se,open:Q,placement:Ie="bottom",PopperComponent:Ue,PopperProps:xe={},slotProps:ee={},slots:oe={},title:ie,TransitionComponent:X=Bv,TransitionProps:Ee}=E,fe=Fl(E,a$),he=M.isValidElement(N)?N:m.jsx("span",{children:N}),je=Bl(),nt=je.direction==="rtl",[et,tr]=M.useState(),[Pe,$e]=M.useState(null),Ye=M.useRef(!1),$t=H||V,Kt=M.useRef(),te=M.useRef(),de=M.useRef(),ye=M.useRef(),[ve,ge]=h1({controlled:Q,default:!1,name:"Tooltip",state:"open"});let qe=ve;const De=HM(J),Ge=M.useRef(),Je=M.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(ye.current)},[]);M.useEffect(()=>()=>{clearTimeout(Kt.current),clearTimeout(te.current),clearTimeout(de.current),Je()},[Je]);const jt=ke=>{clearTimeout(uc),Ss=!0,ge(!0),Se&&!qe&&Se(ke)},rr=$s(ke=>{clearTimeout(uc),uc=setTimeout(()=>{Ss=!1},800+ae),ge(!1),ue&&qe&&ue(ke),clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Ye.current=!1},je.transitions.duration.shortest)}),ze=ke=>{Ye.current&&ke.type!=="touchstart"||(et&&et.removeAttribute("title"),clearTimeout(te.current),clearTimeout(de.current),W||Ss&&K?te.current=setTimeout(()=>{jt(ke)},Ss?K:W):jt(ke))},Kr=ke=>{clearTimeout(te.current),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},ae)},{isFocusVisibleRef:Xr,onBlur:Zr,onFocus:He,ref:Bn}=VO(),[,Jr]=M.useState(!1),xr=ke=>{Zr(ke),Xr.current===!1&&(Jr(!1),Kr(ke))},Qr=ke=>{et||tr(ke.currentTarget),He(ke),Xr.current===!0&&(Jr(!0),ze(ke))},wr=ke=>{Ye.current=!0;const Bt=he.props;Bt.onTouchStart&&Bt.onTouchStart(ke)},_r=ze,Tr=Kr,Un=ke=>{wr(ke),clearTimeout(de.current),clearTimeout(Kt.current),Je(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,ze(ke)},G)},Fr=ke=>{he.props.onTouchEnd&&he.props.onTouchEnd(ke),Je(),clearTimeout(de.current),de.current=setTimeout(()=>{rr(ke)},re)};M.useEffect(()=>{if(!qe)return;function ke(Bt){(Bt.key==="Escape"||Bt.key==="Esc")&&rr(Bt)}return document.addEventListener("keydown",ke),()=>{document.removeEventListener("keydown",ke)}},[rr,qe]);const li=qs(he.ref,Bn,tr,r);!ie&&ie!==0&&(qe=!1);const Ar=M.useRef(),En=ke=>{const Bt=he.props;Bt.onMouseMove&&Bt.onMouseMove(ke),mi={x:ke.clientX,y:ke.clientY},Ar.current&&Ar.current.update()},le={},Gn=typeof ie=="string";L?(le.title=!qe&&Gn&&!q?ie:null,le["aria-describedby"]=qe?De:null):(le["aria-label"]=Gn?ie:null,le["aria-labelledby"]=qe&&!Gn?De:null);const Ft=ce({},le,fe,he.props,{className:Cr(fe.className,he.props.className),onTouchStart:wr,ref:li},V?{onMouseMove:En}:{}),ut={};z||(Ft.onTouchStart=Un,Ft.onTouchEnd=Fr),q||(Ft.onMouseOver=Es(_r,Ft.onMouseOver),Ft.onMouseLeave=Es(Tr,Ft.onMouseLeave),$t||(ut.onMouseOver=_r,ut.onMouseLeave=Tr)),j||(Ft.onFocus=Es(Qr,Ft.onFocus),Ft.onBlur=Es(xr,Ft.onBlur),$t||(ut.onFocus=Qr,ut.onBlur=xr));const zn=M.useMemo(()=>{var ke;let Bt=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(ke=xe.popperOptions)!=null&&ke.modifiers&&(Bt=Bt.concat(xe.popperOptions.modifiers)),ce({},xe.popperOptions,{modifiers:Bt})},[Pe,xe]),Oe=ce({},E,{isRtl:nt,arrow:k,disableInteractive:$t,placement:Ie,PopperComponentProp:Ue,touch:Ye.current}),nr=o$(Oe),da=(n=(a=oe.popper)!=null?a:I.Popper)!=null?n:s$,_e=(i=(o=(s=oe.transition)!=null?s:I.Transition)!=null?o:X)!=null?i:Bv,We=(l=(c=oe.tooltip)!=null?c:I.Tooltip)!=null?l:l$,kt=(d=(p=oe.arrow)!=null?p:I.Arrow)!=null?d:u$,tt=gs(da,ce({},xe,(g=ee.popper)!=null?g:D.popper,{className:Cr(nr.popper,xe==null?void 0:xe.className,(h=(b=ee.popper)!=null?b:D.popper)==null?void 0:h.className)}),Oe),ct=gs(_e,ce({},Ee,(S=ee.transition)!=null?S:D.transition),Oe),Or=gs(We,ce({},(v=ee.tooltip)!=null?v:D.tooltip,{className:Cr(nr.tooltip,(O=(_=ee.tooltip)!=null?_:D.tooltip)==null?void 0:O.className)}),Oe),en=gs(kt,ce({},(w=ee.arrow)!=null?w:D.arrow,{className:Cr(nr.arrow,(A=(x=ee.arrow)!=null?x:D.arrow)==null?void 0:A.className)}),Oe);return m.jsxs(M.Fragment,{children:[M.cloneElement(he,Ft),m.jsx(da,ce({as:Ue??wb,placement:Ie,anchorEl:V?{getBoundingClientRect:()=>({top:mi.y,left:mi.x,right:mi.x,bottom:mi.y,width:0,height:0})}:et,popperRef:Ar,open:et?qe:!1,id:De,transition:!0},ut,tt,{popperOptions:zn,children:({TransitionProps:ke})=>m.jsx(_e,ce({timeout:je.transitions.duration.shorter},ke,ct,{children:m.jsxs(We,ce({},Or,{children:[ie,k?m.jsx(kt,ce({},en,{ref:$e})):null]}))}))}))]})}),d$=c$,p$=(e,t="down")=>{const r=Bl(),[n,a]=M.useState(!1),i=r.breakpoints[t](e).split("@media")[1].trim();return M.useEffect(()=>{const o=()=>{const{matches:s}=window.matchMedia(i);a(s)};return o(),window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[i]),n},f$=e=>e.filter(t=>t.tldr).length>=2&&e.some(t=>t.audio_EN);function g$(e){return e.tldr_topic??e.name}var Ws=globalThis&&globalThis.__assign||function(){return Ws=Object.assign||function(e){for(var t,r=1,n=arguments.length;r({autoCorrect:"off",autoComplete:"off"}))` pointer-events: auto; height: 48px; padding: 0 40px 0 18px; @@ -9,7 +9,7 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P box-shadow: none; border: none; border-radius: 200px; - background: ${M.BG2}; + background: ${P.BG2}; -webkit-autofill, -webkit-autocomplete, @@ -23,53 +23,53 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P } &:focus { - outline: 1px solid ${M.primaryBlue}; + outline: 1px solid ${P.primaryBlue}; } &:hover { - background: ${M.black}; + background: ${P.black}; } &::placeholder { - color: ${M.GRAY7}; + color: ${P.GRAY7}; } - ${({loading:e})=>e&&YO` + ${({loading:e})=>e&&KO` background-image: url('https://i.gifer.com/ZZ5H.gif'); background-size: 25px 25px; background-position: right center; background-position-x: 95%; background-repeat: no-repeat; `} -`,E1=({loading:e,placeholder:t="Search",onSubmit:r})=>{const{register:n,watch:a}=mb(),i=a("search"),o=Bl();return h.jsx(y$,{...n("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(r){r();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},v$=()=>{const e=VL({mode:"onChange"}),{fetchData:t,setAbortRequests:r}=Pr(s=>s),{setBudget:n}=Ul(s=>s),{reset:a}=e,i=KO(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(t(n,r,s),a({search:""}))});return h.jsx(x1,{children:h.jsx(YL,{...e,children:h.jsxs(S$,{children:[h.jsx(E1,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),h.jsx(E$,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?h.jsx(x$,{color:M.lightGray,"data-testid":"loader",size:"20"}):h.jsx(a1,{})})]})})})},x1=B(F)` +`,E1=({loading:e,placeholder:t="Search",onSubmit:r})=>{const{register:n,watch:a}=bb(),i=a("search"),o=Ul();return m.jsx(y$,{...n("search"),"data-testid":"search_input",disabled:e,id:"main-search",onKeyPress:s=>{if(s.key==="Enter"){if(i.trim()==="")return;if(r){r();return}const l=i.replace(/\s+/g,"+");o(`/search?q=${l}`)}},placeholder:t,type:"text"})},v$=()=>{const e=VL({mode:"onChange"}),{setAbortRequests:t}=Pr(s=>s),{setBudget:r}=Gl(s=>s),{reset:n}=e,a=Mo(s=>s.fetchAIData),i=XO(),o=e.handleSubmit(({search:s})=>{s.trim()!==""&&(a(r,t,s),n({search:""}))});return m.jsx(x1,{children:m.jsx(YL,{...e,children:m.jsxs(S$,{children:[m.jsx(E1,{loading:i,onSubmit:o,placeholder:"Ask follow-up"}),m.jsx(E$,{"data-testid":"search-ai_action_icon",onClick:()=>{i||o()},children:i?m.jsx(x$,{color:P.lightGray,"data-testid":"loader",size:"20"}):m.jsx(a1,{})})]})})})},x1=B(F)` position: sticky; bottom: 0; padding: 12px; - border-top: 1px solid ${M.black}; + border-top: 1px solid ${P.black}; `,S$=B(F).attrs({direction:"row",justify:"center",align:"center"})` flex-grow: 1; `,E$=B(F).attrs({align:"center",justify:"center",p:5})` font-size: 32px; - color: ${M.mainBottomIcons}; + color: ${P.mainBottomIcons}; cursor: pointer; transition-duration: 0.2s; margin-left: -42px; z-index: 2; &:hover { - /* background-color: ${M.gray200}; */ + /* background-color: ${P.gray200}; */ } ${x1} input:focus + & { - color: ${M.primaryBlue}; + color: ${P.primaryBlue}; } -`,x$=B(Hl)` +`,x$=B(Wl)` margin-right: 10px; `,w$=B(F).attrs({direction:"column"})` padding: 24px; cursor: pointer; border-top: 1px solid #101317; - background: ${M.BG1}; + background: ${P.BG1}; .type-image { width: 20px; @@ -89,17 +89,17 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P .title { margin: 20px 0 8px; } -`,Es=B(g1)` +`,xs=B(g1)` && { background: rgba(0, 0, 0, 0.15); } -`,w1=({count:e=7})=>h.jsx(h.Fragment,{children:Array(e).fill(null).map((t,r)=>h.jsx(w$,{children:h.jsxs(F,{direction:"row",children:[h.jsx(F,{align:"center",pr:16,children:h.jsx(Es,{animation:"wave",height:64,variant:"rectangular",width:64})}),h.jsxs(F,{grow:1,shrink:1,children:[h.jsx(Es,{height:10,variant:"rectangular",width:56}),h.jsx(Es,{className:"title",height:10,variant:"rectangular",width:262}),h.jsx(Es,{height:10,variant:"rectangular",width:149})]})]})},r))});B(F)` +`,w1=({count:e=7})=>m.jsx(m.Fragment,{children:Array(e).fill(null).map((t,r)=>m.jsx(w$,{children:m.jsxs(F,{direction:"row",children:[m.jsx(F,{align:"center",pr:16,children:m.jsx(xs,{animation:"wave",height:64,variant:"rectangular",width:64})}),m.jsxs(F,{grow:1,shrink:1,children:[m.jsx(xs,{height:10,variant:"rectangular",width:56}),m.jsx(xs,{className:"title",height:10,variant:"rectangular",width:262}),m.jsx(xs,{height:10,variant:"rectangular",width:149})]})]})},r))});B(F)` font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 500; line-height: 17px; - color: ${M.white}; + color: ${P.white}; margin: 16px 0; display: -webkit-box; -webkit-line-clamp: 2; /* Limit to two lines */ @@ -108,7 +108,7 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P white-space: normal; `;const _$=B(pt)` overflow: hidden; - color: ${M.GRAY6}; + color: ${P.GRAY6}; text-overflow: ellipsis; font-family: Barlow; font-size: 11px; @@ -133,23 +133,23 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P width: 4px; flex-shrink: 0; height: 4px; - background: ${M.GRAY6}; + background: ${P.GRAY6}; } `;const T$=KL` 0% { - background-color: ${M.SECONDARY_BLUE}; + background-color: ${P.SECONDARY_BLUE}; color: white; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); } 100% { background-color: transparent; - color: ${M.SECONDARY_BLUE}; + color: ${P.SECONDARY_BLUE}; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); } `,A$=B.span` padding: 0; margin: 0; - color: ${M.SECONDARY_BLUE}; + color: ${P.SECONDARY_BLUE}; background-color: transparent; animation: ${({animate:e})=>e?T$:"none"} 0.5s ease-in-out forwards; animation-play-state: ${({animate:e})=>e?"running":"paused"}; @@ -161,13 +161,13 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P } &:active { - background-color: ${M.AI_HIGHLIGHT}; + background-color: ${P.AI_HIGHLIGHT}; border-radius: 4px; text-decoration: none; } -`;function O$(e,t,r,n){if(!r||r.length===0)return e;const i=r.map(l=>l.entity).filter(l=>typeof l=="string").sort((l,c)=>c.length-l.length).map(l=>k$(l)),o=new RegExp(`(${i.join("|")})`,"gi"),s=e.split(o);return h.jsx(h.Fragment,{children:s.map((l,c)=>{const d=r.find(p=>p.entity.toLowerCase()===l.toLowerCase());if(d){const p=`${d.entity}-${c}`;return h.jsx(R$,{title:d.description,children:h.jsx(A$,{animate:!!n,onClick:()=>t(l),children:l})},p)}return l})})}function k$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const R$=B(e=>h.jsx(d$,{classes:{popper:e.className},...e}))` +`;function O$(e,t,r,n){if(!r||r.length===0)return e;const i=r.map(l=>l.entity).filter(l=>typeof l=="string").sort((l,c)=>c.length-l.length).map(l=>k$(l)),o=new RegExp(`(${i.join("|")})`,"gi"),s=e.split(o);return m.jsx(m.Fragment,{children:s.map((l,c)=>{const d=r.find(p=>p.entity.toLowerCase()===l.toLowerCase());if(d){const p=`${d.entity}-${c}`;return m.jsx(R$,{title:d.description,children:m.jsx(A$,{animate:!!n,onClick:()=>t(l),children:l})},p)}return l})})}function k$(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const R$=B(e=>m.jsx(d$,{classes:{popper:e.className},...e}))` & .MuiTooltip-tooltip { - background-color: ${M.BG4}; + background-color: ${P.BG4}; color: white; font-family: Barlow; font-size: 14px; @@ -188,10 +188,10 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P font-size: 14px; font-weight: 400; line-height: 19.6px; -`,C$=({answer:e,entities:t,handleLoaded:r,hasBeenRendered:n})=>{const{fetchData:a,setAbortRequests:i}=Pr(v=>v),{setBudget:o}=Ul(v=>v),[s,l]=P.useState(""),[c,d]=P.useState(t),[p,g]=P.useState(!0);P.useEffect(()=>{let v;if(!(!e||n)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(v);g(!0),r()}},[e,s,r,n]),P.useEffect(()=>{s||n&&l(e)},[e,s,n]);const m=v=>{a(o,i,v)};P.useEffect(()=>{t&&c!==t&&d(t)},[t,c]);const b=()=>{g(!1)},S=O$(s,m,c,p);return h.jsx(I$,{onMouseMove:b,children:h.jsx(N$,{children:S})})},D$=({questions:e})=>{const{fetchData:t,setAbortRequests:r}=Pr(o=>o),[n]=Ul(o=>[o.setBudget]),a=KO(),i=o=>{a||o&&t(n,r,o)};return e!=null&&e.length?h.jsxs(j$,{children:[h.jsx(Ca,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsxs(M$,{className:"heading",direction:"row",children:[h.jsx("div",{className:"heading__icon",children:h.jsx(wM,{})}),h.jsx(P$,{children:"More on this"})]})}),h.jsx(Ca,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsx(F,{children:e.map(o=>h.jsxs($$,{align:"center",className:dn({disabled:a}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[h.jsx("span",{children:o}),h.jsx(F,{className:dn({disabled:a},"icon"),children:h.jsx(yb,{})})]},o))})})]}):null},L$=P.memo(D$),M$=B(F)` +`,C$=({answer:e,entities:t,handleLoaded:r,hasBeenRendered:n})=>{const{fetchData:a,setAbortRequests:i}=Pr(v=>v),{setBudget:o}=Gl(v=>v),[s,l]=M.useState(""),[c,d]=M.useState(t),[p,g]=M.useState(!0);M.useEffect(()=>{let v;if(!(!e||n)){if(s.length{l(e.slice(0,s.length+1))},10),()=>clearTimeout(v);g(!0),r()}},[e,s,r,n]),M.useEffect(()=>{s||n&&l(e)},[e,s,n]);const h=v=>{a(o,i,v)};M.useEffect(()=>{t&&c!==t&&d(t)},[t,c]);const b=()=>{g(!1)},S=O$(s,h,c,p);return m.jsx(I$,{onMouseMove:b,children:m.jsx(N$,{children:S})})},D$=({questions:e})=>{const{setAbortRequests:t}=Pr(o=>o),[r]=Gl(o=>[o.setBudget]),n=XO(),a=Mo(o=>o.fetchAIData),i=o=>{n||o&&a(r,t,o)};return e!=null&&e.length?m.jsxs(j$,{children:[m.jsx(Ca,{direction:"right",in:!0,mountOnEnter:!0,children:m.jsxs(M$,{className:"heading",direction:"row",children:[m.jsx("div",{className:"heading__icon",children:m.jsx(wM,{})}),m.jsx(P$,{children:"More on this"})]})}),m.jsx(Ca,{direction:"right",in:!0,mountOnEnter:!0,children:m.jsx(F,{children:e.map(o=>m.jsxs($$,{align:"center",className:dn({disabled:n}),direction:"row",justify:"space-between",onClick:()=>i(o),children:[m.jsx("span",{children:o}),m.jsx(F,{className:dn({disabled:n},"icon"),children:m.jsx(vb,{})})]},o))})})]}):null},L$=M.memo(D$),M$=B(F)` &.heading { font-weight: 600; - color: ${M.white}; + color: ${P.white}; font-size: 14px; .heading__icon { @@ -201,14 +201,14 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P .heading__count { font-weight: 400; - color: ${M.GRAY7}; + color: ${P.GRAY7}; margin-left: 16px; } } `,P$=B.span` margin-top: 1px; `,$$=B(F)` - color: ${M.GRAY3}; + color: ${P.GRAY3}; padding: 12px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.3); &:last-child { @@ -221,52 +221,52 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P &.disabled { cursor: default; &:hover { - color: ${M.GRAY3}; + color: ${P.GRAY3}; .icon { - color: ${M.GRAY7}; + color: ${P.GRAY7}; cursor: default; } } } &:hover { - color: ${M.white}; + color: ${P.white}; .icon { - color: ${M.white}; + color: ${P.white}; } } &:active { - color: ${M.SECONDARY_BLUE}; + color: ${P.SECONDARY_BLUE}; .icon { - color: ${M.SECONDARY_BLUE}; + color: ${P.SECONDARY_BLUE}; } } .icon { font-size: 20px; - color: ${M.GRAY7}; + color: ${P.GRAY7}; cursor: pointer; } `,j$=B(F)` padding: 0 24px 24px 24px; -`;function qr(e,t){const r=t!=null?String(t).trim():"";if(!r)return e;const n=new RegExp(`(${r})`,"gi"),a=e.split(n);return h.jsx(h.Fragment,{children:a.map((i,o)=>n.test(i)?h.jsx(F$,{children:i},o):i)})}const F$=B.span` +`;function qr(e,t){const r=t!=null?String(t).trim():"";if(!r)return e;const n=new RegExp(`(${r})`,"gi"),a=e.split(n);return m.jsx(m.Fragment,{children:a.map((i,o)=>n.test(i)?m.jsx(F$,{children:i},o):i)})}const F$=B.span` background-color: rgba(0, 123, 255, 0.4); padding: 2; margin: 0; border-radius: 3px; color: inherit; -`,Vl=({amt:e})=>h.jsxs(B$,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx("div",{className:"icon",children:h.jsx(i1,{})}),h.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),h.jsx("div",{className:"text",children:"sat"})]}),B$=B(F)` +`,Yl=({amt:e})=>m.jsxs(B$,{align:"center",direction:"row",justify:"flex-start",children:[m.jsx("div",{className:"icon",children:m.jsx(i1,{})}),m.jsx("div",{className:"value","data-testid":"boost-amt",children:e}),m.jsx("div",{className:"text",children:"sat"})]}),B$=B(F)` font-size: 13px; font-style: normal; font-weight: 500; - color: ${M.GRAY7}; + color: ${P.GRAY7}; .icon { width: 16px; height: 16px; border-radius: 2px; - background: ${M.GRAY7}; - color: ${M.BG1}; + background: ${P.GRAY7}; + color: ${P.BG1}; font-size: 12px; display: flex; align-items: center; @@ -275,15 +275,15 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P .value { margin: 0 4px 0 8px; - color: ${M.white}; + color: ${P.white}; } -`,U$=({boostCount:e,date:t,imageUrl:r,showTitle:n,type:a,newName:i,sourceLink:o,node:s})=>{var O,_;const l=Ct(w=>w.currentSearch),{getNodeKeysByType:c}=bb(w=>w),p=qr(String(a==="show"?"":n),l),g=a?(c(a)||"").split("-"):[],{properties:m={}}=s,[b=""]=g.map(w=>m[w]||""),v=qr(String(b||i),l);return h.jsxs(F,{align:"center",direction:"row",justify:"center",children:[r&&h.jsx(F,{align:"center",pr:16,children:h.jsx($r,{size:80,src:r,type:a||""})}),h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsx(F,{align:"center",direction:"row",children:a&&h.jsx(ri,{type:a})}),o&&h.jsx(z$,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),v&&h.jsx(Hv,{"data-testid":"episode-name",children:v}),((O=s==null?void 0:s.properties)==null?void 0:O.summary)&&h.jsx(Hv,{"data-testid":"episode-description",children:(_=s==null?void 0:s.properties)==null?void 0:_.summary}),h.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&h.jsx(_1,{children:ei.unix(t).fromNow()}),!!p&&h.jsx(G$,{children:p}),e>0&&h.jsx(F,{style:{marginLeft:"auto"},children:h.jsx(Vl,{amt:e})})]})]})]})},Hv=B(F)` +`,U$=({boostCount:e,date:t,imageUrl:r,showTitle:n,type:a,newName:i,sourceLink:o,node:s})=>{var O,_;const l=Ct(w=>w.currentSearch),{getNodeKeysByType:c}=yb(w=>w),p=qr(String(a==="show"?"":n),l),g=a?(c(a)||"").split("-"):[],{properties:h={}}=s,[b=""]=g.map(w=>h[w]||""),v=qr(String(b||i),l);return m.jsxs(F,{align:"center",direction:"row",justify:"center",children:[r&&m.jsx(F,{align:"center",pr:16,children:m.jsx($r,{size:80,src:r,type:a||""})}),m.jsxs(F,{grow:1,shrink:1,children:[m.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[m.jsx(F,{align:"center",direction:"row",children:a&&m.jsx(ri,{type:a})}),o&&m.jsx(z$,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:w=>w.stopPropagation(),target:"_blank",children:m.jsx(vn,{})})]}),v&&m.jsx(Wv,{"data-testid":"episode-name",children:v}),((O=s==null?void 0:s.properties)==null?void 0:O.summary)&&m.jsx(Wv,{"data-testid":"episode-description",children:(_=s==null?void 0:s.properties)==null?void 0:_.summary}),m.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[!!t&&m.jsx(_1,{children:ei.unix(t).fromNow()}),!!p&&m.jsx(G$,{children:p}),e>0&&m.jsx(F,{style:{marginLeft:"auto"},children:m.jsx(Yl,{amt:e})})]})]})]})},Wv=B(F)` font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 400; line-height: 17px; - color: ${M.white}; + color: ${P.white}; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; /* Limit to two lines */ @@ -293,7 +293,7 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P letter-spacing: 0.2px; `,_1=B(pt)` overflow: hidden; - color: ${M.GRAY6}; + color: ${P.GRAY6}; text-overflow: ellipsis; font-family: Barlow; font-size: 12px; @@ -309,7 +309,7 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P align-items: center; svg { - color: ${M.mainBottomIcons}; + color: ${P.mainBottomIcons}; margin-right: 10px; align-self: center; } @@ -350,7 +350,7 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P width: 4px; flex-shrink: 0; height: 4px; - background: ${M.GRAY6}; + background: ${P.GRAY6}; } &.is-show { @@ -366,13 +366,13 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P line-height: 17px; /* 130.769% */ } `,z$=B.a` - color: ${M.GRAY6}; + color: ${P.GRAY6}; font-size: 16px; height: 16px; display: flex; gap: 5px; align-items: center; -`,q$=({imageUrl:e,name:t,sourceLink:r,date:n})=>h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",children:[e&&h.jsx(H$,{children:h.jsx($r,{rounded:!0,size:64,src:e||"",type:"image"})}),t&&h.jsx(W$,{children:t})]}),r&&h.jsx(Da,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!n&&h.jsx(oa,{children:ei.unix(n).fromNow()})})]}),H$=B(F)` +`,q$=({imageUrl:e,name:t,sourceLink:r,date:n})=>m.jsxs(F,{grow:1,shrink:1,children:[m.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[m.jsxs(F,{align:"center",direction:"row",children:[e&&m.jsx(H$,{children:m.jsx($r,{rounded:!0,size:64,src:e||"",type:"image"})}),t&&m.jsx(W$,{children:t})]}),r&&m.jsx(Da,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:m.jsx(vn,{})})]}),m.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!n&&m.jsx(oa,{children:ei.unix(n).fromNow()})})]}),H$=B(F)` img { width: 64px; height: 64px; @@ -381,27 +381,27 @@ import{z as HO,ag as xa,i as Mv,ah as GL,r as P,ai as WO,Z as zs,$ as zL,a2 as P } margin-right: 16px; `,W$=B(F)` - color: ${M.white}; + color: ${P.white}; font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 600; line-height: 17px; -`;var T1={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(Tt,function(){var r;function n(){return r.apply(null,arguments)}function a(u){r=u}function i(u){return u instanceof Array||Object.prototype.toString.call(u)==="[object Array]"}function o(u){return u!=null&&Object.prototype.toString.call(u)==="[object Object]"}function s(u,f){return Object.prototype.hasOwnProperty.call(u,f)}function l(u){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(u).length===0;var f;for(f in u)if(s(u,f))return!1;return!0}function c(u){return u===void 0}function d(u){return typeof u=="number"||Object.prototype.toString.call(u)==="[object Number]"}function p(u){return u instanceof Date||Object.prototype.toString.call(u)==="[object Date]"}function g(u,f){var y=[],T,R=u.length;for(T=0;T>>0,T;for(T=0;T0)for(y=0;y<$;y++)T=A[y],R=f[T],c(R)||(u[T]=R);return u}function k(u){E(this,u),this._d=new Date(u._d!=null?u._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),x===!1&&(x=!0,n.updateOffset(this),x=!1)}function N(u){return u instanceof k||u!=null&&u._isAMomentObject!=null}function I(u){n.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+u)}function D(u,f){var y=!0;return m(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,u),y){var T=[],R,$,Y,me=arguments.length;for($=0;$>>0,T;for(T=0;T0)for(y=0;y<$;y++)T=A[y],R=f[T],c(R)||(u[T]=R);return u}function k(u){E(this,u),this._d=new Date(u._d!=null?u._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),x===!1&&(x=!0,n.updateOffset(this),x=!1)}function N(u){return u instanceof k||u!=null&&u._isAMomentObject!=null}function I(u){n.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+u)}function D(u,f){var y=!0;return h(function(){if(n.deprecationHandler!=null&&n.deprecationHandler(null,u),y){var T=[],R,$,Y,me=arguments.length;for($=0;$=0;return($?y?"+":"":"-")+Math.pow(10,Math.max(0,R)).toString().substr(1)+T}var ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ue={},Se={};function Q(u,f,y,T){var R=T;typeof T=="string"&&(R=function(){return this[T]()}),u&&(Se[u]=R),f&&(Se[f[0]]=function(){return J(R.apply(this,arguments),f[1],f[2])}),y&&(Se[y]=function(){return this.localeData().ordinal(R.apply(this,arguments),u)})}function Ie(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Ue(u){var f=u.match(ae),y,T;for(y=0,T=f.length;y=0&&re.test(u);)u=u.replace(re,T),re.lastIndex=0,y-=1;return u}var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ie(u){var f=this._longDateFormat[u],y=this._longDateFormat[u.toUpperCase()];return f||!y?f:(this._longDateFormat[u]=y.match(ae).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[u])}var X="Invalid date";function Ee(){return this._invalidDate}var fe="%d",he=/\d{1,2}/;function je(u){return this._ordinal.replace("%d",u)}var nt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function et(u,f,y,T){var R=this._relativeTime[y];return q(R)?R(u,f,y,T):R.replace(/%d/i,u)}function tr(u,f){var y=this._relativeTime[u>0?"future":"past"];return q(y)?y(f):y.replace(/%s/i,f)}var Pe={};function $e(u,f){var y=u.toLowerCase();Pe[y]=Pe[y+"s"]=Pe[f]=u}function Ye(u){return typeof u=="string"?Pe[u]||Pe[u.toLowerCase()]:void 0}function $t(u){var f={},y,T;for(T in u)s(u,T)&&(y=Ye(T),y&&(f[y]=u[T]));return f}var Kt={};function te(u,f){Kt[u]=f}function de(u){var f=[],y;for(y in u)s(u,y)&&f.push({unit:y,priority:Kt[y]});return f.sort(function(T,R){return T.priority-R.priority}),f}function ye(u){return u%4===0&&u%100!==0||u%400===0}function ve(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function ge(u){var f=+u,y=0;return f!==0&&isFinite(f)&&(y=ve(f)),y}function qe(u,f){return function(y){return y!=null?(Ge(this,u,y),n.updateOffset(this,f),this):De(this,u)}}function De(u,f){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+f]():NaN}function Ge(u,f,y){u.isValid()&&!isNaN(y)&&(f==="FullYear"&&ye(u.year())&&u.month()===1&&u.date()===29?(y=ge(y),u._d["set"+(u._isUTC?"UTC":"")+f](y,u.month(),ts(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+f](y))}function Je(u){return u=Ye(u),q(this[u])?this[u]():this}function jt(u,f){if(typeof u=="object"){u=$t(u);var y=de(u),T,R=y.length;for(T=0;T68?1900:2e3)};var nv=qe("FullYear",!0);function AN(){return ye(this.year())}function ON(u,f,y,T,R,$,Y){var me;return u<100&&u>=0?(me=new Date(u+400,f,y,T,R,$,Y),isFinite(me.getFullYear())&&me.setFullYear(u)):me=new Date(u,f,y,T,R,$,Y),me}function ci(u){var f,y;return u<100&&u>=0?(y=Array.prototype.slice.call(arguments),y[0]=u+400,f=new Date(Date.UTC.apply(null,y)),isFinite(f.getUTCFullYear())&&f.setUTCFullYear(u)):f=new Date(Date.UTC.apply(null,arguments)),f}function rs(u,f,y){var T=7+f-y,R=(7+ci(u,0,T).getUTCDay()-f)%7;return-R+T-1}function av(u,f,y,T,R){var $=(7+y-T)%7,Y=rs(u,T,R),me=1+7*(f-1)+$+Y,Te,Ke;return me<=0?(Te=u-1,Ke=ui(Te)+me):me>ui(u)?(Te=u+1,Ke=me-ui(u)):(Te=u,Ke=me),{year:Te,dayOfYear:Ke}}function di(u,f,y){var T=rs(u.year(),f,y),R=Math.floor((u.dayOfYear()-T-1)/7)+1,$,Y;return R<1?(Y=u.year()-1,$=R+tn(Y,f,y)):R>tn(u.year(),f,y)?($=R-tn(u.year(),f,y),Y=u.year()+1):(Y=u.year(),$=R),{week:$,year:Y}}function tn(u,f,y){var T=rs(u,f,y),R=rs(u+1,f,y);return(ui(u)-T+R)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),$e("week","w"),$e("isoWeek","W"),te("week",5),te("isoWeek",5),le("w",He),le("ww",He,ze),le("W",He),le("WW",He,ze),nr(["w","ww","W","WW"],function(u,f,y,T){f[T.substr(0,1)]=ge(u)});function kN(u){return di(u,this._week.dow,this._week.doy).week}var RN={dow:0,doy:6};function IN(){return this._week.dow}function NN(){return this._week.doy}function CN(u){var f=this.localeData().week(this);return u==null?f:this.add((u-f)*7,"d")}function DN(u){var f=di(this,1,4).week;return u==null?f:this.add((u-f)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),Q("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),Q("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),$e("day","d"),$e("weekday","e"),$e("isoWeekday","E"),te("day",11),te("weekday",11),te("isoWeekday",11),le("d",He),le("e",He),le("E",He),le("dd",function(u,f){return f.weekdaysMinRegex(u)}),le("ddd",function(u,f){return f.weekdaysShortRegex(u)}),le("dddd",function(u,f){return f.weekdaysRegex(u)}),nr(["dd","ddd","dddd"],function(u,f,y,T){var R=y._locale.weekdaysParse(u,T,y._strict);R!=null?f.d=R:v(y).invalidWeekday=u}),nr(["d","e","E"],function(u,f,y,T){f[T]=ge(u)});function LN(u,f){return typeof u!="string"?u:isNaN(u)?(u=f.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function MN(u,f){return typeof u=="string"?f.weekdaysParse(u)%7||7:isNaN(u)?null:u}function Uu(u,f){return u.slice(f,7).concat(u.slice(0,f))}var PN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),iv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$N="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jN=Ar,FN=Ar,BN=Ar;function UN(u,f){var y=i(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(f)?"format":"standalone"];return u===!0?Uu(y,this._week.dow):u?y[u.day()]:y}function GN(u){return u===!0?Uu(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function zN(u){return u===!0?Uu(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function qN(u,f,y){var T,R,$,Y=u.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)$=b([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays($,"").toLocaleLowerCase();return y?f==="dddd"?(R=gt.call(this._weekdaysParse,Y),R!==-1?R:null):f==="ddd"?(R=gt.call(this._shortWeekdaysParse,Y),R!==-1?R:null):(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null):f==="dddd"?(R=gt.call(this._weekdaysParse,Y),R!==-1||(R=gt.call(this._shortWeekdaysParse,Y),R!==-1)?R:(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null)):f==="ddd"?(R=gt.call(this._shortWeekdaysParse,Y),R!==-1||(R=gt.call(this._weekdaysParse,Y),R!==-1)?R:(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null)):(R=gt.call(this._minWeekdaysParse,Y),R!==-1||(R=gt.call(this._weekdaysParse,Y),R!==-1)?R:(R=gt.call(this._shortWeekdaysParse,Y),R!==-1?R:null))}function HN(u,f,y){var T,R,$;if(this._weekdaysParseExact)return qN.call(this,u,f,y);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(R=b([2e3,1]).day(T),y&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(R,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(R,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(R,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||($="^"+this.weekdays(R,"")+"|^"+this.weekdaysShort(R,"")+"|^"+this.weekdaysMin(R,""),this._weekdaysParse[T]=new RegExp($.replace(".",""),"i")),y&&f==="dddd"&&this._fullWeekdaysParse[T].test(u))return T;if(y&&f==="ddd"&&this._shortWeekdaysParse[T].test(u))return T;if(y&&f==="dd"&&this._minWeekdaysParse[T].test(u))return T;if(!y&&this._weekdaysParse[T].test(u))return T}}function WN(u){if(!this.isValid())return u!=null?this:NaN;var f=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=LN(u,this.localeData()),this.add(u-f,"d")):f}function VN(u){if(!this.isValid())return u!=null?this:NaN;var f=(this.day()+7-this.localeData()._week.dow)%7;return u==null?f:this.add(u-f,"d")}function YN(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var f=MN(u,this.localeData());return this.day(this.day()%7?f:f-7)}else return this.day()||7}function KN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=jN),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function XN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=FN),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ZN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Gu.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=BN),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Gu(){function u(Ut,sn){return sn.length-Ut.length}var f=[],y=[],T=[],R=[],$,Y,me,Te,Ke;for($=0;$<7;$++)Y=b([2e3,1]).day($),me=ut(this.weekdaysMin(Y,"")),Te=ut(this.weekdaysShort(Y,"")),Ke=ut(this.weekdays(Y,"")),f.push(me),y.push(Te),T.push(Ke),R.push(me),R.push(Te),R.push(Ke);f.sort(u),y.sort(u),T.sort(u),R.sort(u),this._weekdaysRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function zu(){return this.hours()%12||12}function JN(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,zu),Q("k",["kk",2],0,JN),Q("hmm",0,0,function(){return""+zu.apply(this)+J(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+zu.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)});function ov(u,f){Q(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),f)})}ov("a",!0),ov("A",!1),$e("hour","h"),te("hour",13);function sv(u,f){return f._meridiemParse}le("a",sv),le("A",sv),le("H",He),le("h",He),le("k",He),le("HH",He,ze),le("hh",He,ze),le("kk",He,ze),le("hmm",Bn),le("hmmss",Jr),le("Hmm",Bn),le("Hmmss",Jr),Oe(["H","HH"],tt),Oe(["k","kk"],function(u,f,y){var T=ge(u);f[tt]=T===24?0:T}),Oe(["a","A"],function(u,f,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Oe(["h","hh"],function(u,f,y){f[tt]=ge(u),v(y).bigHour=!0}),Oe("hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T)),v(y).bigHour=!0}),Oe("hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R)),v(y).bigHour=!0}),Oe("Hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T))}),Oe("Hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R))});function QN(u){return(u+"").toLowerCase().charAt(0)==="p"}var eC=/[ap]\.?m?\.?/i,tC=qe("Hours",!0);function rC(u,f,y){return u>11?y?"pm":"PM":y?"am":"AM"}var lv={calendar:G,longDateFormat:oe,invalidDate:X,ordinal:fe,dayOfMonthOrdinalParse:he,relativeTime:nt,months:mN,monthsShort:Jy,week:RN,weekdays:PN,weekdaysMin:$N,weekdaysShort:iv,meridiemParse:eC},st={},pi={},fi;function nC(u,f){var y,T=Math.min(u.length,f.length);for(y=0;y0;){if(R=ns($.slice(0,y).join("-")),R)return R;if(T&&T.length>=y&&nC($,T)>=y-1)break;y--}f++}return fi}function iC(u){return u.match("^[^/\\\\]*$")!=null}function ns(u){var f=null,y;if(st[u]===void 0&&e&&e.exports&&iC(u))try{f=fi._abbr,y=XL,y("./locale/"+u),xn(f)}catch{st[u]=null}return st[u]}function xn(u,f){var y;return u&&(c(f)?y=rn(u):y=qu(u,f),y?fi=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),fi._abbr}function qu(u,f){if(f!==null){var y,T=lv;if(f.abbr=u,st[u]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),T=st[u]._config;else if(f.parentLocale!=null)if(st[f.parentLocale]!=null)T=st[f.parentLocale]._config;else if(y=ns(f.parentLocale),y!=null)T=y._config;else return pi[f.parentLocale]||(pi[f.parentLocale]=[]),pi[f.parentLocale].push({name:u,config:f}),null;return st[u]=new W(z(T,f)),pi[u]&&pi[u].forEach(function(R){qu(R.name,R.config)}),xn(u),st[u]}else return delete st[u],null}function oC(u,f){if(f!=null){var y,T,R=lv;st[u]!=null&&st[u].parentLocale!=null?st[u].set(z(st[u]._config,f)):(T=ns(u),T!=null&&(R=T._config),f=z(R,f),T==null&&(f.abbr=u),y=new W(f),y.parentLocale=st[u],st[u]=y),xn(u)}else st[u]!=null&&(st[u].parentLocale!=null?(st[u]=st[u].parentLocale,u===xn()&&xn(u)):st[u]!=null&&delete st[u]);return st[u]}function rn(u){var f;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return fi;if(!i(u)){if(f=ns(u),f)return f;u=[u]}return aC(u)}function sC(){return K(st)}function Hu(u){var f,y=u._a;return y&&v(u).overflow===-2&&(f=y[We]<0||y[We]>11?We:y[kt]<1||y[kt]>ts(y[_e],y[We])?kt:y[tt]<0||y[tt]>24||y[tt]===24&&(y[ct]!==0||y[Or]!==0||y[en]!==0)?tt:y[ct]<0||y[ct]>59?ct:y[Or]<0||y[Or]>59?Or:y[en]<0||y[en]>999?en:-1,v(u)._overflowDayOfYear&&(f<_e||f>kt)&&(f=kt),v(u)._overflowWeeks&&f===-1&&(f=ke),v(u)._overflowWeekday&&f===-1&&(f=Bt),v(u).overflow=f),u}var lC=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uC=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cC=/Z|[+-]\d\d(?::?\d\d)?/,as=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Wu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],dC=/^\/?Date\((-?\d+)/i,pC=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fC={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function cv(u){var f,y,T=u._i,R=lC.exec(T)||uC.exec(T),$,Y,me,Te,Ke=as.length,Ut=Wu.length;if(R){for(v(u).iso=!0,f=0,y=Ke;fui(Y)||u._dayOfYear===0)&&(v(u)._overflowDayOfYear=!0),y=ci(Y,0,u._dayOfYear),u._a[We]=y.getUTCMonth(),u._a[kt]=y.getUTCDate()),f=0;f<3&&u._a[f]==null;++f)u._a[f]=T[f]=R[f];for(;f<7;f++)u._a[f]=T[f]=u._a[f]==null?f===2?1:0:u._a[f];u._a[tt]===24&&u._a[ct]===0&&u._a[Or]===0&&u._a[en]===0&&(u._nextDay=!0,u._a[tt]=0),u._d=(u._useUTC?ci:ON).apply(null,T),$=u._useUTC?u._d.getUTCDay():u._d.getDay(),u._tzm!=null&&u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),u._nextDay&&(u._a[tt]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(v(u).weekdayMismatch=!0)}}function EC(u){var f,y,T,R,$,Y,me,Te,Ke;f=u._w,f.GG!=null||f.W!=null||f.E!=null?($=1,Y=4,y=pa(f.GG,u._a[_e],di(at(),1,4).year),T=pa(f.W,1),R=pa(f.E,1),(R<1||R>7)&&(Te=!0)):($=u._locale._week.dow,Y=u._locale._week.doy,Ke=di(at(),$,Y),y=pa(f.gg,u._a[_e],Ke.year),T=pa(f.w,Ke.week),f.d!=null?(R=f.d,(R<0||R>6)&&(Te=!0)):f.e!=null?(R=f.e+$,(f.e<0||f.e>6)&&(Te=!0)):R=$),T<1||T>tn(y,$,Y)?v(u)._overflowWeeks=!0:Te!=null?v(u)._overflowWeekday=!0:(me=av(y,T,R,$,Y),u._a[_e]=me.year,u._dayOfYear=me.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function Yu(u){if(u._f===n.ISO_8601){cv(u);return}if(u._f===n.RFC_2822){dv(u);return}u._a=[],v(u).empty=!0;var f=""+u._i,y,T,R,$,Y,me=f.length,Te=0,Ke,Ut;for(R=ee(u._f,u._locale).match(ae)||[],Ut=R.length,y=0;y0&&v(u).unusedInput.push(Y),f=f.slice(f.indexOf(T)+T.length),Te+=T.length),Se[$]?(T?v(u).empty=!1:v(u).unusedTokens.push($),da($,T,u)):u._strict&&!T&&v(u).unusedTokens.push($);v(u).charsLeftOver=me-Te,f.length>0&&v(u).unusedInput.push(f),u._a[tt]<=12&&v(u).bigHour===!0&&u._a[tt]>0&&(v(u).bigHour=void 0),v(u).parsedDateParts=u._a.slice(0),v(u).meridiem=u._meridiem,u._a[tt]=xC(u._locale,u._a[tt],u._meridiem),Ke=v(u).era,Ke!==null&&(u._a[_e]=u._locale.erasConvertYear(Ke,u._a[_e])),Vu(u),Hu(u)}function xC(u,f,y){var T;return y==null?f:u.meridiemHour!=null?u.meridiemHour(f,y):(u.isPM!=null&&(T=u.isPM(y),T&&f<12&&(f+=12),!T&&f===12&&(f=0)),f)}function wC(u){var f,y,T,R,$,Y,me=!1,Te=u._f.length;if(Te===0){v(u).invalidFormat=!0,u._d=new Date(NaN);return}for(R=0;Rthis?this:u:w()});function gv(u,f){var y,T;if(f.length===1&&i(f[0])&&(f=f[0]),!f.length)return at();for(y=f[0],T=1;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qC(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},f;return E(u,this),u=pv(u),u._a?(f=u._isUTC?b(u._a):at(u._a),this._isDSTShifted=this.isValid()&&MC(u._a,f.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function HC(){return this.isValid()?!this._isUTC:!1}function WC(){return this.isValid()?this._isUTC:!1}function mv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(u,f){var y=u,T=null,R,$,Y;return os(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:d(u)||!isNaN(+u)?(y={},f?y[f]=+u:y.milliseconds=+u):(T=VC.exec(u))?(R=T[1]==="-"?-1:1,y={y:0,d:ge(T[kt])*R,h:ge(T[tt])*R,m:ge(T[ct])*R,s:ge(T[Or])*R,ms:ge(Ku(T[en]*1e3))*R}):(T=YC.exec(u))?(R=T[1]==="-"?-1:1,y={y:qn(T[2],R),M:qn(T[3],R),w:qn(T[4],R),d:qn(T[5],R),h:qn(T[6],R),m:qn(T[7],R),s:qn(T[8],R)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(Y=KC(at(y.from),at(y.to)),y={},y.ms=Y.milliseconds,y.M=Y.months),$=new is(y),os(u)&&s(u,"_locale")&&($._locale=u._locale),os(u)&&s(u,"_isValid")&&($._isValid=u._isValid),$}kr.fn=is.prototype,kr.invalid=LC;function qn(u,f){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*f}function bv(u,f){var y={};return y.months=f.month()-u.month()+(f.year()-u.year())*12,u.clone().add(y.months,"M").isAfter(f)&&--y.months,y.milliseconds=+f-+u.clone().add(y.months,"M"),y}function KC(u,f){var y;return u.isValid()&&f.isValid()?(f=Zu(f,u),u.isBefore(f)?y=bv(u,f):(y=bv(f,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function yv(u,f){return function(y,T){var R,$;return T!==null&&!isNaN(+T)&&(j(f,"moment()."+f+"(period, number) is deprecated. Please use moment()."+f+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=y,y=T,T=$),R=kr(y,T),vv(this,R,u),this}}function vv(u,f,y,T){var R=f._milliseconds,$=Ku(f._days),Y=Ku(f._months);u.isValid()&&(T=T??!0,Y&&ev(u,De(u,"Month")+Y*y),$&&Ge(u,"Date",De(u,"Date")+$*y),R&&u._d.setTime(u._d.valueOf()+R*y),T&&n.updateOffset(u,$||Y))}var XC=yv(1,"add"),ZC=yv(-1,"subtract");function Sv(u){return typeof u=="string"||u instanceof String}function JC(u){return N(u)||p(u)||Sv(u)||d(u)||eD(u)||QC(u)||u===null||u===void 0}function QC(u){var f=o(u)&&!l(u),y=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],R,$,Y=T.length;for(R=0;Ry.valueOf():y.valueOf()9999?xe(y,f?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):q(Date.prototype.toISOString)?f?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xe(y,"Z")):xe(y,f?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gD(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",f="",y,T,R,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",f="Z"),y="["+u+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",R="-MM-DD[T]HH:mm:ss.SSS",$=f+'[")]',this.format(y+T+R+$)}function hD(u){u||(u=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var f=xe(this,u);return this.localeData().postformat(f)}function mD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({to:this,from:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function bD(u){return this.from(at(),u)}function yD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({from:this,to:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function vD(u){return this.to(at(),u)}function Ev(u){var f;return u===void 0?this._locale._abbr:(f=rn(u),f!=null&&(this._locale=f),this)}var xv=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(u){return u===void 0?this.localeData():this.locale(u)});function wv(){return this._locale}var ls=1e3,fa=60*ls,us=60*fa,_v=(365*400+97)*24*us;function ga(u,f){return(u%f+f)%f}function Tv(u,f,y){return u<100&&u>=0?new Date(u+400,f,y)-_v:new Date(u,f,y).valueOf()}function Av(u,f,y){return u<100&&u>=0?Date.UTC(u+400,f,y)-_v:Date.UTC(u,f,y)}function SD(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Av:Tv,u){case"year":f=y(this.year(),0,1);break;case"quarter":f=y(this.year(),this.month()-this.month()%3,1);break;case"month":f=y(this.year(),this.month(),1);break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":f=y(this.year(),this.month(),this.date());break;case"hour":f=this._d.valueOf(),f-=ga(f+(this._isUTC?0:this.utcOffset()*fa),us);break;case"minute":f=this._d.valueOf(),f-=ga(f,fa);break;case"second":f=this._d.valueOf(),f-=ga(f,ls);break}return this._d.setTime(f),n.updateOffset(this,!0),this}function ED(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Av:Tv,u){case"year":f=y(this.year()+1,0,1)-1;break;case"quarter":f=y(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":f=y(this.year(),this.month()+1,1)-1;break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":f=y(this.year(),this.month(),this.date()+1)-1;break;case"hour":f=this._d.valueOf(),f+=us-ga(f+(this._isUTC?0:this.utcOffset()*fa),us)-1;break;case"minute":f=this._d.valueOf(),f+=fa-ga(f,fa)-1;break;case"second":f=this._d.valueOf(),f+=ls-ga(f,ls)-1;break}return this._d.setTime(f),n.updateOffset(this,!0),this}function xD(){return this._d.valueOf()-(this._offset||0)*6e4}function wD(){return Math.floor(this.valueOf()/1e3)}function _D(){return new Date(this.valueOf())}function TD(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function AD(){var u=this;return{years:u.year(),months:u.month(),date:u.date(),hours:u.hours(),minutes:u.minutes(),seconds:u.seconds(),milliseconds:u.milliseconds()}}function OD(){return this.isValid()?this.toISOString():null}function kD(){return _(this)}function RD(){return m({},v(this))}function ID(){return v(this).overflow}function ND(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),le("N",Qu),le("NN",Qu),le("NNN",Qu),le("NNNN",GD),le("NNNNN",zD),Oe(["N","NN","NNN","NNNN","NNNNN"],function(u,f,y,T){var R=y._locale.erasParse(u,T,y._strict);R?v(y).era=R:v(y).invalidEra=u}),le("y",_r),le("yy",_r),le("yyy",_r),le("yyyy",_r),le("yo",qD),Oe(["y","yy","yyy","yyyy"],_e),Oe(["yo"],function(u,f,y,T){var R;y._locale._eraYearOrdinalRegex&&(R=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?f[_e]=y._locale.eraYearOrdinalParse(u,R):f[_e]=parseInt(u,10)});function CD(u,f){var y,T,R,$=this._eras||rn("en")._eras;for(y=0,T=$.length;y=0)return $[T]}function LD(u,f){var y=u.since<=u.until?1:-1;return f===void 0?n(u.since).year():n(u.since).year()+(f-u.offset)*y}function MD(){var u,f,y,T=this.localeData().eras();for(u=0,f=T.length;u$&&(f=$),ZD.call(this,u,f,y,T,R))}function ZD(u,f,y,T,R){var $=av(u,f,y,T,R),Y=ci($.year,0,$.dayOfYear);return this.year(Y.getUTCFullYear()),this.month(Y.getUTCMonth()),this.date(Y.getUTCDate()),this}Q("Q",0,"Qo","quarter"),$e("quarter","Q"),te("quarter",7),le("Q",rr),Oe("Q",function(u,f){f[We]=(ge(u)-1)*3});function JD(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),$e("date","D"),te("date",9),le("D",He),le("DD",He,ze),le("Do",function(u,f){return u?f._dayOfMonthOrdinalParse||f._ordinalParse:f._dayOfMonthOrdinalParseLenient}),Oe(["D","DD"],kt),Oe("Do",function(u,f){f[kt]=ge(u.match(He)[0])});var kv=qe("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),$e("dayOfYear","DDD"),te("dayOfYear",4),le("DDD",xr),le("DDDD",Kr),Oe(["DDD","DDDD"],function(u,f,y){y._dayOfYear=ge(u)});function QD(u){var f=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?f:this.add(u-f,"d")}Q("m",["mm",2],0,"minute"),$e("minute","m"),te("minute",14),le("m",He),le("mm",He,ze),Oe(["m","mm"],ct);var eL=qe("Minutes",!1);Q("s",["ss",2],0,"second"),$e("second","s"),te("second",15),le("s",He),le("ss",He,ze),Oe(["s","ss"],Or);var tL=qe("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$e("millisecond","ms"),te("millisecond",16),le("S",xr,rr),le("SS",xr,ze),le("SSS",xr,Kr);var wn,Rv;for(wn="SSSS";wn.length<=9;wn+="S")le(wn,_r);function rL(u,f){f[en]=ge(("0."+u)*1e3)}for(wn="S";wn.length<=9;wn+="S")Oe(wn,rL);Rv=qe("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function nL(){return this._isUTC?"UTC":""}function aL(){return this._isUTC?"Coordinated Universal Time":""}var ne=k.prototype;ne.add=XC,ne.calendar=nD,ne.clone=aD,ne.diff=dD,ne.endOf=ED,ne.format=hD,ne.from=mD,ne.fromNow=bD,ne.to=yD,ne.toNow=vD,ne.get=Je,ne.invalidAt=ID,ne.isAfter=iD,ne.isBefore=oD,ne.isBetween=sD,ne.isSame=lD,ne.isSameOrAfter=uD,ne.isSameOrBefore=cD,ne.isValid=kD,ne.lang=xv,ne.locale=Ev,ne.localeData=wv,ne.max=kC,ne.min=OC,ne.parsingFlags=RD,ne.set=jt,ne.startOf=SD,ne.subtract=ZC,ne.toArray=TD,ne.toObject=AD,ne.toDate=_D,ne.toISOString=fD,ne.inspect=gD,typeof Symbol<"u"&&Symbol.for!=null&&(ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ne.toJSON=OD,ne.toString=pD,ne.unix=wD,ne.valueOf=xD,ne.creationData=ND,ne.eraName=MD,ne.eraNarrow=PD,ne.eraAbbr=$D,ne.eraYear=jD,ne.year=nv,ne.isLeapYear=AN,ne.weekYear=HD,ne.isoWeekYear=WD,ne.quarter=ne.quarters=JD,ne.month=tv,ne.daysInMonth=wN,ne.week=ne.weeks=CN,ne.isoWeek=ne.isoWeeks=DN,ne.weeksInYear=KD,ne.weeksInWeekYear=XD,ne.isoWeeksInYear=VD,ne.isoWeeksInISOWeekYear=YD,ne.date=kv,ne.day=ne.days=WN,ne.weekday=VN,ne.isoWeekday=YN,ne.dayOfYear=QD,ne.hour=ne.hours=tC,ne.minute=ne.minutes=eL,ne.second=ne.seconds=tL,ne.millisecond=ne.milliseconds=Rv,ne.utcOffset=$C,ne.utc=FC,ne.local=BC,ne.parseZone=UC,ne.hasAlignedHourOffset=GC,ne.isDST=zC,ne.isLocal=HC,ne.isUtcOffset=WC,ne.isUtc=mv,ne.isUTC=mv,ne.zoneAbbr=nL,ne.zoneName=aL,ne.dates=D("dates accessor is deprecated. Use date instead.",kv),ne.months=D("months accessor is deprecated. Use month instead",tv),ne.years=D("years accessor is deprecated. Use year instead",nv),ne.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jC),ne.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qC);function iL(u){return at(u*1e3)}function oL(){return at.apply(null,arguments).parseZone()}function Iv(u){return u}var Fe=W.prototype;Fe.calendar=V,Fe.longDateFormat=ie,Fe.invalidDate=Ee,Fe.ordinal=je,Fe.preparse=Iv,Fe.postformat=Iv,Fe.relativeTime=et,Fe.pastFuture=tr,Fe.set=H,Fe.eras=CD,Fe.erasParse=DD,Fe.erasConvertYear=LD,Fe.erasAbbrRegex=BD,Fe.erasNameRegex=FD,Fe.erasNarrowRegex=UD,Fe.months=vN,Fe.monthsShort=SN,Fe.monthsParse=xN,Fe.monthsRegex=TN,Fe.monthsShortRegex=_N,Fe.week=kN,Fe.firstDayOfYear=NN,Fe.firstDayOfWeek=IN,Fe.weekdays=UN,Fe.weekdaysMin=zN,Fe.weekdaysShort=GN,Fe.weekdaysParse=HN,Fe.weekdaysRegex=KN,Fe.weekdaysShortRegex=XN,Fe.weekdaysMinRegex=ZN,Fe.isPM=QN,Fe.meridiem=rC;function ds(u,f,y,T){var R=rn(),$=b().set(T,f);return R[y]($,u)}function Nv(u,f,y){if(d(u)&&(f=u,u=void 0),u=u||"",f!=null)return ds(u,f,y,"month");var T,R=[];for(T=0;T<12;T++)R[T]=ds(u,T,y,"month");return R}function tc(u,f,y,T){typeof u=="boolean"?(d(f)&&(y=f,f=void 0),f=f||""):(f=u,y=f,u=!1,d(f)&&(y=f,f=void 0),f=f||"");var R=rn(),$=u?R._week.dow:0,Y,me=[];if(y!=null)return ds(f,(y+$)%7,T,"day");for(Y=0;Y<7;Y++)me[Y]=ds(f,(Y+$)%7,T,"day");return me}function sL(u,f){return Nv(u,f,"months")}function lL(u,f){return Nv(u,f,"monthsShort")}function uL(u,f,y){return tc(u,f,y,"weekdays")}function cL(u,f,y){return tc(u,f,y,"weekdaysShort")}function dL(u,f,y){return tc(u,f,y,"weekdaysMin")}xn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(u){var f=u%10,y=ge(u%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th";return u+y}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",xn),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",rn);var nn=Math.abs;function pL(){var u=this._data;return this._milliseconds=nn(this._milliseconds),this._days=nn(this._days),this._months=nn(this._months),u.milliseconds=nn(u.milliseconds),u.seconds=nn(u.seconds),u.minutes=nn(u.minutes),u.hours=nn(u.hours),u.months=nn(u.months),u.years=nn(u.years),this}function Cv(u,f,y,T){var R=kr(f,y);return u._milliseconds+=T*R._milliseconds,u._days+=T*R._days,u._months+=T*R._months,u._bubble()}function fL(u,f){return Cv(this,u,f,1)}function gL(u,f){return Cv(this,u,f,-1)}function Dv(u){return u<0?Math.floor(u):Math.ceil(u)}function hL(){var u=this._milliseconds,f=this._days,y=this._months,T=this._data,R,$,Y,me,Te;return u>=0&&f>=0&&y>=0||u<=0&&f<=0&&y<=0||(u+=Dv(rc(y)+f)*864e5,f=0,y=0),T.milliseconds=u%1e3,R=ve(u/1e3),T.seconds=R%60,$=ve(R/60),T.minutes=$%60,Y=ve($/60),T.hours=Y%24,f+=ve(Y/24),Te=ve(Lv(f)),y+=Te,f-=Dv(rc(Te)),me=ve(y/12),y%=12,T.days=f,T.months=y,T.years=me,this}function Lv(u){return u*4800/146097}function rc(u){return u*146097/4800}function mL(u){if(!this.isValid())return NaN;var f,y,T=this._milliseconds;if(u=Ye(u),u==="month"||u==="quarter"||u==="year")switch(f=this._days+T/864e5,y=this._months+Lv(f),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(f=this._days+Math.round(rc(this._months)),u){case"week":return f/7+T/6048e5;case"day":return f+T/864e5;case"hour":return f*24+T/36e5;case"minute":return f*1440+T/6e4;case"second":return f*86400+T/1e3;case"millisecond":return Math.floor(f*864e5)+T;default:throw new Error("Unknown unit "+u)}}function bL(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ge(this._months/12)*31536e6:NaN}function an(u){return function(){return this.as(u)}}var yL=an("ms"),vL=an("s"),SL=an("m"),EL=an("h"),xL=an("d"),wL=an("w"),_L=an("M"),TL=an("Q"),AL=an("y");function OL(){return kr(this)}function kL(u){return u=Ye(u),this.isValid()?this[u+"s"]():NaN}function Hn(u){return function(){return this.isValid()?this._data[u]:NaN}}var RL=Hn("milliseconds"),IL=Hn("seconds"),NL=Hn("minutes"),CL=Hn("hours"),DL=Hn("days"),LL=Hn("months"),ML=Hn("years");function PL(){return ve(this.days()/7)}var on=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $L(u,f,y,T,R){return R.relativeTime(f||1,!!y,u,T)}function jL(u,f,y,T){var R=kr(u).abs(),$=on(R.as("s")),Y=on(R.as("m")),me=on(R.as("h")),Te=on(R.as("d")),Ke=on(R.as("M")),Ut=on(R.as("w")),sn=on(R.as("y")),_n=$<=y.ss&&["s",$]||$0,_n[4]=T,$L.apply(null,_n)}function FL(u){return u===void 0?on:typeof u=="function"?(on=u,!0):!1}function BL(u,f){return ha[u]===void 0?!1:f===void 0?ha[u]:(ha[u]=f,u==="s"&&(ha.ss=f-1),!0)}function UL(u,f){if(!this.isValid())return this.localeData().invalidDate();var y=!1,T=ha,R,$;return typeof u=="object"&&(f=u,u=!1),typeof u=="boolean"&&(y=u),typeof f=="object"&&(T=Object.assign({},ha,f),f.s!=null&&f.ss==null&&(T.ss=f.s-1)),R=this.localeData(),$=jL(this,!y,T,R),y&&($=R.pastFuture(+this,$)),R.postformat($)}var nc=Math.abs;function ma(u){return(u>0)-(u<0)||+u}function ps(){if(!this.isValid())return this.localeData().invalidDate();var u=nc(this._milliseconds)/1e3,f=nc(this._days),y=nc(this._months),T,R,$,Y,me=this.asSeconds(),Te,Ke,Ut,sn;return me?(T=ve(u/60),R=ve(T/60),u%=60,T%=60,$=ve(y/12),y%=12,Y=u?u.toFixed(3).replace(/\.?0+$/,""):"",Te=me<0?"-":"",Ke=ma(this._months)!==ma(me)?"-":"",Ut=ma(this._days)!==ma(me)?"-":"",sn=ma(this._milliseconds)!==ma(me)?"-":"",Te+"P"+($?Ke+$+"Y":"")+(y?Ke+y+"M":"")+(f?Ut+f+"D":"")+(R||T||u?"T":"")+(R?sn+R+"H":"")+(T?sn+T+"M":"")+(u?sn+Y+"S":"")):"P0D"}var Le=is.prototype;Le.isValid=DC,Le.abs=pL,Le.add=fL,Le.subtract=gL,Le.as=mL,Le.asMilliseconds=yL,Le.asSeconds=vL,Le.asMinutes=SL,Le.asHours=EL,Le.asDays=xL,Le.asWeeks=wL,Le.asMonths=_L,Le.asQuarters=TL,Le.asYears=AL,Le.valueOf=bL,Le._bubble=hL,Le.clone=OL,Le.get=kL,Le.milliseconds=RL,Le.seconds=IL,Le.minutes=NL,Le.hours=CL,Le.days=DL,Le.weeks=PL,Le.months=LL,Le.years=ML,Le.humanize=UL,Le.toISOString=ps,Le.toString=ps,Le.toJSON=ps,Le.locale=Ev,Le.localeData=wv,Le.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ps),Le.lang=xv,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),le("x",Tr),le("X",li),Oe("X",function(u,f,y){y._d=new Date(parseFloat(u)*1e3)}),Oe("x",function(u,f,y){y._d=new Date(ge(u))});//! moment.js -return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.unix=iL,n.months=sL,n.isDate=p,n.locale=xn,n.invalid=w,n.duration=kr,n.isMoment=N,n.weekdays=uL,n.parseZone=oL,n.localeData=rn,n.isDuration=os,n.monthsShort=lL,n.weekdaysMin=dL,n.defineLocale=qu,n.updateLocale=oC,n.locales=sC,n.weekdaysShort=cL,n.normalizeUnits=Ye,n.relativeTimeRounding=FL,n.relativeTimeThreshold=BL,n.calendarFormat=rD,n.prototype=ne,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})})(T1);var V$=T1.exports;const A1=ft(V$),Y$=({text:e,type:t,sourceLink:r,date:n})=>h.jsxs(F,{direction:"column",children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsx(F,{align:"center",direction:"row",children:h.jsx(ri,{type:t})}),r&&h.jsx(Da,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(ij,{"data-testid":"episode-description",children:e}),h.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!n&&h.jsx(oa,{children:A1.unix(n).fromNow()})}),r&&h.jsxs(Da,{href:r,onClick:a=>a.stopPropagation(),target:"_blank",children:[h.jsx(o1,{}),h.jsx(K$,{children:r})]})]})]}),K$=B(pt)` +`+new Error().stack),y=!1}return f.apply(this,arguments)},f)}var L={};function j(u,f){n.deprecationHandler!=null&&n.deprecationHandler(u,f),L[u]||(I(f),L[u]=!0)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null;function q(u){return typeof Function<"u"&&u instanceof Function||Object.prototype.toString.call(u)==="[object Function]"}function H(u){var f,y;for(y in u)s(u,y)&&(f=u[y],q(f)?this[y]=f:this["_"+y]=f);this._config=u,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function z(u,f){var y=h({},u),T;for(T in f)s(f,T)&&(o(u[T])&&o(f[T])?(y[T]={},h(y[T],u[T]),h(y[T],f[T])):f[T]!=null?y[T]=f[T]:delete y[T]);for(T in u)s(u,T)&&!s(f,T)&&o(u[T])&&(y[T]=h({},y[T]));return y}function W(u){u!=null&&this.set(u)}var K;Object.keys?K=Object.keys:K=function(u){var f,y=[];for(f in u)s(u,f)&&y.push(f);return y};var G={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function V(u,f,y){var T=this._calendar[u]||this._calendar.sameElse;return q(T)?T.call(f,y):T}function J(u,f,y){var T=""+Math.abs(u),R=f-T.length,$=u>=0;return($?y?"+":"":"-")+Math.pow(10,Math.max(0,R)).toString().substr(1)+T}var ae=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ue={},Se={};function Q(u,f,y,T){var R=T;typeof T=="string"&&(R=function(){return this[T]()}),u&&(Se[u]=R),f&&(Se[f[0]]=function(){return J(R.apply(this,arguments),f[1],f[2])}),y&&(Se[y]=function(){return this.localeData().ordinal(R.apply(this,arguments),u)})}function Ie(u){return u.match(/\[[\s\S]/)?u.replace(/^\[|\]$/g,""):u.replace(/\\/g,"")}function Ue(u){var f=u.match(ae),y,T;for(y=0,T=f.length;y=0&&re.test(u);)u=u.replace(re,T),re.lastIndex=0,y-=1;return u}var oe={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function ie(u){var f=this._longDateFormat[u],y=this._longDateFormat[u.toUpperCase()];return f||!y?f:(this._longDateFormat[u]=y.match(ae).map(function(T){return T==="MMMM"||T==="MM"||T==="DD"||T==="dddd"?T.slice(1):T}).join(""),this._longDateFormat[u])}var X="Invalid date";function Ee(){return this._invalidDate}var fe="%d",he=/\d{1,2}/;function je(u){return this._ordinal.replace("%d",u)}var nt={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function et(u,f,y,T){var R=this._relativeTime[y];return q(R)?R(u,f,y,T):R.replace(/%d/i,u)}function tr(u,f){var y=this._relativeTime[u>0?"future":"past"];return q(y)?y(f):y.replace(/%s/i,f)}var Pe={};function $e(u,f){var y=u.toLowerCase();Pe[y]=Pe[y+"s"]=Pe[f]=u}function Ye(u){return typeof u=="string"?Pe[u]||Pe[u.toLowerCase()]:void 0}function $t(u){var f={},y,T;for(T in u)s(u,T)&&(y=Ye(T),y&&(f[y]=u[T]));return f}var Kt={};function te(u,f){Kt[u]=f}function de(u){var f=[],y;for(y in u)s(u,y)&&f.push({unit:y,priority:Kt[y]});return f.sort(function(T,R){return T.priority-R.priority}),f}function ye(u){return u%4===0&&u%100!==0||u%400===0}function ve(u){return u<0?Math.ceil(u)||0:Math.floor(u)}function ge(u){var f=+u,y=0;return f!==0&&isFinite(f)&&(y=ve(f)),y}function qe(u,f){return function(y){return y!=null?(Ge(this,u,y),n.updateOffset(this,f),this):De(this,u)}}function De(u,f){return u.isValid()?u._d["get"+(u._isUTC?"UTC":"")+f]():NaN}function Ge(u,f,y){u.isValid()&&!isNaN(y)&&(f==="FullYear"&&ye(u.year())&&u.month()===1&&u.date()===29?(y=ge(y),u._d["set"+(u._isUTC?"UTC":"")+f](y,u.month(),rs(y,u.month()))):u._d["set"+(u._isUTC?"UTC":"")+f](y))}function Je(u){return u=Ye(u),q(this[u])?this[u]():this}function jt(u,f){if(typeof u=="object"){u=$t(u);var y=de(u),T,R=y.length;for(T=0;T68?1900:2e3)};var av=qe("FullYear",!0);function AN(){return ye(this.year())}function ON(u,f,y,T,R,$,Y){var me;return u<100&&u>=0?(me=new Date(u+400,f,y,T,R,$,Y),isFinite(me.getFullYear())&&me.setFullYear(u)):me=new Date(u,f,y,T,R,$,Y),me}function ci(u){var f,y;return u<100&&u>=0?(y=Array.prototype.slice.call(arguments),y[0]=u+400,f=new Date(Date.UTC.apply(null,y)),isFinite(f.getUTCFullYear())&&f.setUTCFullYear(u)):f=new Date(Date.UTC.apply(null,arguments)),f}function ns(u,f,y){var T=7+f-y,R=(7+ci(u,0,T).getUTCDay()-f)%7;return-R+T-1}function iv(u,f,y,T,R){var $=(7+y-T)%7,Y=ns(u,T,R),me=1+7*(f-1)+$+Y,Te,Ke;return me<=0?(Te=u-1,Ke=ui(Te)+me):me>ui(u)?(Te=u+1,Ke=me-ui(u)):(Te=u,Ke=me),{year:Te,dayOfYear:Ke}}function di(u,f,y){var T=ns(u.year(),f,y),R=Math.floor((u.dayOfYear()-T-1)/7)+1,$,Y;return R<1?(Y=u.year()-1,$=R+tn(Y,f,y)):R>tn(u.year(),f,y)?($=R-tn(u.year(),f,y),Y=u.year()+1):(Y=u.year(),$=R),{week:$,year:Y}}function tn(u,f,y){var T=ns(u,f,y),R=ns(u+1,f,y);return(ui(u)-T+R)/7}Q("w",["ww",2],"wo","week"),Q("W",["WW",2],"Wo","isoWeek"),$e("week","w"),$e("isoWeek","W"),te("week",5),te("isoWeek",5),le("w",He),le("ww",He,ze),le("W",He),le("WW",He,ze),nr(["w","ww","W","WW"],function(u,f,y,T){f[T.substr(0,1)]=ge(u)});function kN(u){return di(u,this._week.dow,this._week.doy).week}var RN={dow:0,doy:6};function IN(){return this._week.dow}function NN(){return this._week.doy}function CN(u){var f=this.localeData().week(this);return u==null?f:this.add((u-f)*7,"d")}function DN(u){var f=di(this,1,4).week;return u==null?f:this.add((u-f)*7,"d")}Q("d",0,"do","day"),Q("dd",0,0,function(u){return this.localeData().weekdaysMin(this,u)}),Q("ddd",0,0,function(u){return this.localeData().weekdaysShort(this,u)}),Q("dddd",0,0,function(u){return this.localeData().weekdays(this,u)}),Q("e",0,0,"weekday"),Q("E",0,0,"isoWeekday"),$e("day","d"),$e("weekday","e"),$e("isoWeekday","E"),te("day",11),te("weekday",11),te("isoWeekday",11),le("d",He),le("e",He),le("E",He),le("dd",function(u,f){return f.weekdaysMinRegex(u)}),le("ddd",function(u,f){return f.weekdaysShortRegex(u)}),le("dddd",function(u,f){return f.weekdaysRegex(u)}),nr(["dd","ddd","dddd"],function(u,f,y,T){var R=y._locale.weekdaysParse(u,T,y._strict);R!=null?f.d=R:v(y).invalidWeekday=u}),nr(["d","e","E"],function(u,f,y,T){f[T]=ge(u)});function LN(u,f){return typeof u!="string"?u:isNaN(u)?(u=f.weekdaysParse(u),typeof u=="number"?u:null):parseInt(u,10)}function MN(u,f){return typeof u=="string"?f.weekdaysParse(u)%7||7:isNaN(u)?null:u}function Gu(u,f){return u.slice(f,7).concat(u.slice(0,f))}var PN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ov="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),$N="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jN=Ar,FN=Ar,BN=Ar;function UN(u,f){var y=i(this._weekdays)?this._weekdays:this._weekdays[u&&u!==!0&&this._weekdays.isFormat.test(f)?"format":"standalone"];return u===!0?Gu(y,this._week.dow):u?y[u.day()]:y}function GN(u){return u===!0?Gu(this._weekdaysShort,this._week.dow):u?this._weekdaysShort[u.day()]:this._weekdaysShort}function zN(u){return u===!0?Gu(this._weekdaysMin,this._week.dow):u?this._weekdaysMin[u.day()]:this._weekdaysMin}function qN(u,f,y){var T,R,$,Y=u.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],T=0;T<7;++T)$=b([2e3,1]).day(T),this._minWeekdaysParse[T]=this.weekdaysMin($,"").toLocaleLowerCase(),this._shortWeekdaysParse[T]=this.weekdaysShort($,"").toLocaleLowerCase(),this._weekdaysParse[T]=this.weekdays($,"").toLocaleLowerCase();return y?f==="dddd"?(R=gt.call(this._weekdaysParse,Y),R!==-1?R:null):f==="ddd"?(R=gt.call(this._shortWeekdaysParse,Y),R!==-1?R:null):(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null):f==="dddd"?(R=gt.call(this._weekdaysParse,Y),R!==-1||(R=gt.call(this._shortWeekdaysParse,Y),R!==-1)?R:(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null)):f==="ddd"?(R=gt.call(this._shortWeekdaysParse,Y),R!==-1||(R=gt.call(this._weekdaysParse,Y),R!==-1)?R:(R=gt.call(this._minWeekdaysParse,Y),R!==-1?R:null)):(R=gt.call(this._minWeekdaysParse,Y),R!==-1||(R=gt.call(this._weekdaysParse,Y),R!==-1)?R:(R=gt.call(this._shortWeekdaysParse,Y),R!==-1?R:null))}function HN(u,f,y){var T,R,$;if(this._weekdaysParseExact)return qN.call(this,u,f,y);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),T=0;T<7;T++){if(R=b([2e3,1]).day(T),y&&!this._fullWeekdaysParse[T]&&(this._fullWeekdaysParse[T]=new RegExp("^"+this.weekdays(R,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[T]=new RegExp("^"+this.weekdaysShort(R,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[T]=new RegExp("^"+this.weekdaysMin(R,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[T]||($="^"+this.weekdays(R,"")+"|^"+this.weekdaysShort(R,"")+"|^"+this.weekdaysMin(R,""),this._weekdaysParse[T]=new RegExp($.replace(".",""),"i")),y&&f==="dddd"&&this._fullWeekdaysParse[T].test(u))return T;if(y&&f==="ddd"&&this._shortWeekdaysParse[T].test(u))return T;if(y&&f==="dd"&&this._minWeekdaysParse[T].test(u))return T;if(!y&&this._weekdaysParse[T].test(u))return T}}function WN(u){if(!this.isValid())return u!=null?this:NaN;var f=this._isUTC?this._d.getUTCDay():this._d.getDay();return u!=null?(u=LN(u,this.localeData()),this.add(u-f,"d")):f}function VN(u){if(!this.isValid())return u!=null?this:NaN;var f=(this.day()+7-this.localeData()._week.dow)%7;return u==null?f:this.add(u-f,"d")}function YN(u){if(!this.isValid())return u!=null?this:NaN;if(u!=null){var f=MN(u,this.localeData());return this.day(this.day()%7?f:f-7)}else return this.day()||7}function KN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||zu.call(this),u?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=jN),this._weekdaysStrictRegex&&u?this._weekdaysStrictRegex:this._weekdaysRegex)}function XN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||zu.call(this),u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=FN),this._weekdaysShortStrictRegex&&u?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ZN(u){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||zu.call(this),u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=BN),this._weekdaysMinStrictRegex&&u?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zu(){function u(Ut,sn){return sn.length-Ut.length}var f=[],y=[],T=[],R=[],$,Y,me,Te,Ke;for($=0;$<7;$++)Y=b([2e3,1]).day($),me=ut(this.weekdaysMin(Y,"")),Te=ut(this.weekdaysShort(Y,"")),Ke=ut(this.weekdays(Y,"")),f.push(me),y.push(Te),T.push(Ke),R.push(me),R.push(Te),R.push(Ke);f.sort(u),y.sort(u),T.sort(u),R.sort(u),this._weekdaysRegex=new RegExp("^("+R.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+T.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+y.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+f.join("|")+")","i")}function qu(){return this.hours()%12||12}function JN(){return this.hours()||24}Q("H",["HH",2],0,"hour"),Q("h",["hh",2],0,qu),Q("k",["kk",2],0,JN),Q("hmm",0,0,function(){return""+qu.apply(this)+J(this.minutes(),2)}),Q("hmmss",0,0,function(){return""+qu.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),Q("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),Q("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)});function sv(u,f){Q(u,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),f)})}sv("a",!0),sv("A",!1),$e("hour","h"),te("hour",13);function lv(u,f){return f._meridiemParse}le("a",lv),le("A",lv),le("H",He),le("h",He),le("k",He),le("HH",He,ze),le("hh",He,ze),le("kk",He,ze),le("hmm",Bn),le("hmmss",Jr),le("Hmm",Bn),le("Hmmss",Jr),Oe(["H","HH"],tt),Oe(["k","kk"],function(u,f,y){var T=ge(u);f[tt]=T===24?0:T}),Oe(["a","A"],function(u,f,y){y._isPm=y._locale.isPM(u),y._meridiem=u}),Oe(["h","hh"],function(u,f,y){f[tt]=ge(u),v(y).bigHour=!0}),Oe("hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T)),v(y).bigHour=!0}),Oe("hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R)),v(y).bigHour=!0}),Oe("Hmm",function(u,f,y){var T=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T))}),Oe("Hmmss",function(u,f,y){var T=u.length-4,R=u.length-2;f[tt]=ge(u.substr(0,T)),f[ct]=ge(u.substr(T,2)),f[Or]=ge(u.substr(R))});function QN(u){return(u+"").toLowerCase().charAt(0)==="p"}var eC=/[ap]\.?m?\.?/i,tC=qe("Hours",!0);function rC(u,f,y){return u>11?y?"pm":"PM":y?"am":"AM"}var uv={calendar:G,longDateFormat:oe,invalidDate:X,ordinal:fe,dayOfMonthOrdinalParse:he,relativeTime:nt,months:mN,monthsShort:Qy,week:RN,weekdays:PN,weekdaysMin:$N,weekdaysShort:ov,meridiemParse:eC},st={},pi={},fi;function nC(u,f){var y,T=Math.min(u.length,f.length);for(y=0;y0;){if(R=as($.slice(0,y).join("-")),R)return R;if(T&&T.length>=y&&nC($,T)>=y-1)break;y--}f++}return fi}function iC(u){return u.match("^[^/\\\\]*$")!=null}function as(u){var f=null,y;if(st[u]===void 0&&e&&e.exports&&iC(u))try{f=fi._abbr,y=XL,y("./locale/"+u),xn(f)}catch{st[u]=null}return st[u]}function xn(u,f){var y;return u&&(c(f)?y=rn(u):y=Hu(u,f),y?fi=y:typeof console<"u"&&console.warn&&console.warn("Locale "+u+" not found. Did you forget to load it?")),fi._abbr}function Hu(u,f){if(f!==null){var y,T=uv;if(f.abbr=u,st[u]!=null)j("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),T=st[u]._config;else if(f.parentLocale!=null)if(st[f.parentLocale]!=null)T=st[f.parentLocale]._config;else if(y=as(f.parentLocale),y!=null)T=y._config;else return pi[f.parentLocale]||(pi[f.parentLocale]=[]),pi[f.parentLocale].push({name:u,config:f}),null;return st[u]=new W(z(T,f)),pi[u]&&pi[u].forEach(function(R){Hu(R.name,R.config)}),xn(u),st[u]}else return delete st[u],null}function oC(u,f){if(f!=null){var y,T,R=uv;st[u]!=null&&st[u].parentLocale!=null?st[u].set(z(st[u]._config,f)):(T=as(u),T!=null&&(R=T._config),f=z(R,f),T==null&&(f.abbr=u),y=new W(f),y.parentLocale=st[u],st[u]=y),xn(u)}else st[u]!=null&&(st[u].parentLocale!=null?(st[u]=st[u].parentLocale,u===xn()&&xn(u)):st[u]!=null&&delete st[u]);return st[u]}function rn(u){var f;if(u&&u._locale&&u._locale._abbr&&(u=u._locale._abbr),!u)return fi;if(!i(u)){if(f=as(u),f)return f;u=[u]}return aC(u)}function sC(){return K(st)}function Wu(u){var f,y=u._a;return y&&v(u).overflow===-2&&(f=y[We]<0||y[We]>11?We:y[kt]<1||y[kt]>rs(y[_e],y[We])?kt:y[tt]<0||y[tt]>24||y[tt]===24&&(y[ct]!==0||y[Or]!==0||y[en]!==0)?tt:y[ct]<0||y[ct]>59?ct:y[Or]<0||y[Or]>59?Or:y[en]<0||y[en]>999?en:-1,v(u)._overflowDayOfYear&&(f<_e||f>kt)&&(f=kt),v(u)._overflowWeeks&&f===-1&&(f=ke),v(u)._overflowWeekday&&f===-1&&(f=Bt),v(u).overflow=f),u}var lC=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,uC=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,cC=/Z|[+-]\d\d(?::?\d\d)?/,is=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Vu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],dC=/^\/?Date\((-?\d+)/i,pC=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,fC={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function dv(u){var f,y,T=u._i,R=lC.exec(T)||uC.exec(T),$,Y,me,Te,Ke=is.length,Ut=Vu.length;if(R){for(v(u).iso=!0,f=0,y=Ke;fui(Y)||u._dayOfYear===0)&&(v(u)._overflowDayOfYear=!0),y=ci(Y,0,u._dayOfYear),u._a[We]=y.getUTCMonth(),u._a[kt]=y.getUTCDate()),f=0;f<3&&u._a[f]==null;++f)u._a[f]=T[f]=R[f];for(;f<7;f++)u._a[f]=T[f]=u._a[f]==null?f===2?1:0:u._a[f];u._a[tt]===24&&u._a[ct]===0&&u._a[Or]===0&&u._a[en]===0&&(u._nextDay=!0,u._a[tt]=0),u._d=(u._useUTC?ci:ON).apply(null,T),$=u._useUTC?u._d.getUTCDay():u._d.getDay(),u._tzm!=null&&u._d.setUTCMinutes(u._d.getUTCMinutes()-u._tzm),u._nextDay&&(u._a[tt]=24),u._w&&typeof u._w.d<"u"&&u._w.d!==$&&(v(u).weekdayMismatch=!0)}}function EC(u){var f,y,T,R,$,Y,me,Te,Ke;f=u._w,f.GG!=null||f.W!=null||f.E!=null?($=1,Y=4,y=pa(f.GG,u._a[_e],di(at(),1,4).year),T=pa(f.W,1),R=pa(f.E,1),(R<1||R>7)&&(Te=!0)):($=u._locale._week.dow,Y=u._locale._week.doy,Ke=di(at(),$,Y),y=pa(f.gg,u._a[_e],Ke.year),T=pa(f.w,Ke.week),f.d!=null?(R=f.d,(R<0||R>6)&&(Te=!0)):f.e!=null?(R=f.e+$,(f.e<0||f.e>6)&&(Te=!0)):R=$),T<1||T>tn(y,$,Y)?v(u)._overflowWeeks=!0:Te!=null?v(u)._overflowWeekday=!0:(me=iv(y,T,R,$,Y),u._a[_e]=me.year,u._dayOfYear=me.dayOfYear)}n.ISO_8601=function(){},n.RFC_2822=function(){};function Ku(u){if(u._f===n.ISO_8601){dv(u);return}if(u._f===n.RFC_2822){pv(u);return}u._a=[],v(u).empty=!0;var f=""+u._i,y,T,R,$,Y,me=f.length,Te=0,Ke,Ut;for(R=ee(u._f,u._locale).match(ae)||[],Ut=R.length,y=0;y0&&v(u).unusedInput.push(Y),f=f.slice(f.indexOf(T)+T.length),Te+=T.length),Se[$]?(T?v(u).empty=!1:v(u).unusedTokens.push($),da($,T,u)):u._strict&&!T&&v(u).unusedTokens.push($);v(u).charsLeftOver=me-Te,f.length>0&&v(u).unusedInput.push(f),u._a[tt]<=12&&v(u).bigHour===!0&&u._a[tt]>0&&(v(u).bigHour=void 0),v(u).parsedDateParts=u._a.slice(0),v(u).meridiem=u._meridiem,u._a[tt]=xC(u._locale,u._a[tt],u._meridiem),Ke=v(u).era,Ke!==null&&(u._a[_e]=u._locale.erasConvertYear(Ke,u._a[_e])),Yu(u),Wu(u)}function xC(u,f,y){var T;return y==null?f:u.meridiemHour!=null?u.meridiemHour(f,y):(u.isPM!=null&&(T=u.isPM(y),T&&f<12&&(f+=12),!T&&f===12&&(f=0)),f)}function wC(u){var f,y,T,R,$,Y,me=!1,Te=u._f.length;if(Te===0){v(u).invalidFormat=!0,u._d=new Date(NaN);return}for(R=0;Rthis?this:u:w()});function hv(u,f){var y,T;if(f.length===1&&i(f[0])&&(f=f[0]),!f.length)return at();for(y=f[0],T=1;Tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function qC(){if(!c(this._isDSTShifted))return this._isDSTShifted;var u={},f;return E(u,this),u=fv(u),u._a?(f=u._isUTC?b(u._a):at(u._a),this._isDSTShifted=this.isValid()&&MC(u._a,f.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function HC(){return this.isValid()?!this._isUTC:!1}function WC(){return this.isValid()?this._isUTC:!1}function bv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var VC=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,YC=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function kr(u,f){var y=u,T=null,R,$,Y;return ss(u)?y={ms:u._milliseconds,d:u._days,M:u._months}:d(u)||!isNaN(+u)?(y={},f?y[f]=+u:y.milliseconds=+u):(T=VC.exec(u))?(R=T[1]==="-"?-1:1,y={y:0,d:ge(T[kt])*R,h:ge(T[tt])*R,m:ge(T[ct])*R,s:ge(T[Or])*R,ms:ge(Xu(T[en]*1e3))*R}):(T=YC.exec(u))?(R=T[1]==="-"?-1:1,y={y:qn(T[2],R),M:qn(T[3],R),w:qn(T[4],R),d:qn(T[5],R),h:qn(T[6],R),m:qn(T[7],R),s:qn(T[8],R)}):y==null?y={}:typeof y=="object"&&("from"in y||"to"in y)&&(Y=KC(at(y.from),at(y.to)),y={},y.ms=Y.milliseconds,y.M=Y.months),$=new os(y),ss(u)&&s(u,"_locale")&&($._locale=u._locale),ss(u)&&s(u,"_isValid")&&($._isValid=u._isValid),$}kr.fn=os.prototype,kr.invalid=LC;function qn(u,f){var y=u&&parseFloat(u.replace(",","."));return(isNaN(y)?0:y)*f}function yv(u,f){var y={};return y.months=f.month()-u.month()+(f.year()-u.year())*12,u.clone().add(y.months,"M").isAfter(f)&&--y.months,y.milliseconds=+f-+u.clone().add(y.months,"M"),y}function KC(u,f){var y;return u.isValid()&&f.isValid()?(f=Ju(f,u),u.isBefore(f)?y=yv(u,f):(y=yv(f,u),y.milliseconds=-y.milliseconds,y.months=-y.months),y):{milliseconds:0,months:0}}function vv(u,f){return function(y,T){var R,$;return T!==null&&!isNaN(+T)&&(j(f,"moment()."+f+"(period, number) is deprecated. Please use moment()."+f+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),$=y,y=T,T=$),R=kr(y,T),Sv(this,R,u),this}}function Sv(u,f,y,T){var R=f._milliseconds,$=Xu(f._days),Y=Xu(f._months);u.isValid()&&(T=T??!0,Y&&tv(u,De(u,"Month")+Y*y),$&&Ge(u,"Date",De(u,"Date")+$*y),R&&u._d.setTime(u._d.valueOf()+R*y),T&&n.updateOffset(u,$||Y))}var XC=vv(1,"add"),ZC=vv(-1,"subtract");function Ev(u){return typeof u=="string"||u instanceof String}function JC(u){return N(u)||p(u)||Ev(u)||d(u)||eD(u)||QC(u)||u===null||u===void 0}function QC(u){var f=o(u)&&!l(u),y=!1,T=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],R,$,Y=T.length;for(R=0;Ry.valueOf():y.valueOf()9999?xe(y,f?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):q(Date.prototype.toISOString)?f?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",xe(y,"Z")):xe(y,f?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function gD(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var u="moment",f="",y,T,R,$;return this.isLocal()||(u=this.utcOffset()===0?"moment.utc":"moment.parseZone",f="Z"),y="["+u+'("]',T=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",R="-MM-DD[T]HH:mm:ss.SSS",$=f+'[")]',this.format(y+T+R+$)}function hD(u){u||(u=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var f=xe(this,u);return this.localeData().postformat(f)}function mD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({to:this,from:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function bD(u){return this.from(at(),u)}function yD(u,f){return this.isValid()&&(N(u)&&u.isValid()||at(u).isValid())?kr({from:this,to:u}).locale(this.locale()).humanize(!f):this.localeData().invalidDate()}function vD(u){return this.to(at(),u)}function xv(u){var f;return u===void 0?this._locale._abbr:(f=rn(u),f!=null&&(this._locale=f),this)}var wv=D("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(u){return u===void 0?this.localeData():this.locale(u)});function _v(){return this._locale}var us=1e3,fa=60*us,cs=60*fa,Tv=(365*400+97)*24*cs;function ga(u,f){return(u%f+f)%f}function Av(u,f,y){return u<100&&u>=0?new Date(u+400,f,y)-Tv:new Date(u,f,y).valueOf()}function Ov(u,f,y){return u<100&&u>=0?Date.UTC(u+400,f,y)-Tv:Date.UTC(u,f,y)}function SD(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Ov:Av,u){case"year":f=y(this.year(),0,1);break;case"quarter":f=y(this.year(),this.month()-this.month()%3,1);break;case"month":f=y(this.year(),this.month(),1);break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":f=y(this.year(),this.month(),this.date());break;case"hour":f=this._d.valueOf(),f-=ga(f+(this._isUTC?0:this.utcOffset()*fa),cs);break;case"minute":f=this._d.valueOf(),f-=ga(f,fa);break;case"second":f=this._d.valueOf(),f-=ga(f,us);break}return this._d.setTime(f),n.updateOffset(this,!0),this}function ED(u){var f,y;if(u=Ye(u),u===void 0||u==="millisecond"||!this.isValid())return this;switch(y=this._isUTC?Ov:Av,u){case"year":f=y(this.year()+1,0,1)-1;break;case"quarter":f=y(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":f=y(this.year(),this.month()+1,1)-1;break;case"week":f=y(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":f=y(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":f=y(this.year(),this.month(),this.date()+1)-1;break;case"hour":f=this._d.valueOf(),f+=cs-ga(f+(this._isUTC?0:this.utcOffset()*fa),cs)-1;break;case"minute":f=this._d.valueOf(),f+=fa-ga(f,fa)-1;break;case"second":f=this._d.valueOf(),f+=us-ga(f,us)-1;break}return this._d.setTime(f),n.updateOffset(this,!0),this}function xD(){return this._d.valueOf()-(this._offset||0)*6e4}function wD(){return Math.floor(this.valueOf()/1e3)}function _D(){return new Date(this.valueOf())}function TD(){var u=this;return[u.year(),u.month(),u.date(),u.hour(),u.minute(),u.second(),u.millisecond()]}function AD(){var u=this;return{years:u.year(),months:u.month(),date:u.date(),hours:u.hours(),minutes:u.minutes(),seconds:u.seconds(),milliseconds:u.milliseconds()}}function OD(){return this.isValid()?this.toISOString():null}function kD(){return _(this)}function RD(){return h({},v(this))}function ID(){return v(this).overflow}function ND(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Q("N",0,0,"eraAbbr"),Q("NN",0,0,"eraAbbr"),Q("NNN",0,0,"eraAbbr"),Q("NNNN",0,0,"eraName"),Q("NNNNN",0,0,"eraNarrow"),Q("y",["y",1],"yo","eraYear"),Q("y",["yy",2],0,"eraYear"),Q("y",["yyy",3],0,"eraYear"),Q("y",["yyyy",4],0,"eraYear"),le("N",ec),le("NN",ec),le("NNN",ec),le("NNNN",GD),le("NNNNN",zD),Oe(["N","NN","NNN","NNNN","NNNNN"],function(u,f,y,T){var R=y._locale.erasParse(u,T,y._strict);R?v(y).era=R:v(y).invalidEra=u}),le("y",_r),le("yy",_r),le("yyy",_r),le("yyyy",_r),le("yo",qD),Oe(["y","yy","yyy","yyyy"],_e),Oe(["yo"],function(u,f,y,T){var R;y._locale._eraYearOrdinalRegex&&(R=u.match(y._locale._eraYearOrdinalRegex)),y._locale.eraYearOrdinalParse?f[_e]=y._locale.eraYearOrdinalParse(u,R):f[_e]=parseInt(u,10)});function CD(u,f){var y,T,R,$=this._eras||rn("en")._eras;for(y=0,T=$.length;y=0)return $[T]}function LD(u,f){var y=u.since<=u.until?1:-1;return f===void 0?n(u.since).year():n(u.since).year()+(f-u.offset)*y}function MD(){var u,f,y,T=this.localeData().eras();for(u=0,f=T.length;u$&&(f=$),ZD.call(this,u,f,y,T,R))}function ZD(u,f,y,T,R){var $=iv(u,f,y,T,R),Y=ci($.year,0,$.dayOfYear);return this.year(Y.getUTCFullYear()),this.month(Y.getUTCMonth()),this.date(Y.getUTCDate()),this}Q("Q",0,"Qo","quarter"),$e("quarter","Q"),te("quarter",7),le("Q",rr),Oe("Q",function(u,f){f[We]=(ge(u)-1)*3});function JD(u){return u==null?Math.ceil((this.month()+1)/3):this.month((u-1)*3+this.month()%3)}Q("D",["DD",2],"Do","date"),$e("date","D"),te("date",9),le("D",He),le("DD",He,ze),le("Do",function(u,f){return u?f._dayOfMonthOrdinalParse||f._ordinalParse:f._dayOfMonthOrdinalParseLenient}),Oe(["D","DD"],kt),Oe("Do",function(u,f){f[kt]=ge(u.match(He)[0])});var Rv=qe("Date",!0);Q("DDD",["DDDD",3],"DDDo","dayOfYear"),$e("dayOfYear","DDD"),te("dayOfYear",4),le("DDD",xr),le("DDDD",Kr),Oe(["DDD","DDDD"],function(u,f,y){y._dayOfYear=ge(u)});function QD(u){var f=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return u==null?f:this.add(u-f,"d")}Q("m",["mm",2],0,"minute"),$e("minute","m"),te("minute",14),le("m",He),le("mm",He,ze),Oe(["m","mm"],ct);var eL=qe("Minutes",!1);Q("s",["ss",2],0,"second"),$e("second","s"),te("second",15),le("s",He),le("ss",He,ze),Oe(["s","ss"],Or);var tL=qe("Seconds",!1);Q("S",0,0,function(){return~~(this.millisecond()/100)}),Q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Q(0,["SSS",3],0,"millisecond"),Q(0,["SSSS",4],0,function(){return this.millisecond()*10}),Q(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Q(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Q(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Q(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Q(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),$e("millisecond","ms"),te("millisecond",16),le("S",xr,rr),le("SS",xr,ze),le("SSS",xr,Kr);var wn,Iv;for(wn="SSSS";wn.length<=9;wn+="S")le(wn,_r);function rL(u,f){f[en]=ge(("0."+u)*1e3)}for(wn="S";wn.length<=9;wn+="S")Oe(wn,rL);Iv=qe("Milliseconds",!1),Q("z",0,0,"zoneAbbr"),Q("zz",0,0,"zoneName");function nL(){return this._isUTC?"UTC":""}function aL(){return this._isUTC?"Coordinated Universal Time":""}var ne=k.prototype;ne.add=XC,ne.calendar=nD,ne.clone=aD,ne.diff=dD,ne.endOf=ED,ne.format=hD,ne.from=mD,ne.fromNow=bD,ne.to=yD,ne.toNow=vD,ne.get=Je,ne.invalidAt=ID,ne.isAfter=iD,ne.isBefore=oD,ne.isBetween=sD,ne.isSame=lD,ne.isSameOrAfter=uD,ne.isSameOrBefore=cD,ne.isValid=kD,ne.lang=wv,ne.locale=xv,ne.localeData=_v,ne.max=kC,ne.min=OC,ne.parsingFlags=RD,ne.set=jt,ne.startOf=SD,ne.subtract=ZC,ne.toArray=TD,ne.toObject=AD,ne.toDate=_D,ne.toISOString=fD,ne.inspect=gD,typeof Symbol<"u"&&Symbol.for!=null&&(ne[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ne.toJSON=OD,ne.toString=pD,ne.unix=wD,ne.valueOf=xD,ne.creationData=ND,ne.eraName=MD,ne.eraNarrow=PD,ne.eraAbbr=$D,ne.eraYear=jD,ne.year=av,ne.isLeapYear=AN,ne.weekYear=HD,ne.isoWeekYear=WD,ne.quarter=ne.quarters=JD,ne.month=rv,ne.daysInMonth=wN,ne.week=ne.weeks=CN,ne.isoWeek=ne.isoWeeks=DN,ne.weeksInYear=KD,ne.weeksInWeekYear=XD,ne.isoWeeksInYear=VD,ne.isoWeeksInISOWeekYear=YD,ne.date=Rv,ne.day=ne.days=WN,ne.weekday=VN,ne.isoWeekday=YN,ne.dayOfYear=QD,ne.hour=ne.hours=tC,ne.minute=ne.minutes=eL,ne.second=ne.seconds=tL,ne.millisecond=ne.milliseconds=Iv,ne.utcOffset=$C,ne.utc=FC,ne.local=BC,ne.parseZone=UC,ne.hasAlignedHourOffset=GC,ne.isDST=zC,ne.isLocal=HC,ne.isUtcOffset=WC,ne.isUtc=bv,ne.isUTC=bv,ne.zoneAbbr=nL,ne.zoneName=aL,ne.dates=D("dates accessor is deprecated. Use date instead.",Rv),ne.months=D("months accessor is deprecated. Use month instead",rv),ne.years=D("years accessor is deprecated. Use year instead",av),ne.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",jC),ne.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",qC);function iL(u){return at(u*1e3)}function oL(){return at.apply(null,arguments).parseZone()}function Nv(u){return u}var Fe=W.prototype;Fe.calendar=V,Fe.longDateFormat=ie,Fe.invalidDate=Ee,Fe.ordinal=je,Fe.preparse=Nv,Fe.postformat=Nv,Fe.relativeTime=et,Fe.pastFuture=tr,Fe.set=H,Fe.eras=CD,Fe.erasParse=DD,Fe.erasConvertYear=LD,Fe.erasAbbrRegex=BD,Fe.erasNameRegex=FD,Fe.erasNarrowRegex=UD,Fe.months=vN,Fe.monthsShort=SN,Fe.monthsParse=xN,Fe.monthsRegex=TN,Fe.monthsShortRegex=_N,Fe.week=kN,Fe.firstDayOfYear=NN,Fe.firstDayOfWeek=IN,Fe.weekdays=UN,Fe.weekdaysMin=zN,Fe.weekdaysShort=GN,Fe.weekdaysParse=HN,Fe.weekdaysRegex=KN,Fe.weekdaysShortRegex=XN,Fe.weekdaysMinRegex=ZN,Fe.isPM=QN,Fe.meridiem=rC;function ps(u,f,y,T){var R=rn(),$=b().set(T,f);return R[y]($,u)}function Cv(u,f,y){if(d(u)&&(f=u,u=void 0),u=u||"",f!=null)return ps(u,f,y,"month");var T,R=[];for(T=0;T<12;T++)R[T]=ps(u,T,y,"month");return R}function rc(u,f,y,T){typeof u=="boolean"?(d(f)&&(y=f,f=void 0),f=f||""):(f=u,y=f,u=!1,d(f)&&(y=f,f=void 0),f=f||"");var R=rn(),$=u?R._week.dow:0,Y,me=[];if(y!=null)return ps(f,(y+$)%7,T,"day");for(Y=0;Y<7;Y++)me[Y]=ps(f,(Y+$)%7,T,"day");return me}function sL(u,f){return Cv(u,f,"months")}function lL(u,f){return Cv(u,f,"monthsShort")}function uL(u,f,y){return rc(u,f,y,"weekdays")}function cL(u,f,y){return rc(u,f,y,"weekdaysShort")}function dL(u,f,y){return rc(u,f,y,"weekdaysMin")}xn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(u){var f=u%10,y=ge(u%100/10)===1?"th":f===1?"st":f===2?"nd":f===3?"rd":"th";return u+y}}),n.lang=D("moment.lang is deprecated. Use moment.locale instead.",xn),n.langData=D("moment.langData is deprecated. Use moment.localeData instead.",rn);var nn=Math.abs;function pL(){var u=this._data;return this._milliseconds=nn(this._milliseconds),this._days=nn(this._days),this._months=nn(this._months),u.milliseconds=nn(u.milliseconds),u.seconds=nn(u.seconds),u.minutes=nn(u.minutes),u.hours=nn(u.hours),u.months=nn(u.months),u.years=nn(u.years),this}function Dv(u,f,y,T){var R=kr(f,y);return u._milliseconds+=T*R._milliseconds,u._days+=T*R._days,u._months+=T*R._months,u._bubble()}function fL(u,f){return Dv(this,u,f,1)}function gL(u,f){return Dv(this,u,f,-1)}function Lv(u){return u<0?Math.floor(u):Math.ceil(u)}function hL(){var u=this._milliseconds,f=this._days,y=this._months,T=this._data,R,$,Y,me,Te;return u>=0&&f>=0&&y>=0||u<=0&&f<=0&&y<=0||(u+=Lv(nc(y)+f)*864e5,f=0,y=0),T.milliseconds=u%1e3,R=ve(u/1e3),T.seconds=R%60,$=ve(R/60),T.minutes=$%60,Y=ve($/60),T.hours=Y%24,f+=ve(Y/24),Te=ve(Mv(f)),y+=Te,f-=Lv(nc(Te)),me=ve(y/12),y%=12,T.days=f,T.months=y,T.years=me,this}function Mv(u){return u*4800/146097}function nc(u){return u*146097/4800}function mL(u){if(!this.isValid())return NaN;var f,y,T=this._milliseconds;if(u=Ye(u),u==="month"||u==="quarter"||u==="year")switch(f=this._days+T/864e5,y=this._months+Mv(f),u){case"month":return y;case"quarter":return y/3;case"year":return y/12}else switch(f=this._days+Math.round(nc(this._months)),u){case"week":return f/7+T/6048e5;case"day":return f+T/864e5;case"hour":return f*24+T/36e5;case"minute":return f*1440+T/6e4;case"second":return f*86400+T/1e3;case"millisecond":return Math.floor(f*864e5)+T;default:throw new Error("Unknown unit "+u)}}function bL(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+ge(this._months/12)*31536e6:NaN}function an(u){return function(){return this.as(u)}}var yL=an("ms"),vL=an("s"),SL=an("m"),EL=an("h"),xL=an("d"),wL=an("w"),_L=an("M"),TL=an("Q"),AL=an("y");function OL(){return kr(this)}function kL(u){return u=Ye(u),this.isValid()?this[u+"s"]():NaN}function Hn(u){return function(){return this.isValid()?this._data[u]:NaN}}var RL=Hn("milliseconds"),IL=Hn("seconds"),NL=Hn("minutes"),CL=Hn("hours"),DL=Hn("days"),LL=Hn("months"),ML=Hn("years");function PL(){return ve(this.days()/7)}var on=Math.round,ha={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function $L(u,f,y,T,R){return R.relativeTime(f||1,!!y,u,T)}function jL(u,f,y,T){var R=kr(u).abs(),$=on(R.as("s")),Y=on(R.as("m")),me=on(R.as("h")),Te=on(R.as("d")),Ke=on(R.as("M")),Ut=on(R.as("w")),sn=on(R.as("y")),_n=$<=y.ss&&["s",$]||$0,_n[4]=T,$L.apply(null,_n)}function FL(u){return u===void 0?on:typeof u=="function"?(on=u,!0):!1}function BL(u,f){return ha[u]===void 0?!1:f===void 0?ha[u]:(ha[u]=f,u==="s"&&(ha.ss=f-1),!0)}function UL(u,f){if(!this.isValid())return this.localeData().invalidDate();var y=!1,T=ha,R,$;return typeof u=="object"&&(f=u,u=!1),typeof u=="boolean"&&(y=u),typeof f=="object"&&(T=Object.assign({},ha,f),f.s!=null&&f.ss==null&&(T.ss=f.s-1)),R=this.localeData(),$=jL(this,!y,T,R),y&&($=R.pastFuture(+this,$)),R.postformat($)}var ac=Math.abs;function ma(u){return(u>0)-(u<0)||+u}function fs(){if(!this.isValid())return this.localeData().invalidDate();var u=ac(this._milliseconds)/1e3,f=ac(this._days),y=ac(this._months),T,R,$,Y,me=this.asSeconds(),Te,Ke,Ut,sn;return me?(T=ve(u/60),R=ve(T/60),u%=60,T%=60,$=ve(y/12),y%=12,Y=u?u.toFixed(3).replace(/\.?0+$/,""):"",Te=me<0?"-":"",Ke=ma(this._months)!==ma(me)?"-":"",Ut=ma(this._days)!==ma(me)?"-":"",sn=ma(this._milliseconds)!==ma(me)?"-":"",Te+"P"+($?Ke+$+"Y":"")+(y?Ke+y+"M":"")+(f?Ut+f+"D":"")+(R||T||u?"T":"")+(R?sn+R+"H":"")+(T?sn+T+"M":"")+(u?sn+Y+"S":"")):"P0D"}var Le=os.prototype;Le.isValid=DC,Le.abs=pL,Le.add=fL,Le.subtract=gL,Le.as=mL,Le.asMilliseconds=yL,Le.asSeconds=vL,Le.asMinutes=SL,Le.asHours=EL,Le.asDays=xL,Le.asWeeks=wL,Le.asMonths=_L,Le.asQuarters=TL,Le.asYears=AL,Le.valueOf=bL,Le._bubble=hL,Le.clone=OL,Le.get=kL,Le.milliseconds=RL,Le.seconds=IL,Le.minutes=NL,Le.hours=CL,Le.days=DL,Le.weeks=PL,Le.months=LL,Le.years=ML,Le.humanize=UL,Le.toISOString=fs,Le.toString=fs,Le.toJSON=fs,Le.locale=xv,Le.localeData=_v,Le.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",fs),Le.lang=wv,Q("X",0,0,"unix"),Q("x",0,0,"valueOf"),le("x",Tr),le("X",li),Oe("X",function(u,f,y){y._d=new Date(parseFloat(u)*1e3)}),Oe("x",function(u,f,y){y._d=new Date(ge(u))});//! moment.js +return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.unix=iL,n.months=sL,n.isDate=p,n.locale=xn,n.invalid=w,n.duration=kr,n.isMoment=N,n.weekdays=uL,n.parseZone=oL,n.localeData=rn,n.isDuration=ss,n.monthsShort=lL,n.weekdaysMin=dL,n.defineLocale=Hu,n.updateLocale=oC,n.locales=sC,n.weekdaysShort=cL,n.normalizeUnits=Ye,n.relativeTimeRounding=FL,n.relativeTimeThreshold=BL,n.calendarFormat=rD,n.prototype=ne,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n})})(T1);var V$=T1.exports;const A1=ft(V$),Y$=({text:e,type:t,sourceLink:r,date:n})=>m.jsxs(F,{direction:"column",children:[m.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[m.jsx(F,{align:"center",direction:"row",children:m.jsx(ri,{type:t})}),r&&m.jsx(Da,{href:`${r}${r!=null&&r.includes("?")?"&":"?"}open=system`,onClick:a=>a.stopPropagation(),target:"_blank",children:m.jsx(vn,{})})]}),m.jsx(ij,{"data-testid":"episode-description",children:e}),m.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[m.jsx(F,{align:"center",direction:"row",justify:"flex-start",children:!!n&&m.jsx(oa,{children:A1.unix(n).fromNow()})}),r&&m.jsxs(Da,{href:r,onClick:a=>a.stopPropagation(),target:"_blank",children:[m.jsx(o1,{}),m.jsx(K$,{children:r})]})]})]}),K$=B(pt)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - color: ${M.GRAY6}; + color: ${P.GRAY6}; font-family: Barlow; font-size: 12px; font-weight: 400; line-height: 18px; -`,X$=({title:e,imageUrl:t,name:r,sourceLink:n,date:a})=>h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",children:[h.jsx(Z$,{children:h.jsx($r,{rounded:!0,size:64,src:t||"",type:"person"})}),(e||r)&&h.jsx(J$,{children:e||r})]}),!n&&h.jsx(Da,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!a&&h.jsx(oa,{children:A1.unix(a).fromNow()})})]}),Z$=B(F)` +`,X$=({title:e,imageUrl:t,name:r,sourceLink:n,date:a})=>m.jsxs(F,{grow:1,shrink:1,children:[m.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[m.jsxs(F,{align:"center",direction:"row",children:[m.jsx(Z$,{children:m.jsx($r,{rounded:!0,size:64,src:t||"",type:"person"})}),(e||r)&&m.jsx(J$,{children:e||r})]}),!n&&m.jsx(Da,{href:`${n}${n!=null&&n.includes("?")?"&":"?"}open=system`,onClick:i=>i.stopPropagation(),target:"_blank",children:m.jsx(vn,{})})]}),m.jsx(F,{align:"center",direction:"row",justify:"flex-start",ml:6,mt:9,children:!!a&&m.jsx(oa,{children:A1.unix(a).fromNow()})})]}),Z$=B(F)` img { width: 64px; height: 64px; @@ -410,13 +410,13 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } margin-right: 16px; `,J$=B(F)` - color: ${M.white}; + color: ${P.white}; font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 600; line-height: 17px; -`,Q$=({text:e,imageUrl:t,date:r,twitterHandle:n,name:a,verified:i,sourceLink:o})=>h.jsxs(F,{direction:"column",children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",pr:16,children:[h.jsx(ej,{children:h.jsx($r,{rounded:!0,size:27,src:t||"",type:"person"})}),h.jsxs(F,{children:[h.jsxs(tj,{align:"center",direction:"row",children:[a,i&&h.jsx("div",{className:"verification",children:h.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),n&&h.jsxs(rj,{children:["@",n]})]})]}),o&&h.jsx(Da,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:s=>s.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsxs(F,{grow:1,shrink:1,children:[h.jsx(nj,{"data-testid":"episode-description",children:e}),h.jsx(F,{"data-testid":"date-text",direction:"row",justify:"flex-start",children:!!r&&h.jsx(oa,{children:ei.unix(r).fromNow()})})]})]}),ej=B(F)` +`,Q$=({text:e,imageUrl:t,date:r,twitterHandle:n,name:a,verified:i,sourceLink:o})=>m.jsxs(F,{direction:"column",children:[m.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[m.jsxs(F,{align:"center",direction:"row",pr:16,children:[m.jsx(ej,{children:m.jsx($r,{rounded:!0,size:27,src:t||"",type:"person"})}),m.jsxs(F,{children:[m.jsxs(tj,{align:"center",direction:"row",children:[a,i&&m.jsx("div",{className:"verification",children:m.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),n&&m.jsxs(rj,{children:["@",n]})]})]}),o&&m.jsx(Da,{href:`${o}${o!=null&&o.includes("?")?"&":"?"}open=system`,onClick:s=>s.stopPropagation(),target:"_blank",children:m.jsx(vn,{})})]}),m.jsxs(F,{grow:1,shrink:1,children:[m.jsx(nj,{"data-testid":"episode-description",children:e}),m.jsx(F,{"data-testid":"date-text",direction:"row",justify:"flex-start",children:!!r&&m.jsx(oa,{children:ei.unix(r).fromNow()})})]})]}),ej=B(F)` img { width: 64px; height: 64px; @@ -425,7 +425,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } margin-right: 16px; `,tj=B(F)` - color: ${M.white}; + color: ${P.white}; font-family: Barlow; font-size: 12px; font-style: normal; @@ -436,7 +436,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni margin-left: 4px; } `,rj=B(F)` - color: ${M.GRAY7}; + color: ${P.GRAY7}; font-family: Barlow; font-size: 11px; font-style: normal; @@ -444,7 +444,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni line-height: normal; letter-spacing: 0.2px; `,nj=B(F)` - color: ${M.white}; + color: ${P.white}; font-family: Barlow; font-size: 13px; font-style: normal; @@ -461,7 +461,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni padding: 24px; cursor: pointer; border-top: 1px solid #101317; - background: ${M.BG1}; + background: ${P.BG1}; .type-image { width: 20px; @@ -477,13 +477,13 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni .player-controls { margin-left: 4px; } -`,Ab=({boostCount:e,date:t,imageUrl:r,showTitle:n,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:c,className:d="episode-wrapper",onClick:p,node:g})=>{const m=Ct(A=>A.currentSearch),b=s1(A=>A.setHoveredNode),S=qr(String(i),m),v=qr(String(o),m),_=qr(String(a==="show"?"":n),m),w=["Tweet","person","guest","topic","document"];return h.jsxs(aj,{className:d,onClick:p,onMouseLeave:()=>{b(null)},onMouseOver:()=>{b(g)},children:[!w.includes(a)&&h.jsx(U$,{boostCount:e,date:t,imageUrl:r,newName:o,node:g,showTitle:n,type:a}),a==="topic"&&h.jsx(oj,{children:h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",pr:16,children:[h.jsx(_M,{}),h.jsx("p",{children:_})]}),s&&h.jsx(Da,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:A=>A.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&h.jsx(oa,{children:ei.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&h.jsx(X$,{date:t,imageUrl:r,name:v||"",sourceLink:s||"",title:n||""}),["image"].includes(a)&&h.jsx(q$,{date:t,imageUrl:s,name:v||"",sourceLink:s||""}),a==="Tweet"&&h.jsx(Q$,{date:t,imageUrl:r,name:v||"",sourceLink:s||"",text:S||"",twitterHandle:c,verified:l}),a==="document"&&h.jsx(Y$,{date:t,sourceLink:s||"",text:S||"",type:a})]})},ij=B(F)` +`,Ob=({boostCount:e,date:t,imageUrl:r,showTitle:n,type:a,text:i,name:o,sourceLink:s,verified:l=!1,twitterHandle:c,className:d="episode-wrapper",onClick:p,node:g})=>{const h=Ct(A=>A.currentSearch),b=s1(A=>A.setHoveredNode),S=qr(String(i),h),v=qr(String(o),h),_=qr(String(a==="show"?"":n),h),w=["Tweet","person","guest","topic","document"];return m.jsxs(aj,{className:d,onClick:p,onMouseLeave:()=>{b(null)},onMouseOver:()=>{b(g)},children:[!w.includes(a)&&m.jsx(U$,{boostCount:e,date:t,imageUrl:r,newName:o,node:g,showTitle:n,type:a}),a==="topic"&&m.jsx(oj,{children:m.jsxs(F,{grow:1,shrink:1,children:[m.jsxs(F,{align:"center",direction:"row",justify:"space-between",children:[m.jsxs(F,{align:"center",direction:"row",pr:16,children:[m.jsx(_M,{}),m.jsx("p",{children:_})]}),s&&m.jsx(Da,{href:`${s}${s!=null&&s.includes("?")?"&":"?"}open=system`,onClick:A=>A.stopPropagation(),target:"_blank",children:m.jsx(vn,{})})]}),m.jsx(F,{align:"center",direction:"row",justify:"flex-start",mt:9,children:!!t&&m.jsx(oa,{children:ei.unix(t).fromNow()})})]})}),["person","guest"].includes(a)&&m.jsx(X$,{date:t,imageUrl:r,name:v||"",sourceLink:s||"",title:n||""}),["image"].includes(a)&&m.jsx(q$,{date:t,imageUrl:s,name:v||"",sourceLink:s||""}),a==="Tweet"&&m.jsx(Q$,{date:t,imageUrl:r,name:v||"",sourceLink:s||"",text:S||"",twitterHandle:c,verified:l}),a==="document"&&m.jsx(Y$,{date:t,sourceLink:s||"",text:S||"",type:a})]})},ij=B(F)` font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 400; line-height: 17px; - color: ${M.white}; + color: ${P.white}; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 2; /* Limit to two lines */ @@ -493,7 +493,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni letter-spacing: 0.2px; `,oa=B(pt)` overflow: hidden; - color: ${M.GRAY6}; + color: ${P.GRAY6}; text-overflow: ellipsis; font-family: Barlow; font-size: 12px; @@ -509,7 +509,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni align-items: center; svg { - color: ${M.mainBottomIcons}; + color: ${P.mainBottomIcons}; margin-right: 10px; align-self: center; } @@ -550,7 +550,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni width: 4px; flex-shrink: 0; height: 4px; - background: ${M.GRAY6}; + background: ${P.GRAY6}; } &.is-show { @@ -566,7 +566,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni line-height: 17px; /* 130.769% */ } `;const Da=B.a` - color: ${M.GRAY6}; + color: ${P.GRAY6}; font-size: 16px; height: 16px; display: flex; @@ -575,11 +575,11 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni `,sj=B(F)` overflow-y: auto; overflow-x: hidden; - background: ${M.body}; -`,Ob=e=>{const{properties:t,ref_id:r}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:r,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},lj=({sourceIds:e})=>{const t=P.useRef(null),[r,n]=P.useState(!1),{dataInitial:a}=Pr(d=>d),i=Mo(),o=P.useCallback(d=>{i(d)},[i]),s=()=>n(!r),l=(a==null?void 0:a.nodes.filter(d=>e.includes(d.ref_id)))||[],c=r?l:[...l].slice(0,3);return h.jsxs(dj,{children:[h.jsx(Ca,{direction:"right",in:!0,mountOnEnter:!0,children:h.jsxs(cj,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",children:[h.jsx("div",{className:"heading__icon",children:h.jsx(TM,{})}),h.jsx("span",{className:"tittle",children:"Sources"}),h.jsx("span",{className:"heading__count",children:e.length})]}),h.jsxs(fj,{onClick:s,children:[r?"Hide all":"Show all",r?h.jsx(vb,{}):h.jsx(ql,{})]})]})}),r&&c.length>0&&h.jsx(sj,{ref:t,id:"search-result-list",shrink:1,children:c.map((d,p)=>{const g=Ob(d),{image_url:m,date:b,boost:S,show_title:v,node_type:O,text:_,source_link:w,name:A,verified:x=!1,twitter_handle:E}=g||{};return h.jsx(pj,{boostCount:S||0,date:b||0,imageUrl:m||"",name:A||"",node:d,onClick:()=>{o(d)},showTitle:Tb(v),sourceLink:w,text:_||"",twitterHandle:E,type:O,verified:x},p.toString())})})]})},uj=P.memo(lj),cj=B(F)` + background: ${P.body}; +`,kb=e=>{const{properties:t,ref_id:r}=e;return{boost:(t==null?void 0:t.boost)||0,children:[],x:0,y:0,z:0,edge_count:e.edge_count||0,hidden:!1,colors:[],date:t==null?void 0:t.date,description:"",episode_title:(t==null?void 0:t.episode_title)||"",hosts:[],guests:[],id:"",image_url:t==null?void 0:t.image_url,sender_pic:"",sender_alias:"",message_content:"",keyword:!1,label:"",source_link:(t==null?void 0:t.source_link)||"",link:(t==null?void 0:t.link)||"",name:e.name,node_type:e.node_type,ref_id:r,scale:1,show_title:(t==null?void 0:t.show_title)||"",text:t==null?void 0:t.text,timestamp:"",topics:[],type:(t==null?void 0:t.type)||"",weight:0,tweet_id:t==null?void 0:t.tweet_id,posted_by:void 0,twitter_handle:t==null?void 0:t.twitter_handle,profile_picture:"",verified:t==null?void 0:t.verified,unique_id:"",properties:{},media_url:""}},lj={edge_type:"POSTED",properties:{date_added_to_graph:"1737561660.0435429",weight:1},ref_id:"7efabdc1-b494-4d8c-8d55-5062ce1237d3",source:"efa4819e-a54e-49dd-858f-2aed5cf10940",target:"0ba6ef37-bf92-4094-89a0-893f05d34e6c"},uj=({sourceIds:e,question:t})=>{const r=M.useRef(null),[n,a]=M.useState(!1),i=Pr(h=>h.addNewNode),o=M.useRef(!1),{dataInitial:s}=Mo(h=>h),l=Po(),c=M.useMemo(()=>(s==null?void 0:s.nodes.filter(h=>e.includes(h.ref_id)))||[],[s==null?void 0:s.nodes,e]);M.useEffect(()=>{if(!c.length||o.current)return;const h=c.map((b,S)=>({...lj,source:t,target:b.ref_id,ref_id:`${String(+new Date)}-${S}`,edge_type:"IS_SOURCE",properties:{date_added_to_graph:String(new Date),weight:1}}));o.current=!0,i({nodes:c,edges:h})},[c,i,t]);const d=()=>a(!n),p=n?c:[...c].slice(0,3),g=M.useCallback(h=>{l(h)},[l]);return m.jsxs(pj,{children:[m.jsx(Ca,{direction:"right",in:!0,mountOnEnter:!0,children:m.jsxs(dj,{align:"center",className:"heading",direction:"row",justify:"space-between",children:[m.jsxs(F,{align:"center",direction:"row",children:[m.jsx("div",{className:"heading__icon",children:m.jsx(TM,{})}),m.jsx("span",{className:"tittle",children:"Sources"}),m.jsx("span",{className:"heading__count",children:e.length})]}),m.jsxs(gj,{onClick:d,children:[n?"Hide all":"Show all",n?m.jsx(Sb,{}):m.jsx(Hl,{})]})]})}),n&&p.length>0&&m.jsx(sj,{ref:r,id:"search-result-list",shrink:1,children:p.map((h,b)=>{const S=kb(h),{image_url:v,date:O,boost:_,show_title:w,node_type:A,text:x,source_link:E,name:k,verified:N=!1,twitter_handle:I}=S||{};return m.jsx(fj,{boostCount:_||0,date:O||0,imageUrl:v||"",name:k||"",node:h,onClick:()=>{g(h)},showTitle:Ab(w),sourceLink:E,text:x||"",twitterHandle:I,type:A,verified:N},b.toString())})})]})},cj=M.memo(uj),dj=B(F)` &.heading { font-weight: 600; - color: ${M.white}; + color: ${P.white}; font-size: 14px; padding: 24px 24px 0; align-items: center; @@ -592,7 +592,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni .heading__count { font-weight: 400; - color: ${M.GRAY7}; + color: ${P.GRAY7}; margin-left: 12px; line-height: 32px; text-align: left; @@ -606,20 +606,20 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni font-family: Barlow; line-height: 32px; text-align: left; - color: ${M.white}; + color: ${P.white}; } } -`,dj=B(F)` +`,pj=B(F)` border-top: 1px solid rgba(0, 0, 0, 0.3); padding-bottom: 25px; -`,pj=B(Ab)` +`,fj=B(Ob)` &:first-child { border-top: none; } -`,fj=B(Mt)` +`,gj=B(Mt)` &&.MuiButton-root { - background-color: ${M.COLLAPSE_BUTTON}; - color: ${M.white}; + background-color: ${P.COLLAPSE_BUTTON}; + color: ${P.white}; border: none; cursor: pointer; display: flex; @@ -637,8 +637,8 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } &&:hover { - background-color: ${M.COLLAPSE_BUTTON}; - color: ${M.white}; + background-color: ${P.COLLAPSE_BUTTON}; + color: ${P.white}; } svg { @@ -647,10 +647,10 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni height: 9px; color: white; } -`,gj=B(F).attrs({direction:"column"})` +`,hj=B(F).attrs({direction:"column"})` padding: 24px; cursor: pointer; - background: ${M.BG1}; + background: ${P.BG1}; .type-image { width: 20px; @@ -663,19 +663,19 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni background: #353a46; border-radius: 0.5rem; } -`,hj=B(F)` +`,mj=B(F)` gap: 1.1875rem; margin-top: 1rem; -`,mj=B.span` +`,bj=B.span` display: inline-flex; align-items: center; justify-content: center; color: white; margin-right: 0.5rem; -`,bj=B(pt)` +`,yj=B(pt)` font-weight: 600; font-size: 0.9375rem; -`,yi=8,xs=332,yj=()=>h.jsx(h.Fragment,{children:h.jsx(gj,{children:h.jsxs(F,{direction:"column",children:[h.jsxs(F,{direction:"row",children:[h.jsx(mj,{children:h.jsx(AM,{})}),h.jsx(bj,{children:"Answer"})]}),h.jsxs(hj,{grow:1,shrink:1,children:[h.jsx(bi,{height:yi,variant:"rectangular",width:xs}),h.jsx(bi,{height:yi,variant:"rectangular",width:xs}),h.jsx(bi,{height:yi,variant:"rectangular",width:xs}),h.jsx(bi,{height:yi,variant:"rectangular",width:xs}),h.jsx(bi,{height:yi,variant:"rectangular",width:180})]})]})})}),vj=B(pt)` +`,yi=8,ws=332,vj=()=>m.jsx(m.Fragment,{children:m.jsx(hj,{children:m.jsxs(F,{direction:"column",children:[m.jsxs(F,{direction:"row",children:[m.jsx(bj,{children:m.jsx(AM,{})}),m.jsx(yj,{children:"Answer"})]}),m.jsxs(mj,{grow:1,shrink:1,children:[m.jsx(bi,{height:yi,variant:"rectangular",width:ws}),m.jsx(bi,{height:yi,variant:"rectangular",width:ws}),m.jsx(bi,{height:yi,variant:"rectangular",width:ws}),m.jsx(bi,{height:yi,variant:"rectangular",width:ws}),m.jsx(bi,{height:yi,variant:"rectangular",width:180})]})]})})}),Sj=B(pt)` font-size: 20px; font-weight: 600; flex-grow: 1; @@ -683,15 +683,15 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni white-space: normal; word-break: break-word; margin-right: 10px; -`,Sj=B(F).attrs({direction:"row",alignItems:"center"})` +`,Ej=B(F).attrs({direction:"row",alignItems:"center"})` padding: 24px 10px 24px 24px; flex-shrink: 1; overflow: hidden; -`,Wv=({question:e,response:t,refId:r})=>{var v;const n=P.useRef(null),[a,i]=P.useState(!1),{setAiSummaryAnswer:o}=XO(O=>O),s=P.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:c}=Ct(O=>O),[d,p]=P.useState(!1);P.useEffect(()=>{n.current&&n.current.scrollIntoView({behavior:"smooth"})},[]),P.useEffect(()=>{const O=s.current,_=()=>{c(null),p(!1)};return O&&O.addEventListener("ended",_),()=>{O&&O.removeEventListener("ended",_)}},[c,d]);const g=()=>{i(!a)},m=()=>{r&&o(r,{hasBeenRendered:!0})},b=()=>{s.current&&(s.current.paused?(s.current.play(),c(s),p(!0)):(s.current.pause(),c(null),p(!1)))},S=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),c(null)),b()};return h.jsxs(Ej,{children:[h.jsxs(Sj,{children:[h.jsx(vj,{ref:n,children:e}),t.audio_en&&h.jsx(wj,{onClick:S,children:(l==null?void 0:l.current)===s.current&&!((v=s.current)!=null&&v.paused)?h.jsx(l1,{}):h.jsx(u1,{})}),h.jsx(xj,{onClick:g,children:a?h.jsx(ql,{}):h.jsx(vb,{})})]}),!a&&h.jsxs(h.Fragment,{children:[t.answerLoading?h.jsx(yj,{}):h.jsx(C$,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>m(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?h.jsx(w1,{count:1}):h.jsx(L$,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?h.jsx(uj,{sourceIds:t.sources||[]}):null]}),t.audio_en&&h.jsx(_j,{ref:s,src:t.audio_en,children:h.jsx("track",{kind:"captions"})})]})},Ej=B(F).attrs({direction:"column"})` +`,Vv=({question:e,response:t,refId:r})=>{var v;const n=M.useRef(null),[a,i]=M.useState(!1),{setAiSummaryAnswer:o}=Mo(O=>O),s=M.useRef(null),{currentPlayingAudio:l,setCurrentPlayingAudio:c}=Ct(O=>O),[d,p]=M.useState(!1);M.useEffect(()=>{n.current&&n.current.scrollIntoView({behavior:"smooth"})},[]),M.useEffect(()=>{const O=s.current,_=()=>{c(null),p(!1)};return O&&O.addEventListener("ended",_),()=>{O&&O.removeEventListener("ended",_)}},[c,d]);const g=()=>{i(!a)},h=()=>{r&&o(r,{hasBeenRendered:!0})},b=()=>{s.current&&(s.current.paused?(s.current.play(),c(s),p(!0)):(s.current.pause(),c(null),p(!1)))},S=()=>{l!=null&&l.current&&l.current!==s.current&&(l.current.pause(),c(null)),b()};return m.jsxs(xj,{children:[m.jsxs(Ej,{children:[m.jsx(Sj,{ref:n,children:e}),t.audio_en&&m.jsx(_j,{onClick:S,children:(l==null?void 0:l.current)===s.current&&!((v=s.current)!=null&&v.paused)?m.jsx(l1,{}):m.jsx(u1,{})}),m.jsx(wj,{onClick:g,children:a?m.jsx(Hl,{}):m.jsx(Sb,{})})]}),!a&&m.jsxs(m.Fragment,{children:[t.answerLoading?m.jsx(vj,{}):m.jsx(C$,{answer:t.answer||"",entities:t.entities,handleLoaded:()=>h(),hasBeenRendered:!!(t!=null&&t.hasBeenRendered)}),t.questionsLoading?m.jsx(w1,{count:1}):m.jsx(L$,{questions:t.questions||[]}),((t==null?void 0:t.sources)||[]).length?m.jsx(cj,{question:e,sourceIds:t.sources||[]}):null]}),t.audio_en&&m.jsx(Tj,{ref:s,src:t.audio_en,children:m.jsx("track",{kind:"captions"})})]})},xj=B(F).attrs({direction:"column"})` border-top: 1px solid #101317; -`,xj=B(Mt)` +`,wj=B(Mt)` &&.MuiButton-root { - background-color: ${M.COLLAPSE_BUTTON}; + background-color: ${P.COLLAPSE_BUTTON}; border: none; cursor: pointer; flex-shrink: 0; @@ -711,9 +711,9 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni height: 9px; color: white; } -`,wj=B(Mt)` +`,_j=B(Mt)` &&.MuiButton-root { - background-color: ${M.COLLAPSE_BUTTON}; + background-color: ${P.COLLAPSE_BUTTON}; border: none; cursor: pointer; flex-shrink: 0; @@ -734,17 +734,17 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni height: 12px; color: white; } -`,_j=B.audio` +`,Tj=B.audio` display: none; -`,Tj=390,Aj=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:r,setNewLoading:n}=XO(l=>l),{abortFetchData:a,resetGraph:i}=Pr(l=>l),o=Bl(),s=()=>{n(null),a(),i(),t(),o("/")};return h.jsxs(Oj,{children:[h.jsx(F,{align:"flex-start",children:h.jsx(F,{p:24,children:h.jsx(Mt,{onClick:s,startIcon:h.jsx(OM,{}),children:"Home"})})}),h.jsx(kj,{children:h.jsxs(F,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var c;return h.jsx(Wv,{question:((c=e[l])==null?void 0:c.question)||"",refId:l,response:e[l]},l)}),r&&h.jsx(Wv,{question:r.question||"",refId:"",response:r})]})}),h.jsx(v$,{})]})},Oj=B(F)(({theme:e})=>({position:"relative",background:M.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:Tj}})),kj=B(F)` +`,Aj=390,Oj=()=>{const{aiSummaryAnswers:e,resetAiSummaryAnswer:t,newLoading:r,setNewLoading:n}=Mo(l=>l),{abortFetchData:a,resetGraph:i}=Pr(l=>l),o=Ul(),s=()=>{n(null),a(),i(),t(),o("/")};return m.jsxs(kj,{children:[m.jsx(F,{align:"flex-start",children:m.jsx(F,{p:24,children:m.jsx(Mt,{onClick:s,startIcon:m.jsx(OM,{}),children:"Home"})})}),m.jsx(Rj,{children:m.jsxs(F,{children:[Object.keys(e).filter(l=>e[l].shouldRender).map(l=>{var c;return m.jsx(Vv,{question:((c=e[l])==null?void 0:c.question)||"",refId:l,response:e[l]},l)}),r&&m.jsx(Vv,{question:r.question||"",refId:"",response:r})]})}),m.jsx(v$,{})]})},kj=B(F)(({theme:e})=>({position:"relative",background:P.BG1,flex:1,width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:Aj}})),Rj=B(F)` overflow-y: auto; overflow-x: hidden; flex: 1; width: 100%; -`,Rj=()=>{var p;const[e,t]=P.useState(null),{sidebarFilter:r,setSidebarFilter:n,sidebarFilterCounts:a=[]}=Pr(g=>g),i=(r??"").toLowerCase(),o=((p=a.find(g=>g.name===i))==null?void 0:p.count)||0,s=g=>g?g.charAt(0).toUpperCase()+g.slice(1):"",l=g=>{o>=1&&t(g.currentTarget)},c=()=>{t(null)},d=g=>{n(g),c()};return h.jsxs("div",{children:[h.jsxs(Ij,{onClick:l,children:[h.jsx("div",{className:"text",children:"Show"}),h.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&h.jsx("div",{className:"icon",children:e?h.jsx(vb,{}):h.jsx(ql,{})})]}),h.jsx(Cj,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:h.jsx(WM,{children:a.filter(({name:g})=>g).map(({name:g,count:m})=>h.jsxs(Nj,{className:dn({active:g===r}),onClick:b=>{b.preventDefault(),d(g)},children:[h.jsx("span",{className:"icon",children:g===r?h.jsx(c1,{}):null}),h.jsx("span",{children:`${s(g)} (${m})`})]},g))})})]})},Ij=B(F).attrs({direction:"row",align:"center"})` +`,Ij=()=>{var p;const[e,t]=M.useState(null),{sidebarFilter:r,setSidebarFilter:n,sidebarFilterCounts:a=[]}=Pr(g=>g),i=(r??"").toLowerCase(),o=((p=a.find(g=>g.name===i))==null?void 0:p.count)||0,s=g=>g?g.charAt(0).toUpperCase()+g.slice(1):"",l=g=>{o>=1&&t(g.currentTarget)},c=()=>{t(null)},d=g=>{n(g),c()};return m.jsxs("div",{children:[m.jsxs(Nj,{onClick:l,children:[m.jsx("div",{className:"text",children:"Show"}),m.jsx("div",{className:"value","data-testid":"value",children:`${s(i)} (${o})`}),o>=1&&m.jsx("div",{className:"icon",children:e?m.jsx(Sb,{}):m.jsx(Hl,{})})]}),m.jsx(Dj,{anchorEl:e,anchorOrigin:{vertical:"bottom",horizontal:"left"},anchorPosition:{top:62,left:0},onClose:c,open:!!e,transformOrigin:{vertical:"top",horizontal:"left"},children:m.jsx(WM,{children:a.filter(({name:g})=>g).map(({name:g,count:h})=>m.jsxs(Cj,{className:dn({active:g===r}),onClick:b=>{b.preventDefault(),d(g)},children:[m.jsx("span",{className:"icon",children:g===r?m.jsx(c1,{}):null}),m.jsx("span",{children:`${s(g)} (${h})`})]},g))})})]})},Nj=B(F).attrs({direction:"row",align:"center"})` cursor: pointer; flex-grow: 1; - color: ${M.GRAY6}; + color: ${P.GRAY6}; font-family: Barlow; font-size: 13px; font-style: normal; @@ -752,25 +752,25 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni padding: 0 8px; .value, .icon { - color: ${M.white}; + color: ${P.white}; } .value { margin: 0 8px 0 4px; } -`,Nj=B(F).attrs({direction:"row",align:"center"})` +`,Cj=B(F).attrs({direction:"row",align:"center"})` font-family: Barlow; font-size: 13px; font-style: normal; font-weight: 500; - color: ${M.GRAY3}; + color: ${P.GRAY3}; height: 27px; cursor: pointer; &.active { - color: ${M.white}; + color: ${P.white}; } &:hover { - color: ${M.white}; + color: ${P.white}; } .icon { @@ -778,16 +778,16 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni width: 9px; font-size: 10px; } -`,Cj=B(kM)` +`,Dj=B(kM)` .MuiPaper-root { - background: ${M.BUTTON1}; + background: ${P.BUTTON1}; min-width: 149px; padding: 16px; - color: ${M.GRAY3}; + color: ${P.GRAY3}; box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2); border-radius: 6px; } -`,uc={Monitoring:["Bugevent","Trace","Application","Report","Stacktrace"]},Dj=({handleFastFiltersSelect:e})=>{const[t,r]=P.useState(""),n=a=>{if(t===a){e([]),r("");return}uc[a]&&(e(uc[a]),r(a))};return h.jsxs(h.Fragment,{children:[h.jsx(Lj,{children:h.jsx("div",{children:"Favorites"})}),h.jsx(Fo,{children:h.jsx(Mj,{children:Object.keys(uc).map(a=>h.jsx(Pj,{isSelected:a===t,onClick:()=>n(a),children:a},a))})})]})},Lj=B.div` +`,cc={Monitoring:["Bugevent","Trace","Application","Report","Stacktrace"]},Lj=({handleFastFiltersSelect:e})=>{const[t,r]=M.useState(""),n=a=>{if(t===a){e([]),r("");return}cc[a]&&(e(cc[a]),r(a))};return m.jsxs(m.Fragment,{children:[m.jsx(Mj,{children:m.jsx("div",{children:"Favorites"})}),m.jsx(Bo,{children:m.jsx(Pj,{children:Object.keys(cc).map(a=>m.jsx($j,{isSelected:a===t,onClick:()=>n(a),children:a},a))})})]})},Mj=B.div` display: flex; justify-content: space-between; align-items: center; @@ -795,16 +795,16 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni font-family: Barlow; font-size: 18px; font-weight: 500; -`,Mj=B(F).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,Pj=B(F).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` flex-wrap: wrap; gap: 10px; max-height: 400px; overflow-y: auto; padding-right: 10px; margin-right: calc(0px - 16px); -`,Pj=B(F).attrs({align:"center",direction:"row",justify:"flex-start"})` - color: ${({isSelected:e})=>e?M.black:M.white}; - background: ${({isSelected:e})=>e?M.white:M.BUTTON1_PRESS}; +`,$j=B(F).attrs({align:"center",direction:"row",justify:"flex-start"})` + color: ${({isSelected:e})=>e?P.black:P.white}; + background: ${({isSelected:e})=>e?P.white:P.BUTTON1_PRESS}; padding: 6px 10px 6px 8px; font-family: Barlow; font-size: 13px; @@ -817,22 +817,22 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni cursor: pointer; &:hover { - background: ${({isSelected:e})=>e?M.white:M.BUTTON1_PRESS}; + background: ${({isSelected:e})=>e?P.white:P.BUTTON1_PRESS}; } &:active { - background: ${M.white}; - color: ${M.black}; + background: ${P.white}; + color: ${P.black}; } -`,$j=({hops:e,setHops:t})=>h.jsxs(h.Fragment,{children:[h.jsxs(Rb,{children:[h.jsx("div",{children:"Hops"}),h.jsx(kb,{children:"Distance away from source nodes"})]}),h.jsx(Fo,{children:h.jsxs(jj,{children:[h.jsx(Bv,{control:h.jsx(Vv,{checked:e===1,onChange:()=>t(1)}),label:"Direct relationship"}),h.jsx(Bv,{control:h.jsx(Vv,{checked:e===2,onChange:()=>t(2)}),label:"2 hops away"})]})})]}),jj=B(F).attrs({direction:"column",align:"flex-start"})` +`,jj=({hops:e,setHops:t})=>m.jsxs(m.Fragment,{children:[m.jsxs(Ib,{children:[m.jsx("div",{children:"Hops"}),m.jsx(Rb,{children:"Distance away from source nodes"})]}),m.jsx(Bo,{children:m.jsxs(Fj,{children:[m.jsx(Uv,{control:m.jsx(Yv,{checked:e===1,onChange:()=>t(1)}),label:"Direct relationship"}),m.jsx(Uv,{control:m.jsx(Yv,{checked:e===2,onChange:()=>t(2)}),label:"2 hops away"})]})})]}),Fj=B(F).attrs({direction:"column",align:"flex-start"})` gap: 10px; -`,Vv=B(LP)` +`,Yv=B(LP)` && { .MuiSvgIcon-root { border-radius: 8px; } } -`,Fj=({maxResults:e,setMaxResults:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return h.jsxs(h.Fragment,{children:[h.jsxs(Rb,{children:[h.jsx("div",{children:"Max results"}),h.jsx(kb,{children:"Total number of relationships"})]}),h.jsxs(Fo,{children:[h.jsxs(k1,{children:[h.jsx("span",{children:"0"}),h.jsx("span",{children:"300"})]}),h.jsx(O1,{direction:"row",children:h.jsx(Bj,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Bj=B(Wl)({"& .MuiSlider-valueLabel":{backgroundColor:`${M.primaryBlue}`}}),Uj=({handleSchemaTypeClick:e,selectedTypes:t,schemaAll:r})=>{const[n,a]=P.useState(!1),s=3*4,l=(n?r:r.slice(0,s)).filter((c,d,p)=>d===p.findIndex(g=>g.type===c.type));return h.jsxs(h.Fragment,{children:[h.jsxs(Gj,{children:[h.jsx("div",{children:"Type"}),h.jsxs(zj,{children:[h.jsx(qj,{children:t.length}),h.jsx(Hj,{children:"Selected"})]})]}),h.jsxs(Fo,{children:[h.jsx(Vj,{children:l.map(c=>h.jsx(Yj,{isSelected:t.includes(c.type),onClick:()=>e(c==null?void 0:c.type),children:c.type},c.type))}),!n&&r.length>s&&h.jsx(Kj,{onClick:()=>a(!0),children:h.jsxs(Wj,{children:[h.jsx(yb,{})," View More"]})})]})]})},Gj=B.div` +`,Bj=({maxResults:e,setMaxResults:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return m.jsxs(m.Fragment,{children:[m.jsxs(Ib,{children:[m.jsx("div",{children:"Max results"}),m.jsx(Rb,{children:"Total number of relationships"})]}),m.jsxs(Bo,{children:[m.jsxs(k1,{children:[m.jsx("span",{children:"0"}),m.jsx("span",{children:"300"})]}),m.jsx(O1,{direction:"row",children:m.jsx(Uj,{className:"volume-slider","data-testid":"max-results-slider",max:300,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Uj=B(Vl)({"& .MuiSlider-valueLabel":{backgroundColor:`${P.primaryBlue}`}}),Gj=({handleSchemaTypeClick:e,selectedTypes:t,schemaAll:r})=>{const[n,a]=M.useState(!1),s=3*4,l=(n?r:r.slice(0,s)).filter((c,d,p)=>d===p.findIndex(g=>g.type===c.type));return m.jsxs(m.Fragment,{children:[m.jsxs(zj,{children:[m.jsx("div",{children:"Type"}),m.jsxs(qj,{children:[m.jsx(Hj,{children:t.length}),m.jsx(Wj,{children:"Selected"})]})]}),m.jsxs(Bo,{children:[m.jsx(Yj,{children:l.map(c=>m.jsx(Kj,{isSelected:t.includes(c.type),onClick:()=>e(c==null?void 0:c.type),children:c.type},c.type))}),!n&&r.length>s&&m.jsx(Xj,{onClick:()=>a(!0),children:m.jsxs(Vj,{children:[m.jsx(vb,{})," View More"]})})]})]})},zj=B.div` display: flex; justify-content: space-between; align-items: center; @@ -840,16 +840,16 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni font-family: Barlow; font-size: 18px; font-weight: 500; -`,zj=B.div` +`,qj=B.div` font-size: 13px; display: flex; align-items: center; -`,qj=B.span` - color: ${M.white}; `,Hj=B.span` - color: ${M.GRAY3}; - margin-left: 4px; + color: ${P.white}; `,Wj=B.span` + color: ${P.GRAY3}; + margin-left: 4px; +`,Vj=B.span` display: flex; justify-content: space-between; align-items: center; @@ -861,14 +861,14 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni fill: none; margin-top: 2px; } -`,Vj=B(F).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` +`,Yj=B(F).attrs({align:"center",direction:"row",grow:1,justify:"flex-start"})` flex-wrap: wrap; gap: 10px; padding-right: 10px; margin-right: calc(0px - 16px); -`,Yj=B(F).attrs({align:"center",direction:"row",justify:"flex-start"})` - color: ${({isSelected:e})=>e?M.black:M.white}; - background: ${({isSelected:e})=>e?M.white:M.BUTTON1_PRESS}; +`,Kj=B(F).attrs({align:"center",direction:"row",justify:"flex-start"})` + color: ${({isSelected:e})=>e?P.black:P.white}; + background: ${({isSelected:e})=>e?P.white:P.BUTTON1_PRESS}; padding: 6px 10px 6px 8px; font-family: Barlow; font-size: 13px; @@ -881,16 +881,16 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni cursor: pointer; &:hover { - background: ${({isSelected:e})=>e?M.white:M.BUTTON1_PRESS}; + background: ${({isSelected:e})=>e?P.white:P.BUTTON1_PRESS}; } &:active { - background: ${M.white}; - color: ${M.black}; + background: ${P.white}; + color: ${P.black}; } -`,Kj=B.button` +`,Xj=B.button` background: transparent; - color: ${M.white}; + color: ${P.white}; border: none; padding: 6px 12px 6px 3px; margin-top: 20px; @@ -901,25 +901,25 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni font-weight: 500; &:hover { - background: ${M.BUTTON1_HOVER}; + background: ${P.BUTTON1_HOVER}; } &:active { - background: ${M.BUTTON1_PRESS}; + background: ${P.BUTTON1_PRESS}; } -`,Xj=({sourceNodes:e,setSourceNodes:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return h.jsxs(h.Fragment,{children:[h.jsxs(Rb,{children:[h.jsx("div",{children:"Source Nodes"}),h.jsx(kb,{children:"Core set of nodes based on search term"})]}),h.jsxs(Fo,{children:[h.jsxs(k1,{children:[h.jsx("span",{children:"0"}),h.jsx("span",{children:"100"})]}),h.jsx(O1,{direction:"row",children:h.jsx(Zj,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Zj=B(Wl)({"& .MuiSlider-valueLabel":{backgroundColor:`${M.primaryBlue}`}}),An={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},Jj=({anchorEl:e,setAnchorEl:t,onClose:r})=>{const[n,a]=bb(k=>[k.schemas,k.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s,resetData:l}=Pr(k=>k),[c,d]=P.useState(An.selectedTypes),[p,g]=P.useState(An.hops),[m,b]=P.useState(An.sourceNodes),[S,v]=P.useState(An.maxResults),{fastFiltersFeatureFlag:O}=ZO(k=>k);P.useEffect(()=>{(async()=>{try{const N=await ZL();a(N.schemas.filter(I=>!I.is_deleted))}catch(N){console.error("Error fetching schema:",N)}})()},[a]);const _=k=>{d(N=>N.includes(k)?N.filter(I=>I!==k):[...N,k])},w=k=>{d(k)},A=()=>{d(An.selectedTypes),g(An.hops),b(An.sourceNodes),v(An.maxResults)},x=async()=>{A(),i(),o()},E=async()=>{s({node_type:c,limit:S,depth:p.toString(),top_node_count:m.toString()}),l(),t(null),r()};return h.jsxs(Qj,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[O&&h.jsxs(h.Fragment,{children:[h.jsx(Dj,{handleFastFiltersSelect:w}),h.jsx(vi,{})]}),h.jsx(Uj,{handleSchemaTypeClick:_,schemaAll:n,selectedTypes:c}),h.jsx(vi,{}),h.jsx(Xj,{setSourceNodes:b,sourceNodes:m}),h.jsx(vi,{}),h.jsx($j,{hops:p,setHops:g}),h.jsx(vi,{}),h.jsx(Fj,{maxResults:S,setMaxResults:v}),h.jsxs(eF,{children:[h.jsx(vi,{}),h.jsxs(aF,{children:[h.jsxs(tF,{color:"secondary",onClick:x,size:"large",style:{marginRight:20},variant:"contained",children:[h.jsx(rF,{children:h.jsx(JO,{})}),"Clear"]}),h.jsx(nF,{color:"secondary",onClick:E,size:"large",variant:"contained",children:"Apply"})]})]})]})},Qj=B(xb)` +`,Zj=({sourceNodes:e,setSourceNodes:t})=>{const r=(n,a)=>{const i=Array.isArray(a)?a[0]:a;t(i)};return m.jsxs(m.Fragment,{children:[m.jsxs(Ib,{children:[m.jsx("div",{children:"Source Nodes"}),m.jsx(Rb,{children:"Core set of nodes based on search term"})]}),m.jsxs(Bo,{children:[m.jsxs(k1,{children:[m.jsx("span",{children:"0"}),m.jsx("span",{children:"100"})]}),m.jsx(O1,{direction:"row",children:m.jsx(Jj,{className:"volume-slider","data-testid":"source-nodes-slider",max:100,min:0,onChange:r,size:"medium",step:1,value:e,valueLabelDisplay:"on"})})]})]})},Jj=B(Vl)({"& .MuiSlider-valueLabel":{backgroundColor:`${P.primaryBlue}`}}),An={selectedTypes:[],hops:1,sourceNodes:10,maxResults:30},Qj=({anchorEl:e,setAnchorEl:t,onClose:r})=>{const[n,a]=yb(k=>[k.schemas,k.setSchemas]),{abortFetchData:i,resetGraph:o,setFilters:s,resetData:l}=Pr(k=>k),[c,d]=M.useState(An.selectedTypes),[p,g]=M.useState(An.hops),[h,b]=M.useState(An.sourceNodes),[S,v]=M.useState(An.maxResults),{fastFiltersFeatureFlag:O}=ZO(k=>k);M.useEffect(()=>{(async()=>{try{const N=await ZL();a(N.schemas.filter(I=>!I.is_deleted))}catch(N){console.error("Error fetching schema:",N)}})()},[a]);const _=k=>{d(N=>N.includes(k)?N.filter(I=>I!==k):[...N,k])},w=k=>{d(k)},A=()=>{d(An.selectedTypes),g(An.hops),b(An.sourceNodes),v(An.maxResults)},x=async()=>{A(),i(),o()},E=async()=>{s({node_type:c,limit:S,depth:p.toString(),top_node_count:h.toString()}),l(),t(null),r()};return m.jsxs(eF,{anchorEl:e,disablePortal:!0,modifiers:[{name:"offset",options:{offset:[0,10]}}],open:!!e,placement:"bottom-end",children:[O&&m.jsxs(m.Fragment,{children:[m.jsx(Lj,{handleFastFiltersSelect:w}),m.jsx(vi,{})]}),m.jsx(Gj,{handleSchemaTypeClick:_,schemaAll:n,selectedTypes:c}),m.jsx(vi,{}),m.jsx(Zj,{setSourceNodes:b,sourceNodes:h}),m.jsx(vi,{}),m.jsx(jj,{hops:p,setHops:g}),m.jsx(vi,{}),m.jsx(Bj,{maxResults:S,setMaxResults:v}),m.jsxs(tF,{children:[m.jsx(vi,{}),m.jsxs(iF,{children:[m.jsxs(rF,{color:"secondary",onClick:x,size:"large",style:{marginRight:20},variant:"contained",children:[m.jsx(nF,{children:m.jsx(JO,{})}),"Clear"]}),m.jsx(aF,{color:"secondary",onClick:E,size:"large",variant:"contained",children:"Apply"})]})]})]})},eF=B(wb)` &&.MuiPopper-root { - background: ${M.BG2}; + background: ${P.BG2}; padding: 16px; max-height: calc(100% - 20%); - color: ${M.white}; + color: ${P.white}; box-shadow: 0px 1px 6px 0px rgba(0, 0, 0, 0.2); border-radius: 9px; max-width: 361px; overflow-x: hidden; padding-bottom: 0 !important; overflow-y: auto; - border: 1px solid ${M.black}; + border: 1px solid ${P.black}; z-index: 100; position: relative; &::-webkit-scrollbar { @@ -928,60 +928,60 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } &::-webkit-scrollbar-track { - background: ${M.BG2}; + background: ${P.BG2}; border-radius: 9px; margin-top: 5px; margin-bottom: 68px; overflow-y: hidden; } } -`,eF=B.div` +`,tF=B.div` justify-content: space-between; align-items: center; padding: 0px 8px 8px 8px; position: sticky; bottom: 0; - background: ${M.BG2}; + background: ${P.BG2}; width: calc(100% + 32px); margin: -16px; `,vi=B.div` - border: 1px solid ${M.black}; + border: 1px solid ${P.black}; width: calc(100% + 32px); margin: 13px -16px; -`,tF=B(Mt)` +`,rF=B(Mt)` && { - color: ${M.white}; - background-color: ${M.BUTTON1}; + color: ${P.white}; + background-color: ${P.BUTTON1}; padding-left: 4px; &:hover, &:active, &:focus { color: rgba(255, 255, 255, 0.85); - background-color: ${M.BUTTON1}; + background-color: ${P.BUTTON1}; } } -`,rF=B.span` +`,nF=B.span` svg { width: 32px; height: 32px; - color: ${M.GRAY7}; + color: ${P.GRAY7}; fill: none; margin-top: 4px; } -`,nF=B(Mt)` +`,aF=B(Mt)` && { flex: 1; padding: 2px 55px; } -`,kb=B.div` +`,Rb=B.div` font-family: Barlow; font-size: 13px; font-weight: 500; line-height: 15.6px; text-align: left; margin-top: 10px; - color: ${M.modalAuth}; -`,Rb=B.div` + color: ${P.modalAuth}; +`,Ib=B.div` display: flex; flex-direction: column; font-family: Barlow; @@ -992,18 +992,18 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni .volume-slider { display: block; - color: ${M.modalShield}; + color: ${P.modalShield}; height: 4px; .MuiSlider-track { border: none; } .MuiSlider-rail { - background-color: ${M.black}; + background-color: ${P.black}; } .MuiSlider-thumb { width: 20px; height: 20px; - background-color: ${M.white}; + background-color: ${P.white}; &:before { box-shadow: '0 4px 8px rgba(0,0,0,0.4)'; } @@ -1019,18 +1019,18 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni flex-direction: row; justify-content: space-between; margin: 10px auto; -`,aF=B(F)` +`,iF=B(F)` flex-direction: row; margin: 0 0 6px 3px; -`,Fo=B.div` +`,Bo=B.div` padding: 13px 0; position: relative; -`,cc=[["Searching","Podcast Index"],["Finding","Transcripts"],["Loading","Audio Clips"],["Loading","Video Clips"],["Preparing","Results"]],iF=()=>{const[e,t]=P.useState(0);return P.useEffect(()=>{if(e===cc.length-1)return;const r=setTimeout(()=>t(n=>(n+1)%cc.length),2e3);return()=>clearTimeout(r)},[e]),h.jsx(oF,{direction:"column",children:cc.map((r,n)=>h.jsxs(F,{className:dn("raw-wrapper",{show:e===n}),direction:"row",children:[h.jsx("div",{className:dn("action"),children:r[0]}),h.jsx("div",{className:dn("entity"),children:r[1]}),h.jsx("div",{children:h.jsx(b$,{color:M.SECONDARY_BLUE,size:2})})]},r[1]))})},oF=B(F)` +`,dc=[["Searching","Podcast Index"],["Finding","Transcripts"],["Loading","Audio Clips"],["Loading","Video Clips"],["Preparing","Results"]],oF=()=>{const[e,t]=M.useState(0);return M.useEffect(()=>{if(e===dc.length-1)return;const r=setTimeout(()=>t(n=>(n+1)%dc.length),2e3);return()=>clearTimeout(r)},[e]),m.jsx(sF,{direction:"column",children:dc.map((r,n)=>m.jsxs(F,{className:dn("raw-wrapper",{show:e===n}),direction:"row",children:[m.jsx("div",{className:dn("action"),children:r[0]}),m.jsx("div",{className:dn("entity"),children:r[1]}),m.jsx("div",{children:m.jsx(b$,{color:P.SECONDARY_BLUE,size:2})})]},r[1]))})},sF=B(F)` overflow: hidden; height: 20px; position: relative; .action { - color: ${M.white}; + color: ${P.white}; margin-right: 8px; } @@ -1045,18 +1045,18 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } .entity { - color: ${M.SECONDARY_BLUE}; + color: ${P.SECONDARY_BLUE}; } -`,sF=()=>{const{nodeCount:e,setNodeCount:t,setBudget:r}=Ul(o=>o),{fetchData:n,setAbortRequests:a}=Pr(o=>o),i=async()=>{e<1||(await n(r,a,"",{skip_cache:"true"}),t("CLEAR"))};return h.jsx(cF,{children:h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Latest"}),h.jsx("span",{className:"heading__icon",children:h.jsx(RM,{})})]}),e?h.jsx("div",{className:"button_container",children:h.jsx(lF,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:h.jsx(IM,{}),children:`See Latest (${e})`})}):null]})})},lF=B(Mt)` +`,lF=()=>{const{nodeCount:e,setNodeCount:t,setBudget:r}=Gl(o=>o),{fetchData:n,setAbortRequests:a}=Pr(o=>o),i=async()=>{e<1||(await n(r,a,"",{skip_cache:"true"}),t("CLEAR"))};return m.jsx(dF,{children:m.jsxs("div",{className:"heading-container",children:[m.jsxs("div",{className:"heading",children:[m.jsx("span",{className:"heading__title",children:"Latest"}),m.jsx("span",{className:"heading__icon",children:m.jsx(RM,{})})]}),e?m.jsx("div",{className:"button_container",children:m.jsx(uF,{className:"button","data-testid":"see_latest_button",onClick:i,startIcon:m.jsx(IM,{}),children:`See Latest (${e})`})}):null]})})},uF=B(Mt)` && { width: 100%; margin-top: 1.2rem; font-weight: 500; .MuiButton-startIcon { - color: ${M.GRAY6}; + color: ${P.GRAY6}; } } -`,uF=P.memo(sF),cF=B(F)` +`,cF=M.memo(lF),dF=B(F)` .heading-container { display: flex; flex-direction: column; @@ -1064,7 +1064,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } .heading { - color: ${M.GRAY6}; + color: ${P.GRAY6}; font-family: Barlow; font-size: 14px; font-style: normal; @@ -1091,7 +1091,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni &-item { padding: 18px 16px 18px 24px; overflow: hidden; - color: ${M.white}; + color: ${P.white}; text-overflow: ellipsis; font-family: Barlow; font-size: 16px; @@ -1101,18 +1101,18 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni &:hover { background: rgba(0, 0, 0, 0.1); - color: ${M.SECONDARY_BLUE}; + color: ${P.SECONDARY_BLUE}; } &:active { background: rgba(0, 0, 0, 0.2); - color: ${M.PRIMARY_BLUE}; + color: ${P.PRIMARY_BLUE}; } } } -`,dF=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:r,nextPage:n}=Pr(A=>A),a=Mo(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Ct(A=>A),[l,c]=P.useState(0),[d,p]=P.useState(0),g=QO(),b=l*t+t,S=g&&g.length>0?g.length-1>b:!1,v=p$("sm","down"),O=P.useCallback(A=>{cP(A),r(A),s(!0),a(A),v&&o(!1)},[a,s,o,r,v]),_=()=>{n(),S&&(c(l+1),p(A=>A+1))},w=P.useMemo(()=>{if(g){const A=[...g].sort((x,E)=>(E.date||0)-(x.date||0));return i&&A.sort((x,E)=>{const k=x.node_type==="topic"&&x.name.toLowerCase()===i.toLowerCase()?1:0;return(E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0)-k}),A.slice(0,b)}return[]},[g,i,b]);return h.jsxs(h.Fragment,{children:[(w??[]).map(A=>{const x=Ob(A),{image_url:E,date:k,boost:N,show_title:I,node_type:D,text:L,source_link:j,name:q,verified:H=!1,twitter_handle:z}=x||{};return D?h.jsx(Ab,{boostCount:N||0,date:k||0,imageUrl:E||"",name:q||"",node:A,onClick:()=>{O(A)},showTitle:Tb(I),sourceLink:j,text:L||"",twitterHandle:z,type:D,verified:H},x.ref_id):null}),h.jsx(fF,{align:"center",background:"BG1",direction:"row",justify:"center",children:S&&h.jsx(Mt,{onClick:_,size:"medium",children:"Load More"},d)})]})},pF=P.memo(dF),fF=B(F)` +`,pF=({isSearchResult:e})=>{const t=e?80:10,{setSelectedTimestamp:r,nextPage:n}=Pr(A=>A),a=Po(),{currentSearch:i,setSidebarOpen:o,setRelevanceSelected:s}=Ct(A=>A),[l,c]=M.useState(0),[d,p]=M.useState(0),g=QO(),b=l*t+t,S=g&&g.length>0?g.length-1>b:!1,v=p$("sm","down"),O=M.useCallback(A=>{cP(A),r(A),s(!0),a(A),v&&o(!1)},[a,s,o,r,v]),_=()=>{n(),S&&(c(l+1),p(A=>A+1))},w=M.useMemo(()=>{if(g){const A=[...g].sort((x,E)=>(E.date||0)-(x.date||0));return i&&A.sort((x,E)=>{const k=x.node_type==="topic"&&x.name.toLowerCase()===i.toLowerCase()?1:0;return(E.node_type==="topic"&&E.name.toLowerCase()===i.toLowerCase()?1:0)-k}),A.slice(0,b)}return[]},[g,i,b]);return m.jsxs(m.Fragment,{children:[(w??[]).map(A=>{const x=kb(A),{image_url:E,date:k,boost:N,show_title:I,node_type:D,text:L,source_link:j,name:q,verified:H=!1,twitter_handle:z}=x||{};return D?m.jsx(Ob,{boostCount:N||0,date:k||0,imageUrl:E||"",name:q||"",node:A,onClick:()=>{O(A)},showTitle:Ab(I),sourceLink:j,text:L||"",twitterHandle:z,type:D,verified:H},x.ref_id):null}),m.jsx(gF,{align:"center",background:"BG1",direction:"row",justify:"center",children:S&&m.jsx(Mt,{onClick:_,size:"medium",children:"Load More"},d)})]})},fF=M.memo(pF),gF=B(F)` flex: 0 0 86px; -`,gF=async()=>{const e="/get_trends";return await HO.get(e)},hF=["Drivechain","Ordinals","L402","Nostr","AI"],mF=()=>{var N;const{open:e}=Pv("addContent"),[t,r]=P.useState(!1),[n,a]=P.useState(!1),i=P.useRef(null),[o,s]=P.useState(0),[l,c]=P.useState(!1),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Ct(I=>I),g=Bl(),{open:m}=Pv("briefDescription"),{trendingTopics:b,setTrendingTopics:S}=Pr(I=>I),{setValue:v}=mb(),{setTrend:O}=iP(),_=P.useCallback(async()=>{r(!0),a(!1),s(0),c(!1),p(null);try{const I=await gF();if(I.length&&Array.isArray(I)){const D=new Map(I.map(j=>[j.name,j])),L=Array.from(D.values());S(L)}}catch{S(hF.map(D=>({name:D,count:0})))}finally{r(!1)}},[p,S]);P.useEffect(()=>{b.length||_()},[_,b.length]),P.useEffect(()=>{const I=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(I)},[a,t]);const w=I=>{v("search",I);const D=I.replace(/\s+/g,"+");g(`/search?q=${D}`)},A=(I,D)=>{I.stopPropagation(),I.currentTarget.blur(),D!=null&&D.tldr&&(O(D),m())},x=I=>{I.stopPropagation(),I.currentTarget.blur(),c(!l),p(i)};P.useEffect(()=>{var I,D;l?(I=i.current)==null||I.play():(D=i.current)==null||D.pause()},[o,l]),P.useEffect(()=>{d||c(!1)},[d]);const E=()=>{s(I=>{var L,j;let D=(I+1)%b.length;for(;D!==I&&!((L=b[D])!=null&&L.audio_EN);)D=(D+1)%b.length;return D===I?(c(!1),D):((j=i.current)==null||j.load(),D===0&&(c(!1),s(0)),D)}),p(i)},k=t?"Loading":"No new trending topics in the last 24 hours";return h.jsx(yF,{"data-testid":"trending-component",children:h.jsxs("div",{children:[h.jsxs("div",{className:"heading-container",children:[h.jsxs("div",{className:"heading",children:[h.jsx("span",{className:"heading__title",children:"Trending Topics"}),h.jsx("span",{className:"heading__icon",children:t?h.jsx(Hl,{color:M.white,size:16}):h.jsx(h.Fragment,{children:n?h.jsx(SF,{onClick:_,size:"small",startIcon:h.jsx(NM,{})}):h.jsx(CM,{})})})]}),f$(b)?h.jsxs("div",{children:[h.jsx(Mt,{onClick:I=>x(I),startIcon:l?h.jsx(Sb,{}):h.jsx(Eb,{}),children:l?"Pause":"Play All"}),h.jsx(wF,{ref:i,onEnded:E,src:(N=b[o])==null?void 0:N.audio_EN,children:h.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?h.jsxs("div",{className:"trending-empty",children:[h.jsx(vF,{children:k}),h.jsx(Mt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:h.jsx(yb,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):h.jsx("ul",{className:"list",children:b.map((I,D)=>h.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>w(I.tldr_topic??I.name),children:[h.jsxs(bF,{children:[h.jsx(xF,{children:h.jsx(DM,{})}),h.jsx("span",{className:"tldr",children:g$(I)})]}),I.tldr&&h.jsx(EF,{className:dn({isPlaying:o===D&&l}),onClick:L=>A(L,I),children:"TLDR"})]},I.name))})]})})},bF=B.div` +`,hF=async()=>{const e="/get_trends";return await WO.get(e)},mF=["Drivechain","Ordinals","L402","Nostr","AI"],bF=()=>{var N;const{open:e}=$v("addContent"),[t,r]=M.useState(!1),[n,a]=M.useState(!1),i=M.useRef(null),[o,s]=M.useState(0),[l,c]=M.useState(!1),{currentPlayingAudio:d,setCurrentPlayingAudio:p}=Ct(I=>I),g=Ul(),{open:h}=$v("briefDescription"),{trendingTopics:b,setTrendingTopics:S}=Pr(I=>I),{setValue:v}=bb(),{setTrend:O}=iP(),_=M.useCallback(async()=>{r(!0),a(!1),s(0),c(!1),p(null);try{const I=await hF();if(I.length&&Array.isArray(I)){const D=new Map(I.map(j=>[j.name,j])),L=Array.from(D.values());S(L)}}catch{S(mF.map(D=>({name:D,count:0})))}finally{r(!1)}},[p,S]);M.useEffect(()=>{b.length||_()},[_,b.length]),M.useEffect(()=>{const I=setTimeout(()=>{a(!0)},5e3);return()=>clearTimeout(I)},[a,t]);const w=I=>{v("search",I);const D=I.replace(/\s+/g,"+");g(`/search?q=${D}`)},A=(I,D)=>{I.stopPropagation(),I.currentTarget.blur(),D!=null&&D.tldr&&(O(D),h())},x=I=>{I.stopPropagation(),I.currentTarget.blur(),c(!l),p(i)};M.useEffect(()=>{var I,D;l?(I=i.current)==null||I.play():(D=i.current)==null||D.pause()},[o,l]),M.useEffect(()=>{d||c(!1)},[d]);const E=()=>{s(I=>{var L,j;let D=(I+1)%b.length;for(;D!==I&&!((L=b[D])!=null&&L.audio_EN);)D=(D+1)%b.length;return D===I?(c(!1),D):((j=i.current)==null||j.load(),D===0&&(c(!1),s(0)),D)}),p(i)},k=t?"Loading":"No new trending topics in the last 24 hours";return m.jsx(vF,{"data-testid":"trending-component",children:m.jsxs("div",{children:[m.jsxs("div",{className:"heading-container",children:[m.jsxs("div",{className:"heading",children:[m.jsx("span",{className:"heading__title",children:"Trending Topics"}),m.jsx("span",{className:"heading__icon",children:t?m.jsx(Wl,{color:P.white,size:16}):m.jsx(m.Fragment,{children:n?m.jsx(EF,{onClick:_,size:"small",startIcon:m.jsx(NM,{})}):m.jsx(CM,{})})})]}),f$(b)?m.jsxs("div",{children:[m.jsx(Mt,{onClick:I=>x(I),startIcon:l?m.jsx(Eb,{}):m.jsx(xb,{}),children:l?"Pause":"Play All"}),m.jsx(_F,{ref:i,onEnded:E,src:(N=b[o])==null?void 0:N.audio_EN,children:m.jsx("track",{kind:"captions"})})]}):null]}),b.length===0?m.jsxs("div",{className:"trending-empty",children:[m.jsx(SF,{children:k}),m.jsx(Mt,{color:"secondary",disabled:t,onClick:e,size:"medium",startIcon:m.jsx(vb,{}),sx:{alignSelf:"flex-end",m:"0 36px 16px 0"},variant:"contained",children:"Add Content"})]}):m.jsx("ul",{className:"list",children:b.map((I,D)=>m.jsxs(F,{align:"center",className:"list-item",direction:"row",justify:"space-between",onClick:()=>w(I.tldr_topic??I.name),children:[m.jsxs(yF,{children:[m.jsx(wF,{children:m.jsx(DM,{})}),m.jsx("span",{className:"tldr",children:g$(I)})]}),I.tldr&&m.jsx(xF,{className:dn({isPlaying:o===D&&l}),onClick:L=>A(L,I),children:"TLDR"})]},I.name))})]})})},yF=B.div` position: relative; display: flex; align-items: flex-start; @@ -1128,7 +1128,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni letter-spacing: 0.3pt; padding-left: 20px; } -`,yF=B(F)` +`,vF=B(F)` .heading-container { display: flex; flex-direction: row; @@ -1138,7 +1138,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni .heading { display: flex; align-items: center; - color: ${M.GRAY6}; + color: ${P.GRAY6}; padding-right: 24px; font-family: Barlow; font-size: 14px; @@ -1155,7 +1155,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni } .trending-empty { padding: 0 24px; - color: ${M.GRAY6}; + color: ${P.GRAY6}; } .list { @@ -1166,7 +1166,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni &-item { padding: 18px 16px 18px 24px; overflow: hidden; - color: ${M.white}; + color: ${P.white}; text-overflow: ellipsis; font-family: Barlow; font-size: 16px; @@ -1175,55 +1175,55 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni line-height: 11px; &:hover { background: rgba(0, 0, 0, 0.1); - color: ${M.SECONDARY_BLUE}; + color: ${P.SECONDARY_BLUE}; } &:active { background: rgba(0, 0, 0, 0.2); - color: ${M.PRIMARY_BLUE}; + color: ${P.PRIMARY_BLUE}; } } } -`,vF=B.p` - color: ${M.GRAY6}; +`,SF=B.p` + color: ${P.GRAY6}; margin-bottom: 20px; -`,SF=B(Mt)` +`,EF=B(Mt)` && { min-width: 28px; width: 28px; padding: 0; height: 28px; .MuiButton-startIcon { - color: ${M.white}; + color: ${P.white}; margin: auto; display: flex; align-items: center; } } -`,EF=B(Mt)` +`,xF=B(Mt)` && { &.isPlaying { font-weight: 700; - color: ${M.BG1}; - background-color: ${M.white}; + color: ${P.BG1}; + background-color: ${P.white}; } } -`,xF=B.span` +`,wF=B.span` position: absolute; top: 6px; left: 0; display: flex; justify-content: center; align-items: center; - color: ${M.GRAY6}; + color: ${P.GRAY6}; margin-right: 4px; -`,wF=B.audio` +`,_F=B.audio` height: 0; width: 0; -`,_F=()=>{const{isFetching:e,setSidebarFilter:t}=Pr(k=>k),r=Mo(),n=QO(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Ct(k=>k),[s]=ZO(k=>[k.trendingTopicsFeatureFlag]),{setValue:l,watch:c}=mb(),d=P.useRef(null),[p,g]=P.useState(!1),[m,b]=P.useState(!1),[S,v]=P.useState(null),[O]=JL(),_=O.get("q")??"";P.useEffect(()=>{l("search",_||o)},[l,o,_]),P.useEffect(()=>{const k=d.current;if(!k)return;const N=()=>{g((k==null?void 0:k.scrollTop)>0)};k.addEventListener("scroll",N)},[]);const w=c("search"),A=k=>{v(m?null:k.currentTarget),b(N=>!N)},x=()=>{b(!1),v(null)},E=Bl();return h.jsxs(h.Fragment,{children:[h.jsxs(R1,{className:dn({"has-shadow":p}),children:[h.jsxs(IF,{children:[h.jsxs(TF,{children:[h.jsx(E1,{}),h.jsx(OF,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),r(null),E("/");return}if(w.trim()==="")return;const k=w.replace(/\s+/g,"+");E(`/search?q=${k}`)},children:e?h.jsx(Hl,{color:M.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):h.jsx(h.Fragment,{children:a!=null&&a.trim()?h.jsx(JO,{}):h.jsx(a1,{})})})]}),h.jsx(NF,{"data-testid":"search_filter_icon",isFilterOpen:m,onClick:A,children:m?h.jsx(LM,{}):h.jsx(MM,{})}),h.jsx(Jj,{anchorEl:S,onClose:x,setAnchorEl:v})]}),a&&h.jsx(AF,{children:e?h.jsx(iF,{}):h.jsxs(h.Fragment,{children:[h.jsxs("div",{className:"left",children:[h.jsx("span",{className:"count",children:n.length}),h.jsx("span",{className:"label",children:" results"})]}),h.jsx("div",{className:"right",style:{alignItems:"center"},children:h.jsx(Rj,{})})]})})]}),h.jsxs(kF,{ref:d,children:[!a&&s&&h.jsx(RF,{children:h.jsx(mF,{})}),!a&&h.jsx(uF,{}),e?h.jsx(w1,{}):h.jsx(pF,{isSearchResult:!!a})]})]})},R1=B(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:M.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),TF=B(F).attrs({direction:"row",justify:"center",align:"center"})` +`,TF=()=>{const{isFetching:e,setSidebarFilter:t}=Pr(k=>k),r=Po(),n=QO(),{currentSearch:a,clearSearch:i,searchFormValue:o}=Ct(k=>k),[s]=ZO(k=>[k.trendingTopicsFeatureFlag]),{setValue:l,watch:c}=bb(),d=M.useRef(null),[p,g]=M.useState(!1),[h,b]=M.useState(!1),[S,v]=M.useState(null),[O]=JL(),_=O.get("q")??"";M.useEffect(()=>{l("search",_||o)},[l,o,_]),M.useEffect(()=>{const k=d.current;if(!k)return;const N=()=>{g((k==null?void 0:k.scrollTop)>0)};k.addEventListener("scroll",N)},[]);const w=c("search"),A=k=>{v(h?null:k.currentTarget),b(N=>!N)},x=()=>{b(!1),v(null)},E=Ul();return m.jsxs(m.Fragment,{children:[m.jsxs(R1,{className:dn({"has-shadow":p}),children:[m.jsxs(NF,{children:[m.jsxs(AF,{children:[m.jsx(E1,{}),m.jsx(kF,{"data-testid":"search_action_icon",onClick:()=>{if(a){l("search",""),i(),t("all"),r(null),E("/");return}if(w.trim()==="")return;const k=w.replace(/\s+/g,"+");E(`/search?q=${k}`)},children:e?m.jsx(Wl,{color:P.SECONDARY_BLUE,"data-testid":"loader",size:"20"}):m.jsx(m.Fragment,{children:a!=null&&a.trim()?m.jsx(JO,{}):m.jsx(a1,{})})})]}),m.jsx(CF,{"data-testid":"search_filter_icon",isFilterOpen:h,onClick:A,children:h?m.jsx(LM,{}):m.jsx(MM,{})}),m.jsx(Qj,{anchorEl:S,onClose:x,setAnchorEl:v})]}),a&&m.jsx(OF,{children:e?m.jsx(oF,{}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"left",children:[m.jsx("span",{className:"count",children:n.length}),m.jsx("span",{className:"label",children:" results"})]}),m.jsx("div",{className:"right",style:{alignItems:"center"},children:m.jsx(Ij,{})})]})})]}),m.jsxs(RF,{ref:d,children:[!a&&s&&m.jsx(IF,{children:m.jsx(bF,{})}),!a&&m.jsx(cF,{}),e?m.jsx(w1,{}):m.jsx(fF,{isSearchResult:!!a})]})]})},R1=B(F).attrs({direction:"column",justify:"center",align:"stretch"})(({theme:e})=>({padding:e.spacing(3.75,2),[e.breakpoints.up("sm")]:{padding:"12px"},"&.has-shadow":{borderBottom:"1px solid rgba(0, 0, 0, 0.25)",background:P.BG1,boxShadow:"0px 1px 6px 0px rgba(0, 0, 0, 0.20)"}})),AF=B(F).attrs({direction:"row",justify:"center",align:"center"})` width: 85%; -`,AF=B(F).attrs({direction:"row",justify:"space-between",align:"center"})` +`,OF=B(F).attrs({direction:"row",justify:"space-between",align:"center"})` flex-grow: 1; - color: ${M.GRAY6}; + color: ${P.GRAY6}; font-family: Barlow; font-size: 13px; font-style: normal; @@ -1232,15 +1232,15 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni margin-top: 10px; padding: 0 8px; .count { - color: ${M.white}; + color: ${P.white}; } .right { display: flex; } -`,OF=B(F).attrs({align:"center",justify:"center",p:5})` +`,kF=B(F).attrs({align:"center",justify:"center",p:5})` font-size: 32px; - color: ${M.mainBottomIcons}; + color: ${P.mainBottomIcons}; cursor: pointer; transition-duration: 0.2s; margin-left: -42px; @@ -1248,22 +1248,22 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni width: 30px; &:hover { - /* background-color: ${M.gray200}; */ + /* background-color: ${P.gray200}; */ } ${R1} input:focus + & { - color: ${M.primaryBlue}; + color: ${P.primaryBlue}; } -`,kF=B(F)(()=>({overflow:"auto",flex:1,width:"100%"})),RF=B(F)` +`,RF=B(F)(()=>({overflow:"auto",flex:1,width:"100%"})),IF=B(F)` padding: 0; margin-bottom: 36px; margin-top: 20px; -`,IF=B(F)` +`,NF=B(F)` align-items: center; justify-content: space-between; flex-direction: row; gap: 10px; -`,NF=B.div` +`,CF=B.div` display: flex; align-items: center; justify-content: center; @@ -1272,7 +1272,7 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni border-radius: 8px; width: 32px; height: 32px; - background-color: ${({isFilterOpen:e})=>e?M.white:"transparent"}; + background-color: ${({isFilterOpen:e})=>e?P.white:"transparent"}; &:hover { background-color: ${({isFilterOpen:e})=>e?"rgba(255, 255, 255, 0.85)":"rgba(255, 255, 255, 0.2)"}; @@ -1281,61 +1281,61 @@ return n.version="2.29.4",a(at),n.fn=ne,n.min=RC,n.max=IC,n.now=NC,n.utc=b,n.uni svg { width: 15px; height: ${({isFilterOpen:e})=>e?"11px":"24px"}; - color: ${({isFilterOpen:e})=>e?M.black:M.GRAY7}; + color: ${({isFilterOpen:e})=>e?P.black:P.GRAY7}; fill: none; } -`;function I1(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t0?1:-1},Xn=function(t){return $o(t)&&t.indexOf("%")===t.length-1},se=function(t){return zF(t)&&!Bo(t)},Et=function(t){return se(t)||$o(t)},VF=0,Uo=function(t){var r=++VF;return"".concat(t||"").concat(r)},La=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!$o(t))return n;var i;if(Xn(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Bo(i)&&(i=n),a&&i>r&&(i=r),i},kn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},YF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var Xv={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},pn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Zv=null,pc=null,Lb=function e(t){if(t===Zv&&Array.isArray(pc))return pc;var r=[];return P.Children.forEach(t,function(n){Ce(n)||(Vh.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),pc=r,Zv=t,r};function lr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return pn(a)}):n=[pn(t)],Lb(e).forEach(function(a){var i=yr(a,"type.displayName")||yr(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function ln(e,t){var r=lr(e,t);return r&&r[0]}var Jv=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!se(n)||n<=0||!se(a)||a<=0)},rB=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],nB=function(t){return t&&t.type&&$o(t.type)&&rB.indexOf(t.type)>=0},aB=function(t,r,n,a){var i,o=(i=dc==null?void 0:dc[a])!==null&&i!==void 0?i:[];return!Ne(t)&&(a&&o.includes(r)||ZF.includes(r))||n&&Db.includes(r)},Me=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(P.isValidElement(t)&&(a=t.props),!ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;aB((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},L1=function e(t,r){if(t===r)return!0;var n=P.Children.count(t);if(n!==P.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Qv(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Xh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,c=lB(e,sB),d=a||{width:r,height:n,x:0,y:0},p=Ze("recharts-surface",i);return U.createElement("svg",Kh({},Me(c,!0,"svg"),{className:p,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var cB=["children","className"];function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var dt=U.forwardRef(function(e,t){var r=e.children,n=e.className,a=dB(e,cB),i=Ze("recharts-layer",n);return U.createElement("g",Zh({className:i},Me(a,!0),{ref:t}),r)}),ea=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=n?e:hB(e,t,r)}var bB=mB,yB="\\ud800-\\udfff",vB="\\u0300-\\u036f",SB="\\ufe20-\\ufe2f",EB="\\u20d0-\\u20ff",xB=vB+SB+EB,wB="\\ufe0e\\ufe0f",_B="\\u200d",TB=RegExp("["+_B+yB+xB+wB+"]");function AB(e){return TB.test(e)}var M1=AB;function OB(e){return e.split("")}var kB=OB,P1="\\ud800-\\udfff",RB="\\u0300-\\u036f",IB="\\ufe20-\\ufe2f",NB="\\u20d0-\\u20ff",CB=RB+IB+NB,DB="\\ufe0e\\ufe0f",LB="["+P1+"]",Jh="["+CB+"]",Qh="\\ud83c[\\udffb-\\udfff]",MB="(?:"+Jh+"|"+Qh+")",$1="[^"+P1+"]",j1="(?:\\ud83c[\\udde6-\\uddff]){2}",F1="[\\ud800-\\udbff][\\udc00-\\udfff]",PB="\\u200d",B1=MB+"?",U1="["+DB+"]?",$B="(?:"+PB+"(?:"+[$1,j1,F1].join("|")+")"+U1+B1+")*",jB=U1+B1+$B,FB="(?:"+[$1+Jh+"?",Jh,j1,F1,LB].join("|")+")",BB=RegExp(Qh+"(?="+Qh+")|"+FB+jB,"g");function UB(e){return e.match(BB)||[]}var GB=UB,zB=kB,qB=M1,HB=GB;function WB(e){return qB(e)?HB(e):zB(e)}var VB=WB,YB=bB,KB=M1,XB=VB,ZB=YM;function JB(e){return function(t){t=ZB(t);var r=KB(t)?XB(t):void 0,n=r?r[0]:t.charAt(0),a=r?YB(r,1).join(""):t.slice(1);return n[e]()+a}}var QB=JB,e2=QB,t2=e2("toUpperCase"),r2=t2;const au=ft(r2);function rt(e){return function(){return e}}const G1=Math.cos,Ys=Math.sin,jr=Math.sqrt,Ks=Math.PI,iu=2*Ks,em=Math.PI,tm=2*em,Yn=1e-6,n2=tm-Yn;function z1(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return z1;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aYn)if(!(Math.abs(p*l-c*d)>Yn)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let m=n-o,b=a-s,S=l*l+c*c,v=m*m+b*b,O=Math.sqrt(S),_=Math.sqrt(g),w=i*Math.tan((em-Math.acos((S+g-v)/(2*O*_)))/2),A=w/_,x=w/O;Math.abs(A-1)>Yn&&this._append`L${t+A*d},${r+A*p}`,this._append`A${i},${i},0,0,${+(p*m>d*b)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,d=r+l,p=1^o,g=o?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>Yn||Math.abs(this._y1-d)>Yn)&&this._append`L${c},${d}`,n&&(g<0&&(g=g%tm+tm),g>n2?this._append`A${n},${n},0,1,${p},${t-s},${r-l}A${n},${n},0,1,${p},${this._x1=c},${this._y1=d}`:g>Yn&&this._append`A${n},${n},0,${+(g>=em)},${p},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Mb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new i2(t)}function Pb(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function q1(e){this._context=e}q1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function ou(e){return new q1(e)}function H1(e){return e[0]}function W1(e){return e[1]}function V1(e,t){var r=rt(!0),n=null,a=ou,i=null,o=Mb(s);e=typeof e=="function"?e:e===void 0?H1:rt(e),t=typeof t=="function"?t:t===void 0?W1:rt(t);function s(l){var c,d=(l=Pb(l)).length,p,g=!1,m;for(n==null&&(i=a(m=o())),c=0;c<=d;++c)!(c=m;--b)s.point(w[b],A[b]);s.lineEnd(),s.areaEnd()}O&&(w[g]=+e(v,g,p),A[g]=+t(v,g,p),s.point(n?+n(v,g,p):w[g],r?+r(v,g,p):A[g]))}if(_)return s=null,_+""||null}function d(){return V1().defined(a).curve(o).context(i)}return c.x=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),n=null,c):e},c.x0=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),c):e},c.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:rt(+p),c):n},c.y=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),r=null,c):t},c.y0=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),c):t},c.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:rt(+p),c):r},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(r)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(p){return arguments.length?(a=typeof p=="function"?p:rt(!!p),c):a},c.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),c):o},c.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),c):i},c}class Y1{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function o2(e){return new Y1(e,!0)}function s2(e){return new Y1(e,!1)}const $b={draw(e,t){const r=jr(t/Ks);e.moveTo(r,0),e.arc(0,0,r,0,iu)}},l2={draw(e,t){const r=jr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},K1=jr(1/3),u2=K1*2,c2={draw(e,t){const r=jr(t/u2),n=r*K1;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},d2={draw(e,t){const r=jr(t),n=-r/2;e.rect(n,n,r,r)}},p2=.8908130915292852,X1=Ys(Ks/10)/Ys(7*Ks/10),f2=Ys(iu/10)*X1,g2=-G1(iu/10)*X1,h2={draw(e,t){const r=jr(t*p2),n=f2*r,a=g2*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=iu*i/5,s=G1(o),l=Ys(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},fc=jr(3),m2={draw(e,t){const r=-jr(t/(fc*3));e.moveTo(0,r*2),e.lineTo(-fc*r,-r),e.lineTo(fc*r,-r),e.closePath()}},cr=-.5,dr=jr(3)/2,rm=1/jr(12),b2=(rm/2+1)*3,y2={draw(e,t){const r=jr(t/b2),n=r/2,a=r*rm,i=n,o=r*rm+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(cr*n-dr*a,dr*n+cr*a),e.lineTo(cr*i-dr*o,dr*i+cr*o),e.lineTo(cr*s-dr*l,dr*s+cr*l),e.lineTo(cr*n+dr*a,cr*a-dr*n),e.lineTo(cr*i+dr*o,cr*o-dr*i),e.lineTo(cr*s+dr*l,cr*l-dr*s),e.closePath()}};function v2(e,t){let r=null,n=Mb(a);e=typeof e=="function"?e:rt(e||$b),t=typeof t=="function"?t:rt(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:rt(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:rt(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Xs(){}function Zs(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Z1(e){this._context=e}Z1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Zs(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S2(e){return new Z1(e)}function J1(e){this._context=e}J1.prototype={areaStart:Xs,areaEnd:Xs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function E2(e){return new J1(e)}function Q1(e){this._context=e}Q1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Zs(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function x2(e){return new Q1(e)}function ek(e){this._context=e}ek.prototype={areaStart:Xs,areaEnd:Xs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function w2(e){return new ek(e)}function tS(e){return e<0?-1:1}function rS(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(tS(i)+tS(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function nS(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function gc(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function Js(e){this._context=e}Js.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:gc(this,this._t0,nS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,gc(this,nS(this,r=rS(this,e,t)),r);break;default:gc(this,this._t0,r=rS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function tk(e){this._context=new rk(e)}(tk.prototype=Object.create(Js.prototype)).point=function(e,t){Js.prototype.point.call(this,t,e)};function rk(e){this._context=e}rk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function _2(e){return new Js(e)}function T2(e){return new tk(e)}function nk(e){this._context=e}nk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=aS(e),a=aS(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function O2(e){return new su(e,.5)}function k2(e){return new su(e,0)}function R2(e){return new su(e,1)}function Ma(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function I2(e,t){return e[t]}function N2(e){const t=[];return t.key=e,t}function C2(){var e=rt([]),t=nm,r=Ma,n=I2;function a(i){var o=Array.from(e.apply(this,arguments),N2),s,l=o.length,c=-1,d;for(const p of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var ak={symbolCircle:$b,symbolCross:l2,symbolDiamond:c2,symbolSquare:d2,symbolStar:h2,symbolTriangle:m2,symbolWye:y2},G2=Math.PI/180,z2=function(t){var r="symbol".concat(au(t));return ak[r]||$b},q2=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*G2;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},H2=function(t,r){ak["symbol".concat(au(t))]=r},lu=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=B2(t,P2),c=oS(oS({},l),{},{type:n,size:i,sizeType:s}),d=function(){var v=z2(n),O=v2().type(v).size(q2(i,s,n));return O()},p=c.className,g=c.cx,m=c.cy,b=Me(c,!0);return g===+g&&m===+m&&i===+i?U.createElement("path",am({},b,{className:Ze("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(m,")"),d:d()})):null};lu.registerSymbol=H2;function Pa(e){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function im(){return im=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Qs(e){return Qs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qs(e)}function Yi(e,t,r){return t=ik(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=eU(e,"string");return Pa(t)==="symbol"?t:String(t)}function eU(e,t){if(Pa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pr=32,jb=function(e){K2(r,e);var t=X2(r);function r(){return V2(this,r),t.apply(this,arguments)}return Y2(r,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=pr/2,s=pr/6,l=pr/3,c=a.inactive?i:a.color;if(a.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:pr,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,` + */var At=typeof Symbol=="function"&&Symbol.for,Nb=At?Symbol.for("react.element"):60103,Cb=At?Symbol.for("react.portal"):60106,Kl=At?Symbol.for("react.fragment"):60107,Xl=At?Symbol.for("react.strict_mode"):60108,Zl=At?Symbol.for("react.profiler"):60114,Jl=At?Symbol.for("react.provider"):60109,Ql=At?Symbol.for("react.context"):60110,Db=At?Symbol.for("react.async_mode"):60111,eu=At?Symbol.for("react.concurrent_mode"):60111,tu=At?Symbol.for("react.forward_ref"):60112,ru=At?Symbol.for("react.suspense"):60113,MF=At?Symbol.for("react.suspense_list"):60120,nu=At?Symbol.for("react.memo"):60115,au=At?Symbol.for("react.lazy"):60116,PF=At?Symbol.for("react.block"):60121,$F=At?Symbol.for("react.fundamental"):60117,jF=At?Symbol.for("react.responder"):60118,FF=At?Symbol.for("react.scope"):60119;function ur(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Nb:switch(e=e.type,e){case Db:case eu:case Kl:case Zl:case Xl:case ru:return e;default:switch(e=e&&e.$$typeof,e){case Ql:case tu:case au:case nu:case Jl:return e;default:return t}}case Cb:return t}}}function C1(e){return ur(e)===eu}Ve.AsyncMode=Db;Ve.ConcurrentMode=eu;Ve.ContextConsumer=Ql;Ve.ContextProvider=Jl;Ve.Element=Nb;Ve.ForwardRef=tu;Ve.Fragment=Kl;Ve.Lazy=au;Ve.Memo=nu;Ve.Portal=Cb;Ve.Profiler=Zl;Ve.StrictMode=Xl;Ve.Suspense=ru;Ve.isAsyncMode=function(e){return C1(e)||ur(e)===Db};Ve.isConcurrentMode=C1;Ve.isContextConsumer=function(e){return ur(e)===Ql};Ve.isContextProvider=function(e){return ur(e)===Jl};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Nb};Ve.isForwardRef=function(e){return ur(e)===tu};Ve.isFragment=function(e){return ur(e)===Kl};Ve.isLazy=function(e){return ur(e)===au};Ve.isMemo=function(e){return ur(e)===nu};Ve.isPortal=function(e){return ur(e)===Cb};Ve.isProfiler=function(e){return ur(e)===Zl};Ve.isStrictMode=function(e){return ur(e)===Xl};Ve.isSuspense=function(e){return ur(e)===ru};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Kl||e===eu||e===Zl||e===Xl||e===ru||e===MF||typeof e=="object"&&e!==null&&(e.$$typeof===au||e.$$typeof===nu||e.$$typeof===Jl||e.$$typeof===Ql||e.$$typeof===tu||e.$$typeof===$F||e.$$typeof===jF||e.$$typeof===FF||e.$$typeof===PF)};Ve.typeOf=ur;N1.exports=Ve;var Yh=N1.exports,BF=e1,UF=t1,GF="[object Number]";function zF(e){return typeof e=="number"||UF(e)&&BF(e)==GF}var D1=zF;const qF=ft(D1);var HF=D1;function WF(e){return HF(e)&&e!=+e}var VF=WF;const Uo=ft(VF);var Lr=function(t){return t===0?0:t>0?1:-1},Xn=function(t){return jo(t)&&t.indexOf("%")===t.length-1},se=function(t){return qF(t)&&!Uo(t)},Et=function(t){return se(t)||jo(t)},YF=0,Go=function(t){var r=++YF;return"".concat(t||"").concat(r)},La=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!se(t)&&!jo(t))return n;var i;if(Xn(t)){var o=t.indexOf("%");i=r*parseFloat(t.slice(0,o))/100}else i=+t;return Uo(i)&&(i=n),a&&i>r&&(i=r),i},kn=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},KF=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var Zv={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},pn=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Jv=null,fc=null,Mb=function e(t){if(t===Jv&&Array.isArray(fc))return fc;var r=[];return M.Children.forEach(t,function(n){Ce(n)||(Yh.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),fc=r,Jv=t,r};function lr(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(a){return pn(a)}):n=[pn(t)],Mb(e).forEach(function(a){var i=yr(a,"type.displayName")||yr(a,"type.name");n.indexOf(i)!==-1&&r.push(a)}),r}function ln(e,t){var r=lr(e,t);return r&&r[0]}var Qv=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,a=r.height;return!(!se(n)||n<=0||!se(a)||a<=0)},nB=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],aB=function(t){return t&&t.type&&jo(t.type)&&nB.indexOf(t.type)>=0},iB=function(t,r,n,a){var i,o=(i=pc==null?void 0:pc[a])!==null&&i!==void 0?i:[];return!Ne(t)&&(a&&o.includes(r)||JF.includes(r))||n&&Lb.includes(r)},Me=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(M.isValidElement(t)&&(a=t.props),!ti(a))return null;var i={};return Object.keys(a).forEach(function(o){var s;iB((s=a)===null||s===void 0?void 0:s[o],o,r,n)&&(i[o]=a[o])}),i},L1=function e(t,r){if(t===r)return!0;var n=M.Children.count(t);if(n!==M.Children.count(r))return!1;if(n===0)return!0;if(n===1)return eS(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function cB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Zh(e){var t=e.children,r=e.width,n=e.height,a=e.viewBox,i=e.className,o=e.style,s=e.title,l=e.desc,c=uB(e,lB),d=a||{width:r,height:n,x:0,y:0},p=Ze("recharts-surface",i);return U.createElement("svg",Xh({},Me(c,!0,"svg"),{className:p,width:r,height:n,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),U.createElement("title",null,s),U.createElement("desc",null,l),t)}var dB=["children","className"];function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fB(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var dt=U.forwardRef(function(e,t){var r=e.children,n=e.className,a=pB(e,dB),i=Ze("recharts-layer",n);return U.createElement("g",Jh({className:i},Me(a,!0),{ref:t}),r)}),ea=function(t,r){for(var n=arguments.length,a=new Array(n>2?n-2:0),i=2;ia?0:a+t),r=r>a?a:r,r<0&&(r+=a),a=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(a);++n=n?e:mB(e,t,r)}var yB=bB,vB="\\ud800-\\udfff",SB="\\u0300-\\u036f",EB="\\ufe20-\\ufe2f",xB="\\u20d0-\\u20ff",wB=SB+EB+xB,_B="\\ufe0e\\ufe0f",TB="\\u200d",AB=RegExp("["+TB+vB+wB+_B+"]");function OB(e){return AB.test(e)}var M1=OB;function kB(e){return e.split("")}var RB=kB,P1="\\ud800-\\udfff",IB="\\u0300-\\u036f",NB="\\ufe20-\\ufe2f",CB="\\u20d0-\\u20ff",DB=IB+NB+CB,LB="\\ufe0e\\ufe0f",MB="["+P1+"]",Qh="["+DB+"]",em="\\ud83c[\\udffb-\\udfff]",PB="(?:"+Qh+"|"+em+")",$1="[^"+P1+"]",j1="(?:\\ud83c[\\udde6-\\uddff]){2}",F1="[\\ud800-\\udbff][\\udc00-\\udfff]",$B="\\u200d",B1=PB+"?",U1="["+LB+"]?",jB="(?:"+$B+"(?:"+[$1,j1,F1].join("|")+")"+U1+B1+")*",FB=U1+B1+jB,BB="(?:"+[$1+Qh+"?",Qh,j1,F1,MB].join("|")+")",UB=RegExp(em+"(?="+em+")|"+BB+FB,"g");function GB(e){return e.match(UB)||[]}var zB=GB,qB=RB,HB=M1,WB=zB;function VB(e){return HB(e)?WB(e):qB(e)}var YB=VB,KB=yB,XB=M1,ZB=YB,JB=YM;function QB(e){return function(t){t=JB(t);var r=XB(t)?ZB(t):void 0,n=r?r[0]:t.charAt(0),a=r?KB(r,1).join(""):t.slice(1);return n[e]()+a}}var e2=QB,t2=e2,r2=t2("toUpperCase"),n2=r2;const iu=ft(n2);function rt(e){return function(){return e}}const G1=Math.cos,Ks=Math.sin,jr=Math.sqrt,Xs=Math.PI,ou=2*Xs,tm=Math.PI,rm=2*tm,Yn=1e-6,a2=rm-Yn;function z1(e){this._+=e[0];for(let t=1,r=e.length;t=0))throw new Error(`invalid digits: ${e}`);if(t>15)return z1;const r=10**t;return function(n){this._+=n[0];for(let a=1,i=n.length;aYn)if(!(Math.abs(p*l-c*d)>Yn)||!i)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,b=a-s,S=l*l+c*c,v=h*h+b*b,O=Math.sqrt(S),_=Math.sqrt(g),w=i*Math.tan((tm-Math.acos((S+g-v)/(2*O*_)))/2),A=w/_,x=w/O;Math.abs(A-1)>Yn&&this._append`L${t+A*d},${r+A*p}`,this._append`A${i},${i},0,0,${+(p*h>d*b)},${this._x1=t+x*l},${this._y1=r+x*c}`}}arc(t,r,n,a,i,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(a),l=n*Math.sin(a),c=t+s,d=r+l,p=1^o,g=o?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>Yn||Math.abs(this._y1-d)>Yn)&&this._append`L${c},${d}`,n&&(g<0&&(g=g%rm+rm),g>a2?this._append`A${n},${n},0,1,${p},${t-s},${r-l}A${n},${n},0,1,${p},${this._x1=c},${this._y1=d}`:g>Yn&&this._append`A${n},${n},0,${+(g>=tm)},${p},${this._x1=t+n*Math.cos(i)},${this._y1=r+n*Math.sin(i)}`)}rect(t,r,n,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+a}h${-n}Z`}toString(){return this._}}function Pb(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new o2(t)}function $b(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function q1(e){this._context=e}q1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function su(e){return new q1(e)}function H1(e){return e[0]}function W1(e){return e[1]}function V1(e,t){var r=rt(!0),n=null,a=su,i=null,o=Pb(s);e=typeof e=="function"?e:e===void 0?H1:rt(e),t=typeof t=="function"?t:t===void 0?W1:rt(t);function s(l){var c,d=(l=$b(l)).length,p,g=!1,h;for(n==null&&(i=a(h=o())),c=0;c<=d;++c)!(c=h;--b)s.point(w[b],A[b]);s.lineEnd(),s.areaEnd()}O&&(w[g]=+e(v,g,p),A[g]=+t(v,g,p),s.point(n?+n(v,g,p):w[g],r?+r(v,g,p):A[g]))}if(_)return s=null,_+""||null}function d(){return V1().defined(a).curve(o).context(i)}return c.x=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),n=null,c):e},c.x0=function(p){return arguments.length?(e=typeof p=="function"?p:rt(+p),c):e},c.x1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:rt(+p),c):n},c.y=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),r=null,c):t},c.y0=function(p){return arguments.length?(t=typeof p=="function"?p:rt(+p),c):t},c.y1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:rt(+p),c):r},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(r)},c.lineX1=function(){return d().x(n).y(t)},c.defined=function(p){return arguments.length?(a=typeof p=="function"?p:rt(!!p),c):a},c.curve=function(p){return arguments.length?(o=p,i!=null&&(s=o(i)),c):o},c.context=function(p){return arguments.length?(p==null?i=s=null:s=o(i=p),c):i},c}class Y1{constructor(t,r){this._context=t,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function s2(e){return new Y1(e,!0)}function l2(e){return new Y1(e,!1)}const jb={draw(e,t){const r=jr(t/Xs);e.moveTo(r,0),e.arc(0,0,r,0,ou)}},u2={draw(e,t){const r=jr(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},K1=jr(1/3),c2=K1*2,d2={draw(e,t){const r=jr(t/c2),n=r*K1;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},p2={draw(e,t){const r=jr(t),n=-r/2;e.rect(n,n,r,r)}},f2=.8908130915292852,X1=Ks(Xs/10)/Ks(7*Xs/10),g2=Ks(ou/10)*X1,h2=-G1(ou/10)*X1,m2={draw(e,t){const r=jr(t*f2),n=g2*r,a=h2*r;e.moveTo(0,-r),e.lineTo(n,a);for(let i=1;i<5;++i){const o=ou*i/5,s=G1(o),l=Ks(o);e.lineTo(l*r,-s*r),e.lineTo(s*n-l*a,l*n+s*a)}e.closePath()}},gc=jr(3),b2={draw(e,t){const r=-jr(t/(gc*3));e.moveTo(0,r*2),e.lineTo(-gc*r,-r),e.lineTo(gc*r,-r),e.closePath()}},cr=-.5,dr=jr(3)/2,nm=1/jr(12),y2=(nm/2+1)*3,v2={draw(e,t){const r=jr(t/y2),n=r/2,a=r*nm,i=n,o=r*nm+r,s=-i,l=o;e.moveTo(n,a),e.lineTo(i,o),e.lineTo(s,l),e.lineTo(cr*n-dr*a,dr*n+cr*a),e.lineTo(cr*i-dr*o,dr*i+cr*o),e.lineTo(cr*s-dr*l,dr*s+cr*l),e.lineTo(cr*n+dr*a,cr*a-dr*n),e.lineTo(cr*i+dr*o,cr*o-dr*i),e.lineTo(cr*s+dr*l,cr*l-dr*s),e.closePath()}};function S2(e,t){let r=null,n=Pb(a);e=typeof e=="function"?e:rt(e||jb),t=typeof t=="function"?t:rt(t===void 0?64:+t);function a(){let i;if(r||(r=i=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),i)return r=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:rt(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:rt(+i),a):t},a.context=function(i){return arguments.length?(r=i??null,a):r},a}function Zs(){}function Js(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function Z1(e){this._context=e}Z1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Js(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Js(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function E2(e){return new Z1(e)}function J1(e){this._context=e}J1.prototype={areaStart:Zs,areaEnd:Zs,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Js(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function x2(e){return new J1(e)}function Q1(e){this._context=e}Q1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Js(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function w2(e){return new Q1(e)}function ek(e){this._context=e}ek.prototype={areaStart:Zs,areaEnd:Zs,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function _2(e){return new ek(e)}function rS(e){return e<0?-1:1}function nS(e,t,r){var n=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(n||a<0&&-0),o=(r-e._y1)/(a||n<0&&-0),s=(i*a+o*n)/(n+a);return(rS(i)+rS(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(s))||0}function aS(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function hc(e,t,r){var n=e._x0,a=e._y0,i=e._x1,o=e._y1,s=(i-n)/3;e._context.bezierCurveTo(n+s,a+s*t,i-s,o-s*r,i,o)}function Qs(e){this._context=e}Qs.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:hc(this,this._t0,aS(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,hc(this,aS(this,r=nS(this,e,t)),r);break;default:hc(this,this._t0,r=nS(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function tk(e){this._context=new rk(e)}(tk.prototype=Object.create(Qs.prototype)).point=function(e,t){Qs.prototype.point.call(this,t,e)};function rk(e){this._context=e}rk.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,a,i){this._context.bezierCurveTo(t,e,n,r,i,a)}};function T2(e){return new Qs(e)}function A2(e){return new tk(e)}function nk(e){this._context=e}nk.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=iS(e),a=iS(t),i=0,o=1;o=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[r-1]=(e[r]+a[r-1])/2,t=0;t=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function k2(e){return new lu(e,.5)}function R2(e){return new lu(e,0)}function I2(e){return new lu(e,1)}function Ma(e,t){if((o=e.length)>1)for(var r=1,n,a,i=e[t[0]],o,s=i.length;r=0;)r[t]=t;return r}function N2(e,t){return e[t]}function C2(e){const t=[];return t.key=e,t}function D2(){var e=rt([]),t=am,r=Ma,n=N2;function a(i){var o=Array.from(e.apply(this,arguments),C2),s,l=o.length,c=-1,d;for(const p of i)for(s=0,++c;s0){for(var r,n,a=0,i=e[0].length,o;a0){for(var r=0,n=e[t[0]],a,i=n.length;r0)||!((i=(a=e[t[0]]).length)>0))){for(var r=0,n=1,a,i,o;n=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function G2(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var ak={symbolCircle:jb,symbolCross:u2,symbolDiamond:d2,symbolSquare:p2,symbolStar:m2,symbolTriangle:b2,symbolWye:v2},z2=Math.PI/180,q2=function(t){var r="symbol".concat(iu(t));return ak[r]||jb},H2=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*z2;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},W2=function(t,r){ak["symbol".concat(iu(t))]=r},uu=function(t){var r=t.type,n=r===void 0?"circle":r,a=t.size,i=a===void 0?64:a,o=t.sizeType,s=o===void 0?"area":o,l=U2(t,$2),c=sS(sS({},l),{},{type:n,size:i,sizeType:s}),d=function(){var v=q2(n),O=S2().type(v).size(H2(i,s,n));return O()},p=c.className,g=c.cx,h=c.cy,b=Me(c,!0);return g===+g&&h===+h&&i===+i?U.createElement("path",im({},b,{className:Ze("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(h,")"),d:d()})):null};uu.registerSymbol=W2;function Pa(e){"@babel/helpers - typeof";return Pa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pa(e)}function om(){return om=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},el(e)}function Yi(e,t,r){return t=ik(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ik(e){var t=tU(e,"string");return Pa(t)==="symbol"?t:String(t)}function tU(e,t){if(Pa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Pa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pr=32,Fb=function(e){X2(r,e);var t=Z2(r);function r(){return Y2(this,r),t.apply(this,arguments)}return K2(r,[{key:"renderIcon",value:function(a){var i=this.props.inactiveColor,o=pr/2,s=pr/6,l=pr/3,c=a.inactive?i:a.color;if(a.type==="plainline")return U.createElement("line",{strokeWidth:4,fill:"none",stroke:c,strokeDasharray:a.payload.strokeDasharray,x1:0,y1:o,x2:pr,y2:o,className:"recharts-legend-icon"});if(a.type==="line")return U.createElement("path",{strokeWidth:4,fill:"none",stroke:c,d:"M0,".concat(o,"h").concat(l,` A`).concat(s,",").concat(s,",0,1,1,").concat(2*l,",").concat(o,` H`).concat(pr,"M").concat(2*l,",").concat(o,` - A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return U.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(pr/8,"h").concat(pr,"v").concat(pr*3/4,"h").concat(-pr,"z"),className:"recharts-legend-icon"});if(U.isValidElement(a.legendIcon)){var d=W2({},a);return delete d.legendIcon,U.cloneElement(a.legendIcon,d)}return U.createElement(lu,{fill:c,cx:o,cy:o,size:pr,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,p={x:0,y:0,width:pr,height:pr},g={display:l==="horizontal"?"inline-block":"block",marginRight:10},m={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,S){var v,O=b.formatter||c,_=Ze((v={"recharts-legend-item":!0},Yi(v,"legend-item-".concat(S),!0),Yi(v,"inactive",b.inactive),v));if(b.type==="none")return null;var w=Ne(b.value)?null:b.value;ea(!Ne(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=b.inactive?d:b.color;return U.createElement("li",im({className:_,style:g,key:"legend-item-".concat(S)},Wi(a.props,b,S)),U.createElement(Xh,{width:s,height:s,viewBox:p,style:m},a.renderIcon(b)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},O?O(w,b,S):w))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),r}(P.PureComponent);Yi(jb,"displayName","Legend");Yi(jb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function tU(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i-1}var fU=pU;function gU(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=RU){var c=t?null:OU(e);if(c)return kU(c);o=!1,a=AU,l=new wU}else l=t?[]:s;e:for(;++n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function el(e){return el=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},el(e)}function uu(e,t,r){return t=uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uk(e){var t=zU(e,"string");return $a(t)==="symbol"?t:String(t)}function zU(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qU(e,t){if(e==null)return{};var r=HU(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HU(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function WU(e){return e.value}function VU(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var r=qU(t,PU);return U.createElement(jb,r)}var pS=1,Ki=function(e){FU(r,e);var t=BU(r);function r(){var n;$U(this,r);for(var a=arguments.length,i=new Array(a),o=0;opS||Math.abs(i.height-this.lastBoundingBox.height)>pS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,p=i.chartHeight,g,m;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();g={left:((d||0)-b.width)/2}}else g=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var S=this.getBBoxSnapshot();m={top:((p||0)-S.height)/2}}else m=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Wn(Wn({},g),m)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,p=i.payload,g=Wn(Wn({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return U.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(b){a.wrapperNode=b}},VU(o,Wn(Wn({},this.props),{},{payload:sk(p,d,WU)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&se(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),r}(P.PureComponent);uu(Ki,"displayName","Legend");uu(Ki,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var fS=eM,YU=tM,KU=Gl,gS=fS?fS.isConcatSpreadable:void 0;function XU(e){return KU(e)||YU(e)||!!(gS&&e&&e[gS])}var ZU=XU,JU=rM,QU=ZU;function ck(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=QU),a||(a=[]);++i0&&r(s)?t>1?ck(s,t-1,r,n,a):JU(a,s):n||(a[a.length]=s)}return a}var dk=ck;function eG(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var tG=eG,hS=wb;function rG(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=hS(e),o=t!==void 0,s=t===null,l=t===t,c=hS(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!c&&e=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var oG=iG,mc=ZM,sG=JM,lG=ia,uG=QM,cG=tG,dG=nM,pG=oG,fG=jo,gG=Gl;function hG(e,t,r){t.length?t=mc(t,function(i){return gG(i)?function(o){return sG(o,i.length===1?i[0]:i)}:i}):t=[fG];var n=-1;t=mc(t,dG(lG));var a=uG(e,function(i,o,s){var l=mc(t,function(c){return c(i)});return{criteria:l,index:++n,value:i}});return cG(a,function(i,o){return pG(i,o,r)})}var mG=hG;function bG(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var yG=bG,vG=yG,mS=Math.max;function SG(e,t,r){return t=mS(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=mS(n.length-t,0),o=Array(i);++a0){if(++t>=kG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var CG=NG,DG=OG,LG=CG,MG=LG(DG),PG=MG,$G=jo,jG=EG,FG=PG;function BG(e,t){return FG(jG(e,t,$G),e+"")}var UG=BG,GG=iM,zG=r1,qG=oM,HG=zl;function WG(e,t,r){if(!HG(r))return!1;var n=typeof t;return(n=="number"?zG(r)&&qG(t,r.length):n=="string"&&t in r)?GG(r[t],e):!1}var cu=WG,VG=dk,YG=mG,KG=UG,yS=cu,XG=KG(function(e,t){if(e==null)return[];var r=t.length;return r>1&&yS(e,t[0],t[1])?t=[]:r>2&&yS(t[0],t[1],t[2])&&(t=[t[0]]),YG(e,VG(t,1),[])}),ZG=XG;const Fb=ft(ZG);function Xi(e){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(e)}function JG(e,t){return rz(e)||tz(e,t)||ez(e,t)||QG()}function QG(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ez(e,t){if(e){if(typeof e=="string")return vS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vS(e,t)}}function vS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function pz(e,t){return ni(e.getTime(),t.getTime())}function TS(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),c=!1,d=0;(s=l.next())&&!s.done;){var p=o.value,g=p[0],m=p[1],b=s.value,S=b[0],v=b[1];!c&&!n[d]&&(c=r.equals(g,S,i,d,e,t,r)&&r.equals(m,v,g,S,e,t,r))&&(n[d]=!0),d++}if(!c)return!1;i++}return!0}function fz(e,t,r){var n=_S(e),a=n.length;if(_S(t).length!==a)return!1;for(var i;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function Si(e,t,r){var n=xS(e),a=n.length;if(xS(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r)||(o=wS(e,i),s=wS(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function gz(e,t){return ni(e.valueOf(),t.valueOf())}function hz(e,t){return e.source===t.source&&e.flags===t.flags}function AS(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,c=0;(o=s.next())&&!o.done;)!l&&!n[c]&&(l=r.equals(i.value,o.value,i.value,o.value,e,t,r))&&(n[c]=!0),c++;if(!l)return!1}return!0}function mz(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var bz="[object Arguments]",yz="[object Boolean]",vz="[object Date]",Sz="[object Map]",Ez="[object Number]",xz="[object Object]",wz="[object RegExp]",_z="[object Set]",Tz="[object String]",Az=Array.isArray,OS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,kS=Object.assign,Oz=Object.prototype.toString.call.bind(Object.prototype.toString);function kz(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(d,p,g){if(d===p)return!0;if(d==null||p==null||typeof d!="object"||typeof p!="object")return d!==d&&p!==p;var m=d.constructor;if(m!==p.constructor)return!1;if(m===Object)return a(d,p,g);if(Az(d))return t(d,p,g);if(OS!=null&&OS(d))return l(d,p,g);if(m===Date)return r(d,p,g);if(m===RegExp)return o(d,p,g);if(m===Map)return n(d,p,g);if(m===Set)return s(d,p,g);var b=Oz(d);return b===vz?r(d,p,g):b===wz?o(d,p,g):b===Sz?n(d,p,g):b===_z?s(d,p,g):b===xz?typeof d.then!="function"&&typeof p.then!="function"&&a(d,p,g):b===bz?a(d,p,g):b===yz||b===Ez||b===Tz?i(d,p,g):!1}}function Rz(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Si:dz,areDatesEqual:pz,areMapsEqual:n?ES(TS,Si):TS,areObjectsEqual:n?Si:fz,arePrimitiveWrappersEqual:gz,areRegExpsEqual:hz,areSetsEqual:n?ES(AS,Si):AS,areTypedArraysEqual:n?Si:mz};if(r&&(a=kS({},a,r(a))),t){var i=_s(a.areArraysEqual),o=_s(a.areMapsEqual),s=_s(a.areObjectsEqual),l=_s(a.areSetsEqual);a=kS({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function Iz(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function Nz(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(l,c){var d=n(),p=d.cache,g=p===void 0?t?new WeakMap:void 0:p,m=d.meta;return r(l,c,{cache:g,equals:a,meta:m,strict:i})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return r(l,c,o)}}var Cz=Pn();Pn({strict:!0});Pn({circular:!0});Pn({circular:!0,strict:!0});Pn({createInternalComparator:function(){return ni}});Pn({strict:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni},strict:!0});function Pn(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=Rz(e),l=kz(s),c=n?n(l):Iz(l);return Nz({circular:r,comparator:l,createState:a,equals:c,strict:o})}function Dz(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function RS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):Dz(a)};requestAnimationFrame(n)}function lm(e){"@babel/helpers - typeof";return lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lm(e)}function Lz(e){return jz(e)||$z(e)||Pz(e)||Mz()}function Mz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pz(e,t){if(e){if(typeof e=="string")return IS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return IS(e,t)}}function IS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:O<0?0:O},S=function(O){for(var _=O>1?1:O,w=_,A=0;A<8;++A){var x=p(w)-_,E=m(w);if(Math.abs(x-_)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(d,p,g){var m=-(d-p)*n,b=g*i,S=g+(m-b)*s/1e3,v=g*s/1e3+d;return Math.abs(v-p)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vq(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function yc(e){return wq(e)||xq(e)||Eq(e)||Sq()}function Sq(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Eq(e,t){if(e){if(typeof e=="string")return fm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fm(e,t)}}function xq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wq(e){if(Array.isArray(e))return fm(e)}function fm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function al(e){return al=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},al(e)}var hn=function(e){Oq(r,e);var t=kq(r);function r(n,a){var i;_q(this,r),i=t.call(this,n,a);var o=i.props,s=o.isActive,l=o.attributeName,c=o.from,d=o.to,p=o.steps,g=o.children,m=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(mm(i)),i.changeStyle=i.changeStyle.bind(mm(i)),!s||m<=0)return i.state={style:{}},typeof g=="function"&&(i.state={style:d}),hm(i);if(p&&p.length)i.state={style:p[0].style};else if(c){if(typeof g=="function")return i.state={style:c},hm(i);i.state={style:l?Ci({},l,c):c}}else i.state={style:{}};return i}return Tq(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,d=i.to,p=i.from,g=this.state.style;if(s){if(!o){var m={style:l?Ci({},l,d):d};this.state&&g&&(l&&g[l]!==d||!l&&g!==d)&&this.setState(m);return}if(!(Cz(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=b||c?p:a.to;if(this.state&&g){var v={style:l?Ci({},l,S):S};(l&&[l]!==S||!l&&g!==S)&&this.setState(v)}this.runAnimation(Rr(Rr({},this.props),{},{from:S,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,c=a.easing,d=a.begin,p=a.onAnimationEnd,g=a.onAnimationStart,m=mq(o,s,iq(c),l,this.changeStyle),b=function(){i.stopJSAnimation=m()};this.manager.start([g,d,b,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,c=o[0],d=c.style,p=c.duration,g=p===void 0?0:p,m=function(S,v,O){if(O===0)return S;var _=v.duration,w=v.easing,A=w===void 0?"ease":w,x=v.style,E=v.properties,k=v.onAnimationEnd,N=O>0?o[O-1]:v,I=E||Object.keys(x);if(typeof A=="function"||A==="spring")return[].concat(yc(S),[i.runJSAnimation.bind(i,{from:N.style,to:x,duration:_,easing:A}),_]);var D=CS(I,_,A),L=Rr(Rr(Rr({},N.style),x),{},{transition:D});return[].concat(yc(S),[L,_,k]).filter(Wz)};return this.manager.start([l].concat(yc(o.reduce(m,[d,Math.max(g,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Fz());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,c=a.easing,d=a.onAnimationStart,p=a.onAnimationEnd,g=a.steps,m=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof c=="function"||typeof m=="function"||c==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var S=s?Ci({},s,l):l,v=CS(Object.keys(S),o,c);b.start([d,i,Rr(Rr({},S),{},{transition:v}),o,p])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=yq(a,bq),c=P.Children.count(i),d=Bb(this.state.style);if(typeof i=="function")return i(d);if(!s||c===0||o<=0)return i;var p=function(m){var b=m.props,S=b.style,v=S===void 0?{}:S,O=b.className,_=P.cloneElement(m,Rr(Rr({},l),{},{style:Rr(Rr({},v),d),className:O}));return _};return c===1?p(P.Children.only(i)):U.createElement("div",null,P.Children.map(i,function(g){return p(g)}))}}]),r}(P.PureComponent);hn.displayName="Animate";hn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};hn.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});we.object,we.object,we.object,we.element;we.object,we.object,we.object,we.oneOfType([we.array,we.element]),we.any;function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function Ts(e,t,r){return t=Iq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Iq(e){var t=Nq(e,"string");return Qi(t)==="symbol"?t:String(t)}function Nq(e,t){if(Qi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ei="recharts-tooltip-wrapper",Cq={visibility:"hidden"};function Dq(e){var t,r=e.coordinate,n=e.translateX,a=e.translateY;return Ze(Ei,(t={},Ts(t,"".concat(Ei,"-right"),se(n)&&r&&se(r.x)&&n>=r.x),Ts(t,"".concat(Ei,"-left"),se(n)&&r&&se(r.x)&&n=r.y),Ts(t,"".concat(Ei,"-top"),se(a)&&r&&se(r.y)&&aS?Math.max(d,l[n]):Math.max(p,l[n])}function Lq(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return Bb({transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})}function Mq(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,d,p;return o.height>0&&o.width>0&&r?(d=FS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=FS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=Lq({translateX:d,translateY:p,useTranslate3d:s})):c=Cq,{cssProperties:c,cssClasses:Dq({translateX:d,translateY:p,coordinate:r})}}function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function BS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},il(e)}function Bs(e,t,r){return t=vk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vk(e){var t=Gq(e,"string");return Ba(t)==="symbol"?t:String(t)}function Gq(e,t){if(Ba(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ba(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GS=1,zq=function(e){jq(r,e);var t=Fq(r);function r(){var n;Pq(this,r);for(var a=arguments.length,i=new Array(a),o=0;oGS||Math.abs(a.height-this.lastBoundingBox.height)>GS)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,d=i.children,p=i.coordinate,g=i.hasPayload,m=i.isAnimationActive,b=i.offset,S=i.position,v=i.reverseDirection,O=i.useTranslate3d,_=i.viewBox,w=i.wrapperStyle,A=Mq({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:b,position:S,reverseDirection:v,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:O,viewBox:_}),x=A.cssClasses,E=A.cssProperties,k=vc(vc(vc({},m&&o&&Bb({transition:"transform ".concat(l,"ms ").concat(c)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&g?"visible":"hidden",position:"absolute",top:0,left:0},w);return U.createElement("div",{tabIndex:-1,role:"dialog",className:x,style:k,ref:function(I){a.wrapperNode=I}},d)}}]),r}(P.PureComponent),qq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},fn={isSsr:qq(),get:function(t){return fn[t]},set:function(t,r){if(typeof t=="string")fn[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){fn[a]=t[a]})}}};function Ua(e){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(e)}function zS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function qS(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ol(e)}function Ub(e,t,r){return t=Sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Jq(e,"string");return Ua(t)==="symbol"?t:String(t)}function Jq(e,t){if(Ua(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ua(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qq(e){return e.dataKey}function eH(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(sz,t)}var Zn=function(e){Vq(r,e);var t=Yq(r);function r(){return Hq(this,r),t.apply(this,arguments)}return Wq(r,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,c=a.content,d=a.coordinate,p=a.filterNull,g=a.isAnimationActive,m=a.offset,b=a.payload,S=a.payloadUniqBy,v=a.position,O=a.reverseDirection,_=a.useTranslate3d,w=a.viewBox,A=a.wrapperStyle,x=b??[];p&&x.length&&(x=sk(b.filter(function(k){return k.value!=null}),S,Qq));var E=x.length>0;return U.createElement(zq,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:g,active:i,coordinate:d,hasPayload:E,offset:m,position:v,reverseDirection:O,useTranslate3d:_,viewBox:w,wrapperStyle:A},eH(c,qS(qS({},this.props),{},{payload:x})))}}]),r}(P.PureComponent);Ub(Zn,"displayName","Tooltip");Ub(Zn,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!fn.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var tH=sM,rH=function(){return tH.Date.now()},nH=rH,aH=/\s/;function iH(e){for(var t=e.length;t--&&aH.test(e.charAt(t)););return t}var oH=iH,sH=oH,lH=/^\s+/;function uH(e){return e&&e.slice(0,sH(e)+1).replace(lH,"")}var cH=uH,dH=cH,WS=zl,pH=wb,VS=0/0,fH=/^[-+]0x[0-9a-f]+$/i,gH=/^0b[01]+$/i,hH=/^0o[0-7]+$/i,mH=parseInt;function bH(e){if(typeof e=="number")return e;if(pH(e))return VS;if(WS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=WS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=dH(e);var r=gH.test(e);return r||hH.test(e)?mH(e.slice(2),r?2:8):fH.test(e)?VS:+e}var Ek=bH,yH=zl,Sc=nH,YS=Ek,vH="Expected a function",SH=Math.max,EH=Math.min;function xH(e,t,r){var n,a,i,o,s,l,c=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(vH);t=YS(t)||0,yH(r)&&(d=!!r.leading,p="maxWait"in r,i=p?SH(YS(r.maxWait)||0,t):i,g="trailing"in r?!!r.trailing:g);function m(E){var k=n,N=a;return n=a=void 0,c=E,o=e.apply(N,k),o}function b(E){return c=E,s=setTimeout(O,t),d?m(E):o}function S(E){var k=E-l,N=E-c,I=t-k;return p?EH(I,i-N):I}function v(E){var k=E-l,N=E-c;return l===void 0||k>=t||k<0||p&&N>=i}function O(){var E=Sc();if(v(E))return _(E);s=setTimeout(O,S(E))}function _(E){return s=void 0,g&&n?m(E):(n=a=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function A(){return s===void 0?o:_(Sc())}function x(){var E=Sc(),k=v(E);if(n=arguments,a=this,l=E,k){if(s===void 0)return b(l);if(p)return clearTimeout(s),s=setTimeout(O,t),m(l)}return s===void 0&&(s=setTimeout(O,t)),o}return x.cancel=w,x.flush=A,x}var wH=xH,_H=wH,TH=zl,AH="Expected a function";function OH(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(AH);return TH(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),_H(e,t,{leading:n,maxWait:t,trailing:a})}var kH=OH;const xk=ft(kH);function eo(e){"@babel/helpers - typeof";return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(e)}function KS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function As(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(q=xk(q,S,{trailing:!0,leading:!1}));var H=new ResizeObserver(q),z=x.current.getBoundingClientRect(),W=z.width,K=z.height;return L(W,K),H.observe(x.current),function(){H.disconnect()}},[L,S]);var j=P.useMemo(function(){var q=I.containerWidth,H=I.containerHeight;if(q<0||H<0)return null;ea(Xn(o)||Xn(l),`The width(%s) and height(%s) are both fixed numbers, + A`).concat(s,",").concat(s,",0,1,1,").concat(l,",").concat(o),className:"recharts-legend-icon"});if(a.type==="rect")return U.createElement("path",{stroke:"none",fill:c,d:"M0,".concat(pr/8,"h").concat(pr,"v").concat(pr*3/4,"h").concat(-pr,"z"),className:"recharts-legend-icon"});if(U.isValidElement(a.legendIcon)){var d=V2({},a);return delete d.legendIcon,U.cloneElement(a.legendIcon,d)}return U.createElement(uu,{fill:c,cx:o,cy:o,size:pr,sizeType:"diameter",type:a.type})}},{key:"renderItems",value:function(){var a=this,i=this.props,o=i.payload,s=i.iconSize,l=i.layout,c=i.formatter,d=i.inactiveColor,p={x:0,y:0,width:pr,height:pr},g={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return o.map(function(b,S){var v,O=b.formatter||c,_=Ze((v={"recharts-legend-item":!0},Yi(v,"legend-item-".concat(S),!0),Yi(v,"inactive",b.inactive),v));if(b.type==="none")return null;var w=Ne(b.value)?null:b.value;ea(!Ne(b.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: `);var A=b.inactive?d:b.color;return U.createElement("li",om({className:_,style:g,key:"legend-item-".concat(S)},Wi(a.props,b,S)),U.createElement(Zh,{width:s,height:s,viewBox:p,style:h},a.renderIcon(b)),U.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},O?O(w,b,S):w))})}},{key:"render",value:function(){var a=this.props,i=a.payload,o=a.layout,s=a.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:o==="horizontal"?s:"left"};return U.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}]),r}(M.PureComponent);Yi(Fb,"displayName","Legend");Yi(Fb,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});function rU(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i-1}var gU=fU;function hU(e,t,r){for(var n=-1,a=e==null?0:e.length;++n=IU){var c=t?null:kU(e);if(c)return RU(c);o=!1,a=OU,l=new _U}else l=t?[]:s;e:for(;++n"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function tl(e){return tl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},tl(e)}function cu(e,t,r){return t=uk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uk(e){var t=qU(e,"string");return $a(t)==="symbol"?t:String(t)}function qU(e,t){if($a(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if($a(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HU(e,t){if(e==null)return{};var r=WU(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function WU(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function VU(e){return e.value}function YU(e,t){if(U.isValidElement(e))return U.cloneElement(e,t);if(typeof e=="function")return U.createElement(e,t);t.ref;var r=HU(t,$U);return U.createElement(Fb,r)}var fS=1,Ki=function(e){BU(r,e);var t=UU(r);function r(){var n;jU(this,r);for(var a=arguments.length,i=new Array(a),o=0;ofS||Math.abs(i.height-this.lastBoundingBox.height)>fS)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,a&&a(i))}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,a&&a(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Wn({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(a){var i=this.props,o=i.layout,s=i.align,l=i.verticalAlign,c=i.margin,d=i.chartWidth,p=i.chartHeight,g,h;if(!a||(a.left===void 0||a.left===null)&&(a.right===void 0||a.right===null))if(s==="center"&&o==="vertical"){var b=this.getBBoxSnapshot();g={left:((d||0)-b.width)/2}}else g=s==="right"?{right:c&&c.right||0}:{left:c&&c.left||0};if(!a||(a.top===void 0||a.top===null)&&(a.bottom===void 0||a.bottom===null))if(l==="middle"){var S=this.getBBoxSnapshot();h={top:((p||0)-S.height)/2}}else h=l==="bottom"?{bottom:c&&c.bottom||0}:{top:c&&c.top||0};return Wn(Wn({},g),h)}},{key:"render",value:function(){var a=this,i=this.props,o=i.content,s=i.width,l=i.height,c=i.wrapperStyle,d=i.payloadUniqBy,p=i.payload,g=Wn(Wn({position:"absolute",width:s||"auto",height:l||"auto"},this.getDefaultPosition(c)),c);return U.createElement("div",{className:"recharts-legend-wrapper",style:g,ref:function(b){a.wrapperNode=b}},YU(o,Wn(Wn({},this.props),{},{payload:sk(p,d,VU)})))}}],[{key:"getWithHeight",value:function(a,i){var o=a.props.layout;return o==="vertical"&&se(a.props.height)?{height:a.props.height}:o==="horizontal"?{width:a.props.width||i}:null}}]),r}(M.PureComponent);cu(Ki,"displayName","Legend");cu(Ki,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var gS=eM,KU=tM,XU=zl,hS=gS?gS.isConcatSpreadable:void 0;function ZU(e){return XU(e)||KU(e)||!!(hS&&e&&e[hS])}var JU=ZU,QU=rM,eG=JU;function ck(e,t,r,n,a){var i=-1,o=e.length;for(r||(r=eG),a||(a=[]);++i0&&r(s)?t>1?ck(s,t-1,r,n,a):QU(a,s):n||(a[a.length]=s)}return a}var dk=ck;function tG(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var rG=tG,mS=_b;function nG(e,t){if(e!==t){var r=e!==void 0,n=e===null,a=e===e,i=mS(e),o=t!==void 0,s=t===null,l=t===t,c=mS(t);if(!s&&!c&&!i&&e>t||i&&o&&l&&!s&&!c||n&&o&&l||!r&&l||!a)return 1;if(!n&&!i&&!c&&e=s)return l;var c=r[n];return l*(c=="desc"?-1:1)}}return e.index-t.index}var sG=oG,bc=ZM,lG=JM,uG=ia,cG=QM,dG=rG,pG=nM,fG=sG,gG=Fo,hG=zl;function mG(e,t,r){t.length?t=bc(t,function(i){return hG(i)?function(o){return lG(o,i.length===1?i[0]:i)}:i}):t=[gG];var n=-1;t=bc(t,pG(uG));var a=cG(e,function(i,o,s){var l=bc(t,function(c){return c(i)});return{criteria:l,index:++n,value:i}});return dG(a,function(i,o){return fG(i,o,r)})}var bG=mG;function yG(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var vG=yG,SG=vG,bS=Math.max;function EG(e,t,r){return t=bS(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=bS(n.length-t,0),o=Array(i);++a0){if(++t>=RG)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var DG=CG,LG=kG,MG=DG,PG=MG(LG),$G=PG,jG=Fo,FG=xG,BG=$G;function UG(e,t){return BG(FG(e,t,jG),e+"")}var GG=UG,zG=iM,qG=r1,HG=oM,WG=ql;function VG(e,t,r){if(!WG(r))return!1;var n=typeof t;return(n=="number"?qG(r)&&HG(t,r.length):n=="string"&&t in r)?zG(r[t],e):!1}var du=VG,YG=dk,KG=bG,XG=GG,vS=du,ZG=XG(function(e,t){if(e==null)return[];var r=t.length;return r>1&&vS(e,t[0],t[1])?t=[]:r>2&&vS(t[0],t[1],t[2])&&(t=[t[0]]),KG(e,YG(t,1),[])}),JG=ZG;const Bb=ft(JG);function Xi(e){"@babel/helpers - typeof";return Xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xi(e)}function QG(e,t){return nz(e)||rz(e,t)||tz(e,t)||ez()}function ez(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tz(e,t){if(e){if(typeof e=="string")return SS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return SS(e,t)}}function SS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function fz(e,t){return ni(e.getTime(),t.getTime())}function AS(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.entries(),i=0,o,s;(o=a.next())&&!o.done;){for(var l=t.entries(),c=!1,d=0;(s=l.next())&&!s.done;){var p=o.value,g=p[0],h=p[1],b=s.value,S=b[0],v=b[1];!c&&!n[d]&&(c=r.equals(g,S,i,d,e,t,r)&&r.equals(h,v,g,S,e,t,r))&&(n[d]=!0),d++}if(!c)return!1;i++}return!0}function gz(e,t,r){var n=TS(e),a=n.length;if(TS(t).length!==a)return!1;for(var i;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r))return!1;return!0}function Si(e,t,r){var n=wS(e),a=n.length;if(wS(t).length!==a)return!1;for(var i,o,s;a-- >0;)if(i=n[a],i===fk&&(e.$$typeof||t.$$typeof)&&e.$$typeof!==t.$$typeof||!pk(t,i)||!r.equals(e[i],t[i],i,i,e,t,r)||(o=_S(e,i),s=_S(t,i),(o||s)&&(!o||!s||o.configurable!==s.configurable||o.enumerable!==s.enumerable||o.writable!==s.writable)))return!1;return!0}function hz(e,t){return ni(e.valueOf(),t.valueOf())}function mz(e,t){return e.source===t.source&&e.flags===t.flags}function OS(e,t,r){if(e.size!==t.size)return!1;for(var n={},a=e.values(),i,o;(i=a.next())&&!i.done;){for(var s=t.values(),l=!1,c=0;(o=s.next())&&!o.done;)!l&&!n[c]&&(l=r.equals(i.value,o.value,i.value,o.value,e,t,r))&&(n[c]=!0),c++;if(!l)return!1}return!0}function bz(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}var yz="[object Arguments]",vz="[object Boolean]",Sz="[object Date]",Ez="[object Map]",xz="[object Number]",wz="[object Object]",_z="[object RegExp]",Tz="[object Set]",Az="[object String]",Oz=Array.isArray,kS=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,RS=Object.assign,kz=Object.prototype.toString.call.bind(Object.prototype.toString);function Rz(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areMapsEqual,a=e.areObjectsEqual,i=e.arePrimitiveWrappersEqual,o=e.areRegExpsEqual,s=e.areSetsEqual,l=e.areTypedArraysEqual;return function(d,p,g){if(d===p)return!0;if(d==null||p==null||typeof d!="object"||typeof p!="object")return d!==d&&p!==p;var h=d.constructor;if(h!==p.constructor)return!1;if(h===Object)return a(d,p,g);if(Oz(d))return t(d,p,g);if(kS!=null&&kS(d))return l(d,p,g);if(h===Date)return r(d,p,g);if(h===RegExp)return o(d,p,g);if(h===Map)return n(d,p,g);if(h===Set)return s(d,p,g);var b=kz(d);return b===Sz?r(d,p,g):b===_z?o(d,p,g):b===Ez?n(d,p,g):b===Tz?s(d,p,g):b===wz?typeof d.then!="function"&&typeof p.then!="function"&&a(d,p,g):b===yz?a(d,p,g):b===vz||b===xz||b===Az?i(d,p,g):!1}}function Iz(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,a={areArraysEqual:n?Si:pz,areDatesEqual:fz,areMapsEqual:n?xS(AS,Si):AS,areObjectsEqual:n?Si:gz,arePrimitiveWrappersEqual:hz,areRegExpsEqual:mz,areSetsEqual:n?xS(OS,Si):OS,areTypedArraysEqual:n?Si:bz};if(r&&(a=RS({},a,r(a))),t){var i=Ts(a.areArraysEqual),o=Ts(a.areMapsEqual),s=Ts(a.areObjectsEqual),l=Ts(a.areSetsEqual);a=RS({},a,{areArraysEqual:i,areMapsEqual:o,areObjectsEqual:s,areSetsEqual:l})}return a}function Nz(e){return function(t,r,n,a,i,o,s){return e(t,r,s)}}function Cz(e){var t=e.circular,r=e.comparator,n=e.createState,a=e.equals,i=e.strict;if(n)return function(l,c){var d=n(),p=d.cache,g=p===void 0?t?new WeakMap:void 0:p,h=d.meta;return r(l,c,{cache:g,equals:a,meta:h,strict:i})};if(t)return function(l,c){return r(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var o={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return r(l,c,o)}}var Dz=Pn();Pn({strict:!0});Pn({circular:!0});Pn({circular:!0,strict:!0});Pn({createInternalComparator:function(){return ni}});Pn({strict:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni}});Pn({circular:!0,createInternalComparator:function(){return ni},strict:!0});function Pn(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,a=e.createState,i=e.strict,o=i===void 0?!1:i,s=Iz(e),l=Rz(s),c=n?n(l):Nz(l);return Cz({circular:r,comparator:l,createState:a,equals:c,strict:o})}function Lz(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function IS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function a(i){r<0&&(r=i),i-r>t?(e(i),r=-1):Lz(a)};requestAnimationFrame(n)}function um(e){"@babel/helpers - typeof";return um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},um(e)}function Mz(e){return Fz(e)||jz(e)||$z(e)||Pz()}function Pz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $z(e,t){if(e){if(typeof e=="string")return NS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return NS(e,t)}}function NS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?1:O<0?0:O},S=function(O){for(var _=O>1?1:O,w=_,A=0;A<8;++A){var x=p(w)-_,E=h(w);if(Math.abs(x-_)0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,a=t.damping,i=a===void 0?8:a,o=t.dt,s=o===void 0?17:o,l=function(d,p,g){var h=-(d-p)*n,b=g*i,S=g+(h-b)*s/1e3,v=g*s/1e3+d;return Math.abs(v-p)e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Sq(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function vc(e){return _q(e)||wq(e)||xq(e)||Eq()}function Eq(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xq(e,t){if(e){if(typeof e=="string")return gm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gm(e,t)}}function wq(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _q(e){if(Array.isArray(e))return gm(e)}function gm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function il(e){return il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},il(e)}var hn=function(e){kq(r,e);var t=Rq(r);function r(n,a){var i;Tq(this,r),i=t.call(this,n,a);var o=i.props,s=o.isActive,l=o.attributeName,c=o.from,d=o.to,p=o.steps,g=o.children,h=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(bm(i)),i.changeStyle=i.changeStyle.bind(bm(i)),!s||h<=0)return i.state={style:{}},typeof g=="function"&&(i.state={style:d}),mm(i);if(p&&p.length)i.state={style:p[0].style};else if(c){if(typeof g=="function")return i.state={style:c},mm(i);i.state={style:l?Ci({},l,c):c}}else i.state={style:{}};return i}return Aq(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,s=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,d=i.to,p=i.from,g=this.state.style;if(s){if(!o){var h={style:l?Ci({},l,d):d};this.state&&g&&(l&&g[l]!==d||!l&&g!==d)&&this.setState(h);return}if(!(Dz(a.to,d)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=b||c?p:a.to;if(this.state&&g){var v={style:l?Ci({},l,S):S};(l&&[l]!==S||!l&&g!==S)&&this.setState(v)}this.runAnimation(Rr(Rr({},this.props),{},{from:S,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,s=a.to,l=a.duration,c=a.easing,d=a.begin,p=a.onAnimationEnd,g=a.onAnimationStart,h=bq(o,s,oq(c),l,this.changeStyle),b=function(){i.stopJSAnimation=h()};this.manager.start([g,d,b,l,p])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,s=a.begin,l=a.onAnimationStart,c=o[0],d=c.style,p=c.duration,g=p===void 0?0:p,h=function(S,v,O){if(O===0)return S;var _=v.duration,w=v.easing,A=w===void 0?"ease":w,x=v.style,E=v.properties,k=v.onAnimationEnd,N=O>0?o[O-1]:v,I=E||Object.keys(x);if(typeof A=="function"||A==="spring")return[].concat(vc(S),[i.runJSAnimation.bind(i,{from:N.style,to:x,duration:_,easing:A}),_]);var D=DS(I,_,A),L=Rr(Rr(Rr({},N.style),x),{},{transition:D});return[].concat(vc(S),[L,_,k]).filter(Vz)};return this.manager.start([l].concat(vc(o.reduce(h,[d,Math.max(g,s)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Bz());var i=a.begin,o=a.duration,s=a.attributeName,l=a.to,c=a.easing,d=a.onAnimationStart,p=a.onAnimationEnd,g=a.steps,h=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var S=s?Ci({},s,l):l,v=DS(Object.keys(S),o,c);b.start([d,i,Rr(Rr({},S),{},{transition:v}),o,p])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var s=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=vq(a,yq),c=M.Children.count(i),d=Ub(this.state.style);if(typeof i=="function")return i(d);if(!s||c===0||o<=0)return i;var p=function(h){var b=h.props,S=b.style,v=S===void 0?{}:S,O=b.className,_=M.cloneElement(h,Rr(Rr({},l),{},{style:Rr(Rr({},v),d),className:O}));return _};return c===1?p(M.Children.only(i)):U.createElement("div",null,M.Children.map(i,function(g){return p(g)}))}}]),r}(M.PureComponent);hn.displayName="Animate";hn.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};hn.propTypes={from:we.oneOfType([we.object,we.string]),to:we.oneOfType([we.object,we.string]),attributeName:we.string,duration:we.number,begin:we.number,easing:we.oneOfType([we.string,we.func]),steps:we.arrayOf(we.shape({duration:we.number.isRequired,style:we.object.isRequired,easing:we.oneOfType([we.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),we.func]),properties:we.arrayOf("string"),onAnimationEnd:we.func})),children:we.oneOfType([we.node,we.func]),isActive:we.bool,canBegin:we.bool,onAnimationEnd:we.func,shouldReAnimate:we.bool,onAnimationStart:we.func,onAnimationReStart:we.func};Number.isFinite===void 0&&(Number.isFinite=function(e){return typeof e=="number"&&isFinite(e)});we.object,we.object,we.object,we.element;we.object,we.object,we.object,we.oneOfType([we.array,we.element]),we.any;function Qi(e){"@babel/helpers - typeof";return Qi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qi(e)}function As(e,t,r){return t=Nq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nq(e){var t=Cq(e,"string");return Qi(t)==="symbol"?t:String(t)}function Cq(e,t){if(Qi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Qi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ei="recharts-tooltip-wrapper",Dq={visibility:"hidden"};function Lq(e){var t,r=e.coordinate,n=e.translateX,a=e.translateY;return Ze(Ei,(t={},As(t,"".concat(Ei,"-right"),se(n)&&r&&se(r.x)&&n>=r.x),As(t,"".concat(Ei,"-left"),se(n)&&r&&se(r.x)&&n=r.y),As(t,"".concat(Ei,"-top"),se(a)&&r&&se(r.y)&&aS?Math.max(d,l[n]):Math.max(p,l[n])}function Mq(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return Ub({transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")})}function Pq(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,s=e.useTranslate3d,l=e.viewBox,c,d,p;return o.height>0&&o.width>0&&r?(d=BS({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:l,viewBoxDimension:l.width}),p=BS({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:l,viewBoxDimension:l.height}),c=Mq({translateX:d,translateY:p,useTranslate3d:s})):c=Dq,{cssProperties:c,cssClasses:Lq({translateX:d,translateY:p,coordinate:r})}}function Ba(e){"@babel/helpers - typeof";return Ba=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ba(e)}function US(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sc(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ol(e){return ol=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ol(e)}function Us(e,t,r){return t=vk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vk(e){var t=zq(e,"string");return Ba(t)==="symbol"?t:String(t)}function zq(e,t){if(Ba(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ba(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var zS=1,qq=function(e){Fq(r,e);var t=Bq(r);function r(){var n;$q(this,r);for(var a=arguments.length,i=new Array(a),o=0;ozS||Math.abs(a.height-this.lastBoundingBox.height)>zS)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height)}else(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1)}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var a,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((a=this.props.coordinate)===null||a===void 0?void 0:a.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var a=this,i=this.props,o=i.active,s=i.allowEscapeViewBox,l=i.animationDuration,c=i.animationEasing,d=i.children,p=i.coordinate,g=i.hasPayload,h=i.isAnimationActive,b=i.offset,S=i.position,v=i.reverseDirection,O=i.useTranslate3d,_=i.viewBox,w=i.wrapperStyle,A=Pq({allowEscapeViewBox:s,coordinate:p,offsetTopLeft:b,position:S,reverseDirection:v,tooltipBox:{height:this.lastBoundingBox.height,width:this.lastBoundingBox.width},useTranslate3d:O,viewBox:_}),x=A.cssClasses,E=A.cssProperties,k=Sc(Sc(Sc({},h&&o&&Ub({transition:"transform ".concat(l,"ms ").concat(c)})),E),{},{pointerEvents:"none",visibility:!this.state.dismissed&&o&&g?"visible":"hidden",position:"absolute",top:0,left:0},w);return U.createElement("div",{tabIndex:-1,role:"dialog",className:x,style:k,ref:function(I){a.wrapperNode=I}},d)}}]),r}(M.PureComponent),Hq=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},fn={isSsr:Hq(),get:function(t){return fn[t]},set:function(t,r){if(typeof t=="string")fn[t]=r;else{var n=Object.keys(t);n&&n.length&&n.forEach(function(a){fn[a]=t[a]})}}};function Ua(e){"@babel/helpers - typeof";return Ua=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ua(e)}function qS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function HS(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function sl(e){return sl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},sl(e)}function Gb(e,t,r){return t=Sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Qq(e,"string");return Ua(t)==="symbol"?t:String(t)}function Qq(e,t){if(Ua(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ua(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eH(e){return e.dataKey}function tH(e,t){return U.isValidElement(e)?U.cloneElement(e,t):typeof e=="function"?U.createElement(e,t):U.createElement(lz,t)}var Zn=function(e){Yq(r,e);var t=Kq(r);function r(){return Wq(this,r),t.apply(this,arguments)}return Vq(r,[{key:"render",value:function(){var a=this.props,i=a.active,o=a.allowEscapeViewBox,s=a.animationDuration,l=a.animationEasing,c=a.content,d=a.coordinate,p=a.filterNull,g=a.isAnimationActive,h=a.offset,b=a.payload,S=a.payloadUniqBy,v=a.position,O=a.reverseDirection,_=a.useTranslate3d,w=a.viewBox,A=a.wrapperStyle,x=b??[];p&&x.length&&(x=sk(b.filter(function(k){return k.value!=null}),S,eH));var E=x.length>0;return U.createElement(qq,{allowEscapeViewBox:o,animationDuration:s,animationEasing:l,isAnimationActive:g,active:i,coordinate:d,hasPayload:E,offset:h,position:v,reverseDirection:O,useTranslate3d:_,viewBox:w,wrapperStyle:A},tH(c,HS(HS({},this.props),{},{payload:x})))}}]),r}(M.PureComponent);Gb(Zn,"displayName","Tooltip");Gb(Zn,"defaultProps",{allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!fn.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var rH=sM,nH=function(){return rH.Date.now()},aH=nH,iH=/\s/;function oH(e){for(var t=e.length;t--&&iH.test(e.charAt(t)););return t}var sH=oH,lH=sH,uH=/^\s+/;function cH(e){return e&&e.slice(0,lH(e)+1).replace(uH,"")}var dH=cH,pH=dH,VS=ql,fH=_b,YS=0/0,gH=/^[-+]0x[0-9a-f]+$/i,hH=/^0b[01]+$/i,mH=/^0o[0-7]+$/i,bH=parseInt;function yH(e){if(typeof e=="number")return e;if(fH(e))return YS;if(VS(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=VS(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pH(e);var r=hH.test(e);return r||mH.test(e)?bH(e.slice(2),r?2:8):gH.test(e)?YS:+e}var Ek=yH,vH=ql,Ec=aH,KS=Ek,SH="Expected a function",EH=Math.max,xH=Math.min;function wH(e,t,r){var n,a,i,o,s,l,c=0,d=!1,p=!1,g=!0;if(typeof e!="function")throw new TypeError(SH);t=KS(t)||0,vH(r)&&(d=!!r.leading,p="maxWait"in r,i=p?EH(KS(r.maxWait)||0,t):i,g="trailing"in r?!!r.trailing:g);function h(E){var k=n,N=a;return n=a=void 0,c=E,o=e.apply(N,k),o}function b(E){return c=E,s=setTimeout(O,t),d?h(E):o}function S(E){var k=E-l,N=E-c,I=t-k;return p?xH(I,i-N):I}function v(E){var k=E-l,N=E-c;return l===void 0||k>=t||k<0||p&&N>=i}function O(){var E=Ec();if(v(E))return _(E);s=setTimeout(O,S(E))}function _(E){return s=void 0,g&&n?h(E):(n=a=void 0,o)}function w(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function A(){return s===void 0?o:_(Ec())}function x(){var E=Ec(),k=v(E);if(n=arguments,a=this,l=E,k){if(s===void 0)return b(l);if(p)return clearTimeout(s),s=setTimeout(O,t),h(l)}return s===void 0&&(s=setTimeout(O,t)),o}return x.cancel=w,x.flush=A,x}var _H=wH,TH=_H,AH=ql,OH="Expected a function";function kH(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(OH);return AH(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),TH(e,t,{leading:n,maxWait:t,trailing:a})}var RH=kH;const xk=ft(RH);function eo(e){"@babel/helpers - typeof";return eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},eo(e)}function XS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Os(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&(q=xk(q,S,{trailing:!0,leading:!1}));var H=new ResizeObserver(q),z=x.current.getBoundingClientRect(),W=z.width,K=z.height;return L(W,K),H.observe(x.current),function(){H.disconnect()}},[L,S]);var j=M.useMemo(function(){var q=I.containerWidth,H=I.containerHeight;if(q<0||H<0)return null;ea(Xn(o)||Xn(l),`The width(%s) and height(%s) are both fixed numbers, maybe you don't need to use a ResponsiveContainer.`,o,l),ea(!r||r>0,"The aspect(%s) must be greater than zero.",r);var z=Xn(o)?q:o,W=Xn(l)?H:l;r&&r>0&&(z?W=z/r:W&&(z=W*r),g&&W>g&&(W=g)),ea(z>0||W>0,`The width(%s) and height(%s) of chart should be greater than 0, please check the style of container, or the props width(%s) and height(%s), or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the - height and width.`,z,W,o,l,d,p,r);var K=!Array.isArray(m)&&Vh.isElement(m)&&pn(m.type).endsWith("Chart");return U.Children.map(m,function(G){return Vh.isElement(G)?P.cloneElement(G,As({width:z,height:W},K?{style:As({height:"100%",width:"100%",maxHeight:W,maxWidth:z},G.props.style)}:{})):G})},[r,m,l,g,p,d,I,o]);return U.createElement("div",{id:v?"".concat(v):void 0,className:Ze("recharts-responsive-container",O),style:As(As({},A),{},{width:o,height:l,minWidth:d,minHeight:p,maxHeight:g}),ref:x},j)}),Gb=function(t){return null};Gb.displayName="Cell";function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function ZS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vm(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||fn.isSsr)return{width:0,height:0};var n=zH(r),a=JSON.stringify({text:t,copyStyle:n});if(ba.widthCache[a])return ba.widthCache[a];try{var i=document.getElementById(JS);i||(i=document.createElement("span"),i.setAttribute("id",JS),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=vm(vm({},GH),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return ba.widthCache[a]=l,++ba.cacheCount>UH&&(ba.cacheCount=0,ba.widthCache={}),l}catch{return{width:0,height:0}}},qH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function sl(e,t){return YH(e)||VH(e,t)||WH(e,t)||HH()}function HH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WH(e,t){if(e){if(typeof e=="string")return QS(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return QS(e,t)}}function QS(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lW(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function iE(e,t){return pW(e)||dW(e,t)||cW(e,t)||uW()}function uW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cW(e,t){if(e){if(typeof e=="string")return oE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return oE(e,t)}}function oE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(W,K){var G=K.word,V=K.width,J=W[W.length-1];if(J&&(a==null||i||J.width+V+nK.width?W:K})};if(!d)return m;for(var S="…",v=function(z){var W=p.slice(0,z),K=Ak({breakAll:c,style:l,children:W+S}).wordsWithComputedWidth,G=g(K),V=G.length>o||b(G).width>Number(a);return[V,G]},O=0,_=p.length-1,w=0,A;O<=_&&w<=p.length-1;){var x=Math.floor((O+_)/2),E=x-1,k=v(E),N=iE(k,2),I=N[0],D=N[1],L=v(x),j=iE(L,1),q=j[0];if(!I&&!q&&(O=x+1),I&&q&&(_=x-1),!I&&q){A=D;break}w++}return A||m},sE=function(t){var r=Ce(t)?[]:t.toString().split(Tk);return[{words:r}]},gW=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!fn.isSsr){var l,c,d=Ak({breakAll:o,children:a,style:i});if(d){var p=d.wordsWithComputedWidth,g=d.spaceWidth;l=p,c=g}else return sE(a);return fW({breakAll:o,children:a,maxLines:s,style:i},l,c,r,n)}return sE(a)},lE="#808080",ll=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,p=d===void 0?!1:d,g=t.textAnchor,m=g===void 0?"start":g,b=t.verticalAnchor,S=b===void 0?"end":b,v=t.fill,O=v===void 0?lE:v,_=aE(t,oW),w=P.useMemo(function(){return gW({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,x=_.dy,E=_.angle,k=_.className,N=_.breakAll,I=aE(_,sW);if(!Et(n)||!Et(i))return null;var D=n+(se(A)?A:0),L=i+(se(x)?x:0),j;switch(S){case"start":j=Ec("calc(".concat(c,")"));break;case"middle":j=Ec("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:j=Ec("calc(".concat(w.length-1," * -").concat(s,")"));break}var q=[];if(p){var H=w[0].width,z=_.width;q.push("scale(".concat((se(z)?z/H:1)/H,")"))}return E&&q.push("rotate(".concat(E,", ").concat(D,", ").concat(L,")")),q.length&&(I.transform=q.join(" ")),U.createElement("text",Sm({},Me(I,!0),{x:D,y:L,className:Ze("recharts-text",k),textAnchor:m,fill:O.includes("url")?lE:O}),w.map(function(W,K){var G=W.words.join(N?"":" ");return U.createElement("tspan",{x:D,dy:K===0?j:s,key:G},G)}))};function Ln(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function hW(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function zb(e){let t,r,n;e.length!==2?(t=Ln,r=(s,l)=>Ln(e(s),l),n=(s,l)=>e(s)-l):(t=e===Ln||e===hW?e:mW,r=e,n=e);function a(s,l,c=0,d=s.length){if(c>>1;r(s[p],l)<0?c=p+1:d=p}while(c>>1;r(s[p],l)<=0?c=p+1:d=p}while(cc&&n(s[p-1],l)>-n(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function mW(){return 0}function Ok(e){return e===null?NaN:+e}function*bW(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const yW=zb(Ln),vW=yW.right;zb(Ok).center;const Go=vW;class uE extends Map{constructor(t,r=xW){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(cE(this,t))}has(t){return super.has(cE(this,t))}set(t,r){return super.set(SW(this,t),r)}delete(t){return super.delete(EW(this,t))}}function cE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function SW({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function EW({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function xW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function wW(e=Ln){if(e===Ln)return kk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function kk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const _W=Math.sqrt(50),TW=Math.sqrt(10),AW=Math.sqrt(2);function ul(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=_W?10:i>=TW?5:i>=AW?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function pE(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function Rk(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?kk:wW(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,d=Math.log(l),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(l-p)/l)*(c-l/2<0?-1:1),m=Math.max(r,Math.floor(t-c*p/l+g)),b=Math.min(n,Math.floor(t+(l-c)*p/l+g));Rk(e,t,m,b,a)}const i=e[t];let o=r,s=n;for(xi(e,r,t),a(e[n],i)>0&&xi(e,r,n);o0;)--s}a(e[r],i)===0?xi(e,r,s):(++s,xi(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function xi(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function OW(e,t,r){if(e=Float64Array.from(bW(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return pE(e);if(t>=1)return dE(e);var n,a=(n-1)*t,i=Math.floor(a),o=dE(Rk(e,i).subarray(0,i+1)),s=pE(e.subarray(i+1));return o+(s-o)*(a-i)}}function kW(e,t,r=Ok){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function RW(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?ks(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?ks(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=NW.exec(e))?new Qt(t[1],t[2],t[3],1):(t=CW.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=DW.exec(e))?ks(t[1],t[2],t[3],t[4]):(t=LW.exec(e))?ks(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=MW.exec(e))?vE(t[1],t[2]/100,t[3]/100,1):(t=PW.exec(e))?vE(t[1],t[2]/100,t[3]/100,t[4]):fE.hasOwnProperty(e)?mE(fE[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function mE(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function ks(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qt(e,t,r,n)}function FW(e){return e instanceof zo||(e=oo(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function Tm(e,t,r,n){return arguments.length===1?FW(e):new Qt(e,t,r,n??1)}function Qt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Hb(Qt,Tm,Nk(zo,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(ta(this.r),ta(this.g),ta(this.b),dl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:bE,formatHex:bE,formatHex8:BW,formatRgb:yE,toString:yE}));function bE(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}`}function BW(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}${Jn((isNaN(this.opacity)?1:this.opacity)*255)}`}function yE(){const e=dl(this.opacity);return`${e===1?"rgb(":"rgba("}${ta(this.r)}, ${ta(this.g)}, ${ta(this.b)}${e===1?")":`, ${e})`}`}function dl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ta(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jn(e){return e=ta(e),(e<16?"0":"")+e.toString(16)}function vE(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,n)}function Ck(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof zo||(e=oo(e)),!e)return new Nr;if(e instanceof Nr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new Nr(o,s,l,e.opacity)}function UW(e,t,r,n){return arguments.length===1?Ck(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Hb(Nr,UW,Nk(zo,{brighter(e){return e=e==null?cl:Math.pow(cl,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Nr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Qt(xc(e>=240?e-240:e+120,a,n),xc(e,a,n),xc(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Nr(SE(this.h),Rs(this.s),Rs(this.l),dl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=dl(this.opacity);return`${e===1?"hsl(":"hsla("}${SE(this.h)}, ${Rs(this.s)*100}%, ${Rs(this.l)*100}%${e===1?")":`, ${e})`}`}}));function SE(e){return e=(e||0)%360,e<0?e+360:e}function Rs(e){return Math.max(0,Math.min(1,e||0))}function xc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Wb=e=>()=>e;function GW(e,t){return function(r){return e+r*t}}function zW(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function qW(e){return(e=+e)==1?Dk:function(t,r){return r-t?zW(t,r,e):Wb(isNaN(t)?r:t)}}function Dk(e,t){var r=t-e;return r?GW(e,r):Wb(isNaN(e)?t:e)}const EE=function e(t){var r=qW(t);function n(a,i){var o=r((a=Tm(a)).r,(i=Tm(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=Dk(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=s(d),a.b=l(d),a.opacity=c(d),a+""}}return n.gamma=e,n}(1);function HW(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:pl(n,a)})),r=wc.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function r3(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?n3:r3,l=c=null,p}function p(g){return g==null||isNaN(g=+g)?i:(l||(l=s(e.map(n),t,r)))(n(o(g)))}return p.invert=function(g){return o(a((c||(c=s(t,e.map(n),pl)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,fl),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Vb,d()},p.clamp=function(g){return arguments.length?(o=g?!0:Vt,d()):o!==Vt},p.interpolate=function(g){return arguments.length?(r=g,d()):r},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,m){return n=g,a=m,d()}}function Yb(){return du()(Vt,Vt)}function a3(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ga(e){return e=gl(Math.abs(e)),e?e[1]:NaN}function i3(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function o3(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var s3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function so(e){if(!(t=s3.exec(e)))throw new Error("invalid format: "+e);var t;return new Kb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}so.prototype=Kb.prototype;function Kb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Kb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function l3(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Lk;function u3(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Lk=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+gl(e,Math.max(0,t+i-1))[0]}function wE(e,t){var r=gl(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const _E={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:a3,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wE(e*100,t),r:wE,s:u3,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function TE(e){return e}var AE=Array.prototype.map,OE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function c3(e){var t=e.grouping===void 0||e.thousands===void 0?TE:i3(AE.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?TE:o3(AE.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(p){p=so(p);var g=p.fill,m=p.align,b=p.sign,S=p.symbol,v=p.zero,O=p.width,_=p.comma,w=p.precision,A=p.trim,x=p.type;x==="n"?(_=!0,x="g"):_E[x]||(w===void 0&&(w=12),A=!0,x="g"),(v||g==="0"&&m==="=")&&(v=!0,g="0",m="=");var E=S==="$"?r:S==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k=S==="$"?n:/[%p]/.test(x)?o:"",N=_E[x],I=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function D(L){var j=E,q=k,H,z,W;if(x==="c")q=N(L)+q,L="";else{L=+L;var K=L<0||1/L<0;if(L=isNaN(L)?l:N(Math.abs(L),w),A&&(L=l3(L)),K&&+L==0&&b!=="+"&&(K=!1),j=(K?b==="("?b:s:b==="-"||b==="("?"":b)+j,q=(x==="s"?OE[8+Lk/3]:"")+q+(K&&b==="("?")":""),I){for(H=-1,z=L.length;++HW||W>57){q=(W===46?a+L.slice(H+1):L.slice(H))+q,L=L.slice(0,H);break}}}_&&!v&&(L=t(L,1/0));var G=j.length+L.length+q.length,V=G>1)+j+L+q+V.slice(G);break;default:L=V+j+L+q;break}return i(L)}return D.toString=function(){return p+""},D}function d(p,g){var m=c((p=so(p),p.type="f",p)),b=Math.max(-8,Math.min(8,Math.floor(Ga(g)/3)))*3,S=Math.pow(10,-b),v=OE[8+b/3];return function(O){return m(S*O)+v}}return{format:c,formatPrefix:d}}var Is,Xb,Mk;d3({thousands:",",grouping:[3],currency:["$",""]});function d3(e){return Is=c3(e),Xb=Is.format,Mk=Is.formatPrefix,Is}function p3(e){return Math.max(0,-Ga(Math.abs(e)))}function f3(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ga(t)/3)))*3-Ga(Math.abs(e)))}function g3(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ga(t)-Ga(e))+1}function Pk(e,t,r,n){var a=wm(e,t,r),i;switch(n=so(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=f3(a,o))&&(n.precision=i),Mk(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=g3(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=p3(a))&&(n.precision=i-(n.type==="%")*2);break}}return Xb(n)}function $n(e){var t=e.domain;return e.ticks=function(r){var n=t();return Em(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Pk(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,d=10;for(s0;){if(c=xm(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function hl(){var e=Yb();return e.copy=function(){return qo(e,hl())},Sr.apply(e,arguments),$n(e)}function $k(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,fl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return $k(e).unknown(t)},e=arguments.length?Array.from(e,fl):[0,1],$n(r)}function jk(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function v3(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function IE(e){return(t,r)=>-e(-t,r)}function Zb(e){const t=e(kE,RE),r=t.domain;let n=10,a,i;function o(){return a=v3(n),i=y3(n),r()[0]<0?(a=IE(a),i=IE(i),e(h3,m3)):e(kE,RE),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],d=l[l.length-1];const p=d0){for(;g<=m;++g)for(b=1;bd)break;O.push(S)}}else for(;g<=m;++g)for(b=n-1;b>=1;--b)if(S=g>0?b/i(-g):b*i(g),!(Sd)break;O.push(S)}O.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=so(l)).precision==null&&(l.trim=!0),l=Xb(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*nr(jk(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Fk(){const e=Zb(du()).domain([1,10]);return e.copy=()=>qo(e,Fk()).base(e.base()),Sr.apply(e,arguments),e}function NE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function CE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Jb(e){var t=1,r=e(NE(t),CE(t));return r.constant=function(n){return arguments.length?e(NE(t=+n),CE(t)):t},$n(r)}function Bk(){var e=Jb(du());return e.copy=function(){return qo(e,Bk()).constant(e.constant())},Sr.apply(e,arguments)}function DE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function S3(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function E3(e){return e<0?-e*e:e*e}function Qb(e){var t=e(Vt,Vt),r=1;function n(){return r===1?e(Vt,Vt):r===.5?e(S3,E3):e(DE(r),DE(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},$n(t)}function ey(){var e=Qb(du());return e.copy=function(){return qo(e,ey()).exponent(e.exponent())},Sr.apply(e,arguments),e}function x3(){return ey.apply(null,arguments).exponent(.5)}function LE(e){return Math.sign(e)*e*e}function w3(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Uk(){var e=Yb(),t=[0,1],r=!1,n;function a(i){var o=w3(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(LE(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,fl)).map(LE)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Uk(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sr.apply(a,arguments),$n(a)}function Gk(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return zk().domain([e,t]).range(a).unknown(i)},Sr.apply($n(o),arguments)}function qk(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[Go(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return qk().domain(e).range(t).unknown(r)},Sr.apply(a,arguments)}const _c=new Date,Tc=new Date;function xt(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cxt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(_c.setTime(+i),Tc.setTime(+o),e(_c),e(Tc),Math.floor(r(_c,Tc))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const ml=xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ml.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ml);ml.range;const un=1e3,br=un*60,cn=br*60,mn=cn*24,ty=mn*7,ME=mn*30,Ac=mn*365,Qn=xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getUTCSeconds());Qn.range;const ry=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getMinutes());ry.range;const ny=xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCMinutes());ny.range;const ay=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un-e.getMinutes()*br)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getHours());ay.range;const iy=xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getUTCHours());iy.range;const Ho=xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*br)/mn,e=>e.getDate()-1);Ho.range;const pu=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>e.getUTCDate()-1);pu.range;const Hk=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>Math.floor(e/mn));Hk.range;function sa(e){return xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*br)/ty)}const fu=sa(0),bl=sa(1),_3=sa(2),T3=sa(3),za=sa(4),A3=sa(5),O3=sa(6);fu.range;bl.range;_3.range;T3.range;za.range;A3.range;O3.range;function la(e){return xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ty)}const gu=la(0),yl=la(1),k3=la(2),R3=la(3),qa=la(4),I3=la(5),N3=la(6);gu.range;yl.range;k3.range;R3.range;qa.range;I3.range;N3.range;const oy=xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());oy.range;const sy=xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());sy.range;const bn=xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bn.range;const yn=xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yn.range;function Wk(e,t,r,n,a,i){const o=[[Qn,1,un],[Qn,5,5*un],[Qn,15,15*un],[Qn,30,30*un],[i,1,br],[i,5,5*br],[i,15,15*br],[i,30,30*br],[a,1,cn],[a,3,3*cn],[a,6,6*cn],[a,12,12*cn],[n,1,mn],[n,2,2*mn],[r,1,ty],[t,1,ME],[t,3,3*ME],[e,1,Ac]];function s(c,d,p){const g=dv).right(o,g);if(m===o.length)return e.every(wm(c/Ac,d/Ac,p));if(m===0)return ml.every(Math.max(wm(c,d,p),1));const[b,S]=o[g/o[m-1][2]53)return null;"w"in X||(X.w=1),"Z"in X?(fe=kc(wi(X.y,0,1)),he=fe.getUTCDay(),fe=he>4||he===0?yl.ceil(fe):yl(fe),fe=pu.offset(fe,(X.V-1)*7),X.y=fe.getUTCFullYear(),X.m=fe.getUTCMonth(),X.d=fe.getUTCDate()+(X.w+6)%7):(fe=Oc(wi(X.y,0,1)),he=fe.getDay(),fe=he>4||he===0?bl.ceil(fe):bl(fe),fe=Ho.offset(fe,(X.V-1)*7),X.y=fe.getFullYear(),X.m=fe.getMonth(),X.d=fe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),he="Z"in X?kc(wi(X.y,0,1)).getUTCDay():Oc(wi(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(he+5)%7:X.w+X.U*7-(he+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,kc(X)):Oc(X)}}function N(ee,oe,ie,X){for(var Ee=0,fe=oe.length,he=ie.length,je,nt;Ee=he)return-1;if(je=oe.charCodeAt(Ee++),je===37){if(je=oe.charAt(Ee++),nt=x[je in PE?oe.charAt(Ee++):je],!nt||(X=nt(ee,ie,X))<0)return-1}else if(je!=ie.charCodeAt(X++))return-1}return X}function I(ee,oe,ie){var X=c.exec(oe.slice(ie));return X?(ee.p=d.get(X[0].toLowerCase()),ie+X[0].length):-1}function D(ee,oe,ie){var X=m.exec(oe.slice(ie));return X?(ee.w=b.get(X[0].toLowerCase()),ie+X[0].length):-1}function L(ee,oe,ie){var X=p.exec(oe.slice(ie));return X?(ee.w=g.get(X[0].toLowerCase()),ie+X[0].length):-1}function j(ee,oe,ie){var X=O.exec(oe.slice(ie));return X?(ee.m=_.get(X[0].toLowerCase()),ie+X[0].length):-1}function q(ee,oe,ie){var X=S.exec(oe.slice(ie));return X?(ee.m=v.get(X[0].toLowerCase()),ie+X[0].length):-1}function H(ee,oe,ie){return N(ee,t,oe,ie)}function z(ee,oe,ie){return N(ee,r,oe,ie)}function W(ee,oe,ie){return N(ee,n,oe,ie)}function K(ee){return o[ee.getDay()]}function G(ee){return i[ee.getDay()]}function V(ee){return l[ee.getMonth()]}function J(ee){return s[ee.getMonth()]}function ae(ee){return a[+(ee.getHours()>=12)]}function re(ee){return 1+~~(ee.getMonth()/3)}function ue(ee){return o[ee.getUTCDay()]}function Se(ee){return i[ee.getUTCDay()]}function Q(ee){return l[ee.getUTCMonth()]}function Ie(ee){return s[ee.getUTCMonth()]}function Ue(ee){return a[+(ee.getUTCHours()>=12)]}function xe(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var oe=E(ee+="",w);return oe.toString=function(){return ee},oe},parse:function(ee){var oe=k(ee+="",!1);return oe.toString=function(){return ee},oe},utcFormat:function(ee){var oe=E(ee+="",A);return oe.toString=function(){return ee},oe},utcParse:function(ee){var oe=k(ee+="",!0);return oe.toString=function(){return ee},oe}}}var PE={"-":"",_:" ",0:"0"},Ot=/^\s*\d+/,$3=/^%/,j3=/[\\^$*+?|[\]().{}]/g;function Be(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function B3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function U3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function G3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function z3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function q3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function $E(e,t,r){var n=Ot.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function jE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function H3(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function W3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function V3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function FE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function Y3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function BE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function K3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function X3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Z3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function J3(e,t,r){var n=Ot.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Q3(e,t,r){var n=$3.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function eV(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function tV(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function UE(e,t){return Be(e.getDate(),t,2)}function rV(e,t){return Be(e.getHours(),t,2)}function nV(e,t){return Be(e.getHours()%12||12,t,2)}function aV(e,t){return Be(1+Ho.count(bn(e),e),t,3)}function Vk(e,t){return Be(e.getMilliseconds(),t,3)}function iV(e,t){return Vk(e,t)+"000"}function oV(e,t){return Be(e.getMonth()+1,t,2)}function sV(e,t){return Be(e.getMinutes(),t,2)}function lV(e,t){return Be(e.getSeconds(),t,2)}function uV(e){var t=e.getDay();return t===0?7:t}function cV(e,t){return Be(fu.count(bn(e)-1,e),t,2)}function Yk(e){var t=e.getDay();return t>=4||t===0?za(e):za.ceil(e)}function dV(e,t){return e=Yk(e),Be(za.count(bn(e),e)+(bn(e).getDay()===4),t,2)}function pV(e){return e.getDay()}function fV(e,t){return Be(bl.count(bn(e)-1,e),t,2)}function gV(e,t){return Be(e.getFullYear()%100,t,2)}function hV(e,t){return e=Yk(e),Be(e.getFullYear()%100,t,2)}function mV(e,t){return Be(e.getFullYear()%1e4,t,4)}function bV(e,t){var r=e.getDay();return e=r>=4||r===0?za(e):za.ceil(e),Be(e.getFullYear()%1e4,t,4)}function yV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function GE(e,t){return Be(e.getUTCDate(),t,2)}function vV(e,t){return Be(e.getUTCHours(),t,2)}function SV(e,t){return Be(e.getUTCHours()%12||12,t,2)}function EV(e,t){return Be(1+pu.count(yn(e),e),t,3)}function Kk(e,t){return Be(e.getUTCMilliseconds(),t,3)}function xV(e,t){return Kk(e,t)+"000"}function wV(e,t){return Be(e.getUTCMonth()+1,t,2)}function _V(e,t){return Be(e.getUTCMinutes(),t,2)}function TV(e,t){return Be(e.getUTCSeconds(),t,2)}function AV(e){var t=e.getUTCDay();return t===0?7:t}function OV(e,t){return Be(gu.count(yn(e)-1,e),t,2)}function Xk(e){var t=e.getUTCDay();return t>=4||t===0?qa(e):qa.ceil(e)}function kV(e,t){return e=Xk(e),Be(qa.count(yn(e),e)+(yn(e).getUTCDay()===4),t,2)}function RV(e){return e.getUTCDay()}function IV(e,t){return Be(yl.count(yn(e)-1,e),t,2)}function NV(e,t){return Be(e.getUTCFullYear()%100,t,2)}function CV(e,t){return e=Xk(e),Be(e.getUTCFullYear()%100,t,2)}function DV(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function LV(e,t){var r=e.getUTCDay();return e=r>=4||r===0?qa(e):qa.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function MV(){return"+0000"}function zE(){return"%"}function qE(e){return+e}function HE(e){return Math.floor(+e/1e3)}var ya,Zk,Jk;PV({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function PV(e){return ya=P3(e),Zk=ya.format,ya.parse,Jk=ya.utcFormat,ya.utcParse,ya}function $V(e){return new Date(e)}function jV(e){return e instanceof Date?+e:+new Date(+e)}function ly(e,t,r,n,a,i,o,s,l,c){var d=Yb(),p=d.invert,g=d.domain,m=c(".%L"),b=c(":%S"),S=c("%I:%M"),v=c("%I %p"),O=c("%a %d"),_=c("%b %d"),w=c("%B"),A=c("%Y");function x(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>OW(e,i/n))},r.copy=function(){return rR(t).domain(e)},Sn.apply(r,arguments)}function mu(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=Vt,d,p=!1,g;function m(S){return isNaN(S=+S)?g:(S=.5+((S=+d(S))-i)*(n*St}var WV=HV,VV=oR,YV=WV,KV=jo;function XV(e){return e&&e.length?VV(e,KV,YV):void 0}var ZV=XV;const bu=ft(ZV);function JV(e,t){return ee.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pe.dividedBy=pe.div=function(e){return gn(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,r=t.constructor;return Qe(gn(t,new r(e),0,1),r.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return bt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(sr))throw Error(vr+"NaN");if(r.s<1)throw Error(vr+(r.s?"NaN":"-Infinity"));return r.eq(sr)?new n(0):(lt=!1,t=gn(lo(r,i),lo(e,i),i),lt=!0,Qe(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cR(t,e):lR(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(vr+"NaN");return r.s?(lt=!1,t=gn(r,e,0,1).times(e),lt=!0,r.minus(t)):Qe(new n(r),a)};pe.naturalExponential=pe.exp=function(){return uR(this)};pe.naturalLogarithm=pe.ln=function(){return lo(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lR(t,e):cR(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=bt(a)+1,n=a.d.length-1,r=n*ot+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pe.squareRoot=pe.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(vr+"NaN")}for(e=bt(s),lt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=zr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=oi((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(gn(s,i,o+2)).times(.5),zr(i.d).slice(0,o)===(t=zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Qe(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return lt=!0,Qe(n,r)};pe.times=pe.mul=function(e){var t,r,n,a,i,o,s,l,c,d=this,p=d.constructor,g=d.d,m=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,r=d.e+e.e,l=g.length,c=m.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+m[n]*g[a-n-1]+t,i[a--]=s%_t|0,t=s/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,lt?Qe(e,p.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vr(e,0,ii),t===void 0?t=n.rounding:Vr(t,0,8),Qe(r,e+bt(r)+1,t))};pe.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=aa(n,!0):(Vr(e,0,ii),t===void 0?t=a.rounding:Vr(t,0,8),n=Qe(new a(n),e+1,t),r=aa(n,!0,e+1)),r};pe.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?aa(a):(Vr(e,0,ii),t===void 0?t=i.rounding:Vr(t,0,8),n=Qe(new i(a),e+bt(a)+1,t),r=aa(n.abs(),!1,e+bt(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),bt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(sr);if(s=new l(s),!s.s){if(e.s<1)throw Error(vr+"Infinity");return s}if(s.eq(sr))return s;if(n=l.precision,e.eq(sr))return Qe(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=d<0?-d:d)<=sR){for(a=new l(sr),t=Math.ceil(n/ot+4),lt=!1;r%2&&(a=a.times(s),YE(a.d,t)),r=oi(r/2),r!==0;)s=s.times(s),YE(s.d,t);return lt=!0,e.s<0?new l(sr).div(a):Qe(a,n)}}else if(i<0)throw Error(vr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,lt=!1,a=e.times(lo(s,n+c)),lt=!0,a=uR(a),a.s=i,a};pe.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=bt(a),n=aa(a,r<=i.toExpNeg||r>=i.toExpPos)):(Vr(e,1,ii),t===void 0?t=i.rounding:Vr(t,0,8),a=Qe(new i(a),e,t),r=bt(a),n=aa(a,e<=r||r<=i.toExpNeg,e)),n};pe.toSignificantDigits=pe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vr(e,1,ii),t===void 0?t=n.rounding:Vr(t,0,8)),Qe(new n(r),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),r=e.constructor;return aa(e,t<=r.toExpNeg||t>=r.toExpPos)};function lR(e,t){var r,n,a,i,o,s,l,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),lt?Qe(t,p):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(p/ot),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/_t|0,l[i]%=_t;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,lt?Qe(t,p):t}function Vr(e,t,r){if(e!==~~e||er)throw Error(ra+e)}function zr(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,d,p,g,m,b,S,v,O,_,w,A,x,E,k,N,I=n.constructor,D=n.s==a.s?1:-1,L=n.d,j=a.d;if(!n.s)return new I(n);if(!a.s)throw Error(vr+"Division by zero");for(l=n.e-a.e,k=j.length,x=L.length,m=new I(D),b=m.d=[],c=0;j[c]==(L[c]||0);)++c;if(j[c]>(L[c]||0)&&--l,i==null?_=i=I.precision:o?_=i+(bt(n)-bt(a))+1:_=i,_<0)return new I(0);if(_=_/ot+2|0,c=0,k==1)for(d=0,j=j[0],_++;(c1&&(j=e(j,d),L=e(L,d),k=j.length,x=L.length),A=k,S=L.slice(0,k),v=S.length;v=_t/2&&++E;do d=0,s=t(j,S,k,v),s<0?(O=S[0],k!=v&&(O=O*_t+(S[1]||0)),d=O/E|0,d>1?(d>=_t&&(d=_t-1),p=e(j,d),g=p.length,v=S.length,s=t(p,S,g,v),s==1&&(d--,r(p,k16)throw Error(dy+bt(e));if(!e.s)return new d(sr);for(t==null?(lt=!1,s=p):s=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Kn(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new d(sr),d.precision=s;;){if(a=Qe(a.times(e),s),r=r.times(++l),o=i.plus(gn(a,r,s)),zr(o.d).slice(0,s)===zr(i.d).slice(0,s)){for(;c--;)i=Qe(i.times(i),s);return d.precision=p,t==null?(lt=!0,Qe(i,p)):i}i=o}}function bt(e){for(var t=e.e*ot,r=e.d[0];r>=10;r/=10)t++;return t}function Rc(e,t,r){if(t>e.LN10.sd())throw lt=!0,r&&(e.precision=r),Error(vr+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function In(e){for(var t="";e--;)t+="0";return t}function lo(e,t){var r,n,a,i,o,s,l,c,d,p=1,g=10,m=e,b=m.d,S=m.constructor,v=S.precision;if(m.s<1)throw Error(vr+(m.s?"NaN":"-Infinity"));if(m.eq(sr))return new S(0);if(t==null?(lt=!1,c=v):c=t,m.eq(10))return t==null&&(lt=!0),Rc(S,c);if(c+=g,S.precision=c,r=zr(b),n=r.charAt(0),i=bt(m),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)m=m.times(e),r=zr(m.d),n=r.charAt(0),p++;i=bt(m),n>1?(m=new S("0."+r),i++):m=new S(n+"."+r.slice(1))}else return l=Rc(S,c+2,v).times(i+""),m=lo(new S(n+"."+r.slice(1)),c-g).plus(l),S.precision=v,t==null?(lt=!0,Qe(m,v)):m;for(s=o=m=gn(m.minus(sr),m.plus(sr),c),d=Qe(m.times(m),c),a=3;;){if(o=Qe(o.times(d),c),l=s.plus(gn(o,new S(a),c)),zr(l.d).slice(0,c)===zr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Rc(S,c+2,v).times(i+""))),s=gn(s,new S(p),c),S.precision=v,t==null?(lt=!0,Qe(s,v)):s;s=l,a+=2}}function VE(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=oi(r/ot),e.d=[],n=(r+1)%ot,r<0&&(n+=ot),nvl||e.e<-vl))throw Error(dy+r)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,r){var n,a,i,o,s,l,c,d,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ot,a=t,c=p[d=0];else{if(d=Math.ceil((n+1)/ot),i=p.length,d>=i)return e;for(c=i=p[d],o=1;i>=10;i/=10)o++;n%=ot,a=n-ot+o}if(r!==void 0&&(i=Kn(10,o-a-1),s=c/i%10|0,l=t<0||p[d+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Kn(10,o-a):0:p[d-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return l?(i=bt(e),p.length=1,t=t-i-1,p[0]=Kn(10,(ot-t%ot)%ot),e.e=oi(-t/ot)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=d,i=1,d--):(p.length=d+1,i=Kn(10,ot-n),p[d]=a>0?(c/Kn(10,o-a)%Kn(10,a)|0)*i:0),l)for(;;)if(d==0){(p[0]+=i)==_t&&(p[0]=1,++e.e);break}else{if(p[d]+=i,p[d]!=_t)break;p[d--]=0,i=1}for(n=p.length;p[--n]===0;)p.pop();if(lt&&(e.e>vl||e.e<-vl))throw Error(dy+bt(e));return e}function cR(e,t){var r,n,a,i,o,s,l,c,d,p,g=e.constructor,m=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),lt?Qe(t,m):t;if(l=e.d,p=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(d=o<0,d?(r=l,o=-o,s=p.length):(r=p,n=c,s=l.length),a=Math.max(Math.ceil(m/ot),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=p.length,d=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+In(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+In(-a-1)+i,r&&(n=r-o)>0&&(i+=In(n))):a>=o?(i+=In(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+In(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=In(n))),e.s<0?"-"+i:i}function YE(e,t){if(e.length>t)return e.length=t,!0}function dR(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ra+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return VE(o,i.toString())}else if(typeof i!="string")throw Error(ra+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,gY.test(i))VE(o,i);else throw Error(ra+i)}if(a.prototype=pe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=dR,a.config=a.set=hY,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var py=dR(fY);sr=new py(1);const Xe=py;function mY(e){return SY(e)||vY(e)||yY(e)||bY()}function bY(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yY(e,t){if(e){if(typeof e=="string")return km(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return km(e,t)}}function vY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function SY(e){if(Array.isArray(e))return km(e)}function km(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,a):e(t-o,KE(function(){for(var s=arguments.length,l=new Array(s),c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function MY(e){if(Array.isArray(e))return e}function mR(e){var t=uo(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function bR(e,t,r){if(e.lte(0))return new Xe(0);var n=Eu.getDigitCount(e.toNumber()),a=new Xe(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new Xe(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?l:new Xe(Math.ceil(l))}function PY(e,t,r){var n=1,a=new Xe(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Xe(10).pow(Eu.getDigitCount(e)-1),a=new Xe(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Xe(Math.floor(e)))}else e===0?a=new Xe(Math.floor((t-1)/2)):r||(a=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=_Y(wY(function(l){return a.add(new Xe(l-o).mul(n)).toNumber()}),Rm);return s(0,t)}function yR(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var i=bR(new Xe(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(i).toNumber()),c=s+l+1;return c>r?yR(e,t,r,n,a+1):(c0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:i,tickMin:o.sub(new Xe(s).mul(i)),tickMax:o.add(new Xe(l).mul(i))})}function $Y(e){var t=uo(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=mR([r,n]),l=uo(s,2),c=l[0],d=l[1];if(c===-1/0||d===1/0){var p=d===1/0?[c].concat(Nm(Rm(0,a-1).map(function(){return 1/0}))):[].concat(Nm(Rm(0,a-1).map(function(){return-1/0})),[d]);return r>n?Im(p):p}if(c===d)return PY(c,a,i);var g=yR(c,d,o,i),m=g.step,b=g.tickMin,S=g.tickMax,v=Eu.rangeStep(b,S.add(new Xe(.1).mul(m)),m);return r>n?Im(v):v}function jY(e,t){var r=uo(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=mR([n,a]),s=uo(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,a];if(l===c)return[l];var d=Math.max(t,2),p=bR(new Xe(c).sub(l).div(d-1),i,0),g=[].concat(Nm(Eu.rangeStep(new Xe(l),new Xe(c).sub(new Xe(.99).mul(p)),p)),[c]);return n>a?Im(g):g}var FY=gR($Y),BY=gR(jY),UY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Sl(){return Sl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function YY(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Wo(e){var t=e.offset,r=e.layout,n=e.width,a=e.dataKey,i=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,c=VY(e,UY),d=Me(c),p=i.map(function(g){var m=o(g,a),b=m.x,S=m.y,v=m.value,O=m.errorVal;if(!O)return null;var _=[],w,A;if(Array.isArray(O)){var x=GY(O,2);w=x[0],A=x[1]}else w=A=O;if(r==="vertical"){var E=s.scale,k=S+t,N=k+n,I=k-n,D=E(v-w),L=E(v+A);_.push({x1:L,y1:N,x2:L,y2:I}),_.push({x1:D,y1:k,x2:L,y2:k}),_.push({x1:D,y1:N,x2:D,y2:I})}else if(r==="horizontal"){var j=l.scale,q=b+t,H=q-n,z=q+n,W=j(v-w),K=j(v+A);_.push({x1:H,y1:K,x2:z,y2:K}),_.push({x1:q,y1:W,x2:q,y2:K}),_.push({x1:H,y1:W,x2:z,y2:W})}return U.createElement(dt,Sl({className:"recharts-errorBar",key:"bar-".concat(_.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),_.map(function(G){return U.createElement("line",Sl({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},p)}Wo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Wo.displayName="ErrorBar";function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function ZE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ic(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c0?a[c-1].coordinate:a[s-1].coordinate,p=a[c].coordinate,g=c>=s-1?a[0].coordinate:a[c+1].coordinate,m=void 0;if(Lr(p-d)!==Lr(g-p)){var b=[];if(Lr(g-p)===Lr(l[1]-l[0])){m=g;var S=p+l[1]-l[0];b[0]=Math.min(S,(S+d)/2),b[1]=Math.max(S,(S+d)/2)}else{m=d;var v=g+l[1]-l[0];b[0]=Math.min(p,(v+p)/2),b[1]=Math.max(p,(v+p)/2)}var O=[Math.min(p,(m+p)/2),Math.max(p,(m+p)/2)];if(t>O[0]&&t<=O[1]||t>=b[0]&&t<=b[1]){o=a[c].index;break}}else{var _=Math.min(d,g),w=Math.max(d,g);if(t>(_+p)/2&&t<=(w+p)/2){o=a[c].index;break}}}else for(var A=0;A0&&A(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},fy=function(t){var r=t,n=r.type.displayName,a=t.props,i=a.stroke,o=a.fill,s;switch(n){case"Line":s=i;break;case"Area":case"Radar":s=i&&i!=="none"?i:o;break;default:s=o;break}return s},i4=function(t){var r=t.barSize,n=t.stackGroups,a=n===void 0?{}:n;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s=0});if(v&&v.length){var O=v[0].props.barSize,_=v[0].props[S];i[_]||(i[_]=[]),i[_].push({item:v[0],stackList:v.slice(1),barSize:Ce(O)?r:O})}}return i},o4=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=La(r,a,0,!0),d,p=[];if(o[0].barSize===+o[0].barSize){var g=!1,m=a/l,b=o.reduce(function(A,x){return A+x.barSize||0},0);b+=(l-1)*c,b>=a&&(b-=(l-1)*c,c=0),b>=a&&m>0&&(g=!0,m*=.9,b=l*m);var S=(a-b)/2>>0,v={offset:S-c,size:0};d=o.reduce(function(A,x){var E={item:x.item,position:{offset:v.offset+v.size+c,size:g?m:x.barSize}},k=[].concat(QE(A),[E]);return v=k[k.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:v})}),k},p)}else{var O=La(n,a,0,!0);a-2*O-(l-1)*c<=0&&(c=0);var _=(a-2*O-(l-1)*c)/l;_>1&&(_>>=0);var w=s===+s?Math.min(_,s):_;d=o.reduce(function(A,x,E){var k=[].concat(QE(A),[{item:x.item,position:{offset:O+(_+c)*E+(_-w)/2,size:w}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:k[k.length-1].position})}),k},p)}return d},s4=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=vR({children:i,legendWidth:l});if(c){var d=a||{},p=d.width,g=d.height,m=c.align,b=c.verticalAlign,S=c.layout;if((S==="vertical"||S==="horizontal"&&b==="middle")&&m!=="center"&&se(t[m]))return mr(mr({},t),{},Na({},m,t[m]+(p||0)));if((S==="horizontal"||S==="vertical"&&m==="center")&&b!=="middle"&&se(t[b]))return mr(mr({},t),{},Na({},b,t[b]+(g||0)))}return t},l4=function(t,r,n){return Ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},SR=function(t,r,n,a,i){var o=r.props.children,s=lr(o,Wo).filter(function(c){return l4(a,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,d){var p=Yt(d,n,0),g=Array.isArray(p)?[yu(p),bu(p)]:[p,p],m=l.reduce(function(b,S){var v=Yt(d,S,0),O=g[0]-Math.abs(Array.isArray(v)?v[0]:v),_=g[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(O,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(m[0],c[0]),Math.max(m[1],c[1])]},[1/0,-1/0])}return null},u4=function(t,r,n,a,i){var o=r.map(function(s){return SR(t,s,n,i,a)}).filter(function(s){return!Ce(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},ER=function(t,r,n,a,i){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&SR(t,l,c,a)||Ui(t,c,n,i)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var d=0,p=c.length;d=2?Lr(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(p){var g=i?i.indexOf(p):p;return{coordinate:a(g)+c,value:p,offset:c}});return d.filter(function(p){return!Bo(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:a(p)+c,value:p,index:g,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+c,value:p,offset:c}}):a.domain().map(function(p,g){return{coordinate:a(p)+c,value:i?i[p]:p,index:g,offset:c}})},Nc=new WeakMap,Ns=function(t,r){if(typeof r!="function")return t;Nc.has(t)||Nc.set(t,new WeakMap);var n=Nc.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},c4=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:no(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:hl(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Bi(),realScaleType:"point"}:i==="category"?{scale:no(),realScaleType:"band"}:{scale:hl(),realScaleType:"linear"};if($o(a)){var l="scale".concat(au(a));return{scale:(WE[l]||Bi)(),realScaleType:WE[l]?l:"point"}}return Ne(a)?{scale:a}:{scale:Bi(),realScaleType:"point"}},t0=1e-4,d4=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-t0,o=Math.max(a[0],a[1])+t0,s=t(r[0]),l=t(r[n-1]);(so||lo)&&t.domain([r[0],r[n-1]])}},p4=function(t,r){if(!t)return null;for(var n=0,a=t.length;na)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]=0?(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},h4=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},m4={sign:g4,expand:D2,none:Ma,silhouette:L2,wiggle:M2,positive:h4},b4=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=m4[n],o=C2().keys(a).value(function(s,l){return+Yt(s,l,0)}).order(nm).offset(i);return o(t)},y4=function(t,r,n,a,i,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(p,g){var m=g.props,b=m.stackId,S=m.hide;if(S)return p;var v=g.props[n],O=p[v]||{hasStack:!1,stackGroups:{}};if(Et(b)){var _=O.stackGroups[b]||{numericAxisId:n,cateAxisId:a,items:[]};_.items.push(g),O.hasStack=!0,O.stackGroups[b]=_}else O.stackGroups[Uo("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[g]};return mr(mr({},p),{},Na({},v,O))},l),d={};return Object.keys(c).reduce(function(p,g){var m=c[g];if(m.hasStack){var b={};m.stackGroups=Object.keys(m.stackGroups).reduce(function(S,v){var O=m.stackGroups[v];return mr(mr({},S),{},Na({},v,{numericAxisId:n,cateAxisId:a,items:O.items,stackedData:b4(t,O.items,i)}))},b)}return mr(mr({},p),{},Na({},g,m))},d)},v4=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var d=FY(c,i,s);return t.domain([yu(d),bu(d)]),{niceTicks:d}}if(i&&a==="number"){var p=t.domain(),g=BY(p,i,s);return{niceTicks:g}}return null},r0=function(t){var r=t.axis,n=t.ticks,a=t.bandSize,i=t.entry,o=t.index,s=t.dataKey;if(r.type==="category"){if(!r.allowDuplicatedCategory&&r.dataKey&&!Ce(i[r.dataKey])){var l=Ws(n,"value",i[r.dataKey]);if(l)return l.coordinate+a/2}return n[o]?n[o].coordinate+a/2:null}var c=Yt(i,Ce(s)?r.dataKey:s);return Ce(c)?null:r.scale(c)},n0=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var l=Yt(o,r.dataKey,r.domain[s]);return Ce(l)?null:r.scale(l)-i/2+a},S4=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},E4=function(t,r){var n=t.props.stackId;if(Et(n)){var a=r[n];if(a){var i=a.items.indexOf(t);return i>=0?a.stackedData[i]:null}}return null},x4=function(t){return t.reduce(function(r,n){return[yu(n.concat([r[0]]).filter(se)),bu(n.concat([r[1]]).filter(se))]},[1/0,-1/0])},wR=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(c,d){var p=x4(d.slice(r,n+1));return[Math.min(c[0],p[0]),Math.max(c[1],p[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},a0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,i0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Lm=function(t,r,n){if(Ne(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(se(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(a0.test(t[0])){var i=+a0.exec(t[0])[1];a[0]=r[0]-i}else Ne(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(se(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(i0.test(t[1])){var o=+i0.exec(t[1])[1];a[1]=r[1]+o}else Ne(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},El=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=Fb(r,function(p){return p.coordinate}),o=1/0,s=1,l=i.length;so&&(c=2*Math.PI-c),{radius:s,angle:A4(c),angleInRadian:c}},R4=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},I4=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},u0=function(t,r){var n=t.x,a=t.y,i=k4({x:n,y:a},r),o=i.radius,s=i.angle,l=r.innerRadius,c=r.outerRadius;if(oc)return!1;if(o===0)return!0;var d=R4(r),p=d.startAngle,g=d.endAngle,m=s,b;if(p<=g){for(;m>g;)m-=360;for(;m=p&&m<=g}else{for(;m>p;)m-=360;for(;m=g&&m<=p}return b?l0(l0({},r),{},{radius:o,angle:I4(m,r)}):null};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}var N4=["offset"];function C4(e){return P4(e)||M4(e)||L4(e)||D4()}function D4(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function L4(e,t){if(e){if(typeof e=="string")return Mm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mm(e,t)}}function M4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function P4(e){if(Array.isArray(e))return Mm(e)}function Mm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j4(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function c0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t=0?1:-1,w,A;a==="insideStart"?(w=m+_*o,A=S):a==="insideEnd"?(w=b-_*o,A=!S):a==="end"&&(w=b+_*o,A=S),A=O<=0?A:!A;var x=Nt(c,d,v,w),E=Nt(c,d,v,w+(A?1:-1)*359),k="M".concat(x.x,",").concat(x.y,` + height and width.`,z,W,o,l,d,p,r);var K=!Array.isArray(h)&&Yh.isElement(h)&&pn(h.type).endsWith("Chart");return U.Children.map(h,function(G){return Yh.isElement(G)?M.cloneElement(G,Os({width:z,height:W},K?{style:Os({height:"100%",width:"100%",maxHeight:W,maxWidth:z},G.props.style)}:{})):G})},[r,h,l,g,p,d,I,o]);return U.createElement("div",{id:v?"".concat(v):void 0,className:Ze("recharts-responsive-container",O),style:Os(Os({},A),{},{width:o,height:l,minWidth:d,minHeight:p,maxHeight:g}),ref:x},j)}),zb=function(t){return null};zb.displayName="Cell";function to(e){"@babel/helpers - typeof";return to=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},to(e)}function JS(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Sm(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||fn.isSsr)return{width:0,height:0};var n=qH(r),a=JSON.stringify({text:t,copyStyle:n});if(ba.widthCache[a])return ba.widthCache[a];try{var i=document.getElementById(QS);i||(i=document.createElement("span"),i.setAttribute("id",QS),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Sm(Sm({},zH),n);Object.assign(i.style,o),i.textContent="".concat(t);var s=i.getBoundingClientRect(),l={width:s.width,height:s.height};return ba.widthCache[a]=l,++ba.cacheCount>GH&&(ba.cacheCount=0,ba.widthCache={}),l}catch{return{width:0,height:0}}},HH=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ro(e){"@babel/helpers - typeof";return ro=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ro(e)}function ll(e,t){return KH(e)||YH(e,t)||VH(e,t)||WH()}function WH(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VH(e,t){if(e){if(typeof e=="string")return eE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eE(e,t)}}function eE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uW(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function oE(e,t){return fW(e)||pW(e,t)||dW(e,t)||cW()}function cW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dW(e,t){if(e){if(typeof e=="string")return sE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sE(e,t)}}function sE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&arguments[0]!==void 0?arguments[0]:[];return z.reduce(function(W,K){var G=K.word,V=K.width,J=W[W.length-1];if(J&&(a==null||i||J.width+V+nK.width?W:K})};if(!d)return h;for(var S="…",v=function(z){var W=p.slice(0,z),K=Ak({breakAll:c,style:l,children:W+S}).wordsWithComputedWidth,G=g(K),V=G.length>o||b(G).width>Number(a);return[V,G]},O=0,_=p.length-1,w=0,A;O<=_&&w<=p.length-1;){var x=Math.floor((O+_)/2),E=x-1,k=v(E),N=oE(k,2),I=N[0],D=N[1],L=v(x),j=oE(L,1),q=j[0];if(!I&&!q&&(O=x+1),I&&q&&(_=x-1),!I&&q){A=D;break}w++}return A||h},lE=function(t){var r=Ce(t)?[]:t.toString().split(Tk);return[{words:r}]},hW=function(t){var r=t.width,n=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,s=t.maxLines;if((r||n)&&!fn.isSsr){var l,c,d=Ak({breakAll:o,children:a,style:i});if(d){var p=d.wordsWithComputedWidth,g=d.spaceWidth;l=p,c=g}else return lE(a);return gW({breakAll:o,children:a,maxLines:s,style:i},l,c,r,n)}return lE(a)},uE="#808080",ul=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.lineHeight,s=o===void 0?"1em":o,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,p=d===void 0?!1:d,g=t.textAnchor,h=g===void 0?"start":g,b=t.verticalAnchor,S=b===void 0?"end":b,v=t.fill,O=v===void 0?uE:v,_=iE(t,sW),w=M.useMemo(function(){return hW({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:p,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,p,_.style,_.width]),A=_.dx,x=_.dy,E=_.angle,k=_.className,N=_.breakAll,I=iE(_,lW);if(!Et(n)||!Et(i))return null;var D=n+(se(A)?A:0),L=i+(se(x)?x:0),j;switch(S){case"start":j=xc("calc(".concat(c,")"));break;case"middle":j=xc("calc(".concat((w.length-1)/2," * -").concat(s," + (").concat(c," / 2))"));break;default:j=xc("calc(".concat(w.length-1," * -").concat(s,")"));break}var q=[];if(p){var H=w[0].width,z=_.width;q.push("scale(".concat((se(z)?z/H:1)/H,")"))}return E&&q.push("rotate(".concat(E,", ").concat(D,", ").concat(L,")")),q.length&&(I.transform=q.join(" ")),U.createElement("text",Em({},Me(I,!0),{x:D,y:L,className:Ze("recharts-text",k),textAnchor:h,fill:O.includes("url")?uE:O}),w.map(function(W,K){var G=W.words.join(N?"":" ");return U.createElement("tspan",{x:D,dy:K===0?j:s,key:G},G)}))};function Ln(e,t){return e==null||t==null?NaN:et?1:e>=t?0:NaN}function mW(e,t){return e==null||t==null?NaN:te?1:t>=e?0:NaN}function qb(e){let t,r,n;e.length!==2?(t=Ln,r=(s,l)=>Ln(e(s),l),n=(s,l)=>e(s)-l):(t=e===Ln||e===mW?e:bW,r=e,n=e);function a(s,l,c=0,d=s.length){if(c>>1;r(s[p],l)<0?c=p+1:d=p}while(c>>1;r(s[p],l)<=0?c=p+1:d=p}while(cc&&n(s[p-1],l)>-n(s[p],l)?p-1:p}return{left:a,center:o,right:i}}function bW(){return 0}function Ok(e){return e===null?NaN:+e}function*yW(e,t){if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)(n=t(n,++r,e))!=null&&(n=+n)>=n&&(yield n)}}const vW=qb(Ln),SW=vW.right;qb(Ok).center;const zo=SW;class cE extends Map{constructor(t,r=wW){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,a]of t)this.set(n,a)}get(t){return super.get(dE(this,t))}has(t){return super.has(dE(this,t))}set(t,r){return super.set(EW(this,t),r)}delete(t){return super.delete(xW(this,t))}}function dE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function EW({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function xW({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function wW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function _W(e=Ln){if(e===Ln)return kk;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function kk(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(et?1:0)}const TW=Math.sqrt(50),AW=Math.sqrt(10),OW=Math.sqrt(2);function cl(e,t,r){const n=(t-e)/Math.max(0,r),a=Math.floor(Math.log10(n)),i=n/Math.pow(10,a),o=i>=TW?10:i>=AW?5:i>=OW?2:1;let s,l,c;return a<0?(c=Math.pow(10,-a)/o,s=Math.round(e*c),l=Math.round(t*c),s/ct&&--l,c=-c):(c=Math.pow(10,a)*o,s=Math.round(e/c),l=Math.round(t/c),s*ct&&--l),l0))return[];if(e===t)return[e];const n=t=a))return[];const s=i-a+1,l=new Array(s);if(n)if(o<0)for(let c=0;c=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r=a)&&(r=a)}return r}function fE(e,t){let r;if(t===void 0)for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);else{let n=-1;for(let a of e)(a=t(a,++n,e))!=null&&(r>a||r===void 0&&a>=a)&&(r=a)}return r}function Rk(e,t,r=0,n=1/0,a){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(a=a===void 0?kk:_W(a);n>r;){if(n-r>600){const l=n-r+1,c=t-r+1,d=Math.log(l),p=.5*Math.exp(2*d/3),g=.5*Math.sqrt(d*p*(l-p)/l)*(c-l/2<0?-1:1),h=Math.max(r,Math.floor(t-c*p/l+g)),b=Math.min(n,Math.floor(t+(l-c)*p/l+g));Rk(e,t,h,b,a)}const i=e[t];let o=r,s=n;for(xi(e,r,t),a(e[n],i)>0&&xi(e,r,n);o0;)--s}a(e[r],i)===0?xi(e,r,s):(++s,xi(e,s,n)),s<=t&&(r=s+1),t<=s&&(n=s-1)}return e}function xi(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function kW(e,t,r){if(e=Float64Array.from(yW(e,r)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return fE(e);if(t>=1)return pE(e);var n,a=(n-1)*t,i=Math.floor(a),o=pE(Rk(e,i).subarray(0,i+1)),s=fE(e.subarray(i+1));return o+(s-o)*(a-i)}}function RW(e,t,r=Ok){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,a=(n-1)*t,i=Math.floor(a),o=+r(e[i],i,e),s=+r(e[i+1],i+1,e);return o+(s-o)*(a-i)}}function IW(e,t,r){e=+e,t=+t,r=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+r;for(var n=-1,a=Math.max(0,Math.ceil((t-e)/r))|0,i=new Array(a);++n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Rs(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Rs(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=CW.exec(e))?new Qt(t[1],t[2],t[3],1):(t=DW.exec(e))?new Qt(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LW.exec(e))?Rs(t[1],t[2],t[3],t[4]):(t=MW.exec(e))?Rs(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=PW.exec(e))?SE(t[1],t[2]/100,t[3]/100,1):(t=$W.exec(e))?SE(t[1],t[2]/100,t[3]/100,t[4]):gE.hasOwnProperty(e)?bE(gE[e]):e==="transparent"?new Qt(NaN,NaN,NaN,0):null}function bE(e){return new Qt(e>>16&255,e>>8&255,e&255,1)}function Rs(e,t,r,n){return n<=0&&(e=t=r=NaN),new Qt(e,t,r,n)}function BW(e){return e instanceof qo||(e=oo(e)),e?(e=e.rgb(),new Qt(e.r,e.g,e.b,e.opacity)):new Qt}function Am(e,t,r,n){return arguments.length===1?BW(e):new Qt(e,t,r,n??1)}function Qt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Wb(Qt,Am,Nk(qo,{brighter(e){return e=e==null?dl:Math.pow(dl,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Qt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Qt(ta(this.r),ta(this.g),ta(this.b),pl(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:yE,formatHex:yE,formatHex8:UW,formatRgb:vE,toString:vE}));function yE(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}`}function UW(){return`#${Jn(this.r)}${Jn(this.g)}${Jn(this.b)}${Jn((isNaN(this.opacity)?1:this.opacity)*255)}`}function vE(){const e=pl(this.opacity);return`${e===1?"rgb(":"rgba("}${ta(this.r)}, ${ta(this.g)}, ${ta(this.b)}${e===1?")":`, ${e})`}`}function pl(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ta(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Jn(e){return e=ta(e),(e<16?"0":"")+e.toString(16)}function SE(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Nr(e,t,r,n)}function Ck(e){if(e instanceof Nr)return new Nr(e.h,e.s,e.l,e.opacity);if(e instanceof qo||(e=oo(e)),!e)return new Nr;if(e instanceof Nr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r0&&l<1?0:o,new Nr(o,s,l,e.opacity)}function GW(e,t,r,n){return arguments.length===1?Ck(e):new Nr(e,t,r,n??1)}function Nr(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Wb(Nr,GW,Nk(qo,{brighter(e){return e=e==null?dl:Math.pow(dl,e),new Nr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ao:Math.pow(ao,e),new Nr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Qt(wc(e>=240?e-240:e+120,a,n),wc(e,a,n),wc(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new Nr(EE(this.h),Is(this.s),Is(this.l),pl(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=pl(this.opacity);return`${e===1?"hsl(":"hsla("}${EE(this.h)}, ${Is(this.s)*100}%, ${Is(this.l)*100}%${e===1?")":`, ${e})`}`}}));function EE(e){return e=(e||0)%360,e<0?e+360:e}function Is(e){return Math.max(0,Math.min(1,e||0))}function wc(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Vb=e=>()=>e;function zW(e,t){return function(r){return e+r*t}}function qW(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function HW(e){return(e=+e)==1?Dk:function(t,r){return r-t?qW(t,r,e):Vb(isNaN(t)?r:t)}}function Dk(e,t){var r=t-e;return r?zW(e,r):Vb(isNaN(e)?t:e)}const xE=function e(t){var r=HW(t);function n(a,i){var o=r((a=Am(a)).r,(i=Am(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=Dk(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=s(d),a.b=l(d),a.opacity=c(d),a+""}}return n.gamma=e,n}(1);function WW(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;ar&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:fl(n,a)})),r=_c.lastIndex;return rt&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function n3(e,t,r){var n=e[0],a=e[1],i=t[0],o=t[1];return a2?a3:n3,l=c=null,p}function p(g){return g==null||isNaN(g=+g)?i:(l||(l=s(e.map(n),t,r)))(n(o(g)))}return p.invert=function(g){return o(a((c||(c=s(t,e.map(n),fl)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,gl),d()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),d()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),r=Yb,d()},p.clamp=function(g){return arguments.length?(o=g?!0:Vt,d()):o!==Vt},p.interpolate=function(g){return arguments.length?(r=g,d()):r},p.unknown=function(g){return arguments.length?(i=g,p):i},function(g,h){return n=g,a=h,d()}}function Kb(){return pu()(Vt,Vt)}function i3(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function hl(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Ga(e){return e=hl(Math.abs(e)),e?e[1]:NaN}function o3(e,t){return function(r,n){for(var a=r.length,i=[],o=0,s=e[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(r.substring(a-=s,a+s)),!((l+=s+1)>n));)s=e[o=(o+1)%e.length];return i.reverse().join(t)}}function s3(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var l3=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function so(e){if(!(t=l3.exec(e)))throw new Error("invalid format: "+e);var t;return new Xb({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}so.prototype=Xb.prototype;function Xb(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Xb.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function u3(e){e:for(var t=e.length,r=1,n=-1,a;r0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(a+1):e}var Lk;function c3(e,t){var r=hl(e,t);if(!r)return e+"";var n=r[0],a=r[1],i=a-(Lk=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+hl(e,Math.max(0,t+i-1))[0]}function _E(e,t){var r=hl(e,t);if(!r)return e+"";var n=r[0],a=r[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const TE={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:i3,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>_E(e*100,t),r:_E,s:c3,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function AE(e){return e}var OE=Array.prototype.map,kE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function d3(e){var t=e.grouping===void 0||e.thousands===void 0?AE:o3(OE.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?AE:s3(OE.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(p){p=so(p);var g=p.fill,h=p.align,b=p.sign,S=p.symbol,v=p.zero,O=p.width,_=p.comma,w=p.precision,A=p.trim,x=p.type;x==="n"?(_=!0,x="g"):TE[x]||(w===void 0&&(w=12),A=!0,x="g"),(v||g==="0"&&h==="=")&&(v=!0,g="0",h="=");var E=S==="$"?r:S==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():"",k=S==="$"?n:/[%p]/.test(x)?o:"",N=TE[x],I=/[defgprs%]/.test(x);w=w===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function D(L){var j=E,q=k,H,z,W;if(x==="c")q=N(L)+q,L="";else{L=+L;var K=L<0||1/L<0;if(L=isNaN(L)?l:N(Math.abs(L),w),A&&(L=u3(L)),K&&+L==0&&b!=="+"&&(K=!1),j=(K?b==="("?b:s:b==="-"||b==="("?"":b)+j,q=(x==="s"?kE[8+Lk/3]:"")+q+(K&&b==="("?")":""),I){for(H=-1,z=L.length;++HW||W>57){q=(W===46?a+L.slice(H+1):L.slice(H))+q,L=L.slice(0,H);break}}}_&&!v&&(L=t(L,1/0));var G=j.length+L.length+q.length,V=G>1)+j+L+q+V.slice(G);break;default:L=V+j+L+q;break}return i(L)}return D.toString=function(){return p+""},D}function d(p,g){var h=c((p=so(p),p.type="f",p)),b=Math.max(-8,Math.min(8,Math.floor(Ga(g)/3)))*3,S=Math.pow(10,-b),v=kE[8+b/3];return function(O){return h(S*O)+v}}return{format:c,formatPrefix:d}}var Ns,Zb,Mk;p3({thousands:",",grouping:[3],currency:["$",""]});function p3(e){return Ns=d3(e),Zb=Ns.format,Mk=Ns.formatPrefix,Ns}function f3(e){return Math.max(0,-Ga(Math.abs(e)))}function g3(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ga(t)/3)))*3-Ga(Math.abs(e)))}function h3(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ga(t)-Ga(e))+1}function Pk(e,t,r,n){var a=_m(e,t,r),i;switch(n=so(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(i=g3(a,o))&&(n.precision=i),Mk(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(i=h3(a,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=i-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(i=f3(a))&&(n.precision=i-(n.type==="%")*2);break}}return Zb(n)}function $n(e){var t=e.domain;return e.ticks=function(r){var n=t();return xm(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var a=t();return Pk(a[0],a[a.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),a=0,i=n.length-1,o=n[a],s=n[i],l,c,d=10;for(s0;){if(c=wm(o,s,r),c===l)return n[a]=o,n[i]=s,t(n);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;l=c}return e},e}function ml(){var e=Kb();return e.copy=function(){return Ho(e,ml())},Sr.apply(e,arguments),$n(e)}function $k(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,gl),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return $k(e).unknown(t)},e=arguments.length?Array.from(e,gl):[0,1],$n(r)}function jk(e,t){e=e.slice();var r=0,n=e.length-1,a=e[r],i=e[n],o;return iMath.pow(e,t)}function S3(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function NE(e){return(t,r)=>-e(-t,r)}function Jb(e){const t=e(RE,IE),r=t.domain;let n=10,a,i;function o(){return a=S3(n),i=v3(n),r()[0]<0?(a=NE(a),i=NE(i),e(m3,b3)):e(RE,IE),t}return t.base=function(s){return arguments.length?(n=+s,o()):n},t.domain=function(s){return arguments.length?(r(s),o()):r()},t.ticks=s=>{const l=r();let c=l[0],d=l[l.length-1];const p=d0){for(;g<=h;++g)for(b=1;bd)break;O.push(S)}}else for(;g<=h;++g)for(b=n-1;b>=1;--b)if(S=g>0?b/i(-g):b*i(g),!(Sd)break;O.push(S)}O.length*2{if(s==null&&(s=10),l==null&&(l=n===10?"s":","),typeof l!="function"&&(!(n%1)&&(l=so(l)).precision==null&&(l.trim=!0),l=Zb(l)),s===1/0)return l;const c=Math.max(1,n*s/t.ticks().length);return d=>{let p=d/i(Math.round(a(d)));return p*nr(jk(r(),{floor:s=>i(Math.floor(a(s))),ceil:s=>i(Math.ceil(a(s)))})),t}function Fk(){const e=Jb(pu()).domain([1,10]);return e.copy=()=>Ho(e,Fk()).base(e.base()),Sr.apply(e,arguments),e}function CE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function DE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qb(e){var t=1,r=e(CE(t),DE(t));return r.constant=function(n){return arguments.length?e(CE(t=+n),DE(t)):t},$n(r)}function Bk(){var e=Qb(pu());return e.copy=function(){return Ho(e,Bk()).constant(e.constant())},Sr.apply(e,arguments)}function LE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function E3(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function x3(e){return e<0?-e*e:e*e}function ey(e){var t=e(Vt,Vt),r=1;function n(){return r===1?e(Vt,Vt):r===.5?e(E3,x3):e(LE(r),LE(1/r))}return t.exponent=function(a){return arguments.length?(r=+a,n()):r},$n(t)}function ty(){var e=ey(pu());return e.copy=function(){return Ho(e,ty()).exponent(e.exponent())},Sr.apply(e,arguments),e}function w3(){return ty.apply(null,arguments).exponent(.5)}function ME(e){return Math.sign(e)*e*e}function _3(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Uk(){var e=Kb(),t=[0,1],r=!1,n;function a(i){var o=_3(e(i));return isNaN(o)?n:r?Math.round(o):o}return a.invert=function(i){return e.invert(ME(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,gl)).map(ME)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(r=!!i,a):r},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return Uk(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},Sr.apply(a,arguments),$n(a)}function Gk(){var e=[],t=[],r=[],n;function a(){var o=0,s=Math.max(1,t.length);for(r=new Array(s-1);++o0?r[s-1]:e[0],s=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(l){return arguments.length&&(i=l),o},o.thresholds=function(){return n.slice()},o.copy=function(){return zk().domain([e,t]).range(a).unknown(i)},Sr.apply($n(o),arguments)}function qk(){var e=[.5],t=[0,1],r,n=1;function a(i){return i!=null&&i<=i?t[zo(e,i,0,n)]:r}return a.domain=function(i){return arguments.length?(e=Array.from(i),n=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),n=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return qk().domain(e).range(t).unknown(r)},Sr.apply(a,arguments)}const Tc=new Date,Ac=new Date;function xt(e,t,r,n){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),s=a.ceil(i);return i-o(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,s)=>{const l=[];if(i=a.ceil(i),s=s==null?1:Math.floor(s),!(i0))return l;let c;do l.push(c=new Date(+i)),t(i,s),e(i);while(cxt(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!i(o););else for(;--s>=0;)for(;t(o,1),!i(o););}),r&&(a.count=(i,o)=>(Tc.setTime(+i),Ac.setTime(+o),e(Tc),e(Ac),Math.floor(r(Tc,Ac))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(n?o=>n(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const bl=xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);bl.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):bl);bl.range;const un=1e3,br=un*60,cn=br*60,mn=cn*24,ry=mn*7,PE=mn*30,Oc=mn*365,Qn=xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*un)},(e,t)=>(t-e)/un,e=>e.getUTCSeconds());Qn.range;const ny=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getMinutes());ny.range;const ay=xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*br)},(e,t)=>(t-e)/br,e=>e.getUTCMinutes());ay.range;const iy=xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*un-e.getMinutes()*br)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getHours());iy.range;const oy=xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cn)},(e,t)=>(t-e)/cn,e=>e.getUTCHours());oy.range;const Wo=xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*br)/mn,e=>e.getDate()-1);Wo.range;const fu=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>e.getUTCDate()-1);fu.range;const Hk=xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/mn,e=>Math.floor(e/mn));Hk.range;function sa(e){return xt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*br)/ry)}const gu=sa(0),yl=sa(1),T3=sa(2),A3=sa(3),za=sa(4),O3=sa(5),k3=sa(6);gu.range;yl.range;T3.range;A3.range;za.range;O3.range;k3.range;function la(e){return xt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/ry)}const hu=la(0),vl=la(1),R3=la(2),I3=la(3),qa=la(4),N3=la(5),C3=la(6);hu.range;vl.range;R3.range;I3.range;qa.range;N3.range;C3.range;const sy=xt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());sy.range;const ly=xt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());ly.range;const bn=xt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());bn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});bn.range;const yn=xt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());yn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:xt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});yn.range;function Wk(e,t,r,n,a,i){const o=[[Qn,1,un],[Qn,5,5*un],[Qn,15,15*un],[Qn,30,30*un],[i,1,br],[i,5,5*br],[i,15,15*br],[i,30,30*br],[a,1,cn],[a,3,3*cn],[a,6,6*cn],[a,12,12*cn],[n,1,mn],[n,2,2*mn],[r,1,ry],[t,1,PE],[t,3,3*PE],[e,1,Oc]];function s(c,d,p){const g=dv).right(o,g);if(h===o.length)return e.every(_m(c/Oc,d/Oc,p));if(h===0)return bl.every(Math.max(_m(c,d,p),1));const[b,S]=o[g/o[h-1][2]53)return null;"w"in X||(X.w=1),"Z"in X?(fe=Rc(wi(X.y,0,1)),he=fe.getUTCDay(),fe=he>4||he===0?vl.ceil(fe):vl(fe),fe=fu.offset(fe,(X.V-1)*7),X.y=fe.getUTCFullYear(),X.m=fe.getUTCMonth(),X.d=fe.getUTCDate()+(X.w+6)%7):(fe=kc(wi(X.y,0,1)),he=fe.getDay(),fe=he>4||he===0?yl.ceil(fe):yl(fe),fe=Wo.offset(fe,(X.V-1)*7),X.y=fe.getFullYear(),X.m=fe.getMonth(),X.d=fe.getDate()+(X.w+6)%7)}else("W"in X||"U"in X)&&("w"in X||(X.w="u"in X?X.u%7:"W"in X?1:0),he="Z"in X?Rc(wi(X.y,0,1)).getUTCDay():kc(wi(X.y,0,1)).getDay(),X.m=0,X.d="W"in X?(X.w+6)%7+X.W*7-(he+5)%7:X.w+X.U*7-(he+6)%7);return"Z"in X?(X.H+=X.Z/100|0,X.M+=X.Z%100,Rc(X)):kc(X)}}function N(ee,oe,ie,X){for(var Ee=0,fe=oe.length,he=ie.length,je,nt;Ee=he)return-1;if(je=oe.charCodeAt(Ee++),je===37){if(je=oe.charAt(Ee++),nt=x[je in $E?oe.charAt(Ee++):je],!nt||(X=nt(ee,ie,X))<0)return-1}else if(je!=ie.charCodeAt(X++))return-1}return X}function I(ee,oe,ie){var X=c.exec(oe.slice(ie));return X?(ee.p=d.get(X[0].toLowerCase()),ie+X[0].length):-1}function D(ee,oe,ie){var X=h.exec(oe.slice(ie));return X?(ee.w=b.get(X[0].toLowerCase()),ie+X[0].length):-1}function L(ee,oe,ie){var X=p.exec(oe.slice(ie));return X?(ee.w=g.get(X[0].toLowerCase()),ie+X[0].length):-1}function j(ee,oe,ie){var X=O.exec(oe.slice(ie));return X?(ee.m=_.get(X[0].toLowerCase()),ie+X[0].length):-1}function q(ee,oe,ie){var X=S.exec(oe.slice(ie));return X?(ee.m=v.get(X[0].toLowerCase()),ie+X[0].length):-1}function H(ee,oe,ie){return N(ee,t,oe,ie)}function z(ee,oe,ie){return N(ee,r,oe,ie)}function W(ee,oe,ie){return N(ee,n,oe,ie)}function K(ee){return o[ee.getDay()]}function G(ee){return i[ee.getDay()]}function V(ee){return l[ee.getMonth()]}function J(ee){return s[ee.getMonth()]}function ae(ee){return a[+(ee.getHours()>=12)]}function re(ee){return 1+~~(ee.getMonth()/3)}function ue(ee){return o[ee.getUTCDay()]}function Se(ee){return i[ee.getUTCDay()]}function Q(ee){return l[ee.getUTCMonth()]}function Ie(ee){return s[ee.getUTCMonth()]}function Ue(ee){return a[+(ee.getUTCHours()>=12)]}function xe(ee){return 1+~~(ee.getUTCMonth()/3)}return{format:function(ee){var oe=E(ee+="",w);return oe.toString=function(){return ee},oe},parse:function(ee){var oe=k(ee+="",!1);return oe.toString=function(){return ee},oe},utcFormat:function(ee){var oe=E(ee+="",A);return oe.toString=function(){return ee},oe},utcParse:function(ee){var oe=k(ee+="",!0);return oe.toString=function(){return ee},oe}}}var $E={"-":"",_:" ",0:"0"},Ot=/^\s*\d+/,j3=/^%/,F3=/[\\^$*+?|[\]().{}]/g;function Be(e,t,r){var n=e<0?"-":"",a=(n?-e:e)+"",i=a.length;return n+(i[t.toLowerCase(),r]))}function U3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function G3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function z3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function q3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function H3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function jE(e,t,r){var n=Ot.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function FE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function W3(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function V3(e,t,r){var n=Ot.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function Y3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function BE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function K3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function UE(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function X3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function Z3(e,t,r){var n=Ot.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function J3(e,t,r){var n=Ot.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function Q3(e,t,r){var n=Ot.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function eV(e,t,r){var n=j3.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function tV(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function rV(e,t,r){var n=Ot.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function GE(e,t){return Be(e.getDate(),t,2)}function nV(e,t){return Be(e.getHours(),t,2)}function aV(e,t){return Be(e.getHours()%12||12,t,2)}function iV(e,t){return Be(1+Wo.count(bn(e),e),t,3)}function Vk(e,t){return Be(e.getMilliseconds(),t,3)}function oV(e,t){return Vk(e,t)+"000"}function sV(e,t){return Be(e.getMonth()+1,t,2)}function lV(e,t){return Be(e.getMinutes(),t,2)}function uV(e,t){return Be(e.getSeconds(),t,2)}function cV(e){var t=e.getDay();return t===0?7:t}function dV(e,t){return Be(gu.count(bn(e)-1,e),t,2)}function Yk(e){var t=e.getDay();return t>=4||t===0?za(e):za.ceil(e)}function pV(e,t){return e=Yk(e),Be(za.count(bn(e),e)+(bn(e).getDay()===4),t,2)}function fV(e){return e.getDay()}function gV(e,t){return Be(yl.count(bn(e)-1,e),t,2)}function hV(e,t){return Be(e.getFullYear()%100,t,2)}function mV(e,t){return e=Yk(e),Be(e.getFullYear()%100,t,2)}function bV(e,t){return Be(e.getFullYear()%1e4,t,4)}function yV(e,t){var r=e.getDay();return e=r>=4||r===0?za(e):za.ceil(e),Be(e.getFullYear()%1e4,t,4)}function vV(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Be(t/60|0,"0",2)+Be(t%60,"0",2)}function zE(e,t){return Be(e.getUTCDate(),t,2)}function SV(e,t){return Be(e.getUTCHours(),t,2)}function EV(e,t){return Be(e.getUTCHours()%12||12,t,2)}function xV(e,t){return Be(1+fu.count(yn(e),e),t,3)}function Kk(e,t){return Be(e.getUTCMilliseconds(),t,3)}function wV(e,t){return Kk(e,t)+"000"}function _V(e,t){return Be(e.getUTCMonth()+1,t,2)}function TV(e,t){return Be(e.getUTCMinutes(),t,2)}function AV(e,t){return Be(e.getUTCSeconds(),t,2)}function OV(e){var t=e.getUTCDay();return t===0?7:t}function kV(e,t){return Be(hu.count(yn(e)-1,e),t,2)}function Xk(e){var t=e.getUTCDay();return t>=4||t===0?qa(e):qa.ceil(e)}function RV(e,t){return e=Xk(e),Be(qa.count(yn(e),e)+(yn(e).getUTCDay()===4),t,2)}function IV(e){return e.getUTCDay()}function NV(e,t){return Be(vl.count(yn(e)-1,e),t,2)}function CV(e,t){return Be(e.getUTCFullYear()%100,t,2)}function DV(e,t){return e=Xk(e),Be(e.getUTCFullYear()%100,t,2)}function LV(e,t){return Be(e.getUTCFullYear()%1e4,t,4)}function MV(e,t){var r=e.getUTCDay();return e=r>=4||r===0?qa(e):qa.ceil(e),Be(e.getUTCFullYear()%1e4,t,4)}function PV(){return"+0000"}function qE(){return"%"}function HE(e){return+e}function WE(e){return Math.floor(+e/1e3)}var ya,Zk,Jk;$V({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function $V(e){return ya=$3(e),Zk=ya.format,ya.parse,Jk=ya.utcFormat,ya.utcParse,ya}function jV(e){return new Date(e)}function FV(e){return e instanceof Date?+e:+new Date(+e)}function uy(e,t,r,n,a,i,o,s,l,c){var d=Kb(),p=d.invert,g=d.domain,h=c(".%L"),b=c(":%S"),S=c("%I:%M"),v=c("%I %p"),O=c("%a %d"),_=c("%b %d"),w=c("%B"),A=c("%Y");function x(E){return(l(E)t(a/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(a,i)=>kW(e,i/n))},r.copy=function(){return rR(t).domain(e)},Sn.apply(r,arguments)}function bu(){var e=0,t=.5,r=1,n=1,a,i,o,s,l,c=Vt,d,p=!1,g;function h(S){return isNaN(S=+S)?g:(S=.5+((S=+d(S))-i)*(n*St}var VV=WV,YV=oR,KV=VV,XV=Fo;function ZV(e){return e&&e.length?YV(e,XV,KV):void 0}var JV=ZV;const yu=ft(JV);function QV(e,t){return ee.e^i.s<0?1:-1;for(n=i.d.length,a=e.d.length,t=0,r=ne.d[t]^i.s<0?1:-1;return n===a?0:n>a^i.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ot;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};pe.dividedBy=pe.div=function(e){return gn(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,r=t.constructor;return Qe(gn(t,new r(e),0,1),r.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return bt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,r=this,n=r.constructor,a=n.precision,i=a+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(sr))throw Error(vr+"NaN");if(r.s<1)throw Error(vr+(r.s?"NaN":"-Infinity"));return r.eq(sr)?new n(0):(lt=!1,t=gn(lo(r,i),lo(e,i),i),lt=!0,Qe(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?cR(t,e):lR(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,r=this,n=r.constructor,a=n.precision;if(e=new n(e),!e.s)throw Error(vr+"NaN");return r.s?(lt=!1,t=gn(r,e,0,1).times(e),lt=!0,r.minus(t)):Qe(new n(r),a)};pe.naturalExponential=pe.exp=function(){return uR(this)};pe.naturalLogarithm=pe.ln=function(){return lo(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?lR(t,e):cR(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,r,n,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(ra+e);if(t=bt(a)+1,n=a.d.length-1,r=n*ot+1,n=a.d[n],n){for(;n%10==0;n/=10)r--;for(n=a.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};pe.squareRoot=pe.sqrt=function(){var e,t,r,n,a,i,o,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(vr+"NaN")}for(e=bt(s),lt=!1,a=Math.sqrt(+s),a==0||a==1/0?(t=zr(s.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=oi((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new l(t)):n=new l(a.toString()),r=l.precision,a=o=r+3;;)if(i=n,n=i.plus(gn(s,i,o+2)).times(.5),zr(i.d).slice(0,o)===(t=zr(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(Qe(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if(t!="9999")break;o+=4}return lt=!0,Qe(n,r)};pe.times=pe.mul=function(e){var t,r,n,a,i,o,s,l,c,d=this,p=d.constructor,g=d.d,h=(e=new p(e)).d;if(!d.s||!e.s)return new p(0);for(e.s*=d.s,r=d.e+e.e,l=g.length,c=h.length,l=0;){for(t=0,a=l+n;a>n;)s=i[a]+h[n]*g[a-n-1]+t,i[a--]=s%_t|0,t=s/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,lt?Qe(e,p.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(Vr(e,0,ii),t===void 0?t=n.rounding:Vr(t,0,8),Qe(r,e+bt(r)+1,t))};pe.toExponential=function(e,t){var r,n=this,a=n.constructor;return e===void 0?r=aa(n,!0):(Vr(e,0,ii),t===void 0?t=a.rounding:Vr(t,0,8),n=Qe(new a(n),e+1,t),r=aa(n,!0,e+1)),r};pe.toFixed=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?aa(a):(Vr(e,0,ii),t===void 0?t=i.rounding:Vr(t,0,8),n=Qe(new i(a),e+bt(a)+1,t),r=aa(n.abs(),!1,e+bt(n)+1),a.isneg()&&!a.isZero()?"-"+r:r)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return Qe(new t(e),bt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,r,n,a,i,o,s=this,l=s.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(sr);if(s=new l(s),!s.s){if(e.s<1)throw Error(vr+"Infinity");return s}if(s.eq(sr))return s;if(n=l.precision,e.eq(sr))return Qe(s,n);if(t=e.e,r=e.d.length-1,o=t>=r,i=s.s,o){if((r=d<0?-d:d)<=sR){for(a=new l(sr),t=Math.ceil(n/ot+4),lt=!1;r%2&&(a=a.times(s),KE(a.d,t)),r=oi(r/2),r!==0;)s=s.times(s),KE(s.d,t);return lt=!0,e.s<0?new l(sr).div(a):Qe(a,n)}}else if(i<0)throw Error(vr+"NaN");return i=i<0&&e.d[Math.max(t,r)]&1?-1:1,s.s=1,lt=!1,a=e.times(lo(s,n+c)),lt=!0,a=uR(a),a.s=i,a};pe.toPrecision=function(e,t){var r,n,a=this,i=a.constructor;return e===void 0?(r=bt(a),n=aa(a,r<=i.toExpNeg||r>=i.toExpPos)):(Vr(e,1,ii),t===void 0?t=i.rounding:Vr(t,0,8),a=Qe(new i(a),e,t),r=bt(a),n=aa(a,e<=r||r<=i.toExpNeg,e)),n};pe.toSignificantDigits=pe.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(Vr(e,1,ii),t===void 0?t=n.rounding:Vr(t,0,8)),Qe(new n(r),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),r=e.constructor;return aa(e,t<=r.toExpNeg||t>=r.toExpPos)};function lR(e,t){var r,n,a,i,o,s,l,c,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),lt?Qe(t,p):t;if(l=e.d,c=t.d,o=e.e,a=t.e,l=l.slice(),i=o-a,i){for(i<0?(n=l,i=-i,s=c.length):(n=c,a=o,s=l.length),o=Math.ceil(p/ot),s=o>s?o+1:s+1,i>s&&(i=s,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for(s=l.length,i=c.length,s-i<0&&(i=s,n=c,c=l,l=n),r=0;i;)r=(l[--i]=l[i]+c[i]+r)/_t|0,l[i]%=_t;for(r&&(l.unshift(r),++a),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=a,lt?Qe(t,p):t}function Vr(e,t,r){if(e!==~~e||er)throw Error(ra+e)}function zr(e){var t,r,n,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;to?1:-1;else for(s=l=0;sa[s]?1:-1;break}return l}function r(n,a,i){for(var o=0;i--;)n[i]-=o,o=n[i]1;)n.shift()}return function(n,a,i,o){var s,l,c,d,p,g,h,b,S,v,O,_,w,A,x,E,k,N,I=n.constructor,D=n.s==a.s?1:-1,L=n.d,j=a.d;if(!n.s)return new I(n);if(!a.s)throw Error(vr+"Division by zero");for(l=n.e-a.e,k=j.length,x=L.length,h=new I(D),b=h.d=[],c=0;j[c]==(L[c]||0);)++c;if(j[c]>(L[c]||0)&&--l,i==null?_=i=I.precision:o?_=i+(bt(n)-bt(a))+1:_=i,_<0)return new I(0);if(_=_/ot+2|0,c=0,k==1)for(d=0,j=j[0],_++;(c1&&(j=e(j,d),L=e(L,d),k=j.length,x=L.length),A=k,S=L.slice(0,k),v=S.length;v=_t/2&&++E;do d=0,s=t(j,S,k,v),s<0?(O=S[0],k!=v&&(O=O*_t+(S[1]||0)),d=O/E|0,d>1?(d>=_t&&(d=_t-1),p=e(j,d),g=p.length,v=S.length,s=t(p,S,g,v),s==1&&(d--,r(p,k16)throw Error(py+bt(e));if(!e.s)return new d(sr);for(t==null?(lt=!1,s=p):s=t,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(Kn(2,c))/Math.LN10*2+5|0,s+=n,r=a=i=new d(sr),d.precision=s;;){if(a=Qe(a.times(e),s),r=r.times(++l),o=i.plus(gn(a,r,s)),zr(o.d).slice(0,s)===zr(i.d).slice(0,s)){for(;c--;)i=Qe(i.times(i),s);return d.precision=p,t==null?(lt=!0,Qe(i,p)):i}i=o}}function bt(e){for(var t=e.e*ot,r=e.d[0];r>=10;r/=10)t++;return t}function Ic(e,t,r){if(t>e.LN10.sd())throw lt=!0,r&&(e.precision=r),Error(vr+"LN10 precision limit exceeded");return Qe(new e(e.LN10),t)}function In(e){for(var t="";e--;)t+="0";return t}function lo(e,t){var r,n,a,i,o,s,l,c,d,p=1,g=10,h=e,b=h.d,S=h.constructor,v=S.precision;if(h.s<1)throw Error(vr+(h.s?"NaN":"-Infinity"));if(h.eq(sr))return new S(0);if(t==null?(lt=!1,c=v):c=t,h.eq(10))return t==null&&(lt=!0),Ic(S,c);if(c+=g,S.precision=c,r=zr(b),n=r.charAt(0),i=bt(h),Math.abs(i)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=zr(h.d),n=r.charAt(0),p++;i=bt(h),n>1?(h=new S("0."+r),i++):h=new S(n+"."+r.slice(1))}else return l=Ic(S,c+2,v).times(i+""),h=lo(new S(n+"."+r.slice(1)),c-g).plus(l),S.precision=v,t==null?(lt=!0,Qe(h,v)):h;for(s=o=h=gn(h.minus(sr),h.plus(sr),c),d=Qe(h.times(h),c),a=3;;){if(o=Qe(o.times(d),c),l=s.plus(gn(o,new S(a),c)),zr(l.d).slice(0,c)===zr(s.d).slice(0,c))return s=s.times(2),i!==0&&(s=s.plus(Ic(S,c+2,v).times(i+""))),s=gn(s,new S(p),c),S.precision=v,t==null?(lt=!0,Qe(s,v)):s;s=l,a+=2}}function YE(e,t){var r,n,a;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(n,a),t){if(a-=n,r=r-n-1,e.e=oi(r/ot),e.d=[],n=(r+1)%ot,r<0&&(n+=ot),nSl||e.e<-Sl))throw Error(py+r)}else e.s=0,e.e=0,e.d=[0];return e}function Qe(e,t,r){var n,a,i,o,s,l,c,d,p=e.d;for(o=1,i=p[0];i>=10;i/=10)o++;if(n=t-o,n<0)n+=ot,a=t,c=p[d=0];else{if(d=Math.ceil((n+1)/ot),i=p.length,d>=i)return e;for(c=i=p[d],o=1;i>=10;i/=10)o++;n%=ot,a=n-ot+o}if(r!==void 0&&(i=Kn(10,o-a-1),s=c/i%10|0,l=t<0||p[d+1]!==void 0||c%i,l=r<4?(s||l)&&(r==0||r==(e.s<0?3:2)):s>5||s==5&&(r==4||l||r==6&&(n>0?a>0?c/Kn(10,o-a):0:p[d-1])%10&1||r==(e.s<0?8:7))),t<1||!p[0])return l?(i=bt(e),p.length=1,t=t-i-1,p[0]=Kn(10,(ot-t%ot)%ot),e.e=oi(-t/ot)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(n==0?(p.length=d,i=1,d--):(p.length=d+1,i=Kn(10,ot-n),p[d]=a>0?(c/Kn(10,o-a)%Kn(10,a)|0)*i:0),l)for(;;)if(d==0){(p[0]+=i)==_t&&(p[0]=1,++e.e);break}else{if(p[d]+=i,p[d]!=_t)break;p[d--]=0,i=1}for(n=p.length;p[--n]===0;)p.pop();if(lt&&(e.e>Sl||e.e<-Sl))throw Error(py+bt(e));return e}function cR(e,t){var r,n,a,i,o,s,l,c,d,p,g=e.constructor,h=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),lt?Qe(t,h):t;if(l=e.d,p=t.d,n=t.e,c=e.e,l=l.slice(),o=c-n,o){for(d=o<0,d?(r=l,o=-o,s=p.length):(r=p,n=c,s=l.length),a=Math.max(Math.ceil(h/ot),s)+2,o>a&&(o=a,r.length=1),r.reverse(),a=o;a--;)r.push(0);r.reverse()}else{for(a=l.length,s=p.length,d=a0;--a)l[s++]=0;for(a=p.length;a>o;){if(l[--a]0?i=i.charAt(0)+"."+i.slice(1)+In(n):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+In(-a-1)+i,r&&(n=r-o)>0&&(i+=In(n))):a>=o?(i+=In(a+1-o),r&&(n=r-a-1)>0&&(i=i+"."+In(n))):((n=a+1)0&&(a+1===o&&(i+="."),i+=In(n))),e.s<0?"-"+i:i}function KE(e,t){if(e.length>t)return e.length=t,!0}function dR(e){var t,r,n;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(ra+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return YE(o,i.toString())}else if(typeof i!="string")throw Error(ra+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,hY.test(i))YE(o,i);else throw Error(ra+i)}if(a.prototype=pe,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=dR,a.config=a.set=mY,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t=a[t+1]&&n<=a[t+2])this[r]=n;else throw Error(ra+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(ra+r+": "+n);return this}var fy=dR(gY);sr=new fy(1);const Xe=fy;function bY(e){return EY(e)||SY(e)||vY(e)||yY()}function yY(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vY(e,t){if(e){if(typeof e=="string")return Rm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rm(e,t)}}function SY(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function EY(e){if(Array.isArray(e))return Rm(e)}function Rm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=t?r.apply(void 0,a):e(t-o,XE(function(){for(var s=arguments.length,l=new Array(s),c=0;ce.length)&&(t=e.length);for(var r=0,n=new Array(t);r"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function PY(e){if(Array.isArray(e))return e}function mR(e){var t=uo(e,2),r=t[0],n=t[1],a=r,i=n;return r>n&&(a=n,i=r),[a,i]}function bR(e,t,r){if(e.lte(0))return new Xe(0);var n=xu.getDigitCount(e.toNumber()),a=new Xe(10).pow(n),i=e.div(a),o=n!==1?.05:.1,s=new Xe(Math.ceil(i.div(o).toNumber())).add(r).mul(o),l=s.mul(a);return t?l:new Xe(Math.ceil(l))}function $Y(e,t,r){var n=1,a=new Xe(e);if(!a.isint()&&r){var i=Math.abs(e);i<1?(n=new Xe(10).pow(xu.getDigitCount(e)-1),a=new Xe(Math.floor(a.div(n).toNumber())).mul(n)):i>1&&(a=new Xe(Math.floor(e)))}else e===0?a=new Xe(Math.floor((t-1)/2)):r||(a=new Xe(Math.floor(e)));var o=Math.floor((t-1)/2),s=TY(_Y(function(l){return a.add(new Xe(l-o).mul(n)).toNumber()}),Im);return s(0,t)}function yR(e,t,r,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var i=bR(new Xe(t).sub(e).div(r-1),n,a),o;e<=0&&t>=0?o=new Xe(0):(o=new Xe(e).add(t).div(2),o=o.sub(new Xe(o).mod(i)));var s=Math.ceil(o.sub(e).div(i).toNumber()),l=Math.ceil(new Xe(t).sub(o).div(i).toNumber()),c=s+l+1;return c>r?yR(e,t,r,n,a+1):(c0?l+(r-c):l,s=t>0?s:s+(r-c)),{step:i,tickMin:o.sub(new Xe(s).mul(i)),tickMax:o.add(new Xe(l).mul(i))})}function jY(e){var t=uo(e,2),r=t[0],n=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),s=mR([r,n]),l=uo(s,2),c=l[0],d=l[1];if(c===-1/0||d===1/0){var p=d===1/0?[c].concat(Cm(Im(0,a-1).map(function(){return 1/0}))):[].concat(Cm(Im(0,a-1).map(function(){return-1/0})),[d]);return r>n?Nm(p):p}if(c===d)return $Y(c,a,i);var g=yR(c,d,o,i),h=g.step,b=g.tickMin,S=g.tickMax,v=xu.rangeStep(b,S.add(new Xe(.1).mul(h)),h);return r>n?Nm(v):v}function FY(e,t){var r=uo(e,2),n=r[0],a=r[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=mR([n,a]),s=uo(o,2),l=s[0],c=s[1];if(l===-1/0||c===1/0)return[n,a];if(l===c)return[l];var d=Math.max(t,2),p=bR(new Xe(c).sub(l).div(d-1),i,0),g=[].concat(Cm(xu.rangeStep(new Xe(l),new Xe(c).sub(new Xe(.99).mul(p)),p)),[c]);return n>a?Nm(g):g}var BY=gR(jY),UY=gR(FY),GY=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function El(){return El=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function KY(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Vo(e){var t=e.offset,r=e.layout,n=e.width,a=e.dataKey,i=e.data,o=e.dataPointFormatter,s=e.xAxis,l=e.yAxis,c=YY(e,GY),d=Me(c),p=i.map(function(g){var h=o(g,a),b=h.x,S=h.y,v=h.value,O=h.errorVal;if(!O)return null;var _=[],w,A;if(Array.isArray(O)){var x=zY(O,2);w=x[0],A=x[1]}else w=A=O;if(r==="vertical"){var E=s.scale,k=S+t,N=k+n,I=k-n,D=E(v-w),L=E(v+A);_.push({x1:L,y1:N,x2:L,y2:I}),_.push({x1:D,y1:k,x2:L,y2:k}),_.push({x1:D,y1:N,x2:D,y2:I})}else if(r==="horizontal"){var j=l.scale,q=b+t,H=q-n,z=q+n,W=j(v-w),K=j(v+A);_.push({x1:H,y1:K,x2:z,y2:K}),_.push({x1:q,y1:W,x2:q,y2:K}),_.push({x1:H,y1:W,x2:z,y2:W})}return U.createElement(dt,El({className:"recharts-errorBar",key:"bar-".concat(_.map(function(G){return"".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))},d),_.map(function(G){return U.createElement("line",El({},G,{key:"line-".concat(G.x1,"-").concat(G.x2,"-").concat(G.y1,"-").concat(G.y2)}))}))});return U.createElement(dt,{className:"recharts-errorBars"},p)}Vo.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"};Vo.displayName="ErrorBar";function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function JE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Nc(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,s=(r=n==null?void 0:n.length)!==null&&r!==void 0?r:0;if(s<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c0?a[c-1].coordinate:a[s-1].coordinate,p=a[c].coordinate,g=c>=s-1?a[0].coordinate:a[c+1].coordinate,h=void 0;if(Lr(p-d)!==Lr(g-p)){var b=[];if(Lr(g-p)===Lr(l[1]-l[0])){h=g;var S=p+l[1]-l[0];b[0]=Math.min(S,(S+d)/2),b[1]=Math.max(S,(S+d)/2)}else{h=d;var v=g+l[1]-l[0];b[0]=Math.min(p,(v+p)/2),b[1]=Math.max(p,(v+p)/2)}var O=[Math.min(p,(h+p)/2),Math.max(p,(h+p)/2)];if(t>O[0]&&t<=O[1]||t>=b[0]&&t<=b[1]){o=a[c].index;break}}else{var _=Math.min(d,g),w=Math.max(d,g);if(t>(_+p)/2&&t<=(w+p)/2){o=a[c].index;break}}}else for(var A=0;A0&&A(n[A].coordinate+n[A-1].coordinate)/2&&t<=(n[A].coordinate+n[A+1].coordinate)/2||A===s-1&&t>(n[A].coordinate+n[A-1].coordinate)/2){o=n[A].index;break}return o},gy=function(t){var r=t,n=r.type.displayName,a=t.props,i=a.stroke,o=a.fill,s;switch(n){case"Line":s=i;break;case"Area":case"Radar":s=i&&i!=="none"?i:o;break;default:s=o;break}return s},o4=function(t){var r=t.barSize,n=t.stackGroups,a=n===void 0?{}:n;if(!a)return{};for(var i={},o=Object.keys(a),s=0,l=o.length;s=0});if(v&&v.length){var O=v[0].props.barSize,_=v[0].props[S];i[_]||(i[_]=[]),i[_].push({item:v[0],stackList:v.slice(1),barSize:Ce(O)?r:O})}}return i},s4=function(t){var r=t.barGap,n=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,s=t.maxBarSize,l=o.length;if(l<1)return null;var c=La(r,a,0,!0),d,p=[];if(o[0].barSize===+o[0].barSize){var g=!1,h=a/l,b=o.reduce(function(A,x){return A+x.barSize||0},0);b+=(l-1)*c,b>=a&&(b-=(l-1)*c,c=0),b>=a&&h>0&&(g=!0,h*=.9,b=l*h);var S=(a-b)/2>>0,v={offset:S-c,size:0};d=o.reduce(function(A,x){var E={item:x.item,position:{offset:v.offset+v.size+c,size:g?h:x.barSize}},k=[].concat(e0(A),[E]);return v=k[k.length-1].position,x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:v})}),k},p)}else{var O=La(n,a,0,!0);a-2*O-(l-1)*c<=0&&(c=0);var _=(a-2*O-(l-1)*c)/l;_>1&&(_>>=0);var w=s===+s?Math.min(_,s):_;d=o.reduce(function(A,x,E){var k=[].concat(e0(A),[{item:x.item,position:{offset:O+(_+c)*E+(_-w)/2,size:w}}]);return x.stackList&&x.stackList.length&&x.stackList.forEach(function(N){k.push({item:N,position:k[k.length-1].position})}),k},p)}return d},l4=function(t,r,n,a){var i=n.children,o=n.width,s=n.margin,l=o-(s.left||0)-(s.right||0),c=vR({children:i,legendWidth:l});if(c){var d=a||{},p=d.width,g=d.height,h=c.align,b=c.verticalAlign,S=c.layout;if((S==="vertical"||S==="horizontal"&&b==="middle")&&h!=="center"&&se(t[h]))return mr(mr({},t),{},Na({},h,t[h]+(p||0)));if((S==="horizontal"||S==="vertical"&&h==="center")&&b!=="middle"&&se(t[b]))return mr(mr({},t),{},Na({},b,t[b]+(g||0)))}return t},u4=function(t,r,n){return Ce(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},SR=function(t,r,n,a,i){var o=r.props.children,s=lr(o,Vo).filter(function(c){return u4(a,i,c.props.direction)});if(s&&s.length){var l=s.map(function(c){return c.props.dataKey});return t.reduce(function(c,d){var p=Yt(d,n,0),g=Array.isArray(p)?[vu(p),yu(p)]:[p,p],h=l.reduce(function(b,S){var v=Yt(d,S,0),O=g[0]-Math.abs(Array.isArray(v)?v[0]:v),_=g[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(O,b[0]),Math.max(_,b[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},c4=function(t,r,n,a,i){var o=r.map(function(s){return SR(t,s,n,i,a)}).filter(function(s){return!Ce(s)});return o&&o.length?o.reduce(function(s,l){return[Math.min(s[0],l[0]),Math.max(s[1],l[1])]},[1/0,-1/0]):null},ER=function(t,r,n,a,i){var o=r.map(function(l){var c=l.props.dataKey;return n==="number"&&c&&SR(t,l,c,a)||Ui(t,c,n,i)});if(n==="number")return o.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var s={};return o.reduce(function(l,c){for(var d=0,p=c.length;d=2?Lr(s[0]-s[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(p){var g=i?i.indexOf(p):p;return{coordinate:a(g)+c,value:p,offset:c}});return d.filter(function(p){return!Uo(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:a(p)+c,value:p,index:g,offset:c}}):a.ticks&&!n?a.ticks(t.tickCount).map(function(p){return{coordinate:a(p)+c,value:p,offset:c}}):a.domain().map(function(p,g){return{coordinate:a(p)+c,value:i?i[p]:p,index:g,offset:c}})},Cc=new WeakMap,Cs=function(t,r){if(typeof r!="function")return t;Cc.has(t)||Cc.set(t,new WeakMap);var n=Cc.get(t);if(n.has(r))return n.get(r);var a=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,a),a},d4=function(t,r,n){var a=t.scale,i=t.type,o=t.layout,s=t.axisType;if(a==="auto")return o==="radial"&&s==="radiusAxis"?{scale:no(),realScaleType:"band"}:o==="radial"&&s==="angleAxis"?{scale:ml(),realScaleType:"linear"}:i==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Bi(),realScaleType:"point"}:i==="category"?{scale:no(),realScaleType:"band"}:{scale:ml(),realScaleType:"linear"};if(jo(a)){var l="scale".concat(iu(a));return{scale:(VE[l]||Bi)(),realScaleType:VE[l]?l:"point"}}return Ne(a)?{scale:a}:{scale:Bi(),realScaleType:"point"}},r0=1e-4,p4=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,a=t.range(),i=Math.min(a[0],a[1])-r0,o=Math.max(a[0],a[1])+r0,s=t(r[0]),l=t(r[n-1]);(so||lo)&&t.domain([r[0],r[n-1]])}},f4=function(t,r){if(!t)return null;for(var n=0,a=t.length;na)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]=0?(t[s][n][0]=i,t[s][n][1]=i+l,i=t[s][n][1]):(t[s][n][0]=o,t[s][n][1]=o+l,o=t[s][n][1])}},m4=function(t){var r=t.length;if(!(r<=0))for(var n=0,a=t[0].length;n=0?(t[o][n][0]=i,t[o][n][1]=i+s,i=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},b4={sign:h4,expand:L2,none:Ma,silhouette:M2,wiggle:P2,positive:m4},y4=function(t,r,n){var a=r.map(function(s){return s.props.dataKey}),i=b4[n],o=D2().keys(a).value(function(s,l){return+Yt(s,l,0)}).order(am).offset(i);return o(t)},v4=function(t,r,n,a,i,o){if(!t)return null;var s=o?r.reverse():r,l={},c=s.reduce(function(p,g){var h=g.props,b=h.stackId,S=h.hide;if(S)return p;var v=g.props[n],O=p[v]||{hasStack:!1,stackGroups:{}};if(Et(b)){var _=O.stackGroups[b]||{numericAxisId:n,cateAxisId:a,items:[]};_.items.push(g),O.hasStack=!0,O.stackGroups[b]=_}else O.stackGroups[Go("_stackId_")]={numericAxisId:n,cateAxisId:a,items:[g]};return mr(mr({},p),{},Na({},v,O))},l),d={};return Object.keys(c).reduce(function(p,g){var h=c[g];if(h.hasStack){var b={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(S,v){var O=h.stackGroups[v];return mr(mr({},S),{},Na({},v,{numericAxisId:n,cateAxisId:a,items:O.items,stackedData:y4(t,O.items,i)}))},b)}return mr(mr({},p),{},Na({},g,h))},d)},S4=function(t,r){var n=r.realScaleType,a=r.type,i=r.tickCount,o=r.originalDomain,s=r.allowDecimals,l=n||r.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var d=BY(c,i,s);return t.domain([vu(d),yu(d)]),{niceTicks:d}}if(i&&a==="number"){var p=t.domain(),g=UY(p,i,s);return{niceTicks:g}}return null},n0=function(t){var r=t.axis,n=t.ticks,a=t.bandSize,i=t.entry,o=t.index,s=t.dataKey;if(r.type==="category"){if(!r.allowDuplicatedCategory&&r.dataKey&&!Ce(i[r.dataKey])){var l=Vs(n,"value",i[r.dataKey]);if(l)return l.coordinate+a/2}return n[o]?n[o].coordinate+a/2:null}var c=Yt(i,Ce(s)?r.dataKey:s);return Ce(c)?null:r.scale(c)},a0=function(t){var r=t.axis,n=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,s=t.index;if(r.type==="category")return n[s]?n[s].coordinate+a:null;var l=Yt(o,r.dataKey,r.domain[s]);return Ce(l)?null:r.scale(l)-i/2+a},E4=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var a=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return a<=0&&i>=0?0:i<0?i:a}return n[0]},x4=function(t,r){var n=t.props.stackId;if(Et(n)){var a=r[n];if(a){var i=a.items.indexOf(t);return i>=0?a.stackedData[i]:null}}return null},w4=function(t){return t.reduce(function(r,n){return[vu(n.concat([r[0]]).filter(se)),yu(n.concat([r[1]]).filter(se))]},[1/0,-1/0])},wR=function(t,r,n){return Object.keys(t).reduce(function(a,i){var o=t[i],s=o.stackedData,l=s.reduce(function(c,d){var p=w4(d.slice(r,n+1));return[Math.min(c[0],p[0]),Math.max(c[1],p[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},i0=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,o0=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Mm=function(t,r,n){if(Ne(t))return t(r,n);if(!Array.isArray(t))return r;var a=[];if(se(t[0]))a[0]=n?t[0]:Math.min(t[0],r[0]);else if(i0.test(t[0])){var i=+i0.exec(t[0])[1];a[0]=r[0]-i}else Ne(t[0])?a[0]=t[0](r[0]):a[0]=r[0];if(se(t[1]))a[1]=n?t[1]:Math.max(t[1],r[1]);else if(o0.test(t[1])){var o=+o0.exec(t[1])[1];a[1]=r[1]+o}else Ne(t[1])?a[1]=t[1](r[1]):a[1]=r[1];return a},xl=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!n||a>0)return a}if(t&&r&&r.length>=2){for(var i=Bb(r,function(p){return p.coordinate}),o=1/0,s=1,l=i.length;so&&(c=2*Math.PI-c),{radius:s,angle:O4(c),angleInRadian:c}},I4=function(t){var r=t.startAngle,n=t.endAngle,a=Math.floor(r/360),i=Math.floor(n/360),o=Math.min(a,i);return{startAngle:r-o*360,endAngle:n-o*360}},N4=function(t,r){var n=r.startAngle,a=r.endAngle,i=Math.floor(n/360),o=Math.floor(a/360),s=Math.min(i,o);return t+s*360},c0=function(t,r){var n=t.x,a=t.y,i=R4({x:n,y:a},r),o=i.radius,s=i.angle,l=r.innerRadius,c=r.outerRadius;if(oc)return!1;if(o===0)return!0;var d=I4(r),p=d.startAngle,g=d.endAngle,h=s,b;if(p<=g){for(;h>g;)h-=360;for(;h=p&&h<=g}else{for(;h>p;)h-=360;for(;h=g&&h<=p}return b?u0(u0({},r),{},{radius:o,angle:N4(h,r)}):null};function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}var C4=["offset"];function D4(e){return $4(e)||P4(e)||M4(e)||L4()}function L4(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M4(e,t){if(e){if(typeof e=="string")return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pm(e,t)}}function P4(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $4(e){if(Array.isArray(e))return Pm(e)}function Pm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F4(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function d0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t=0?1:-1,w,A;a==="insideStart"?(w=h+_*o,A=S):a==="insideEnd"?(w=b-_*o,A=!S):a==="end"&&(w=b+_*o,A=S),A=O<=0?A:!A;var x=Nt(c,d,v,w),E=Nt(c,d,v,w+(A?1:-1)*359),k="M".concat(x.x,",").concat(x.y,` A`).concat(v,",").concat(v,",0,1,").concat(A?0:1,`, - `).concat(E.x,",").concat(E.y),N=Ce(t.id)?Uo("recharts-radial-line-"):t.id;return U.createElement("text",ho({},n,{dominantBaseline:"central",className:Ze("recharts-radial-bar-label",s)}),U.createElement("defs",null,U.createElement("path",{id:N,d:k})),U.createElement("textPath",{xlinkHref:"#".concat(N)},r))},H4=function(t){var r=t.viewBox,n=t.offset,a=t.position,i=r,o=i.cx,s=i.cy,l=i.innerRadius,c=i.outerRadius,d=i.startAngle,p=i.endAngle,g=(d+p)/2;if(a==="outside"){var m=Nt(o,s,c+n,g),b=m.x,S=m.y;return{x:b,y:S,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+c)/2,O=Nt(o,s,v,g),_=O.x,w=O.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},W4=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,s=o.x,l=o.y,c=o.width,d=o.height,p=d>=0?1:-1,g=p*a,m=p>0?"end":"start",b=p>0?"start":"end",S=c>=0?1:-1,v=S*a,O=S>0?"end":"start",_=S>0?"start":"end";if(i==="top"){var w={x:s+c/2,y:l-p*a,textAnchor:"middle",verticalAnchor:m};return St(St({},w),n?{height:Math.max(l-n.y,0),width:c}:{})}if(i==="bottom"){var A={x:s+c/2,y:l+d+g,textAnchor:"middle",verticalAnchor:b};return St(St({},A),n?{height:Math.max(n.y+n.height-(l+d),0),width:c}:{})}if(i==="left"){var x={x:s-v,y:l+d/2,textAnchor:O,verticalAnchor:"middle"};return St(St({},x),n?{width:Math.max(x.x-n.x,0),height:d}:{})}if(i==="right"){var E={x:s+c+v,y:l+d/2,textAnchor:_,verticalAnchor:"middle"};return St(St({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:d}:{})}var k=n?{width:c,height:d}:{};return i==="insideLeft"?St({x:s+v,y:l+d/2,textAnchor:_,verticalAnchor:"middle"},k):i==="insideRight"?St({x:s+c-v,y:l+d/2,textAnchor:O,verticalAnchor:"middle"},k):i==="insideTop"?St({x:s+c/2,y:l+g,textAnchor:"middle",verticalAnchor:b},k):i==="insideBottom"?St({x:s+c/2,y:l+d-g,textAnchor:"middle",verticalAnchor:m},k):i==="insideTopLeft"?St({x:s+v,y:l+g,textAnchor:_,verticalAnchor:b},k):i==="insideTopRight"?St({x:s+c-v,y:l+g,textAnchor:O,verticalAnchor:b},k):i==="insideBottomLeft"?St({x:s+v,y:l+d-g,textAnchor:_,verticalAnchor:m},k):i==="insideBottomRight"?St({x:s+c-v,y:l+d-g,textAnchor:O,verticalAnchor:m},k):ti(i)&&(se(i.x)||Xn(i.x))&&(se(i.y)||Xn(i.y))?St({x:s+La(i.x,c),y:l+La(i.y,d),textAnchor:"end",verticalAnchor:"end"},k):St({x:s+c/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},k)},V4=function(t){return"cx"in t&&se(t.cx)};function Lt(e){var t=e.offset,r=t===void 0?5:t,n=$4(e,N4),a=St({offset:r},n),i=a.viewBox,o=a.position,s=a.value,l=a.children,c=a.content,d=a.className,p=d===void 0?"":d,g=a.textBreakAll;if(!i||Ce(s)&&Ce(l)&&!P.isValidElement(c)&&!Ne(c))return null;if(P.isValidElement(c))return P.cloneElement(c,a);var m;if(Ne(c)){if(m=P.createElement(c,a),P.isValidElement(m))return m}else m=G4(a);var b=V4(i),S=Me(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return q4(a,m,S);var v=b?H4(a):W4(a);return U.createElement(ll,ho({className:Ze("recharts-label",p)},S,v,{breakAll:g}),m)}Lt.displayName="Label";var TR=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,d=t.outerRadius,p=t.x,g=t.y,m=t.top,b=t.left,S=t.width,v=t.height,O=t.clockWise,_=t.labelViewBox;if(_)return _;if(se(S)&&se(v)){if(se(p)&&se(g))return{x:p,y:g,width:S,height:v};if(se(m)&&se(b))return{x:m,y:b,width:S,height:v}}return se(p)&&se(g)?{x:p,y:g,width:0,height:0}:se(r)&&se(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:d||l||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},Y4=function(t,r){return t?t===!0?U.createElement(Lt,{key:"label-implicit",viewBox:r}):Et(t)?U.createElement(Lt,{key:"label-implicit",viewBox:r,value:t}):P.isValidElement(t)?t.type===Lt?P.cloneElement(t,{key:"label-implicit",viewBox:r}):U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):Ne(t)?U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):ti(t)?U.createElement(Lt,ho({viewBox:r},t,{key:"label-implicit"})):null:null},K4=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=TR(t),o=lr(a,Lt).map(function(l,c){return P.cloneElement(l,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return o;var s=Y4(t.label,r||i);return[s].concat(C4(o))};Lt.parseViewBox=TR;Lt.renderCallByParent=K4;function X4(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Z4=X4;const J4=ft(Z4);function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}var Q4=["valueAccessor"],e6=["data","dataKey","clockWise","id","textBreakAll"];function t6(e){return i6(e)||a6(e)||n6(e)||r6()}function r6(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function n6(e,t){if(e){if(typeof e=="string")return Pm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pm(e,t)}}function a6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function i6(e){if(Array.isArray(e))return Pm(e)}function Pm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var c6=function(t){return Array.isArray(t.value)?J4(t.value):t.value};function Mn(e){var t=e.valueAccessor,r=t===void 0?c6:t,n=f0(e,Q4),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=f0(n,e6);return!a||!a.length?null:U.createElement(dt,{className:"recharts-label-list"},a.map(function(d,p){var g=Ce(i)?r(d,p):Yt(d&&d.payload,i),m=Ce(s)?{}:{id:"".concat(s,"-").concat(p)};return U.createElement(Lt,wl({},Me(d,!0),c,m,{parentViewBox:d.parentViewBox,value:g,textBreakAll:l,viewBox:Lt.parseViewBox(Ce(o)?d:p0(p0({},d),{},{clockWise:o})),key:"label-".concat(p),index:p}))}))}Mn.displayName="LabelList";function d6(e,t){return e?e===!0?U.createElement(Mn,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Ne(e)?U.createElement(Mn,{key:"labelList-implicit",data:t,content:e}):ti(e)?U.createElement(Mn,wl({data:t},e,{key:"labelList-implicit"})):null:null}function p6(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=lr(n,Mn).map(function(o,s){return P.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=d6(e.label,t);return[i].concat(t6(a))}Mn.renderCallByParent=p6;function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:s,textAnchor:"middle",verticalAnchor:"end"};var v=(l+c)/2,O=Nt(o,s,v,g),_=O.x,w=O.y;return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},V4=function(t){var r=t.viewBox,n=t.parentViewBox,a=t.offset,i=t.position,o=r,s=o.x,l=o.y,c=o.width,d=o.height,p=d>=0?1:-1,g=p*a,h=p>0?"end":"start",b=p>0?"start":"end",S=c>=0?1:-1,v=S*a,O=S>0?"end":"start",_=S>0?"start":"end";if(i==="top"){var w={x:s+c/2,y:l-p*a,textAnchor:"middle",verticalAnchor:h};return St(St({},w),n?{height:Math.max(l-n.y,0),width:c}:{})}if(i==="bottom"){var A={x:s+c/2,y:l+d+g,textAnchor:"middle",verticalAnchor:b};return St(St({},A),n?{height:Math.max(n.y+n.height-(l+d),0),width:c}:{})}if(i==="left"){var x={x:s-v,y:l+d/2,textAnchor:O,verticalAnchor:"middle"};return St(St({},x),n?{width:Math.max(x.x-n.x,0),height:d}:{})}if(i==="right"){var E={x:s+c+v,y:l+d/2,textAnchor:_,verticalAnchor:"middle"};return St(St({},E),n?{width:Math.max(n.x+n.width-E.x,0),height:d}:{})}var k=n?{width:c,height:d}:{};return i==="insideLeft"?St({x:s+v,y:l+d/2,textAnchor:_,verticalAnchor:"middle"},k):i==="insideRight"?St({x:s+c-v,y:l+d/2,textAnchor:O,verticalAnchor:"middle"},k):i==="insideTop"?St({x:s+c/2,y:l+g,textAnchor:"middle",verticalAnchor:b},k):i==="insideBottom"?St({x:s+c/2,y:l+d-g,textAnchor:"middle",verticalAnchor:h},k):i==="insideTopLeft"?St({x:s+v,y:l+g,textAnchor:_,verticalAnchor:b},k):i==="insideTopRight"?St({x:s+c-v,y:l+g,textAnchor:O,verticalAnchor:b},k):i==="insideBottomLeft"?St({x:s+v,y:l+d-g,textAnchor:_,verticalAnchor:h},k):i==="insideBottomRight"?St({x:s+c-v,y:l+d-g,textAnchor:O,verticalAnchor:h},k):ti(i)&&(se(i.x)||Xn(i.x))&&(se(i.y)||Xn(i.y))?St({x:s+La(i.x,c),y:l+La(i.y,d),textAnchor:"end",verticalAnchor:"end"},k):St({x:s+c/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},k)},Y4=function(t){return"cx"in t&&se(t.cx)};function Lt(e){var t=e.offset,r=t===void 0?5:t,n=j4(e,C4),a=St({offset:r},n),i=a.viewBox,o=a.position,s=a.value,l=a.children,c=a.content,d=a.className,p=d===void 0?"":d,g=a.textBreakAll;if(!i||Ce(s)&&Ce(l)&&!M.isValidElement(c)&&!Ne(c))return null;if(M.isValidElement(c))return M.cloneElement(c,a);var h;if(Ne(c)){if(h=M.createElement(c,a),M.isValidElement(h))return h}else h=z4(a);var b=Y4(i),S=Me(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return H4(a,h,S);var v=b?W4(a):V4(a);return U.createElement(ul,ho({className:Ze("recharts-label",p)},S,v,{breakAll:g}),h)}Lt.displayName="Label";var TR=function(t){var r=t.cx,n=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,s=t.r,l=t.radius,c=t.innerRadius,d=t.outerRadius,p=t.x,g=t.y,h=t.top,b=t.left,S=t.width,v=t.height,O=t.clockWise,_=t.labelViewBox;if(_)return _;if(se(S)&&se(v)){if(se(p)&&se(g))return{x:p,y:g,width:S,height:v};if(se(h)&&se(b))return{x:h,y:b,width:S,height:v}}return se(p)&&se(g)?{x:p,y:g,width:0,height:0}:se(r)&&se(n)?{cx:r,cy:n,startAngle:i||a||0,endAngle:o||a||0,innerRadius:c||0,outerRadius:d||l||s||0,clockWise:O}:t.viewBox?t.viewBox:{}},K4=function(t,r){return t?t===!0?U.createElement(Lt,{key:"label-implicit",viewBox:r}):Et(t)?U.createElement(Lt,{key:"label-implicit",viewBox:r,value:t}):M.isValidElement(t)?t.type===Lt?M.cloneElement(t,{key:"label-implicit",viewBox:r}):U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):Ne(t)?U.createElement(Lt,{key:"label-implicit",content:t,viewBox:r}):ti(t)?U.createElement(Lt,ho({viewBox:r},t,{key:"label-implicit"})):null:null},X4=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var a=t.children,i=TR(t),o=lr(a,Lt).map(function(l,c){return M.cloneElement(l,{viewBox:r||i,key:"label-".concat(c)})});if(!n)return o;var s=K4(t.label,r||i);return[s].concat(D4(o))};Lt.parseViewBox=TR;Lt.renderCallByParent=X4;function Z4(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var J4=Z4;const Q4=ft(J4);function mo(e){"@babel/helpers - typeof";return mo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mo(e)}var e6=["valueAccessor"],t6=["data","dataKey","clockWise","id","textBreakAll"];function r6(e){return o6(e)||i6(e)||a6(e)||n6()}function n6(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a6(e,t){if(e){if(typeof e=="string")return $m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return $m(e,t)}}function i6(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function o6(e){if(Array.isArray(e))return $m(e)}function $m(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function c6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var d6=function(t){return Array.isArray(t.value)?Q4(t.value):t.value};function Mn(e){var t=e.valueAccessor,r=t===void 0?d6:t,n=g0(e,e6),a=n.data,i=n.dataKey,o=n.clockWise,s=n.id,l=n.textBreakAll,c=g0(n,t6);return!a||!a.length?null:U.createElement(dt,{className:"recharts-label-list"},a.map(function(d,p){var g=Ce(i)?r(d,p):Yt(d&&d.payload,i),h=Ce(s)?{}:{id:"".concat(s,"-").concat(p)};return U.createElement(Lt,_l({},Me(d,!0),c,h,{parentViewBox:d.parentViewBox,value:g,textBreakAll:l,viewBox:Lt.parseViewBox(Ce(o)?d:f0(f0({},d),{},{clockWise:o})),key:"label-".concat(p),index:p}))}))}Mn.displayName="LabelList";function p6(e,t){return e?e===!0?U.createElement(Mn,{key:"labelList-implicit",data:t}):U.isValidElement(e)||Ne(e)?U.createElement(Mn,{key:"labelList-implicit",data:t,content:e}):ti(e)?U.createElement(Mn,_l({data:t},e,{key:"labelList-implicit"})):null:null}function f6(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,a=lr(n,Mn).map(function(o,s){return M.cloneElement(o,{data:t,key:"labelList-".concat(s)})});if(!r)return a;var i=p6(e.label,t);return[i].concat(r6(a))}Mn.renderCallByParent=f6;function bo(e){"@babel/helpers - typeof";return bo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bo(e)}function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t180),",").concat(+(o>c),`, `).concat(p.x,",").concat(p.y,` - `);if(a>0){var m=Nt(r,n,a,o),b=Nt(r,n,a,c);g+="L ".concat(b.x,",").concat(b.y,` + `);if(a>0){var h=Nt(r,n,a,o),b=Nt(r,n,a,c);g+="L ".concat(b.x,",").concat(b.y,` A `).concat(a,",").concat(a,`,0, `).concat(+(Math.abs(l)>180),",").concat(+(o<=c),`, - `).concat(m.x,",").concat(m.y," Z")}else g+="L ".concat(r,",").concat(n," Z");return g},b6=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,d=t.endAngle,p=Lr(d-c),g=Cs({cx:r,cy:n,radius:i,angle:c,sign:p,cornerRadius:o,cornerIsExternal:l}),m=g.circleTangency,b=g.lineTangency,S=g.theta,v=Cs({cx:r,cy:n,radius:i,angle:d,sign:-p,cornerRadius:o,cornerIsExternal:l}),O=v.circleTangency,_=v.lineTangency,w=v.theta,A=l?Math.abs(c-d):Math.abs(c-d)-S-w;if(A<0)return s?"M ".concat(b.x,",").concat(b.y,` + `).concat(h.x,",").concat(h.y," Z")}else g+="L ".concat(r,",").concat(n," Z");return g},y6=function(t){var r=t.cx,n=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,s=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,d=t.endAngle,p=Lr(d-c),g=Ds({cx:r,cy:n,radius:i,angle:c,sign:p,cornerRadius:o,cornerIsExternal:l}),h=g.circleTangency,b=g.lineTangency,S=g.theta,v=Ds({cx:r,cy:n,radius:i,angle:d,sign:-p,cornerRadius:o,cornerIsExternal:l}),O=v.circleTangency,_=v.lineTangency,w=v.theta,A=l?Math.abs(c-d):Math.abs(c-d)-S-w;if(A<0)return s?"M ".concat(b.x,",").concat(b.y,` a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 `):AR({cx:r,cy:n,innerRadius:a,outerRadius:i,startAngle:c,endAngle:d});var x="M ".concat(b.x,",").concat(b.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(m.x,",").concat(m.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(h.x,",").concat(h.y,` A`).concat(i,",").concat(i,",0,").concat(+(A>180),",").concat(+(p<0),",").concat(O.x,",").concat(O.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(_.x,",").concat(_.y,` - `);if(a>0){var E=Cs({cx:r,cy:n,radius:a,angle:c,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),k=E.circleTangency,N=E.lineTangency,I=E.theta,D=Cs({cx:r,cy:n,radius:a,angle:d,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),L=D.circleTangency,j=D.lineTangency,q=D.theta,H=l?Math.abs(c-d):Math.abs(c-d)-I-q;if(H<0&&o===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(j.x,",").concat(j.y,` + `);if(a>0){var E=Ds({cx:r,cy:n,radius:a,angle:c,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),k=E.circleTangency,N=E.lineTangency,I=E.theta,D=Ds({cx:r,cy:n,radius:a,angle:d,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:l}),L=D.circleTangency,j=D.lineTangency,q=D.theta,H=l?Math.abs(c-d):Math.abs(c-d)-I-q;if(H<0&&o===0)return"".concat(x,"L").concat(r,",").concat(n,"Z");x+="L".concat(j.x,",").concat(j.y,` A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(L.x,",").concat(L.y,` A`).concat(a,",").concat(a,",0,").concat(+(H>180),",").concat(+(p>0),",").concat(k.x,",").concat(k.y,` - A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(N.x,",").concat(N.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},y6={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},OR=function(t){var r=h0(h0({},y6),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,d=r.startAngle,p=r.endAngle,g=r.className;if(o0&&Math.abs(d-p)<360?v=b6({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(S,b/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:p}):v=AR({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:p}),U.createElement("path",$m({},Me(r,!0),{className:m,d:v,role:"img"}))};function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function jm(){return jm=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,c=a>=0&&n>=0||a<0&&n<0?1:0,d;if(o>0&&i instanceof Array){for(var p=[0,0,0,0],g=0,m=4;go?o:i[g];d="M".concat(t,",").concat(r+s*p[0]),p[0]>0&&(d+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(c,",").concat(t+l*p[0],",").concat(r)),d+="L ".concat(t+n-l*p[1],",").concat(r),p[1]>0&&(d+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(c,`, + A`).concat(o,",").concat(o,",0,0,").concat(+(p<0),",").concat(N.x,",").concat(N.y,"Z")}else x+="L".concat(r,",").concat(n,"Z");return x},v6={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},OR=function(t){var r=m0(m0({},v6),t),n=r.cx,a=r.cy,i=r.innerRadius,o=r.outerRadius,s=r.cornerRadius,l=r.forceCornerRadius,c=r.cornerIsExternal,d=r.startAngle,p=r.endAngle,g=r.className;if(o0&&Math.abs(d-p)<360?v=y6({cx:n,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(S,b/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:p}):v=AR({cx:n,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:p}),U.createElement("path",jm({},Me(r,!0),{className:h,d:v,role:"img"}))};function yo(e){"@babel/helpers - typeof";return yo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yo(e)}function Fm(){return Fm=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0?1:-1,l=n>=0?1:-1,c=a>=0&&n>=0||a<0&&n<0?1:0,d;if(o>0&&i instanceof Array){for(var p=[0,0,0,0],g=0,h=4;go?o:i[g];d="M".concat(t,",").concat(r+s*p[0]),p[0]>0&&(d+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(c,",").concat(t+l*p[0],",").concat(r)),d+="L ".concat(t+n-l*p[1],",").concat(r),p[1]>0&&(d+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(c,`, `).concat(t+n,",").concat(r+s*p[1])),d+="L ".concat(t+n,",").concat(r+a-s*p[2]),p[2]>0&&(d+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(c,`, `).concat(t+n-l*p[2],",").concat(r+a)),d+="L ".concat(t+l*p[3],",").concat(r+a),p[3]>0&&(d+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(c,`, `).concat(t,",").concat(r+a-s*p[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);d="M ".concat(t,",").concat(r+s*b,` @@ -1345,22 +1345,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho L `).concat(t+n,",").concat(r+a-s*b,` A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t+n-l*b,",").concat(r+a,` L `).concat(t+l*b,",").concat(r+a,` - A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t,",").concat(r+a-s*b," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},C6=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),d=Math.max(i,i+s),p=Math.min(o,o+l),g=Math.max(o,o+l);return n>=c&&n<=d&&a>=p&&a<=g}return!1},D6={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},gy=function(t){var r=E0(E0({},D6),t),n=P.useRef(),a=P.useState(-1),i=_6(a,2),o=i[0],s=i[1];P.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,c=r.y,d=r.width,p=r.height,g=r.radius,m=r.className,b=r.animationEasing,S=r.animationDuration,v=r.animationBegin,O=r.isAnimationActive,_=r.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||p!==+p||d===0||p===0)return null;var w=Ze("recharts-rectangle",m);return _?U.createElement(hn,{canBegin:o>0,from:{width:d,height:p,x:l,y:c},to:{width:d,height:p,x:l,y:c},duration:S,animationEasing:b,isActive:_},function(A){var x=A.width,E=A.height,k=A.x,N=A.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:S,isActive:O,easing:b},U.createElement("path",_l({},Me(r,!0),{className:w,d:x0(k,N,x,E,g),ref:n})))}):U.createElement("path",_l({},Me(r,!0),{className:w,d:x0(l,c,d,p,g)}))};function Bm(){return Bm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function B6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var U6=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},G6=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,d=t.width,p=d===void 0?0:d,g=t.height,m=g===void 0?0:g,b=t.className,S=F6(t,L6),v=M6({x:n,y:i,top:s,left:c,width:p,height:m},S);return!se(n)||!se(i)||!se(p)||!se(m)||!se(s)||!se(c)?null:U.createElement("path",Um({},Me(v,!0),{className:Ze("recharts-cross",b),d:U6(n,i,p,m,s,c)}))},z6=e1,q6=t1,H6="[object Boolean]";function W6(e){return e===!0||e===!1||q6(e)&&z6(e)==H6}var V6=W6;const Y6=ft(V6);function Eo(e){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}function Tl(){return Tl=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:g,x:l,y:c},to:{upperWidth:d,lowerWidth:p,height:g,x:l,y:c},duration:S,animationEasing:b,isActive:O},function(w){var A=w.upperWidth,x=w.lowerWidth,E=w.height,k=w.x,N=w.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:S,easing:b},U.createElement("path",Tl({},Me(r,!0),{className:_,d:O0(k,N,A,x,E),ref:n})))}):U.createElement("g",null,U.createElement("path",Tl({},Me(r,!0),{className:_,d:O0(l,c,d,p,g)})))},i5=["option","shapeType","propTransformer","activeClassName","isActive"];function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function o5(e,t){if(e==null)return{};var r=s5(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function s5(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function k0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Al(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Rl(e){return Rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Rl(e)}function or(e,t,r){return t=IR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IR(e){var t=H5(e,"string");return Ha(t)==="symbol"?t:String(t)}function H5(e,t){if(Ha(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ha(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var W5=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=Bi().domain(Ol(0,l)).range([i,i+o-s]),d=c.domain().map(function(p){return c(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:d}},M0=function(t){return t.changedTouches&&!!t.changedTouches.length},To=function(e){U5(r,e);var t=G5(r);function r(n){var a;return F5(this,r),a=t.call(this,n),or(Br(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),or(Br(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),or(Br(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),or(Br(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),or(Br(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),or(Br(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),or(Br(a),"handleSlideDragStart",function(i){var o=M0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(Br(a),"startX"),endX:a.handleTravellerDragStart.bind(Br(a),"endX")},a.state={},a}return B5(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,p=d.length-1,g=Math.min(i,o),m=Math.max(i,o),b=r.getIndexInRange(s,g),S=r.getIndexInRange(s,m);return{startIndex:b-b%c,endIndex:S===p?p:S-S%c}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,c=Yt(o[a],l,a);return Ne(s)?s(c,a):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,c=this.props,d=c.x,p=c.width,g=c.travellerWidth,m=c.startIndex,b=c.endIndex,S=c.onChange,v=a.pageX-o;v>0?v=Math.min(v,d+p-g-l,d+p-g-s):v<0&&(v=Math.max(v,d-s,d-l));var O=this.getIndex({startX:s+v,endX:l+v});(O.startIndex!==m||O.endIndex!==b)&&S&&S(O),this.setState({startX:s+v,endX:l+v,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=M0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,c=o.endX,d=o.startX,p=this.state[l],g=this.props,m=g.x,b=g.width,S=g.travellerWidth,v=g.onChange,O=g.gap,_=g.data,w={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,m+b-S-p):A<0&&(A=Math.max(A,m-p)),w[l]=p+A;var x=this.getIndex(w),E=x.startIndex,k=x.endIndex,N=function(){var D=_.length-1;return l==="startX"&&(c>d?E%O===0:k%O===0)||cd?k%O===0:E%O===0)||c>d&&k===D};this.setState((i={},or(i,l,p+A),or(i,"brushMoveStartX",a.pageX),i),function(){v&&N()&&v(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,c=s.startX,d=s.endX,p=this.state[i],g=l.indexOf(p);if(g!==-1){var m=g+a;if(!(m===-1||m>=l.length)){var b=l[m];i==="startX"&&b>=d||i==="endX"&&b<=c||this.setState(or({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.fill,d=a.stroke;return U.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.data,d=a.children,p=a.padding,g=P.Children.only(d);return g?U.cloneElement(g,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,c=s.travellerWidth,d=s.height,p=s.traveller,g=s.ariaLabel,m=s.data,b=s.startIndex,S=s.endIndex,v=Math.max(a,this.props.x),O=Dc(Dc({},Me(this.props)),{},{x:v,y:l,width:c,height:d}),_=g||"Min value: ".concat(m[b].name,", Max value: ").concat(m[S].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(p,O))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,p=Math.min(a,i)+d,g=Math.max(Math.abs(i-a)-d,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:p,y:s,width:g,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,c=a.travellerWidth,d=a.stroke,p=this.state,g=p.startX,m=p.endX,b=5,S={pointerEvents:"none",fill:d};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(ll,kl({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,m)-b,y:s+l/2},S),this.getTextOfTick(i)),U.createElement(ll,kl({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,m)+c+b,y:s+l/2},S),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,c=a.y,d=a.width,p=a.height,g=a.alwaysShowText,m=this.state,b=m.startX,S=m.endX,v=m.isTextActive,O=m.isSlideMoving,_=m.isTravellerMoving,w=m.isTravellerFocused;if(!i||!i.length||!se(l)||!se(c)||!se(d)||!se(p)||d<=0||p<=0)return null;var A=Ze("recharts-brush",o),x=U.Children.count(s)===1,E=j5("userSelect","none");return U.createElement(dt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(b,S),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(S,"endX"),(v||O||_||w||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,c=a.stroke,d=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:i,y:o,width:s,height:l,fill:c,stroke:"none"}),U.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return U.isValidElement(a)?o=U.cloneElement(a,i):Ne(a)?o=a(i):o=r.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,c=a.travellerWidth,d=a.updateId,p=a.startIndex,g=a.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return Dc({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s},o&&o.length?W5({data:o,width:s,x:l,travellerWidth:c,startIndex:p,endIndex:g}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+s-c]);var m=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:m}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var c=Math.floor((s+l)/2);a[c]>i?l=c:s=c}return i>=a[l]?l:s}}]),r}(P.PureComponent);or(To,"displayName","Brush");or(To,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var V5=b1;function Y5(e,t){var r;return V5(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var K5=Y5,X5=nP,Z5=ia,J5=K5,Q5=Gl,e8=cu;function t8(e,t,r){var n=Q5(e)?X5:J5;return r&&e8(e,t,r)&&(t=void 0),n(e,Z5(t))}var r8=t8;const n8=ft(r8);var Wr=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},a8=lM,i8=aP,o8=ia;function s8(e,t){var r={};return t=o8(t),i8(e,function(n,a,i){a8(r,a,t(n,a,i))}),r}var l8=s8;const u8=ft(l8);function c8(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function O8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function k8(e,t){var r=e.x,n=e.y,a=A8(e,x8),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||a.height),d=parseInt(c,10),p="".concat(t.width||a.width),g=parseInt(p,10);return ki(ki(ki(ki(ki({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:d,width:g,name:t.name,radius:t.radius})}function $0(e){return U.createElement(Gm,qm({shapeType:"rectangle",propTransformer:k8,activeClassName:"recharts-active-bar"},e))}var R8=["value","background"];function Wa(e){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wa(e)}function I8(e,t){if(e==null)return{};var r=N8(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function N8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Il(){return Il=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Nl(e){return Nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Nl(e)}function Cn(e,t,r){return t=CR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CR(e){var t=j8(e,"string");return Wa(t)==="symbol"?t:String(t)}function j8(e,t){if(Wa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _u=function(e){L8(r,e);var t=M8(r);function r(){var n;C8(this,r);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(H)0&&Math.abs(q)0&&(q=Math.min((Se||0)-(H[Q-1]||0),q))});var z=q/j,W=S.layout==="vertical"?n.height:n.width;if(S.padding==="gap"&&(k=z*W/2),S.padding==="no-gap"){var K=La(t.barCategoryGap,z*W),G=z*W/2;k=G-K-(G-K)/W*K}}a==="xAxis"?N=[n.left+(w.left||0)+(k||0),n.left+n.width-(w.right||0)-(k||0)]:a==="yAxis"?N=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(k||0),n.top+n.height-(w.bottom||0)-(k||0)]:N=S.range,x&&(N=[N[1],N[0]]);var V=c4(S,i,g),J=V.scale,ae=V.realScaleType;J.domain(O).range(N),d4(J);var re=v4(J,Ir(Ir({},S),{},{realScaleType:ae}));a==="xAxis"?(L=v==="top"&&!A||v==="bottom"&&A,I=n.left,D=p[E]-L*S.height):a==="yAxis"&&(L=v==="left"&&!A||v==="right"&&A,I=p[E]-L*S.width,D=n.top);var ue=Ir(Ir(Ir({},S),re),{},{realScaleType:ae,x:I,y:D,scale:J,width:a==="xAxis"?n.width:S.width,height:a==="yAxis"?n.height:S.height});return ue.bandSize=El(ue,re),!S.hide&&a==="xAxis"?p[E]+=(L?-1:1)*ue.height:S.hide||(p[E]+=(L?-1:1)*ue.width),Ir(Ir({},m),{},Tu({},b,ue))},{})},LR=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},z8=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return LR({x:r,y:n},{x:a,y:i})},MR=function(){function e(t){F8(this,e),this.scale=t}return B8(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Tu(MR,"EPS",1e-4);var my=function(t){var r=Object.keys(t).reduce(function(n,a){return Ir(Ir({},n),{},Tu({},a,MR.create(t[a])))},{});return Ir(Ir({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return u8(a,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return NR(a,function(i,o){return r[o].isInRange(i)})}})};function q8(e){return(e%180+180)%180}var H8=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=q8(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function pK(e,t){return PR(e,t+1)}function fK(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,d=o,p=function(){var b=n==null?void 0:n[l];if(b===void 0)return{v:PR(n,c)};var S=l,v,O=function(){return v===void 0&&(v=r(b,S)),v},_=b.coordinate,w=l===0||Cl(e,_,O,d,s);w||(l=0,d=o,c+=1),w&&(d=_+e*(O()/2+a),l+=c)},g;c<=i.length;)if(g=p(),g)return g.v;return[]}function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function K0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t0?m.coordinate-v*e:m.coordinate})}else i[g]=m=Dt(Dt({},m),{},{tickCoord:m.coordinate});var O=Cl(e,m.tickCoord,S,s,l);O&&(l=m.tickCoord-e*(S()/2+a),i[g]=Dt(Dt({},m),{},{isShow:!0}))},d=o-1;d>=0;d--)c(d);return i}function yK(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var d=n[s-1],p=r(d,s-1),g=e*(d.coordinate+e*p/2-c);o[s-1]=d=Dt(Dt({},d),{},{tickCoord:g>0?d.coordinate-g*e:d.coordinate});var m=Cl(e,d.tickCoord,function(){return p},l,c);m&&(c=d.tickCoord-e*(p/2+a),o[s-1]=Dt(Dt({},d),{},{isShow:!0}))}for(var b=i?s-1:s,S=function(_){var w=o[_],A,x=function(){return A===void 0&&(A=r(w,_)),A};if(_===0){var E=e*(w.coordinate-e*x()/2-l);o[_]=w=Dt(Dt({},w),{},{tickCoord:E<0?w.coordinate-E*e:w.coordinate})}else o[_]=w=Dt(Dt({},w),{},{tickCoord:w.coordinate});var k=Cl(e,w.tickCoord,x,l,c);k&&(l=w.tickCoord+e*(x()/2+a),o[_]=Dt(Dt({},w),{},{isShow:!0}))},v=0;v=2?Lr(a[1].coordinate-a[0].coordinate):1,O=dK(i,v,m);return l==="equidistantPreserveStart"?fK(v,O,S,a,o):(l==="preserveStart"||l==="preserveStartEnd"?g=yK(v,O,S,a,o,l==="preserveStartEnd"):g=bK(v,O,S,a,o),g.filter(function(_){return _.isShow}))}var vK=["viewBox"],SK=["viewBox"],EK=["ticks"];function Va(e){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function xK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function wK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z0(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Dl(e){return Dl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dl(e)}function yy(e,t,r){return t=$R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e){var t=IK(e,"string");return Va(t)==="symbol"?t:String(t)}function IK(e,t){if(Va(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Va(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gi=function(e){TK(r,e);var t=AK(r);function r(n){var a;return wK(this,r),a=t.call(this,n),a.state={fontSize:"",letterSpacing:""},a}return _K(r,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Lc(a,vK),l=this.props,c=l.viewBox,d=Lc(l,SK);return!Ra(o,c)||!Ra(s,d)||!Ra(i,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var i=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var i=this.props,o=i.x,s=i.y,l=i.width,c=i.height,d=i.orientation,p=i.tickSize,g=i.mirror,m=i.tickMargin,b,S,v,O,_,w,A=g?-1:1,x=a.tickSize||p,E=se(a.tickCoord)?a.tickCoord:a.coordinate;switch(d){case"top":b=S=a.coordinate,O=s+ +!g*c,v=O-A*x,w=v-A*m,_=E;break;case"left":v=O=a.coordinate,S=o+ +!g*l,b=S-A*x,_=b-A*m,w=E;break;case"right":v=O=a.coordinate,S=o+ +g*l,b=S+A*x,_=b+A*m,w=E;break;default:b=S=a.coordinate,O=s+ +g*c,v=O+A*x,w=v+A*m,_=E;break}return{line:{x1:b,y1:v,x2:S,y2:O},tick:{x:_,y:w}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.orientation,d=a.mirror,p=a.axisLine,g=Gt(Gt(Gt({},Me(this.props)),Me(p)),{},{fill:"none"});if(c==="top"||c==="bottom"){var m=+(c==="top"&&!d||c==="bottom"&&d);g=Gt(Gt({},g),{},{x1:i,y1:o+m*l,x2:i+s,y2:o+m*l})}else{var b=+(c==="left"&&!d||c==="right"&&d);g=Gt(Gt({},g),{},{x1:i+b*s,y1:o,x2:i+b*s,y2:o+l})}return U.createElement("line",Aa({},g,{className:Ze("recharts-cartesian-axis-line",yr(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,c=l.tickLine,d=l.stroke,p=l.tick,g=l.tickFormatter,m=l.unit,b=Km(Gt(Gt({},this.props),{},{ticks:a}),i,o),S=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),O=Me(this.props),_=Me(p),w=Gt(Gt({},O),{},{fill:"none"},Me(c)),A=b.map(function(x,E){var k=s.getTickLineCoord(x),N=k.line,I=k.tick,D=Gt(Gt(Gt(Gt({textAnchor:S,verticalAnchor:v},O),{},{stroke:"none",fill:d},_),I),{},{index:E,payload:x,visibleTicksCount:b.length,tickFormatter:g});return U.createElement(dt,Aa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},Wi(s.props,x,E)),c&&U.createElement("line",Aa({},w,N,{className:Ze("recharts-cartesian-axis-tick-line",yr(c,"className"))})),p&&r.renderTickItem(p,D,"".concat(Ne(g)?g(x.value,E):x.value).concat(m||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var a=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,c=i.ticksGenerator,d=i.className,p=i.hide;if(p)return null;var g=this.props,m=g.ticks,b=Lc(g,EK),S=m;return Ne(c)&&(S=m&&m.length>0?c(this.props):c(b)),s<=0||l<=0||!S||!S.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",d),ref:function(O){a.layerReference=O}},o&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return U.isValidElement(a)?s=U.cloneElement(a,i):Ne(a)?s=a(i):s=U.createElement(ll,Aa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),r}(P.Component);yy(Gi,"displayName","CartesianAxis");yy(Gi,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var NK=["x1","y1","x2","y2","key"],CK=["offset"];function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function Zm(){return Zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Q0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function vy(e,t,r){return t=jR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=UK(e,"string");return Ya(t)==="symbol"?t:String(t)}function UK(e,t){if(Ya(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ya(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sy=function(e){PK(r,e);var t=$K(r);function r(){return LK(this,r),t.apply(this,arguments)}return MK(r,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,c=o.horizontal;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,c=o.vertical;if(!a||!a.length)return null;var d=a.map(function(p,g){var m=On(On({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(g),index:g});return r.renderLineItem(c,m)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}},{key:"renderVerticalStripes",value:function(a){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+l-l)}).sort(function(b,S){return b-S});l!==g[0]&&g.unshift(0);var m=g.map(function(b,S){var v=!g[S+1],O=v?l+d-b:g[S+1]-b;if(O<=0)return null;var _=S%i.length;return U.createElement("rect",{key:"react-".concat(S),x:b,y:c,width:O,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}},{key:"renderHorizontalStripes",value:function(a){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+c-c)}).sort(function(b,S){return b-S});c!==g[0]&&g.unshift(0);var m=g.map(function(b,S){var v=!g[S+1],O=v?c+p-b:g[S+1]-b;if(O<=0)return null;var _=S%i.length;return U.createElement("rect",{key:"react-".concat(S),y:b,x:l,height:O,width:d,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}},{key:"renderBackground",value:function(){var a=this.props.fill;if(!a||a==="none")return null;var i=this.props,o=i.fillOpacity,s=i.x,l=i.y,c=i.width,d=i.height;return U.createElement("rect",{x:s,y:l,width:c,height:d,stroke:"none",fill:a,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.horizontal,d=a.vertical,p=a.horizontalCoordinatesGenerator,g=a.verticalCoordinatesGenerator,m=a.xAxis,b=a.yAxis,S=a.offset,v=a.chartWidth,O=a.chartHeight,_=a.syncWithTicks,w=a.horizontalValues,A=a.verticalValues;if(!se(s)||s<=0||!se(l)||l<=0||!se(i)||i!==+i||!se(o)||o!==+o)return null;var x=this.props,E=x.horizontalPoints,k=x.verticalPoints;if((!E||!E.length)&&Ne(p)){var N=w&&w.length;E=p({yAxis:b?On(On({},b),{},{ticks:N?w:b.ticks}):void 0,width:v,height:O,offset:S},N?!0:_)}if((!k||!k.length)&&Ne(g)){var I=A&&A.length;k=g({xAxis:m?On(On({},m),{},{ticks:I?A:m.ticks}):void 0,width:v,height:O,offset:S},I?!0:_)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),c&&this.renderHorizontal(E),d&&this.renderVertical(k),c&&this.renderHorizontalStripes(E),d&&this.renderVerticalStripes(k))}}],[{key:"renderLineItem",value:function(a,i){var o;if(U.isValidElement(a))o=U.cloneElement(a,i);else if(Ne(a))o=a(i);else{var s=i.x1,l=i.y1,c=i.x2,d=i.y2,p=i.key,g=J0(i,NK),m=Me(g);m.offset;var b=J0(m,CK);o=U.createElement("line",Zm({},b,{x1:s,y1:l,x2:c,y2:d,fill:"none",key:p}))}return o}}]),r}(P.PureComponent);vy(Sy,"displayName","CartesianGrid");vy(Sy,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Au=function(){return null};Au.displayName="ZAxis";Au.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var GK=["option","isActive"];function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function HK(e){var t=e.option,r=e.isActive,n=zK(e,GK);return typeof t=="string"?U.createElement(Gm,zi({option:U.createElement(lu,zi({type:t},n)),isActive:r,shapeType:"symbols"},n)):U.createElement(Gm,zi({option:t,isActive:r,shapeType:"symbols"},n))}function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(e)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ml(e)}function Dn(e,t,r){return t=FR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FR(e){var t=JK(e,"string");return Ka(t)==="symbol"?t:String(t)}function JK(e,t){if(Ka(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ka(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ko=function(e){YK(r,e);var t=KK(r);function r(){var n;WK(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var n9=r9,a9=kR;function i9(e){var t=a9(e),r=t%1;return t===t?r?t-r:t:0}var o9=i9,s9=ok,l9=ia,u9=o9,c9=Math.max;function d9(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:u9(r);return a<0&&(a=c9(n+a,0)),s9(e,l9(t),a)}var p9=d9,f9=n9,g9=p9,h9=f9(g9),m9=h9;const b9=ft(m9);var y9="Invariant failed";function v9(e,t){if(!e)throw new Error(y9)}function BR(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=Nt(t,r,n,a),s=Nt(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function nx(e){return w9(e)||x9(e)||E9(e)||S9()}function S9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E9(e,t){if(e){if(typeof e=="string")return eb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eb(e,t)}}function x9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function w9(e){if(Array.isArray(e))return eb(e)}function eb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function j9(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function F9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sx(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pl(e){return Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pl(e)}function Za(e){return V9(e)||W9(e)||zR(e)||H9()}function H9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zR(e,t){if(e){if(typeof e=="string")return nb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nb(e,t)}}function W9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function V9(e){if(Array.isArray(e))return nb(e)}function nb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&se(a)&&se(i)?t.slice(a,i+1):[]};function WR(e){return e==="number"?[0,"auto"]:void 0}var VR=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=Ru(r,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce(function(l,c){var d,p=c.props.hide;if(p)return l;var g=(d=c.props.data)!==null&&d!==void 0?d:r;g&&t.dataStartIndex+t.dataEndIndex!==0&&(g=g.slice(t.dataStartIndex,t.dataEndIndex+1));var m;if(o.dataKey&&!o.allowDuplicatedCategory){var b=g===void 0?s:g;m=Ws(b,o.dataKey,a)}else m=g&&g[n]||s[n];return m?[].concat(Za(l),[_R(c,m)]):l},[])},ux=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=Z9(i,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,d=a4(o,s,c,l);if(d>=0&&c){var p=c[d]&&c[d].value,g=VR(t,r,d,p),m=J9(n,s,d,i);return{activeTooltipIndex:d,activeLabel:p,activePayload:g,activeCoordinate:m}}return null},Q9=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=t.stackOffset,m=xR(d,i);return n.reduce(function(b,S){var v,O=S.props,_=O.type,w=O.dataKey,A=O.allowDataOverflow,x=O.allowDuplicatedCategory,E=O.scale,k=O.ticks,N=O.includeHidden,I=S.props[o];if(b[I])return b;var D=Ru(t.data,{graphicalItems:a.filter(function(re){return re.props[o]===I}),dataStartIndex:l,dataEndIndex:c}),L=D.length,j,q,H;I9(S.props.domain,A,_)&&(j=Lm(S.props.domain,null,A),m&&(_==="number"||E!=="auto")&&(H=Ui(D,w,"category")));var z=WR(_);if(!j||j.length===0){var W,K=(W=S.props.domain)!==null&&W!==void 0?W:z;if(w){if(j=Ui(D,w,_),_==="category"&&m){var G=YF(j);x&&G?(q=j,j=Ol(0,L)):x||(j=o0(K,j,S).reduce(function(re,ue){return re.indexOf(ue)>=0?re:[].concat(Za(re),[ue])},[]))}else if(_==="category")x?j=j.filter(function(re){return re!==""&&!Ce(re)}):j=o0(K,j,S).reduce(function(re,ue){return re.indexOf(ue)>=0||ue===""||Ce(ue)?re:[].concat(Za(re),[ue])},[]);else if(_==="number"){var V=u4(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),w,i,d);V&&(j=V)}m&&(_==="number"||E!=="auto")&&(H=Ui(D,w,"category"))}else m?j=Ol(0,L):s&&s[I]&&s[I].hasStack&&_==="number"?j=g==="expand"?[0,1]:wR(s[I].stackGroups,l,c):j=ER(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),_,d,!0);if(_==="number")j=tb(p,j,I,i,k),K&&(j=Lm(K,j,A));else if(_==="category"&&K){var J=K,ae=j.every(function(re){return J.indexOf(re)>=0});ae&&(j=J)}}return Z(Z({},b),{},be({},I,Z(Z({},S.props),{},{axisType:i,domain:j,categoricalDomain:H,duplicateDomain:q,originalDomain:(v=S.props.domain)!==null&&v!==void 0?v:z,isCategorical:m,layout:d})))},{})},eX=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=Ru(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),m=g.length,b=xR(d,i),S=-1;return n.reduce(function(v,O){var _=O.props[o],w=WR("number");if(!v[_]){S++;var A;return b?A=Ol(0,m):s&&s[_]&&s[_].hasStack?(A=wR(s[_].stackGroups,l,c),A=tb(p,A,_,i)):(A=Lm(w,ER(g,n.filter(function(x){return x.props[o]===_&&!x.props.hide}),"number",d),a.defaultProps.allowDataOverflow),A=tb(p,A,_,i)),Z(Z({},v),{},be({},_,Z(Z({axisType:i},a.defaultProps),{},{hide:!0,orientation:yr(K9,"".concat(i,".").concat(S%2),null),domain:A,originalDomain:w,isCategorical:b,layout:d})))}return v},{})},tX=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.children,p="".concat(a,"Id"),g=lr(d,i),m={};return g&&g.length?m=Q9(t,{axes:g,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(m=eX(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),m},rX=function(t){var r=kn(t),n=Rn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Fb(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:El(r,n)}},cx=function(t){var r=t.children,n=t.defaultShowTooltip,a=ln(r,To),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},nX=function(t){return!t||!t.length?!1:t.some(function(r){var n=pn(r&&r.type);return n&&n.indexOf("Bar")>=0})},dx=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},aX=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,d=n.height,p=n.children,g=n.margin||{},m=ln(p,To),b=ln(p,Ki),S=Object.keys(l).reduce(function(x,E){var k=l[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,x[N]+k.width)):x},{left:g.left||0,right:g.right||0}),v=Object.keys(o).reduce(function(x,E){var k=o[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,yr(x,"".concat(N))+k.height)):x},{top:g.top||0,bottom:g.bottom||0}),O=Z(Z({},v),S),_=O.bottom;m&&(O.bottom+=m.props.height||To.defaultProps.height),b&&r&&(O=s4(O,a,n,r));var w=c-O.left-O.right,A=d-O.top-O.bottom;return Z(Z({brushBottom:_},O),{},{width:Math.max(w,0),height:Math.max(A,0)})},iX=function(t){var r,n=t.chartName,a=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,c=t.axisComponents,d=t.legendContent,p=t.formatAxisMap,g=t.defaultProps,m=function(v,O){var _=O.graphicalItems,w=O.stackGroups,A=O.offset,x=O.updateId,E=O.dataStartIndex,k=O.dataEndIndex,N=v.barSize,I=v.layout,D=v.barGap,L=v.barCategoryGap,j=v.maxBarSize,q=dx(I),H=q.numericAxisName,z=q.cateAxisName,W=nX(_),K=W&&i4({barSize:N,stackGroups:w}),G=[];return _.forEach(function(V,J){var ae=Ru(v.data,{graphicalItems:[V],dataStartIndex:E,dataEndIndex:k}),re=V.props,ue=re.dataKey,Se=re.maxBarSize,Q=V.props["".concat(H,"Id")],Ie=V.props["".concat(z,"Id")],Ue={},xe=c.reduce(function($e,Ye){var $t,Kt=O["".concat(Ye.axisType,"Map")],te=V.props["".concat(Ye.axisType,"Id")];Kt&&Kt[te]||Ye.axisType==="zAxis"||v9(!1);var de=Kt[te];return Z(Z({},$e),{},($t={},be($t,Ye.axisType,de),be($t,"".concat(Ye.axisType,"Ticks"),Rn(de)),$t))},Ue),ee=xe[z],oe=xe["".concat(z,"Ticks")],ie=w&&w[Q]&&w[Q].hasStack&&E4(V,w[Q].stackGroups),X=pn(V.type).indexOf("Bar")>=0,Ee=El(ee,oe),fe=[];if(X){var he,je,nt=Ce(Se)?j:Se,et=(he=(je=El(ee,oe,!0))!==null&&je!==void 0?je:nt)!==null&&he!==void 0?he:0;fe=o4({barGap:D,barCategoryGap:L,bandSize:et!==Ee?et:Ee,sizeList:K[Ie],maxBarSize:nt}),et!==Ee&&(fe=fe.map(function($e){return Z(Z({},$e),{},{position:Z(Z({},$e.position),{},{offset:$e.position.offset-et/2})})}))}var tr=V&&V.type&&V.type.getComposedData;if(tr){var Pe;G.push({props:Z(Z({},tr(Z(Z({},xe),{},{displayedData:ae,props:v,dataKey:ue,item:V,bandSize:Ee,barPosition:fe,offset:A,stackedData:ie,layout:I,dataStartIndex:E,dataEndIndex:k}))),{},(Pe={key:V.key||"item-".concat(J)},be(Pe,H,xe[H]),be(Pe,z,xe[z]),be(Pe,"animationId",x),Pe)),childIndex:oB(V,v.children),item:V})}}),G},b=function(v,O){var _=v.props,w=v.dataStartIndex,A=v.dataEndIndex,x=v.updateId;if(!Jv({props:_}))return null;var E=_.children,k=_.layout,N=_.stackOffset,I=_.data,D=_.reverseStackOrder,L=dx(k),j=L.numericAxisName,q=L.cateAxisName,H=lr(E,a),z=y4(I,H,"".concat(j,"Id"),"".concat(q,"Id"),N,D),W=c.reduce(function(ae,re){var ue="".concat(re.axisType,"Map");return Z(Z({},ae),{},be({},ue,tX(_,Z(Z({},re),{},{graphicalItems:H,stackGroups:re.axisType===j&&z,dataStartIndex:w,dataEndIndex:A}))))},{}),K=aX(Z(Z({},W),{},{props:_,graphicalItems:H}),O==null?void 0:O.legendBBox);Object.keys(W).forEach(function(ae){W[ae]=p(_,W[ae],K,ae.replace("Map",""),n)});var G=W["".concat(q,"Map")],V=rX(G),J=m(_,Z(Z({},W),{},{dataStartIndex:w,dataEndIndex:A,updateId:x,graphicalItems:H,stackGroups:z,offset:K}));return Z(Z({formattedGraphicalItems:J,graphicalItems:H,offset:K,stackGroups:z},V),W)};return r=function(S){U9(O,S);var v=G9(O);function O(_){var w,A,x;return F9(this,O),x=v.call(this,_),be(Ae(x),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),be(Ae(x),"accessibilityManager",new R9),be(Ae(x),"handleLegendBBoxUpdate",function(E){if(E){var k=x.state,N=k.dataStartIndex,I=k.dataEndIndex,D=k.updateId;x.setState(Z({legendBBox:E},b({props:x.props,dataStartIndex:N,dataEndIndex:I,updateId:D},Z(Z({},x.state),{},{legendBBox:E}))))}}),be(Ae(x),"handleReceiveSyncEvent",function(E,k,N){if(x.props.syncId===E){if(N===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(k)}}),be(Ae(x),"handleBrushChange",function(E){var k=E.startIndex,N=E.endIndex;if(k!==x.state.dataStartIndex||N!==x.state.dataEndIndex){var I=x.state.updateId;x.setState(function(){return Z({dataStartIndex:k,dataEndIndex:N},b({props:x.props,dataStartIndex:k,dataEndIndex:N,updateId:I},x.state))}),x.triggerSyncEvent({dataStartIndex:k,dataEndIndex:N})}}),be(Ae(x),"handleMouseEnter",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseEnter;Ne(I)&&I(N,E)}}),be(Ae(x),"triggeredAfterMouseMove",function(E){var k=x.getMouseInfo(E),N=k?Z(Z({},k),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseMove;Ne(I)&&I(N,E)}),be(Ae(x),"handleItemMouseEnter",function(E){x.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),be(Ae(x),"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),be(Ae(x),"handleMouseMove",function(E){E.persist(),x.throttleTriggeredAfterMouseMove(E)}),be(Ae(x),"handleMouseLeave",function(E){var k={isTooltipActive:!1};x.setState(k),x.triggerSyncEvent(k);var N=x.props.onMouseLeave;Ne(N)&&N(k,E)}),be(Ae(x),"handleOuterEvent",function(E){var k=iB(E),N=yr(x.props,"".concat(k));if(k&&Ne(N)){var I,D;/.*touch.*/i.test(k)?D=x.getMouseInfo(E.changedTouches[0]):D=x.getMouseInfo(E),N((I=D)!==null&&I!==void 0?I:{},E)}}),be(Ae(x),"handleClick",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onClick;Ne(I)&&I(N,E)}}),be(Ae(x),"handleMouseDown",function(E){var k=x.props.onMouseDown;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleMouseUp",function(E){var k=x.props.onMouseUp;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),be(Ae(x),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseDown(E.changedTouches[0])}),be(Ae(x),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseUp(E.changedTouches[0])}),be(Ae(x),"triggerSyncEvent",function(E){x.props.syncId!==void 0&&Mc.emit(Pc,x.props.syncId,E,x.eventEmitterSymbol)}),be(Ae(x),"applySyncEvent",function(E){var k=x.props,N=k.layout,I=k.syncMethod,D=x.state.updateId,L=E.dataStartIndex,j=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)x.setState(Z({dataStartIndex:L,dataEndIndex:j},b({props:x.props,dataStartIndex:L,dataEndIndex:j,updateId:D},x.state)));else if(E.activeTooltipIndex!==void 0){var q=E.chartX,H=E.chartY,z=E.activeTooltipIndex,W=x.state,K=W.offset,G=W.tooltipTicks;if(!K)return;if(typeof I=="function")z=I(G,E);else if(I==="value"){z=-1;for(var V=0;V=0){var ie,X;if(q.dataKey&&!q.allowDuplicatedCategory){var Ee=typeof q.dataKey=="function"?oe:"payload.".concat(q.dataKey.toString());ie=Ws(V,Ee,z),X=J&&ae&&Ws(ae,Ee,z)}else ie=V==null?void 0:V[H],X=J&&ae&&ae[H];if(Ie||Q){var fe=E.props.activeIndex!==void 0?E.props.activeIndex:H;return[P.cloneElement(E,Z(Z(Z({},I.props),xe),{},{activeIndex:fe})),null,null]}if(!Ce(ie))return[ee].concat(Za(x.renderActivePoints({item:I,activePoint:ie,basePoint:X,childIndex:H,isRange:J})))}else{var he,je=(he=x.getItemByXY(x.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:ee},nt=je.graphicalItem,et=nt.item,tr=et===void 0?E:et,Pe=nt.childIndex,$e=Z(Z(Z({},I.props),xe),{},{activeIndex:Pe});return[P.cloneElement(tr,$e),null,null]}return J?[ee,null,null]:[ee,null]}),be(Ae(x),"renderCustomized",function(E,k,N){return P.cloneElement(E,Z(Z({key:"recharts-customized-".concat(N)},x.props),x.state))}),be(Ae(x),"renderMap",{CartesianGrid:{handler:x.renderGrid,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:x.renderReferenceElement},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:x.renderXAxis},YAxis:{handler:x.renderYAxis},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((w=_.id)!==null&&w!==void 0?w:Uo("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=xk(x.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),x.state={},x}return B9(O,[{key:"componentDidMount",value:function(){var w,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(w,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var x,E;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ln(this.props.children,Zn);if(w&&typeof w.props.shared=="boolean"){var A=w.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var A=this.container,x=A.getBoundingClientRect(),E=qH(x),k={chartX:Math.round(w.pageX-E.left),chartY:Math.round(w.pageY-E.top)},N=x.width/A.offsetWidth||1,I=this.inRange(k.chartX,k.chartY,N);if(!I)return null;var D=this.state,L=D.xAxisMap,j=D.yAxisMap,q=this.getTooltipEventType();if(q!=="axis"&&L&&j){var H=kn(L).scale,z=kn(j).scale,W=H&&H.invert?H.invert(k.chartX):null,K=z&&z.invert?z.invert(k.chartY):null;return Z(Z({},k),{},{xValue:W,yValue:K})}var G=ux(this.state,this.props.data,this.props.layout,I);return G?Z(Z({},k),G):null}},{key:"inRange",value:function(w,A){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,k=w/x,N=A/x;if(E==="horizontal"||E==="vertical"){var I=this.state.offset,D=k>=I.left&&k<=I.left+I.width&&N>=I.top&&N<=I.top+I.height;return D?{x:k,y:N}:null}var L=this.state,j=L.angleAxisMap,q=L.radiusAxisMap;if(j&&q){var H=kn(j);return u0({x:k,y:N},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,A=this.getTooltipEventType(),x=ln(w,Zn),E={};x&&A==="axis"&&(x.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var k=Vs(this.props,this.handleOuterEvent);return Z(Z({},k),E)}},{key:"addListener",value:function(){Mc.on(Pc,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Mc.removeListener(Pc,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,A,x){for(var E=this.state.formattedGraphicalItems,k=0,N=E.length;kh.jsx(hy,{cx:e,cy:t,fill:M.blueTextAccent,r:2}),lX=()=>{const e=Pt(),t=[...(e==null?void 0:e.data)||[]].sort((a,i)=>(a.year||0)-(i.year||0)),r=t.map(a=>a.year).filter(a=>a),n=t.map(a=>a.rate).filter(a=>a);return h.jsx(uX,{direction:"column",px:24,py:16,children:h.jsx($H,{height:"100%",width:"100%",children:h.jsxs(oX,{margin:{bottom:20,left:20,right:20,top:20},children:[h.jsx(Sy,{stroke:"#f5f5f5"}),h.jsx(Ou,{dataKey:"year",domain:[Math.min(...r),Math.max(...r)],label:{fill:M.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:M.white,fontSize:"8px"},type:"number"}),h.jsx(ku,{color:"#000",dataKey:"rate",domain:[Math.min(...n),Math.max(...n)],label:{angle:-90,fill:M.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:M.white,fontSize:"8px"},type:"number"}),h.jsx(Zn,{cursor:{strokeDasharray:"3 3"}}),h.jsx(Ko,{data:t,fill:M.blueTextAccent,line:!0,name:"A scatter",shape:h.jsx(sX,{})})]})})})},uX=B(F)` + A `).concat(b,",").concat(b,",0,0,").concat(c,",").concat(t,",").concat(r+a-s*b," Z")}else d="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(a," h ").concat(-n," Z");return d},D6=function(t,r){if(!t||!r)return!1;var n=t.x,a=t.y,i=r.x,o=r.y,s=r.width,l=r.height;if(Math.abs(s)>0&&Math.abs(l)>0){var c=Math.min(i,i+s),d=Math.max(i,i+s),p=Math.min(o,o+l),g=Math.max(o,o+l);return n>=c&&n<=d&&a>=p&&a<=g}return!1},L6={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},hy=function(t){var r=x0(x0({},L6),t),n=M.useRef(),a=M.useState(-1),i=T6(a,2),o=i[0],s=i[1];M.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var A=n.current.getTotalLength();A&&s(A)}catch{}},[]);var l=r.x,c=r.y,d=r.width,p=r.height,g=r.radius,h=r.className,b=r.animationEasing,S=r.animationDuration,v=r.animationBegin,O=r.isAnimationActive,_=r.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||p!==+p||d===0||p===0)return null;var w=Ze("recharts-rectangle",h);return _?U.createElement(hn,{canBegin:o>0,from:{width:d,height:p,x:l,y:c},to:{width:d,height:p,x:l,y:c},duration:S,animationEasing:b,isActive:_},function(A){var x=A.width,E=A.height,k=A.x,N=A.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:S,isActive:O,easing:b},U.createElement("path",Tl({},Me(r,!0),{className:w,d:w0(k,N,x,E,g),ref:n})))}):U.createElement("path",Tl({},Me(r,!0),{className:w,d:w0(l,c,d,p,g)}))};function Um(){return Um=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function U6(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}var G6=function(t,r,n,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(r,"h").concat(n)},z6=function(t){var r=t.x,n=r===void 0?0:r,a=t.y,i=a===void 0?0:a,o=t.top,s=o===void 0?0:o,l=t.left,c=l===void 0?0:l,d=t.width,p=d===void 0?0:d,g=t.height,h=g===void 0?0:g,b=t.className,S=B6(t,M6),v=P6({x:n,y:i,top:s,left:c,width:p,height:h},S);return!se(n)||!se(i)||!se(p)||!se(h)||!se(s)||!se(c)?null:U.createElement("path",Gm({},Me(v,!0),{className:Ze("recharts-cross",b),d:G6(n,i,p,h,s,c)}))},q6=e1,H6=t1,W6="[object Boolean]";function V6(e){return e===!0||e===!1||H6(e)&&q6(e)==W6}var Y6=V6;const K6=ft(Y6);function Eo(e){"@babel/helpers - typeof";return Eo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Eo(e)}function Al(){return Al=Object.assign?Object.assign.bind():function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r0,from:{upperWidth:0,lowerWidth:0,height:g,x:l,y:c},to:{upperWidth:d,lowerWidth:p,height:g,x:l,y:c},duration:S,animationEasing:b,isActive:O},function(w){var A=w.upperWidth,x=w.lowerWidth,E=w.height,k=w.x,N=w.y;return U.createElement(hn,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:S,easing:b},U.createElement("path",Al({},Me(r,!0),{className:_,d:k0(k,N,A,x,E),ref:n})))}):U.createElement("g",null,U.createElement("path",Al({},Me(r,!0),{className:_,d:k0(l,c,d,p,g)})))},o5=["option","shapeType","propTransformer","activeClassName","isActive"];function xo(e){"@babel/helpers - typeof";return xo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xo(e)}function s5(e,t){if(e==null)return{};var r=l5(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function l5(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function R0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Ol(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Il(e){return Il=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Il(e)}function or(e,t,r){return t=IR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IR(e){var t=W5(e,"string");return Ha(t)==="symbol"?t:String(t)}function W5(e,t){if(Ha(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ha(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var V5=function(t){var r=t.data,n=t.startIndex,a=t.endIndex,i=t.x,o=t.width,s=t.travellerWidth;if(!r||!r.length)return{};var l=r.length,c=Bi().domain(kl(0,l)).range([i,i+o-s]),d=c.domain().map(function(p){return c(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(a),scale:c,scaleValues:d}},P0=function(t){return t.changedTouches&&!!t.changedTouches.length},To=function(e){G5(r,e);var t=z5(r);function r(n){var a;return B5(this,r),a=t.call(this,n),or(Br(a),"handleDrag",function(i){a.leaveTimer&&(clearTimeout(a.leaveTimer),a.leaveTimer=null),a.state.isTravellerMoving?a.handleTravellerMove(i):a.state.isSlideMoving&&a.handleSlideDrag(i)}),or(Br(a),"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&a.handleDrag(i.changedTouches[0])}),or(Br(a),"handleDragEnd",function(){a.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=a.props,o=i.endIndex,s=i.onDragEnd,l=i.startIndex;s==null||s({endIndex:o,startIndex:l})}),a.detachDragEndListener()}),or(Br(a),"handleLeaveWrapper",function(){(a.state.isTravellerMoving||a.state.isSlideMoving)&&(a.leaveTimer=window.setTimeout(a.handleDragEnd,a.props.leaveTimeOut))}),or(Br(a),"handleEnterSlideOrTraveller",function(){a.setState({isTextActive:!0})}),or(Br(a),"handleLeaveSlideOrTraveller",function(){a.setState({isTextActive:!1})}),or(Br(a),"handleSlideDragStart",function(i){var o=P0(i)?i.changedTouches[0]:i;a.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:o.pageX}),a.attachDragEndListener()}),a.travellerDragStartHandlers={startX:a.handleTravellerDragStart.bind(Br(a),"startX"),endX:a.handleTravellerDragStart.bind(Br(a),"endX")},a.state={},a}return U5(r,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(a){var i=a.startX,o=a.endX,s=this.state.scaleValues,l=this.props,c=l.gap,d=l.data,p=d.length-1,g=Math.min(i,o),h=Math.max(i,o),b=r.getIndexInRange(s,g),S=r.getIndexInRange(s,h);return{startIndex:b-b%c,endIndex:S===p?p:S-S%c}}},{key:"getTextOfTick",value:function(a){var i=this.props,o=i.data,s=i.tickFormatter,l=i.dataKey,c=Yt(o[a],l,a);return Ne(s)?s(c,a):c}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(a){var i=this.state,o=i.slideMoveStartX,s=i.startX,l=i.endX,c=this.props,d=c.x,p=c.width,g=c.travellerWidth,h=c.startIndex,b=c.endIndex,S=c.onChange,v=a.pageX-o;v>0?v=Math.min(v,d+p-g-l,d+p-g-s):v<0&&(v=Math.max(v,d-s,d-l));var O=this.getIndex({startX:s+v,endX:l+v});(O.startIndex!==h||O.endIndex!==b)&&S&&S(O),this.setState({startX:s+v,endX:l+v,slideMoveStartX:a.pageX})}},{key:"handleTravellerDragStart",value:function(a,i){var o=P0(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:a,brushMoveStartX:o.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(a){var i,o=this.state,s=o.brushMoveStartX,l=o.movingTravellerId,c=o.endX,d=o.startX,p=this.state[l],g=this.props,h=g.x,b=g.width,S=g.travellerWidth,v=g.onChange,O=g.gap,_=g.data,w={startX:this.state.startX,endX:this.state.endX},A=a.pageX-s;A>0?A=Math.min(A,h+b-S-p):A<0&&(A=Math.max(A,h-p)),w[l]=p+A;var x=this.getIndex(w),E=x.startIndex,k=x.endIndex,N=function(){var D=_.length-1;return l==="startX"&&(c>d?E%O===0:k%O===0)||cd?k%O===0:E%O===0)||c>d&&k===D};this.setState((i={},or(i,l,p+A),or(i,"brushMoveStartX",a.pageX),i),function(){v&&N()&&v(x)})}},{key:"handleTravellerMoveKeyboard",value:function(a,i){var o=this,s=this.state,l=s.scaleValues,c=s.startX,d=s.endX,p=this.state[i],g=l.indexOf(p);if(g!==-1){var h=g+a;if(!(h===-1||h>=l.length)){var b=l[h];i==="startX"&&b>=d||i==="endX"&&b<=c||this.setState(or({},i,b),function(){o.props.onChange(o.getIndex({startX:o.state.startX,endX:o.state.endX}))})}}}},{key:"renderBackground",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.fill,d=a.stroke;return U.createElement("rect",{stroke:d,fill:c,x:i,y:o,width:s,height:l})}},{key:"renderPanorama",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.data,d=a.children,p=a.padding,g=M.Children.only(d);return g?U.cloneElement(g,{x:i,y:o,width:s,height:l,margin:p,compact:!0,data:c}):null}},{key:"renderTravellerLayer",value:function(a,i){var o=this,s=this.props,l=s.y,c=s.travellerWidth,d=s.height,p=s.traveller,g=s.ariaLabel,h=s.data,b=s.startIndex,S=s.endIndex,v=Math.max(a,this.props.x),O=Lc(Lc({},Me(this.props)),{},{x:v,y:l,width:c,height:d}),_=g||"Min value: ".concat(h[b].name,", Max value: ").concat(h[S].name);return U.createElement(dt,{tabIndex:0,role:"slider","aria-label":_,"aria-valuenow":a,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(A){["ArrowLeft","ArrowRight"].includes(A.key)&&(A.preventDefault(),A.stopPropagation(),o.handleTravellerMoveKeyboard(A.key==="ArrowRight"?1:-1,i))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(p,O))}},{key:"renderSlide",value:function(a,i){var o=this.props,s=o.y,l=o.height,c=o.stroke,d=o.travellerWidth,p=Math.min(a,i)+d,g=Math.max(Math.abs(i-a)-d,0);return U.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:c,fillOpacity:.2,x:p,y:s,width:g,height:l})}},{key:"renderText",value:function(){var a=this.props,i=a.startIndex,o=a.endIndex,s=a.y,l=a.height,c=a.travellerWidth,d=a.stroke,p=this.state,g=p.startX,h=p.endX,b=5,S={pointerEvents:"none",fill:d};return U.createElement(dt,{className:"recharts-brush-texts"},U.createElement(ul,Rl({textAnchor:"end",verticalAnchor:"middle",x:Math.min(g,h)-b,y:s+l/2},S),this.getTextOfTick(i)),U.createElement(ul,Rl({textAnchor:"start",verticalAnchor:"middle",x:Math.max(g,h)+c+b,y:s+l/2},S),this.getTextOfTick(o)))}},{key:"render",value:function(){var a=this.props,i=a.data,o=a.className,s=a.children,l=a.x,c=a.y,d=a.width,p=a.height,g=a.alwaysShowText,h=this.state,b=h.startX,S=h.endX,v=h.isTextActive,O=h.isSlideMoving,_=h.isTravellerMoving,w=h.isTravellerFocused;if(!i||!i.length||!se(l)||!se(c)||!se(d)||!se(p)||d<=0||p<=0)return null;var A=Ze("recharts-brush",o),x=U.Children.count(s)===1,E=F5("userSelect","none");return U.createElement(dt,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:E},this.renderBackground(),x&&this.renderPanorama(),this.renderSlide(b,S),this.renderTravellerLayer(b,"startX"),this.renderTravellerLayer(S,"endX"),(v||O||_||w||g)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(a){var i=a.x,o=a.y,s=a.width,l=a.height,c=a.stroke,d=Math.floor(o+l/2)-1;return U.createElement(U.Fragment,null,U.createElement("rect",{x:i,y:o,width:s,height:l,fill:c,stroke:"none"}),U.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),U.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(a,i){var o;return U.isValidElement(a)?o=U.cloneElement(a,i):Ne(a)?o=a(i):o=r.renderDefaultTraveller(i),o}},{key:"getDerivedStateFromProps",value:function(a,i){var o=a.data,s=a.width,l=a.x,c=a.travellerWidth,d=a.updateId,p=a.startIndex,g=a.endIndex;if(o!==i.prevData||d!==i.prevUpdateId)return Lc({prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s},o&&o.length?V5({data:o,width:s,x:l,travellerWidth:c,startIndex:p,endIndex:g}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||l!==i.prevX||c!==i.prevTravellerWidth)){i.scale.range([l,l+s-c]);var h=i.scale.domain().map(function(b){return i.scale(b)});return{prevData:o,prevTravellerWidth:c,prevUpdateId:d,prevX:l,prevWidth:s,startX:i.scale(a.startIndex),endX:i.scale(a.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(a,i){for(var o=a.length,s=0,l=o-1;l-s>1;){var c=Math.floor((s+l)/2);a[c]>i?l=c:s=c}return i>=a[l]?l:s}}]),r}(M.PureComponent);or(To,"displayName","Brush");or(To,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Y5=b1;function K5(e,t){var r;return Y5(e,function(n,a,i){return r=t(n,a,i),!r}),!!r}var X5=K5,Z5=nP,J5=ia,Q5=X5,e8=zl,t8=du;function r8(e,t,r){var n=e8(e)?Z5:Q5;return r&&t8(e,t,r)&&(t=void 0),n(e,J5(t))}var n8=r8;const a8=ft(n8);var Wr=function(t,r){var n=t.alwaysShow,a=t.ifOverflow;return n&&(a="extendDomain"),a===r},i8=lM,o8=aP,s8=ia;function l8(e,t){var r={};return t=s8(t),o8(e,function(n,a,i){i8(r,a,t(n,a,i))}),r}var u8=l8;const c8=ft(u8);function d8(e,t){for(var r=-1,n=e==null?0:e.length;++r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function k8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function R8(e,t){var r=e.x,n=e.y,a=O8(e,w8),i="".concat(r),o=parseInt(i,10),s="".concat(n),l=parseInt(s,10),c="".concat(t.height||a.height),d=parseInt(c,10),p="".concat(t.width||a.width),g=parseInt(p,10);return ki(ki(ki(ki(ki({},t),a),o?{x:o}:{}),l?{y:l}:{}),{},{height:d,width:g,name:t.name,radius:t.radius})}function j0(e){return U.createElement(zm,Hm({shapeType:"rectangle",propTransformer:R8,activeClassName:"recharts-active-bar"},e))}var I8=["value","background"];function Wa(e){"@babel/helpers - typeof";return Wa=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wa(e)}function N8(e,t){if(e==null)return{};var r=C8(e,t),n,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function C8(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function Nl(){return Nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Cl(e){return Cl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Cl(e)}function Cn(e,t,r){return t=CR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CR(e){var t=F8(e,"string");return Wa(t)==="symbol"?t:String(t)}function F8(e,t){if(Wa(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Wa(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tu=function(e){M8(r,e);var t=P8(r);function r(){var n;D8(this,r);for(var a=arguments.length,i=new Array(a),o=0;o0&&Math.abs(H)0&&Math.abs(q)0&&(q=Math.min((Se||0)-(H[Q-1]||0),q))});var z=q/j,W=S.layout==="vertical"?n.height:n.width;if(S.padding==="gap"&&(k=z*W/2),S.padding==="no-gap"){var K=La(t.barCategoryGap,z*W),G=z*W/2;k=G-K-(G-K)/W*K}}a==="xAxis"?N=[n.left+(w.left||0)+(k||0),n.left+n.width-(w.right||0)-(k||0)]:a==="yAxis"?N=l==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(k||0),n.top+n.height-(w.bottom||0)-(k||0)]:N=S.range,x&&(N=[N[1],N[0]]);var V=d4(S,i,g),J=V.scale,ae=V.realScaleType;J.domain(O).range(N),p4(J);var re=S4(J,Ir(Ir({},S),{},{realScaleType:ae}));a==="xAxis"?(L=v==="top"&&!A||v==="bottom"&&A,I=n.left,D=p[E]-L*S.height):a==="yAxis"&&(L=v==="left"&&!A||v==="right"&&A,I=p[E]-L*S.width,D=n.top);var ue=Ir(Ir(Ir({},S),re),{},{realScaleType:ae,x:I,y:D,scale:J,width:a==="xAxis"?n.width:S.width,height:a==="yAxis"?n.height:S.height});return ue.bandSize=xl(ue,re),!S.hide&&a==="xAxis"?p[E]+=(L?-1:1)*ue.height:S.hide||(p[E]+=(L?-1:1)*ue.width),Ir(Ir({},h),{},Au({},b,ue))},{})},LR=function(t,r){var n=t.x,a=t.y,i=r.x,o=r.y;return{x:Math.min(n,i),y:Math.min(a,o),width:Math.abs(i-n),height:Math.abs(o-a)}},q8=function(t){var r=t.x1,n=t.y1,a=t.x2,i=t.y2;return LR({x:r,y:n},{x:a,y:i})},MR=function(){function e(t){B8(this,e),this.scale=t}return U8(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.bandAware,i=n.position;if(r!==void 0){if(i)switch(i){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var s=this.bandwidth?this.bandwidth():0;return this.scale(r)+s}default:return this.scale(r)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+l}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),a=n[0],i=n[n.length-1];return a<=i?r>=a&&r<=i:r>=i&&r<=a}}],[{key:"create",value:function(r){return new e(r)}}]),e}();Au(MR,"EPS",1e-4);var by=function(t){var r=Object.keys(t).reduce(function(n,a){return Ir(Ir({},n),{},Au({},a,MR.create(t[a])))},{});return Ir(Ir({},r),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,s=i.position;return c8(a,function(l,c){return r[c].apply(l,{bandAware:o,position:s})})},isInRange:function(a){return NR(a,function(i,o){return r[o].isInRange(i)})}})};function H8(e){return(e%180+180)%180}var W8=function(t){var r=t.width,n=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=H8(a),o=i*Math.PI/180,s=Math.atan(n/r),l=o>s&&oe.length)&&(t=e.length);for(var r=0,n=new Array(t);re*a)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-a)<=0}function fK(e,t){return PR(e,t+1)}function gK(e,t,r,n,a){for(var i=(n||[]).slice(),o=t.start,s=t.end,l=0,c=1,d=o,p=function(){var b=n==null?void 0:n[l];if(b===void 0)return{v:PR(n,c)};var S=l,v,O=function(){return v===void 0&&(v=r(b,S)),v},_=b.coordinate,w=l===0||Dl(e,_,O,d,s);w||(l=0,d=o,c+=1),w&&(d=_+e*(O()/2+a),l+=c)},g;c<=i.length;)if(g=p(),g)return g.v;return[]}function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function X0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Dt(e){for(var t=1;t0?h.coordinate-v*e:h.coordinate})}else i[g]=h=Dt(Dt({},h),{},{tickCoord:h.coordinate});var O=Dl(e,h.tickCoord,S,s,l);O&&(l=h.tickCoord-e*(S()/2+a),i[g]=Dt(Dt({},h),{},{isShow:!0}))},d=o-1;d>=0;d--)c(d);return i}function vK(e,t,r,n,a,i){var o=(n||[]).slice(),s=o.length,l=t.start,c=t.end;if(i){var d=n[s-1],p=r(d,s-1),g=e*(d.coordinate+e*p/2-c);o[s-1]=d=Dt(Dt({},d),{},{tickCoord:g>0?d.coordinate-g*e:d.coordinate});var h=Dl(e,d.tickCoord,function(){return p},l,c);h&&(c=d.tickCoord-e*(p/2+a),o[s-1]=Dt(Dt({},d),{},{isShow:!0}))}for(var b=i?s-1:s,S=function(_){var w=o[_],A,x=function(){return A===void 0&&(A=r(w,_)),A};if(_===0){var E=e*(w.coordinate-e*x()/2-l);o[_]=w=Dt(Dt({},w),{},{tickCoord:E<0?w.coordinate-E*e:w.coordinate})}else o[_]=w=Dt(Dt({},w),{},{tickCoord:w.coordinate});var k=Dl(e,w.tickCoord,x,l,c);k&&(l=w.tickCoord+e*(x()/2+a),o[_]=Dt(Dt({},w),{},{isShow:!0}))},v=0;v=2?Lr(a[1].coordinate-a[0].coordinate):1,O=pK(i,v,h);return l==="equidistantPreserveStart"?gK(v,O,S,a,o):(l==="preserveStart"||l==="preserveStartEnd"?g=vK(v,O,S,a,o,l==="preserveStartEnd"):g=yK(v,O,S,a,o),g.filter(function(_){return _.isShow}))}var SK=["viewBox"],EK=["viewBox"],xK=["ticks"];function Va(e){"@babel/helpers - typeof";return Va=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Va(e)}function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function wK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function _K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J0(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ll(e){return Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ll(e)}function vy(e,t,r){return t=$R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e){var t=NK(e,"string");return Va(t)==="symbol"?t:String(t)}function NK(e,t){if(Va(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Va(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gi=function(e){AK(r,e);var t=OK(r);function r(n){var a;return _K(this,r),a=t.call(this,n),a.state={fontSize:"",letterSpacing:""},a}return TK(r,[{key:"shouldComponentUpdate",value:function(a,i){var o=a.viewBox,s=Mc(a,SK),l=this.props,c=l.viewBox,d=Mc(l,EK);return!Ra(o,c)||!Ra(s,d)||!Ra(i,this.state)}},{key:"componentDidMount",value:function(){var a=this.layerReference;if(a){var i=a.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(a){var i=this.props,o=i.x,s=i.y,l=i.width,c=i.height,d=i.orientation,p=i.tickSize,g=i.mirror,h=i.tickMargin,b,S,v,O,_,w,A=g?-1:1,x=a.tickSize||p,E=se(a.tickCoord)?a.tickCoord:a.coordinate;switch(d){case"top":b=S=a.coordinate,O=s+ +!g*c,v=O-A*x,w=v-A*h,_=E;break;case"left":v=O=a.coordinate,S=o+ +!g*l,b=S-A*x,_=b-A*h,w=E;break;case"right":v=O=a.coordinate,S=o+ +g*l,b=S+A*x,_=b+A*h,w=E;break;default:b=S=a.coordinate,O=s+ +g*c,v=O+A*x,w=v+A*h,_=E;break}return{line:{x1:b,y1:v,x2:S,y2:O},tick:{x:_,y:w}}}},{key:"getTickTextAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s;switch(i){case"left":s=o?"start":"end";break;case"right":s=o?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var a=this.props,i=a.orientation,o=a.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=o?"start":"end";break;default:s=o?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.orientation,d=a.mirror,p=a.axisLine,g=Gt(Gt(Gt({},Me(this.props)),Me(p)),{},{fill:"none"});if(c==="top"||c==="bottom"){var h=+(c==="top"&&!d||c==="bottom"&&d);g=Gt(Gt({},g),{},{x1:i,y1:o+h*l,x2:i+s,y2:o+h*l})}else{var b=+(c==="left"&&!d||c==="right"&&d);g=Gt(Gt({},g),{},{x1:i+b*s,y1:o,x2:i+b*s,y2:o+l})}return U.createElement("line",Aa({},g,{className:Ze("recharts-cartesian-axis-line",yr(p,"className"))}))}},{key:"renderTicks",value:function(a,i,o){var s=this,l=this.props,c=l.tickLine,d=l.stroke,p=l.tick,g=l.tickFormatter,h=l.unit,b=Xm(Gt(Gt({},this.props),{},{ticks:a}),i,o),S=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),O=Me(this.props),_=Me(p),w=Gt(Gt({},O),{},{fill:"none"},Me(c)),A=b.map(function(x,E){var k=s.getTickLineCoord(x),N=k.line,I=k.tick,D=Gt(Gt(Gt(Gt({textAnchor:S,verticalAnchor:v},O),{},{stroke:"none",fill:d},_),I),{},{index:E,payload:x,visibleTicksCount:b.length,tickFormatter:g});return U.createElement(dt,Aa({className:"recharts-cartesian-axis-tick",key:"tick-".concat(x.value,"-").concat(x.coordinate,"-").concat(x.tickCoord)},Wi(s.props,x,E)),c&&U.createElement("line",Aa({},w,N,{className:Ze("recharts-cartesian-axis-tick-line",yr(c,"className"))})),p&&r.renderTickItem(p,D,"".concat(Ne(g)?g(x.value,E):x.value).concat(h||"")))});return U.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var a=this,i=this.props,o=i.axisLine,s=i.width,l=i.height,c=i.ticksGenerator,d=i.className,p=i.hide;if(p)return null;var g=this.props,h=g.ticks,b=Mc(g,xK),S=h;return Ne(c)&&(S=h&&h.length>0?c(this.props):c(b)),s<=0||l<=0||!S||!S.length?null:U.createElement(dt,{className:Ze("recharts-cartesian-axis",d),ref:function(O){a.layerReference=O}},o&&this.renderAxisLine(),this.renderTicks(S,this.state.fontSize,this.state.letterSpacing),Lt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(a,i,o){var s;return U.isValidElement(a)?s=U.cloneElement(a,i):Ne(a)?s=a(i):s=U.createElement(ul,Aa({},i,{className:"recharts-cartesian-axis-tick-value"}),o),s}}]),r}(M.Component);vy(Gi,"displayName","CartesianAxis");vy(Gi,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var CK=["x1","y1","x2","y2","key"],DK=["offset"];function Ya(e){"@babel/helpers - typeof";return Ya=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ya(e)}function Jm(){return Jm=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function LK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function ex(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function On(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Ml(e){return Ml=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ml(e)}function Sy(e,t,r){return t=jR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jR(e){var t=GK(e,"string");return Ya(t)==="symbol"?t:String(t)}function GK(e,t){if(Ya(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ya(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ey=function(e){$K(r,e);var t=jK(r);function r(){return MK(this,r),t.apply(this,arguments)}return PK(r,[{key:"renderHorizontal",value:function(a){var i=this,o=this.props,s=o.x,l=o.width,c=o.horizontal;if(!a||!a.length)return null;var d=a.map(function(p,g){var h=On(On({},i.props),{},{x1:s,y1:p,x2:s+l,y2:p,key:"line-".concat(g),index:g});return r.renderLineItem(c,h)});return U.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}},{key:"renderVertical",value:function(a){var i=this,o=this.props,s=o.y,l=o.height,c=o.vertical;if(!a||!a.length)return null;var d=a.map(function(p,g){var h=On(On({},i.props),{},{x1:p,y1:s,x2:p,y2:s+l,key:"line-".concat(g),index:g});return r.renderLineItem(c,h)});return U.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}},{key:"renderVerticalStripes",value:function(a){var i=this.props.verticalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+l-l)}).sort(function(b,S){return b-S});l!==g[0]&&g.unshift(0);var h=g.map(function(b,S){var v=!g[S+1],O=v?l+d-b:g[S+1]-b;if(O<=0)return null;var _=S%i.length;return U.createElement("rect",{key:"react-".concat(S),x:b,y:c,width:O,height:p,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},h)}},{key:"renderHorizontalStripes",value:function(a){var i=this.props.horizontalFill;if(!i||!i.length)return null;var o=this.props,s=o.fillOpacity,l=o.x,c=o.y,d=o.width,p=o.height,g=a.map(function(b){return Math.round(b+c-c)}).sort(function(b,S){return b-S});c!==g[0]&&g.unshift(0);var h=g.map(function(b,S){var v=!g[S+1],O=v?c+p-b:g[S+1]-b;if(O<=0)return null;var _=S%i.length;return U.createElement("rect",{key:"react-".concat(S),y:b,x:l,height:O,width:d,stroke:"none",fill:i[_],fillOpacity:s,className:"recharts-cartesian-grid-bg"})});return U.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},h)}},{key:"renderBackground",value:function(){var a=this.props.fill;if(!a||a==="none")return null;var i=this.props,o=i.fillOpacity,s=i.x,l=i.y,c=i.width,d=i.height;return U.createElement("rect",{x:s,y:l,width:c,height:d,stroke:"none",fill:a,fillOpacity:o,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var a=this.props,i=a.x,o=a.y,s=a.width,l=a.height,c=a.horizontal,d=a.vertical,p=a.horizontalCoordinatesGenerator,g=a.verticalCoordinatesGenerator,h=a.xAxis,b=a.yAxis,S=a.offset,v=a.chartWidth,O=a.chartHeight,_=a.syncWithTicks,w=a.horizontalValues,A=a.verticalValues;if(!se(s)||s<=0||!se(l)||l<=0||!se(i)||i!==+i||!se(o)||o!==+o)return null;var x=this.props,E=x.horizontalPoints,k=x.verticalPoints;if((!E||!E.length)&&Ne(p)){var N=w&&w.length;E=p({yAxis:b?On(On({},b),{},{ticks:N?w:b.ticks}):void 0,width:v,height:O,offset:S},N?!0:_)}if((!k||!k.length)&&Ne(g)){var I=A&&A.length;k=g({xAxis:h?On(On({},h),{},{ticks:I?A:h.ticks}):void 0,width:v,height:O,offset:S},I?!0:_)}return U.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),c&&this.renderHorizontal(E),d&&this.renderVertical(k),c&&this.renderHorizontalStripes(E),d&&this.renderVerticalStripes(k))}}],[{key:"renderLineItem",value:function(a,i){var o;if(U.isValidElement(a))o=U.cloneElement(a,i);else if(Ne(a))o=a(i);else{var s=i.x1,l=i.y1,c=i.x2,d=i.y2,p=i.key,g=Q0(i,CK),h=Me(g);h.offset;var b=Q0(h,DK);o=U.createElement("line",Jm({},b,{x1:s,y1:l,x2:c,y2:d,fill:"none",key:p}))}return o}}]),r}(M.PureComponent);Sy(Ey,"displayName","CartesianGrid");Sy(Ey,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var Ou=function(){return null};Ou.displayName="ZAxis";Ou.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var zK=["option","isActive"];function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HK(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function WK(e){var t=e.option,r=e.isActive,n=qK(e,zK);return typeof t=="string"?U.createElement(zm,zi({option:U.createElement(uu,zi({type:t},n)),isActive:r,shapeType:"symbols"},n)):U.createElement(zm,zi({option:t,isActive:r,shapeType:"symbols"},n))}function Ka(e){"@babel/helpers - typeof";return Ka=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ka(e)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Pl(e){return Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Pl(e)}function Dn(e,t,r){return t=FR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function FR(e){var t=QK(e,"string");return Ka(t)==="symbol"?t:String(t)}function QK(e,t){if(Ka(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Ka(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xo=function(e){KK(r,e);var t=XK(r);function r(){var n;VK(this,r);for(var a=arguments.length,i=new Array(a),o=0;o-1?a[i?t[o]:o]:void 0}}var a9=n9,i9=kR;function o9(e){var t=i9(e),r=t%1;return t===t?r?t-r:t:0}var s9=o9,l9=ok,u9=ia,c9=s9,d9=Math.max;function p9(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var a=r==null?0:c9(r);return a<0&&(a=d9(n+a,0)),l9(e,u9(t),a)}var f9=p9,g9=a9,h9=f9,m9=g9(h9),b9=m9;const y9=ft(b9);var v9="Invariant failed";function S9(e,t){if(!e)throw new Error(v9)}function BR(e){var t=e.cx,r=e.cy,n=e.radius,a=e.startAngle,i=e.endAngle,o=Nt(t,r,n,a),s=Nt(t,r,n,i);return{points:[o,s],cx:t,cy:r,radius:n,startAngle:a,endAngle:i}}function ax(e){return _9(e)||w9(e)||x9(e)||E9()}function E9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function x9(e,t){if(e){if(typeof e=="string")return tb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tb(e,t)}}function w9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _9(e){if(Array.isArray(e))return tb(e)}function tb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function F9(e,t){if(e==null)return{};var r={},n=Object.keys(e),a,i;for(i=0;i=0)&&(r[a]=e[a]);return r}function B9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lx(e,t){for(var r=0;r"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function $l(e){return $l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},$l(e)}function Za(e){return Y9(e)||V9(e)||zR(e)||W9()}function W9(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zR(e,t){if(e){if(typeof e=="string")return ab(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ab(e,t)}}function V9(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Y9(e){if(Array.isArray(e))return ab(e)}function ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?o:t&&t.length&&se(a)&&se(i)?t.slice(a,i+1):[]};function WR(e){return e==="number"?[0,"auto"]:void 0}var VR=function(t,r,n,a){var i=t.graphicalItems,o=t.tooltipAxis,s=Iu(r,t);return n<0||!i||!i.length||n>=s.length?null:i.reduce(function(l,c){var d,p=c.props.hide;if(p)return l;var g=(d=c.props.data)!==null&&d!==void 0?d:r;g&&t.dataStartIndex+t.dataEndIndex!==0&&(g=g.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var b=g===void 0?s:g;h=Vs(b,o.dataKey,a)}else h=g&&g[n]||s[n];return h?[].concat(Za(l),[_R(c,h)]):l},[])},cx=function(t,r,n,a){var i=a||{x:t.chartX,y:t.chartY},o=J9(i,n),s=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,d=i4(o,s,c,l);if(d>=0&&c){var p=c[d]&&c[d].value,g=VR(t,r,d,p),h=Q9(n,s,d,i);return{activeTooltipIndex:d,activeLabel:p,activePayload:g,activeCoordinate:h}}return null},eX=function(t,r){var n=r.axes,a=r.graphicalItems,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=t.stackOffset,h=xR(d,i);return n.reduce(function(b,S){var v,O=S.props,_=O.type,w=O.dataKey,A=O.allowDataOverflow,x=O.allowDuplicatedCategory,E=O.scale,k=O.ticks,N=O.includeHidden,I=S.props[o];if(b[I])return b;var D=Iu(t.data,{graphicalItems:a.filter(function(re){return re.props[o]===I}),dataStartIndex:l,dataEndIndex:c}),L=D.length,j,q,H;N9(S.props.domain,A,_)&&(j=Mm(S.props.domain,null,A),h&&(_==="number"||E!=="auto")&&(H=Ui(D,w,"category")));var z=WR(_);if(!j||j.length===0){var W,K=(W=S.props.domain)!==null&&W!==void 0?W:z;if(w){if(j=Ui(D,w,_),_==="category"&&h){var G=KF(j);x&&G?(q=j,j=kl(0,L)):x||(j=s0(K,j,S).reduce(function(re,ue){return re.indexOf(ue)>=0?re:[].concat(Za(re),[ue])},[]))}else if(_==="category")x?j=j.filter(function(re){return re!==""&&!Ce(re)}):j=s0(K,j,S).reduce(function(re,ue){return re.indexOf(ue)>=0||ue===""||Ce(ue)?re:[].concat(Za(re),[ue])},[]);else if(_==="number"){var V=c4(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),w,i,d);V&&(j=V)}h&&(_==="number"||E!=="auto")&&(H=Ui(D,w,"category"))}else h?j=kl(0,L):s&&s[I]&&s[I].hasStack&&_==="number"?j=g==="expand"?[0,1]:wR(s[I].stackGroups,l,c):j=ER(D,a.filter(function(re){return re.props[o]===I&&(N||!re.props.hide)}),_,d,!0);if(_==="number")j=rb(p,j,I,i,k),K&&(j=Mm(K,j,A));else if(_==="category"&&K){var J=K,ae=j.every(function(re){return J.indexOf(re)>=0});ae&&(j=J)}}return Z(Z({},b),{},be({},I,Z(Z({},S.props),{},{axisType:i,domain:j,categoricalDomain:H,duplicateDomain:q,originalDomain:(v=S.props.domain)!==null&&v!==void 0?v:z,isCategorical:h,layout:d})))},{})},tX=function(t,r){var n=r.graphicalItems,a=r.Axis,i=r.axisType,o=r.axisIdKey,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.layout,p=t.children,g=Iu(t.data,{graphicalItems:n,dataStartIndex:l,dataEndIndex:c}),h=g.length,b=xR(d,i),S=-1;return n.reduce(function(v,O){var _=O.props[o],w=WR("number");if(!v[_]){S++;var A;return b?A=kl(0,h):s&&s[_]&&s[_].hasStack?(A=wR(s[_].stackGroups,l,c),A=rb(p,A,_,i)):(A=Mm(w,ER(g,n.filter(function(x){return x.props[o]===_&&!x.props.hide}),"number",d),a.defaultProps.allowDataOverflow),A=rb(p,A,_,i)),Z(Z({},v),{},be({},_,Z(Z({axisType:i},a.defaultProps),{},{hide:!0,orientation:yr(X9,"".concat(i,".").concat(S%2),null),domain:A,originalDomain:w,isCategorical:b,layout:d})))}return v},{})},rX=function(t,r){var n=r.axisType,a=n===void 0?"xAxis":n,i=r.AxisComp,o=r.graphicalItems,s=r.stackGroups,l=r.dataStartIndex,c=r.dataEndIndex,d=t.children,p="".concat(a,"Id"),g=lr(d,i),h={};return g&&g.length?h=eX(t,{axes:g,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c}):o&&o.length&&(h=tX(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:p,stackGroups:s,dataStartIndex:l,dataEndIndex:c})),h},nX=function(t){var r=kn(t),n=Rn(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Bb(n,function(a){return a.coordinate}),tooltipAxis:r,tooltipAxisBandSize:xl(r,n)}},dx=function(t){var r=t.children,n=t.defaultShowTooltip,a=ln(r,To),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},aX=function(t){return!t||!t.length?!1:t.some(function(r){var n=pn(r&&r.type);return n&&n.indexOf("Bar")>=0})},px=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},iX=function(t,r){var n=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,s=t.yAxisMap,l=s===void 0?{}:s,c=n.width,d=n.height,p=n.children,g=n.margin||{},h=ln(p,To),b=ln(p,Ki),S=Object.keys(l).reduce(function(x,E){var k=l[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,x[N]+k.width)):x},{left:g.left||0,right:g.right||0}),v=Object.keys(o).reduce(function(x,E){var k=o[E],N=k.orientation;return!k.mirror&&!k.hide?Z(Z({},x),{},be({},N,yr(x,"".concat(N))+k.height)):x},{top:g.top||0,bottom:g.bottom||0}),O=Z(Z({},v),S),_=O.bottom;h&&(O.bottom+=h.props.height||To.defaultProps.height),b&&r&&(O=l4(O,a,n,r));var w=c-O.left-O.right,A=d-O.top-O.bottom;return Z(Z({brushBottom:_},O),{},{width:Math.max(w,0),height:Math.max(A,0)})},oX=function(t){var r,n=t.chartName,a=t.GraphicalChild,i=t.defaultTooltipEventType,o=i===void 0?"axis":i,s=t.validateTooltipEventTypes,l=s===void 0?["axis"]:s,c=t.axisComponents,d=t.legendContent,p=t.formatAxisMap,g=t.defaultProps,h=function(v,O){var _=O.graphicalItems,w=O.stackGroups,A=O.offset,x=O.updateId,E=O.dataStartIndex,k=O.dataEndIndex,N=v.barSize,I=v.layout,D=v.barGap,L=v.barCategoryGap,j=v.maxBarSize,q=px(I),H=q.numericAxisName,z=q.cateAxisName,W=aX(_),K=W&&o4({barSize:N,stackGroups:w}),G=[];return _.forEach(function(V,J){var ae=Iu(v.data,{graphicalItems:[V],dataStartIndex:E,dataEndIndex:k}),re=V.props,ue=re.dataKey,Se=re.maxBarSize,Q=V.props["".concat(H,"Id")],Ie=V.props["".concat(z,"Id")],Ue={},xe=c.reduce(function($e,Ye){var $t,Kt=O["".concat(Ye.axisType,"Map")],te=V.props["".concat(Ye.axisType,"Id")];Kt&&Kt[te]||Ye.axisType==="zAxis"||S9(!1);var de=Kt[te];return Z(Z({},$e),{},($t={},be($t,Ye.axisType,de),be($t,"".concat(Ye.axisType,"Ticks"),Rn(de)),$t))},Ue),ee=xe[z],oe=xe["".concat(z,"Ticks")],ie=w&&w[Q]&&w[Q].hasStack&&x4(V,w[Q].stackGroups),X=pn(V.type).indexOf("Bar")>=0,Ee=xl(ee,oe),fe=[];if(X){var he,je,nt=Ce(Se)?j:Se,et=(he=(je=xl(ee,oe,!0))!==null&&je!==void 0?je:nt)!==null&&he!==void 0?he:0;fe=s4({barGap:D,barCategoryGap:L,bandSize:et!==Ee?et:Ee,sizeList:K[Ie],maxBarSize:nt}),et!==Ee&&(fe=fe.map(function($e){return Z(Z({},$e),{},{position:Z(Z({},$e.position),{},{offset:$e.position.offset-et/2})})}))}var tr=V&&V.type&&V.type.getComposedData;if(tr){var Pe;G.push({props:Z(Z({},tr(Z(Z({},xe),{},{displayedData:ae,props:v,dataKey:ue,item:V,bandSize:Ee,barPosition:fe,offset:A,stackedData:ie,layout:I,dataStartIndex:E,dataEndIndex:k}))),{},(Pe={key:V.key||"item-".concat(J)},be(Pe,H,xe[H]),be(Pe,z,xe[z]),be(Pe,"animationId",x),Pe)),childIndex:sB(V,v.children),item:V})}}),G},b=function(v,O){var _=v.props,w=v.dataStartIndex,A=v.dataEndIndex,x=v.updateId;if(!Qv({props:_}))return null;var E=_.children,k=_.layout,N=_.stackOffset,I=_.data,D=_.reverseStackOrder,L=px(k),j=L.numericAxisName,q=L.cateAxisName,H=lr(E,a),z=v4(I,H,"".concat(j,"Id"),"".concat(q,"Id"),N,D),W=c.reduce(function(ae,re){var ue="".concat(re.axisType,"Map");return Z(Z({},ae),{},be({},ue,rX(_,Z(Z({},re),{},{graphicalItems:H,stackGroups:re.axisType===j&&z,dataStartIndex:w,dataEndIndex:A}))))},{}),K=iX(Z(Z({},W),{},{props:_,graphicalItems:H}),O==null?void 0:O.legendBBox);Object.keys(W).forEach(function(ae){W[ae]=p(_,W[ae],K,ae.replace("Map",""),n)});var G=W["".concat(q,"Map")],V=nX(G),J=h(_,Z(Z({},W),{},{dataStartIndex:w,dataEndIndex:A,updateId:x,graphicalItems:H,stackGroups:z,offset:K}));return Z(Z({formattedGraphicalItems:J,graphicalItems:H,offset:K,stackGroups:z},V),W)};return r=function(S){G9(O,S);var v=z9(O);function O(_){var w,A,x;return B9(this,O),x=v.call(this,_),be(Ae(x),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),be(Ae(x),"accessibilityManager",new I9),be(Ae(x),"handleLegendBBoxUpdate",function(E){if(E){var k=x.state,N=k.dataStartIndex,I=k.dataEndIndex,D=k.updateId;x.setState(Z({legendBBox:E},b({props:x.props,dataStartIndex:N,dataEndIndex:I,updateId:D},Z(Z({},x.state),{},{legendBBox:E}))))}}),be(Ae(x),"handleReceiveSyncEvent",function(E,k,N){if(x.props.syncId===E){if(N===x.eventEmitterSymbol&&typeof x.props.syncMethod!="function")return;x.applySyncEvent(k)}}),be(Ae(x),"handleBrushChange",function(E){var k=E.startIndex,N=E.endIndex;if(k!==x.state.dataStartIndex||N!==x.state.dataEndIndex){var I=x.state.updateId;x.setState(function(){return Z({dataStartIndex:k,dataEndIndex:N},b({props:x.props,dataStartIndex:k,dataEndIndex:N,updateId:I},x.state))}),x.triggerSyncEvent({dataStartIndex:k,dataEndIndex:N})}}),be(Ae(x),"handleMouseEnter",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseEnter;Ne(I)&&I(N,E)}}),be(Ae(x),"triggeredAfterMouseMove",function(E){var k=x.getMouseInfo(E),N=k?Z(Z({},k),{},{isTooltipActive:!0}):{isTooltipActive:!1};x.setState(N),x.triggerSyncEvent(N);var I=x.props.onMouseMove;Ne(I)&&I(N,E)}),be(Ae(x),"handleItemMouseEnter",function(E){x.setState(function(){return{isTooltipActive:!0,activeItem:E,activePayload:E.tooltipPayload,activeCoordinate:E.tooltipPosition||{x:E.cx,y:E.cy}}})}),be(Ae(x),"handleItemMouseLeave",function(){x.setState(function(){return{isTooltipActive:!1}})}),be(Ae(x),"handleMouseMove",function(E){E.persist(),x.throttleTriggeredAfterMouseMove(E)}),be(Ae(x),"handleMouseLeave",function(E){var k={isTooltipActive:!1};x.setState(k),x.triggerSyncEvent(k);var N=x.props.onMouseLeave;Ne(N)&&N(k,E)}),be(Ae(x),"handleOuterEvent",function(E){var k=oB(E),N=yr(x.props,"".concat(k));if(k&&Ne(N)){var I,D;/.*touch.*/i.test(k)?D=x.getMouseInfo(E.changedTouches[0]):D=x.getMouseInfo(E),N((I=D)!==null&&I!==void 0?I:{},E)}}),be(Ae(x),"handleClick",function(E){var k=x.getMouseInfo(E);if(k){var N=Z(Z({},k),{},{isTooltipActive:!0});x.setState(N),x.triggerSyncEvent(N);var I=x.props.onClick;Ne(I)&&I(N,E)}}),be(Ae(x),"handleMouseDown",function(E){var k=x.props.onMouseDown;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleMouseUp",function(E){var k=x.props.onMouseUp;if(Ne(k)){var N=x.getMouseInfo(E);k(N,E)}}),be(Ae(x),"handleTouchMove",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.throttleTriggeredAfterMouseMove(E.changedTouches[0])}),be(Ae(x),"handleTouchStart",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseDown(E.changedTouches[0])}),be(Ae(x),"handleTouchEnd",function(E){E.changedTouches!=null&&E.changedTouches.length>0&&x.handleMouseUp(E.changedTouches[0])}),be(Ae(x),"triggerSyncEvent",function(E){x.props.syncId!==void 0&&Pc.emit($c,x.props.syncId,E,x.eventEmitterSymbol)}),be(Ae(x),"applySyncEvent",function(E){var k=x.props,N=k.layout,I=k.syncMethod,D=x.state.updateId,L=E.dataStartIndex,j=E.dataEndIndex;if(E.dataStartIndex!==void 0||E.dataEndIndex!==void 0)x.setState(Z({dataStartIndex:L,dataEndIndex:j},b({props:x.props,dataStartIndex:L,dataEndIndex:j,updateId:D},x.state)));else if(E.activeTooltipIndex!==void 0){var q=E.chartX,H=E.chartY,z=E.activeTooltipIndex,W=x.state,K=W.offset,G=W.tooltipTicks;if(!K)return;if(typeof I=="function")z=I(G,E);else if(I==="value"){z=-1;for(var V=0;V=0){var ie,X;if(q.dataKey&&!q.allowDuplicatedCategory){var Ee=typeof q.dataKey=="function"?oe:"payload.".concat(q.dataKey.toString());ie=Vs(V,Ee,z),X=J&&ae&&Vs(ae,Ee,z)}else ie=V==null?void 0:V[H],X=J&&ae&&ae[H];if(Ie||Q){var fe=E.props.activeIndex!==void 0?E.props.activeIndex:H;return[M.cloneElement(E,Z(Z(Z({},I.props),xe),{},{activeIndex:fe})),null,null]}if(!Ce(ie))return[ee].concat(Za(x.renderActivePoints({item:I,activePoint:ie,basePoint:X,childIndex:H,isRange:J})))}else{var he,je=(he=x.getItemByXY(x.state.activeCoordinate))!==null&&he!==void 0?he:{graphicalItem:ee},nt=je.graphicalItem,et=nt.item,tr=et===void 0?E:et,Pe=nt.childIndex,$e=Z(Z(Z({},I.props),xe),{},{activeIndex:Pe});return[M.cloneElement(tr,$e),null,null]}return J?[ee,null,null]:[ee,null]}),be(Ae(x),"renderCustomized",function(E,k,N){return M.cloneElement(E,Z(Z({key:"recharts-customized-".concat(N)},x.props),x.state))}),be(Ae(x),"renderMap",{CartesianGrid:{handler:x.renderGrid,once:!0},ReferenceArea:{handler:x.renderReferenceElement},ReferenceLine:{handler:x.renderReferenceElement},ReferenceDot:{handler:x.renderReferenceElement},XAxis:{handler:x.renderXAxis},YAxis:{handler:x.renderYAxis},Brush:{handler:x.renderBrush,once:!0},Bar:{handler:x.renderGraphicChild},Line:{handler:x.renderGraphicChild},Area:{handler:x.renderGraphicChild},Radar:{handler:x.renderGraphicChild},RadialBar:{handler:x.renderGraphicChild},Scatter:{handler:x.renderGraphicChild},Pie:{handler:x.renderGraphicChild},Funnel:{handler:x.renderGraphicChild},Tooltip:{handler:x.renderCursor,once:!0},PolarGrid:{handler:x.renderPolarGrid,once:!0},PolarAngleAxis:{handler:x.renderPolarAxis},PolarRadiusAxis:{handler:x.renderPolarAxis},Customized:{handler:x.renderCustomized}}),x.clipPathId="".concat((w=_.id)!==null&&w!==void 0?w:Go("recharts"),"-clip"),x.throttleTriggeredAfterMouseMove=xk(x.triggeredAfterMouseMove,(A=_.throttleDelay)!==null&&A!==void 0?A:1e3/60),x.state={},x}return U9(O,[{key:"componentDidMount",value:function(){var w,A;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(A=this.props.margin.top)!==null&&A!==void 0?A:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(w,A){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==A.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var x,E;this.accessibilityManager.setDetails({offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(E=this.props.margin.top)!==null&&E!==void 0?E:0}})}return null}},{key:"componentDidUpdate",value:function(){}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=ln(this.props.children,Zn);if(w&&typeof w.props.shared=="boolean"){var A=w.props.shared?"axis":"item";return l.indexOf(A)>=0?A:o}return o}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var A=this.container,x=A.getBoundingClientRect(),E=HH(x),k={chartX:Math.round(w.pageX-E.left),chartY:Math.round(w.pageY-E.top)},N=x.width/A.offsetWidth||1,I=this.inRange(k.chartX,k.chartY,N);if(!I)return null;var D=this.state,L=D.xAxisMap,j=D.yAxisMap,q=this.getTooltipEventType();if(q!=="axis"&&L&&j){var H=kn(L).scale,z=kn(j).scale,W=H&&H.invert?H.invert(k.chartX):null,K=z&&z.invert?z.invert(k.chartY):null;return Z(Z({},k),{},{xValue:W,yValue:K})}var G=cx(this.state,this.props.data,this.props.layout,I);return G?Z(Z({},k),G):null}},{key:"inRange",value:function(w,A){var x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,E=this.props.layout,k=w/x,N=A/x;if(E==="horizontal"||E==="vertical"){var I=this.state.offset,D=k>=I.left&&k<=I.left+I.width&&N>=I.top&&N<=I.top+I.height;return D?{x:k,y:N}:null}var L=this.state,j=L.angleAxisMap,q=L.radiusAxisMap;if(j&&q){var H=kn(j);return c0({x:k,y:N},H)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,A=this.getTooltipEventType(),x=ln(w,Zn),E={};x&&A==="axis"&&(x.props.trigger==="click"?E={onClick:this.handleClick}:E={onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd});var k=Ys(this.props,this.handleOuterEvent);return Z(Z({},k),E)}},{key:"addListener",value:function(){Pc.on($c,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Pc.removeListener($c,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,A,x){for(var E=this.state.formattedGraphicalItems,k=0,N=E.length;km.jsx(my,{cx:e,cy:t,fill:P.blueTextAccent,r:2}),uX=()=>{const e=Pt(),t=[...(e==null?void 0:e.data)||[]].sort((a,i)=>(a.year||0)-(i.year||0)),r=t.map(a=>a.year).filter(a=>a),n=t.map(a=>a.rate).filter(a=>a);return m.jsx(cX,{direction:"column",px:24,py:16,children:m.jsx(jH,{height:"100%",width:"100%",children:m.jsxs(sX,{margin:{bottom:20,left:20,right:20,top:20},children:[m.jsx(Ey,{stroke:"#f5f5f5"}),m.jsx(ku,{dataKey:"year",domain:[Math.min(...r),Math.max(...r)],label:{fill:P.white,fontSize:"12px",offset:-10,position:"insideBottom",value:e.x_axis_name},name:"X",tick:{fill:P.white,fontSize:"8px"},type:"number"}),m.jsx(Ru,{color:"#000",dataKey:"rate",domain:[Math.min(...n),Math.max(...n)],label:{angle:-90,fill:P.white,fontSize:"12px",offset:0,position:"insideLeft",value:e.y_axis_name},name:"Y",tick:{fill:P.white,fontSize:"8px"},type:"number"}),m.jsx(Zn,{cursor:{strokeDasharray:"3 3"}}),m.jsx(Xo,{data:t,fill:P.blueTextAccent,line:!0,name:"A scatter",shape:m.jsx(lX,{})})]})})})},cX=B(F)` width: 100%; height: 100%; -`;var YR={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.cssValue=Ja.parseLengthAndUnit=void 0;var cX={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function KR(e){if(typeof e=="number")return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();r.includes(".")?t=parseFloat(r):t=parseInt(r,10);var n=(e.match(/[^0-9]*$/)||"").toString();return cX[n]?{value:t,unit:n}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}Ja.parseLengthAndUnit=KR;function dX(e){var t=KR(e);return"".concat(t.value).concat(t.unit)}Ja.cssValue=dX;var Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});Iu.createAnimation=void 0;var pX=function(e,t,r){var n="react-spinners-".concat(e,"-").concat(r);if(typeof window>"u"||!window.document)return n;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o=` +`;var YR={},Ja={};Object.defineProperty(Ja,"__esModule",{value:!0});Ja.cssValue=Ja.parseLengthAndUnit=void 0;var dX={cm:!0,mm:!0,in:!0,px:!0,pt:!0,pc:!0,em:!0,ex:!0,ch:!0,rem:!0,vw:!0,vh:!0,vmin:!0,vmax:!0,"%":!0};function KR(e){if(typeof e=="number")return{value:e,unit:"px"};var t,r=(e.match(/^[0-9.]*/)||"").toString();r.includes(".")?t=parseFloat(r):t=parseInt(r,10);var n=(e.match(/[^0-9]*$/)||"").toString();return dX[n]?{value:t,unit:n}:(console.warn("React Spinners: ".concat(e," is not a valid css value. Defaulting to ").concat(t,"px.")),{value:t,unit:"px"})}Ja.parseLengthAndUnit=KR;function pX(e){var t=KR(e);return"".concat(t.value).concat(t.unit)}Ja.cssValue=pX;var Nu={};Object.defineProperty(Nu,"__esModule",{value:!0});Nu.createAnimation=void 0;var fX=function(e,t,r){var n="react-spinners-".concat(e,"-").concat(r);if(typeof window>"u"||!window.document)return n;var a=document.createElement("style");document.head.appendChild(a);var i=a.sheet,o=` @keyframes `.concat(n,` { `).concat(t,` } - `);return i&&i.insertRule(o,0),n};Iu.createAnimation=pX;var $l=Tt&&Tt.__assign||function(){return $l=Object.assign||function(e){for(var t,r=1,n=arguments.length;re&&YO` +${({disabled:e})=>e&&KO` cursor: none; opacity: 0.5; `} @@ -1379,22 +1379,22 @@ ${({disabled:e})=>e&&YO` } &:hover { - background: ${({selected:e})=>e?M.gray300:M.gray200}; + background: ${({selected:e})=>e?P.gray300:P.gray200}; } } -`,Ey=({count:e=0,updateCount:t,content:r,readOnly:n,refId:a})=>{const[i,o]=P.useState(!1);P.useEffect(()=>{o(!1)},[a]);let{image_url:s}=r||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function c(){if(!(i||!a)){o(!0);try{await lP(a,l),t&&t(e+l)}catch(d){console.error(d)}o(!1)}}return n?e?h.jsx(fx,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:h.jsxs(F,{align:"center",direction:"row",justify:"center",children:[h.jsx(cM,{fontSize:12}),h.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:h.jsx("div",{children:h.jsx(fx,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await c()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?h.jsx(EX,{color:"#fff",loading:!0,size:10}):h.jsxs(F,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[h.jsx(i1,{style:{color:M.white}}),h.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},xy=B(F)` - background: ${M.divider2}; +`,xy=({count:e=0,updateCount:t,content:r,readOnly:n,refId:a})=>{const[i,o]=M.useState(!1);M.useEffect(()=>{o(!1)},[a]);let{image_url:s}=r||{};s&&(s=s.replace(".jpg","_l.jpg"));const l=5;async function c(){if(!(i||!a)){o(!0);try{await lP(a,l),t&&t(e+l)}catch(d){console.error(d)}o(!1)}}return n?e?m.jsx(gx,{className:"booster__pill",style:{padding:"1px 8px 1px 3px",width:"fit-content"},children:m.jsxs(F,{align:"center",direction:"row",justify:"center",children:[m.jsx(cM,{fontSize:12}),m.jsx("div",{style:{fontSize:10},children:e||0})]})}):null:m.jsx("div",{children:m.jsx(gx,{"data-testid":"booster-pill",disabled:i,onClick:async()=>{i||await c()},style:{padding:"4px 8px",borderWidth:0,backgroundColor:"#303342",height:"25px",width:"fit-content"},children:i?m.jsx(xX,{color:"#fff",loading:!0,size:10}):m.jsxs(F,{align:"center","data-testid":"loader",direction:"row",justify:"space-around",children:[m.jsx(i1,{style:{color:P.white}}),m.jsx("div",{style:{marginLeft:8,marginRight:8},children:"Boost"})]})})})},wy=B(F)` + background: ${P.divider2}; height: 1px; margin: auto 22px; -`,xX=({stateless:e,node:t,searchTerm:r})=>h.jsxs(F,{grow:1,shrink:1,children:[h.jsx(_X,{children:e&&h.jsxs(wX,{children:[h.jsx("div",{className:"icon",children:h.jsx(d1,{})}),h.jsx("div",{className:"title",children:"Description"})]})}),h.jsx(pt,{children:t!=null&&t.description?qr(t.description,r):"..."})]}),wX=B(F).attrs({direction:"row",align:"center"})` +`,wX=({stateless:e,node:t,searchTerm:r})=>m.jsxs(F,{grow:1,shrink:1,children:[m.jsx(TX,{children:e&&m.jsxs(_X,{children:[m.jsx("div",{className:"icon",children:m.jsx(d1,{})}),m.jsx("div",{className:"title",children:"Description"})]})}),m.jsx(pt,{children:t!=null&&t.description?qr(t.description,r):"..."})]}),_X=B(F).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; - color: ${M.GRAY3}; + color: ${P.GRAY3}; margin-right: 7px; } .title { - color: ${M.white}; + color: ${P.white}; font-family: Barlow; font-size: 12px; font-style: normal; @@ -1403,10 +1403,10 @@ ${({disabled:e})=>e&&YO` letter-spacing: 1pt; text-transform: uppercase; } -`,_X=B(F).attrs({direction:"row",align:"center",justify:"space-between"})` +`,TX=B(F).attrs({direction:"row",align:"center",justify:"space-between"})` margin-bottom: 18px; -`,TX=B.span` - color: ${M.white}; +`,AX=B.span` + color: ${P.white}; cursor: pointer; text-transform: uppercase; font-weight: 500; @@ -1414,17 +1414,17 @@ ${({disabled:e})=>e&&YO` text-align: right; &:hover { - color: ${M.GRAY3}; + color: ${P.GRAY3}; } -`,AX=({stateless:e,node:t})=>{var b;const[r,n]=Ct(S=>[S.transcriptIsOpen,S.setTranscriptOpen]),[a,i]=P.useState(!1),[o,s]=P.useState(""),[l,c]=P.useState(!1);if(!e&&!r)return null;const d=async()=>{try{const S=await $v(t==null?void 0:t.ref_id);s(S.data.text)}catch(S){console.error("Error fetching full transcript",S)}},p=async()=>{if(o===""){const S=await $v(t==null?void 0:t.ref_id);m(S.data.text)}else m(o);setTimeout(()=>{i(!1)},2e3)},g=async()=>{l?c(!1):(await d(),c(!0))},m=S=>{S!==void 0&&(navigator.clipboard.writeText(S),i(!0))};return h.jsxs(F,{grow:1,shrink:1,children:[h.jsxs(kX,{children:[e&&h.jsxs(OX,{children:[h.jsx("div",{className:"icon",children:h.jsx(d1,{})}),h.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?h.jsx(h.Fragment,{children:a?h.jsxs(NX,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx("div",{className:"icon",children:h.jsx(c1,{})}),h.jsx("div",{className:"text",children:"Copied"})]}):h.jsx(Mt,{endIcon:h.jsx(PM,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):h.jsx("div",{}),!e&&h.jsx(RX,{onClick:()=>{n(!1)},children:h.jsx(dM,{fontSize:35})})]}),h.jsxs(IX,{children:[l?o:`${(b=t==null?void 0:t.text)==null?void 0:b.substring(0,100)}`,h.jsxs(TX,{onClick:g,children:["... ",l?"show less":"more"]})]})]})},OX=B(F).attrs({direction:"row",align:"center"})` +`,OX=({stateless:e,node:t})=>{var b;const[r,n]=Ct(S=>[S.transcriptIsOpen,S.setTranscriptOpen]),[a,i]=M.useState(!1),[o,s]=M.useState(""),[l,c]=M.useState(!1);if(!e&&!r)return null;const d=async()=>{try{const S=await jv(t==null?void 0:t.ref_id);s(S.data.text)}catch(S){console.error("Error fetching full transcript",S)}},p=async()=>{if(o===""){const S=await jv(t==null?void 0:t.ref_id);h(S.data.text)}else h(o);setTimeout(()=>{i(!1)},2e3)},g=async()=>{l?c(!1):(await d(),c(!0))},h=S=>{S!==void 0&&(navigator.clipboard.writeText(S),i(!0))};return m.jsxs(F,{grow:1,shrink:1,children:[m.jsxs(RX,{children:[e&&m.jsxs(kX,{children:[m.jsx("div",{className:"icon",children:m.jsx(d1,{})}),m.jsx("div",{className:"title",children:"Transcript"})]}),t!=null&&t.text?m.jsx(m.Fragment,{children:a?m.jsxs(CX,{align:"center",direction:"row",justify:"flex-start",children:[m.jsx("div",{className:"icon",children:m.jsx(c1,{})}),m.jsx("div",{className:"text",children:"Copied"})]}):m.jsx(Mt,{endIcon:m.jsx(PM,{}),onPointerDown:()=>p(),size:"small",variant:"outlined",children:"Copy"})}):m.jsx("div",{}),!e&&m.jsx(IX,{onClick:()=>{n(!1)},children:m.jsx(dM,{fontSize:35})})]}),m.jsxs(NX,{children:[l?o:`${(b=t==null?void 0:t.text)==null?void 0:b.substring(0,100)}`,m.jsxs(AX,{onClick:g,children:["... ",l?"show less":"more"]})]})]})},kX=B(F).attrs({direction:"row",align:"center"})` .icon { font-size: 16px; - color: ${M.GRAY3}; + color: ${P.GRAY3}; margin-right: 7px; } .title { - color: ${M.white}; + color: ${P.white}; font-family: Barlow; font-size: 12px; font-style: normal; @@ -1433,16 +1433,16 @@ ${({disabled:e})=>e&&YO` letter-spacing: 1pt; text-transform: uppercase; } -`,kX=B(F).attrs({direction:"row",align:"center",justify:"space-between"})` +`,RX=B(F).attrs({direction:"row",align:"center",justify:"space-between"})` margin-bottom: 18px; -`,RX=B(F).attrs({})` - color: ${M.mainBottomIcons}; +`,IX=B(F).attrs({})` + color: ${P.mainBottomIcons}; cursor: pointer; &:hover { - color: ${M.lightBlue500}; + color: ${P.lightBlue500}; } -`,IX=B(F)` - color: ${M.white}; +`,NX=B(F)` + color: ${P.white}; whitespace: nowrap; font-family: Barlow; letter-spacing: 0.2pt; @@ -1450,8 +1450,8 @@ ${({disabled:e})=>e&&YO` font-style: normal; font-weight: 300; line-height: 22px; -`,NX=B(F)` - color: ${M.SECONDARY_BLUE}; +`,CX=B(F)` + color: ${P.SECONDARY_BLUE}; font-family: Barlow; font-size: 13px; font-weight: 500; @@ -1464,29 +1464,29 @@ ${({disabled:e})=>e&&YO` .icon { font-size: 12px; } -`,XR=({node:e})=>{const t=Pt(),r=Ct(m=>m.currentSearch),{image_url:n,date:a,boost:i,node_type:o,id:s,show_title:l,ref_id:c}=e||t||{},[d,p]=P.useState(i||0);if(P.useEffect(()=>{p(i??0)},[i]),!e&&!t)return null;const g=e||t;return h.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:h.jsxs(CX,{children:[g&&o?h.jsx(LX,{boostCount:d||0,date:a||0,imageUrl:n,node:g,onClick:()=>null,showTitle:l,type:o}):null,h.jsx(jc,{}),h.jsxs(DX,{children:[h.jsx(Vl,{amt:d}),h.jsx(Ey,{content:e||t,count:d,refId:c,updateCount:p})]}),h.jsx(jc,{}),h.jsx(gx,{children:h.jsx(xX,{node:e||t,searchTerm:r,stateless:!0})}),((t==null?void 0:t.text)||(e==null?void 0:e.text))&&h.jsxs(h.Fragment,{children:[h.jsx(jc,{}),h.jsx(gx,{children:h.jsx(AX,{node:e||t,stateless:!0},s)})]})]})})},CX=B(F)` +`,XR=({node:e})=>{const t=Pt(),r=Ct(h=>h.currentSearch),{image_url:n,date:a,boost:i,node_type:o,id:s,show_title:l,ref_id:c}=e||t||{},[d,p]=M.useState(i||0);if(M.useEffect(()=>{p(i??0)},[i]),!e&&!t)return null;const g=e||t;return m.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:m.jsxs(DX,{children:[g&&o?m.jsx(MX,{boostCount:d||0,date:a||0,imageUrl:n,node:g,onClick:()=>null,showTitle:l,type:o}):null,m.jsx(Fc,{}),m.jsxs(LX,{children:[m.jsx(Yl,{amt:d}),m.jsx(xy,{content:e||t,count:d,refId:c,updateCount:p})]}),m.jsx(Fc,{}),m.jsx(hx,{children:m.jsx(wX,{node:e||t,searchTerm:r,stateless:!0})}),((t==null?void 0:t.text)||(e==null?void 0:e.text))&&m.jsxs(m.Fragment,{children:[m.jsx(Fc,{}),m.jsx(hx,{children:m.jsx(OX,{node:e||t,stateless:!0},s)})]})]})})},DX=B(F)` flex: 1; min-height: 100%; flex-direction: column; border-bottom: 1px solid #101317; box-shadow: 0px 5px 6px rgba(0, 0, 0, 0.5); z-index: -1; -`,DX=B(F)` +`,LX=B(F)` flex-direction: row; justify-content: space-between; padding: 18px 18px 18px; -`,gx=B(F)` +`,hx=B(F)` padding: 18px 18px 18px; -`,LX=B(Ab)` +`,MX=B(Ob)` & { border-top: none; padding-bottom: 18px; font-size: 16px; } -`,jc=B(xy)` +`,Fc=B(wy)` margin: auto 0px 2px 0px; opacity: 75%; -`,MX=B(F)` +`,PX=B(F)` flex-direction: column; border-bottom: 1px solid #101317; z-index: 0; @@ -1495,7 +1495,7 @@ ${({disabled:e})=>e&&YO` .episode-title { font-size: 20px; font-weight: 600; - color: ${M.white}; + color: ${P.white}; } .show { @@ -1504,37 +1504,37 @@ ${({disabled:e})=>e&&YO` font-size: 12px; font-style: normal; font-weight: 400; - color: ${M.white}; + color: ${P.white}; margin-left: 8px; } } -`,PX=({selectedNodeShow:e})=>{const t=Pt(),r=Mo(),{type:n}=t||{},a=Ct(i=>i.currentSearch);return h.jsxs(MX,{p:20,children:[h.jsx(F,{align:"flex-start",children:n&&h.jsx(ri,{type:n})}),h.jsx(F,{direction:"row",mb:22,mt:22,children:h.jsx(F,{grow:1,shrink:1,children:h.jsx(pt,{className:"episode-title",kind:"heading",children:qr((t==null?void 0:t.episode_title)||"Unknown",a)})})}),e?h.jsxs(F,{className:"show",direction:"row",onClick:()=>r(e),children:[h.jsx($r,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),h.jsx(pt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},$X="Flow 1",jX=0,FX=12,BX=15,UX={g:"LottieFiles Figma v45"},GX=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],zX="5.7.0",qX=60,HX=57.6,WX=0,VX=[],YX={nm:$X,ddd:jX,h:FX,w:BX,meta:UX,layers:GX,v:zX,fr:qX,op:HX,ip:WX,assets:VX},KX=()=>{const e=P.useRef(null);return P.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=pM.loadAnimation({container:t,animationData:YX,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),h.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},XX=B(F).attrs(()=>({direction:"row"}))` +`,$X=({selectedNodeShow:e})=>{const t=Pt(),r=Po(),{type:n}=t||{},a=Ct(i=>i.currentSearch);return m.jsxs(PX,{p:20,children:[m.jsx(F,{align:"flex-start",children:n&&m.jsx(ri,{type:n})}),m.jsx(F,{direction:"row",mb:22,mt:22,children:m.jsx(F,{grow:1,shrink:1,children:m.jsx(pt,{className:"episode-title",kind:"heading",children:qr((t==null?void 0:t.episode_title)||"Unknown",a)})})}),e?m.jsxs(F,{className:"show",direction:"row",onClick:()=>r(e),children:[m.jsx($r,{size:16,src:(e==null?void 0:e.image_url)||"",type:"show"}),m.jsx(pt,{className:"show__title",color:"mainBottomIcons",kind:"regular",children:e==null?void 0:e.show_title})]}):null]})},jX="Flow 1",FX=0,BX=12,UX=15,GX={g:"LottieFiles Figma v45"},zX=[{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[13.5,9],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[13.5,6],t:58},{s:[13.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:1},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,5],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,3],t:58},{s:[1.5,3],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,9],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,6],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[7.5,7],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[7.5,9],t:58},{s:[7.5,9],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,10],[0,10]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:2},{ty:4,nm:"Rectangle 4497",sr:1,st:0,op:60,ip:0,hd:!1,ddd:0,bm:0,hasMask:!1,ao:0,ks:{a:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,3],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},s:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100,100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100,100],t:58},{s:[100,100],t:59}]},sk:{a:0,k:0},p:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,9],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1.5,6],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1.5,6],t:58},{s:[1.5,6],t:59}]},r:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[0],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[0],t:58},{s:[0],t:59}]},sa:{a:0,k:0},o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}},shapes:[{ty:"sh",bm:0,hd:!1,nm:"",d:1,ks:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,6],[0,6]]}],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:58},{s:[{c:!0,i:[[0,0],[0,0],[0,0],[0,0]],o:[[0,0],[0,0],[0,0],[0,0]],v:[[0,0],[3,0],[3,12],[0,12]]}],t:59}]}},{ty:"fl",bm:0,hd:!1,nm:"",c:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[1,1,1],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[1,1,1],t:58},{s:[1,1,1],t:59}]},r:1,o:{a:1,k:[{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:0},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:1},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:19},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:20},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:38},{o:{x:0,y:0},i:{x:.58,y:1},s:[100],t:40},{o:{x:0,y:0},i:{x:1,y:1},s:[100],t:58},{s:[100],t:59}]}}],ind:3}],qX="5.7.0",HX=60,WX=57.6,VX=0,YX=[],KX={nm:jX,ddd:FX,h:BX,w:UX,meta:GX,layers:zX,v:qX,fr:HX,op:WX,ip:VX,assets:YX},XX=()=>{const e=M.useRef(null);return M.useEffect(()=>{const t=document.getElementById("lottie-timestamp-equalizer");return t&&(e.current=pM.loadAnimation({container:t,animationData:KX,loop:!0,autoplay:!0})),()=>{e.current&&e.current.destroy()}},[]),m.jsx("div",{id:"lottie-timestamp-equalizer",style:{width:"18px",height:"18px"}})},ZX=B(F).attrs(()=>({direction:"row"}))` cursor: pointer; - color: ${M.primaryText1}; - border-top: 1px solid ${M.black}; - background: ${e=>e.isSelected?"rgba(97, 138, 255, 0.1)":`${M.BG1}`}; + color: ${P.primaryText1}; + border-top: 1px solid ${P.black}; + background: ${e=>e.isSelected?"rgba(97, 138, 255, 0.1)":`${P.BG1}`}; .play-pause { font-size: 24px; border-radius: 4px; - color: ${M.GRAY7}; + color: ${P.GRAY7}; cursor: pointer; } .info { margin-left: auto; - color: ${M.GRAY7}; + color: ${P.GRAY7}; font-size: 24px; } &:hover { .play-pause { - color: ${M.white}; + color: ${P.white}; } } -`,ZX=({onClick:e,timestamp:t,isSelected:r,setOpenClip:n})=>{const a=r?"blueTextAccent":"placeholderText";return r?(fM,M[a]):(gM,M[a]),h.jsxs(XX,{align:"center","data-testid":"wrapper",direction:"row",isSelected:r,justify:"flex-start",onClick:e,px:20,py:20,children:[h.jsxs("div",{children:[h.jsx(p1,{className:"play-pause",children:r?h.jsx(KX,{}):h.jsx($M,{})}),!1]}),h.jsxs(JX,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&h.jsx("span",{className:"timestamp",children:uP(t.timestamp)}),h.jsx("span",{className:"title",children:Tb(t.show_title)})]}),h.jsx("div",{className:"info",children:h.jsx(F,{"data-testid":"info-icon-wrapper",onClick:()=>n(t),pt:4,children:h.jsx(hM,{})})})]})},JX=B(F)` +`,JX=({onClick:e,timestamp:t,isSelected:r,setOpenClip:n})=>{const a=r?"blueTextAccent":"placeholderText";return r?(fM,P[a]):(gM,P[a]),m.jsxs(ZX,{align:"center","data-testid":"wrapper",direction:"row",isSelected:r,justify:"flex-start",onClick:e,px:20,py:20,children:[m.jsxs("div",{children:[m.jsx(p1,{className:"play-pause",children:r?m.jsx(XX,{}):m.jsx($M,{})}),!1]}),m.jsxs(QX,{align:"flex-start",direction:"column",justify:"center",children:[t.timestamp&&m.jsx("span",{className:"timestamp",children:uP(t.timestamp)}),m.jsx("span",{className:"title",children:Ab(t.show_title)})]}),m.jsx("div",{className:"info",children:m.jsx(F,{"data-testid":"info-icon-wrapper",onClick:()=>n(t),pt:4,children:m.jsx(hM,{})})})]})},QX=B(F)` font-size: 13px; - color: ${M.white}; + color: ${P.white}; font-family: 'Barlow'; margin: 0 16px; flex-shrink: 1; @@ -1545,9 +1545,9 @@ ${({disabled:e})=>e&&YO` max-width: 100%; } .timestamp { - color: ${M.GRAY6}; + color: ${P.GRAY6}; } -`,QX=B(F)` +`,e7=B(F)` overflow: scroll; &::-webkit-scrollbar { @@ -1559,27 +1559,27 @@ ${({disabled:e})=>e&&YO` width: 1px; height: 4px; } -`,e7=()=>{const e=Pt(),t=y1(),[r,n]=P.useState(null),[a,i]=P.useState(null),[o,s,l,c,d]=Po(b=>[b.playingNode,b.setPlayingNodeLink,b.setPlayingTime,b.setIsSeeking,b.playingTime]),p=P.useMemo(()=>v1((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),g=P.useMemo(()=>t==null?void 0:t.nodes.find(b=>b.node_type==="show"&&b.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),m=P.useCallback(b=>{var v;const S=na(((v=b==null?void 0:b.timestamp)==null?void 0:v.split("-")[0])||"00:00:01");(o&&b.link&&(o==null?void 0:o.link)!==b.link||(!o||(o==null?void 0:o.link)!==b.link)&&b.link!==void 0)&&(s(b.link),l(0),c(!0)),l(S),c(!0),i(b)},[o,s,c,i,l]);return P.useEffect(()=>{p!=null&&p.length&&!p.some(b=>b.ref_id===(a==null?void 0:a.ref_id))&&m(p[0])},[p,a,m]),P.useEffect(()=>{if(p!=null&&p.length){const b=p.find(S=>{if(!S.timestamp)return!1;const v=na(S.timestamp.split("-")[0]);return Math.abs(v-d)<1});b&&b.ref_id!==(a==null?void 0:a.ref_id)&&i(b)}},[d,p,a]),e?h.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:h.jsxs(r7,{children:[r&&h.jsx(n7,{className:"slide-me",direction:"up",in:!!r,children:h.jsxs(t7,{children:[h.jsx(F,{className:"close-info",onClick:()=>n(null),children:h.jsx(ql,{})}),r&&h.jsx(XR,{node:r})]})}),h.jsx(PX,{selectedNodeShow:g}),!!(p!=null&&p.length)&&h.jsx(QX,{children:h.jsx(F,{pb:20,children:p==null?void 0:p.map((b,S)=>h.jsx(ZX,{isSelected:(a==null?void 0:a.ref_id)===b.ref_id,onClick:()=>m(b),setOpenClip:n,timestamp:b},`${b.episode_title}_${S}`))})})]})}):null},t7=B(F)` +`,t7=()=>{const e=Pt(),t=y1(),[r,n]=M.useState(null),[a,i]=M.useState(null),[o,s,l,c,d]=$o(b=>[b.playingNode,b.setPlayingNodeLink,b.setPlayingTime,b.setIsSeeking,b.playingTime]),p=M.useMemo(()=>v1((t==null?void 0:t.nodes)||[],e),[t==null?void 0:t.nodes,e]),g=M.useMemo(()=>t==null?void 0:t.nodes.find(b=>b.node_type==="show"&&b.show_title===(e==null?void 0:e.show_title)),[t==null?void 0:t.nodes,e]),h=M.useCallback(b=>{var v;const S=na(((v=b==null?void 0:b.timestamp)==null?void 0:v.split("-")[0])||"00:00:01");(o&&b.link&&(o==null?void 0:o.link)!==b.link||(!o||(o==null?void 0:o.link)!==b.link)&&b.link!==void 0)&&(s(b.link),l(0),c(!0)),l(S),c(!0),i(b)},[o,s,c,i,l]);return M.useEffect(()=>{p!=null&&p.length&&!p.some(b=>b.ref_id===(a==null?void 0:a.ref_id))&&h(p[0])},[p,a,h]),M.useEffect(()=>{if(p!=null&&p.length){const b=p.find(S=>{if(!S.timestamp)return!1;const v=na(S.timestamp.split("-")[0]);return Math.abs(v-d)<1});b&&b.ref_id!==(a==null?void 0:a.ref_id)&&i(b)}},[d,p,a]),e?m.jsx("div",{style:{overflow:"auto",flex:1,width:"100%"},children:m.jsxs(n7,{children:[r&&m.jsx(a7,{className:"slide-me",direction:"up",in:!!r,children:m.jsxs(r7,{children:[m.jsx(F,{className:"close-info",onClick:()=>n(null),children:m.jsx(Hl,{})}),r&&m.jsx(XR,{node:r})]})}),m.jsx($X,{selectedNodeShow:g}),!!(p!=null&&p.length)&&m.jsx(e7,{children:m.jsx(F,{pb:20,children:p==null?void 0:p.map((b,S)=>m.jsx(JX,{isSelected:(a==null?void 0:a.ref_id)===b.ref_id,onClick:()=>h(b),setOpenClip:n,timestamp:b},`${b.episode_title}_${S}`))})})]})}):null},r7=B(F)` border-radius: 20px; overflow: hidden; height: 100%; .close-info { position: absolute; - color: ${M.white}; + color: ${P.white}; top: 20px; right: 20px; font-size: 20px; cursor: pointer; } -`,r7=B(F)` +`,n7=B(F)` position: relative; flex: 1; min-height: 100%; flex-direction: column; border-bottom: 1px solid #101317; box-shadow: 0px 5px 6px rgba(0, 0, 0, 0.5); -`,n7=B(Ca)` +`,a7=B(Ca)` && { position: sticky; left: 0; @@ -1588,28 +1588,28 @@ ${({disabled:e})=>e&&YO` top: 0; border-radius: 16px; overflow: hidden; - background: ${M.BG1}; + background: ${P.BG1}; z-index: 1; } -`,a7=()=>{const e=Pt(),t=e==null?void 0:e.name;return h.jsxs(F,{direction:"column",px:24,py:16,children:[h.jsx($r,{"data-testid":"person-image",size:80,src:(e==null?void 0:e.source_link)||"",type:"image"}),h.jsx(F,{py:20,children:h.jsx(pt,{color:"primaryText1",kind:"bigHeading",children:t})})]})},i7=()=>{const{sender_pic:e,sender_alias:t,date:r,message_content:n}=Pt()||{};return h.jsxs(F,{direction:"row",children:[h.jsx(l7,{src:e}),h.jsxs(o7,{children:[h.jsxs(F,{align:"flex-end",className:"info",direction:"row",children:[t&&h.jsx("span",{className:"info__name",children:t}),r&&h.jsx("span",{className:"info__date",children:r})]}),n&&h.jsx(s7,{dangerouslySetInnerHTML:{__html:dP(n)}})]})]})},o7=B(F)` - color: ${M.black}; +`,i7=()=>{const e=Pt(),t=e==null?void 0:e.name;return m.jsxs(F,{direction:"column",px:24,py:16,children:[m.jsx($r,{"data-testid":"person-image",size:80,src:(e==null?void 0:e.source_link)||"",type:"image"}),m.jsx(F,{py:20,children:m.jsx(pt,{color:"primaryText1",kind:"bigHeading",children:t})})]})},o7=()=>{const{sender_pic:e,sender_alias:t,date:r,message_content:n}=Pt()||{};return m.jsxs(F,{direction:"row",children:[m.jsx(u7,{src:e}),m.jsxs(s7,{children:[m.jsxs(F,{align:"flex-end",className:"info",direction:"row",children:[t&&m.jsx("span",{className:"info__name",children:t}),r&&m.jsx("span",{className:"info__date",children:r})]}),n&&m.jsx(l7,{dangerouslySetInnerHTML:{__html:dP(n)}})]})]})},s7=B(F)` + color: ${P.black}; border-radius: 8px; font-size: 20px; margin-left: 8px; flex: 1; .info__date { - color: ${M.textMessages}; + color: ${P.textMessages}; font-size: 14px; margin-left: 8px; } .info__name { - color: ${M.green400}; + color: ${P.green400}; font-size: 16px; } -`,s7=B.div` - background: ${M.white}; +`,l7=B.div` + background: ${P.white}; border-radius: 8px; padding: 16px; position: relative; @@ -1619,35 +1619,35 @@ ${({disabled:e})=>e&&YO` height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; - border-top: 10px solid ${M.white}; + border-top: 10px solid ${P.white}; position: absolute; left: -6px; top: 0; } .username { - color: ${M.blueTextAccent}; + color: ${P.blueTextAccent}; } a { - color: ${M.blueTextAccent}; + color: ${P.blueTextAccent}; text-decoration: none; } a:hover, a:visited { - color: ${M.blueTextAccent}; + color: ${P.blueTextAccent}; text-decoration: none; } -`,l7=B.img` +`,u7=B.img` width: 40px; height: 40px; border-radius: 50%; background: green; -`,u7=()=>{const e=Pt(),t=mM((e==null?void 0:e.ref_id)||""),r=(t==null?void 0:t.name)||(t==null?void 0:t.label);return h.jsxs(F,{direction:"row",px:24,py:16,children:[h.jsx($r,{"data-testid":"person-image",size:80,src:(t==null?void 0:t.image_url)||"person_placeholder_img.png",type:"person"}),h.jsx(F,{p:20,children:h.jsx(pt,{color:"primaryText1",kind:"bigHeading",children:r})})]})},c7=e=>h.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 16",fill:"none",children:h.jsx("g",{children:h.jsx("path",{d:"M3.54126 13.2369C3.36418 13.2369 3.21574 13.177 3.09595 13.0572C2.97616 12.9373 2.91626 12.7888 2.91626 12.6117C2.91626 12.4345 2.97616 12.2861 3.09595 12.1665C3.21574 12.0468 3.36418 11.987 3.54126 11.987H8.54926C8.72634 11.987 8.87478 12.0469 8.99457 12.1667C9.11436 12.2866 9.17426 12.4351 9.17426 12.6122C9.17426 12.7894 9.11436 12.9378 8.99457 13.0575C8.87478 13.1771 8.72634 13.2369 8.54926 13.2369H3.54126ZM3.54126 9.9036C3.36418 9.9036 3.21574 9.84369 3.09595 9.72385C2.97616 9.60401 2.91626 9.45551 2.91626 9.27835C2.91626 9.10119 2.97616 8.95278 3.09595 8.83312C3.21574 8.71347 3.36418 8.65365 3.54126 8.65365H11.8586C12.0356 8.65365 12.1841 8.71356 12.3039 8.8334C12.4237 8.95324 12.4836 9.10174 12.4836 9.2789C12.4836 9.45606 12.4237 9.60447 12.3039 9.72413C12.1841 9.84378 12.0356 9.9036 11.8586 9.9036H3.54126ZM3.54126 6.57027C3.36418 6.57027 3.21574 6.51035 3.09595 6.39052C2.97616 6.27067 2.91626 6.12217 2.91626 5.94502C2.91626 5.76785 2.97616 5.61944 3.09595 5.49979C3.21574 5.38014 3.36418 5.32031 3.54126 5.32031H11.8586C12.0356 5.32031 12.1841 5.38023 12.3039 5.50006C12.4237 5.61991 12.4836 5.76841 12.4836 5.94556C12.4836 6.12273 12.4237 6.27114 12.3039 6.39079C12.1841 6.51044 12.0356 6.57027 11.8586 6.57027H3.54126ZM14.0989 16.6936C14.0348 16.73 13.9721 16.7495 13.9106 16.7521C13.8492 16.7548 13.7864 16.7423 13.7223 16.7145C13.6582 16.6867 13.608 16.6456 13.5717 16.5911C13.5354 16.5366 13.5172 16.4704 13.5172 16.3924V11.9726C13.5172 11.8956 13.5354 11.8283 13.5717 11.7706C13.608 11.7129 13.6582 11.6702 13.7223 11.6424C13.7864 11.6147 13.8492 11.6021 13.9106 11.6048C13.9721 11.6074 14.0348 11.6269 14.0989 11.6633L17.4434 13.8604C17.507 13.8984 17.5514 13.9459 17.5768 14.0029C17.6022 14.06 17.6149 14.1202 17.6149 14.1836C17.6149 14.2469 17.6022 14.3069 17.5768 14.3634C17.5514 14.4198 17.507 14.4669 17.4434 14.5046L14.0989 16.6936Z",fill:"#909BAA"})})}),d7=({node:e,onClick:t})=>{var a,i;const r=na(e.timestamp||""),n=Math.ceil(r/60);return h.jsx(p7,{onClick:t,p:20,children:h.jsxs("div",{children:[h.jsxs(F,{align:"flex-start",direction:"row",justify:"flex-start",children:[h.jsx(F,{align:"center",children:h.jsx($r,{size:64,src:(e==null?void 0:e.image_url)||"",type:(e==null?void 0:e.node_type)||"episode"})}),h.jsxs("div",{className:"content",children:[h.jsxs(F,{align:"center",direction:"row",children:[h.jsx(ri,{type:"episode"}),n>0&&h.jsxs("div",{className:"subtitle",children:[n," ",n===1?"min":"mins"]})]}),h.jsx(pt,{className:"title",color:"primaryText1",kind:"regular",children:e.episode_title})]})]}),h.jsxs(F,{align:"center",direction:"row",justify:"flex-end",children:[h.jsxs(pt,{className:"clipText",color:"mainBottomIcons",kind:"regular",children:[((a=e==null?void 0:e.children)==null?void 0:a.length)||0," ",((i=e==null?void 0:e.children)==null?void 0:i.length)===1?"Clip":"Clips"]}),h.jsx(c7,{style:{color:M.white}})]})]})})},p7=B(F).attrs({})` +`,c7=()=>{const e=Pt(),t=mM((e==null?void 0:e.ref_id)||""),r=(t==null?void 0:t.name)||(t==null?void 0:t.label);return m.jsxs(F,{direction:"row",px:24,py:16,children:[m.jsx($r,{"data-testid":"person-image",size:80,src:(t==null?void 0:t.image_url)||"person_placeholder_img.png",type:"person"}),m.jsx(F,{p:20,children:m.jsx(pt,{color:"primaryText1",kind:"bigHeading",children:r})})]})},d7=e=>m.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 16",fill:"none",children:m.jsx("g",{children:m.jsx("path",{d:"M3.54126 13.2369C3.36418 13.2369 3.21574 13.177 3.09595 13.0572C2.97616 12.9373 2.91626 12.7888 2.91626 12.6117C2.91626 12.4345 2.97616 12.2861 3.09595 12.1665C3.21574 12.0468 3.36418 11.987 3.54126 11.987H8.54926C8.72634 11.987 8.87478 12.0469 8.99457 12.1667C9.11436 12.2866 9.17426 12.4351 9.17426 12.6122C9.17426 12.7894 9.11436 12.9378 8.99457 13.0575C8.87478 13.1771 8.72634 13.2369 8.54926 13.2369H3.54126ZM3.54126 9.9036C3.36418 9.9036 3.21574 9.84369 3.09595 9.72385C2.97616 9.60401 2.91626 9.45551 2.91626 9.27835C2.91626 9.10119 2.97616 8.95278 3.09595 8.83312C3.21574 8.71347 3.36418 8.65365 3.54126 8.65365H11.8586C12.0356 8.65365 12.1841 8.71356 12.3039 8.8334C12.4237 8.95324 12.4836 9.10174 12.4836 9.2789C12.4836 9.45606 12.4237 9.60447 12.3039 9.72413C12.1841 9.84378 12.0356 9.9036 11.8586 9.9036H3.54126ZM3.54126 6.57027C3.36418 6.57027 3.21574 6.51035 3.09595 6.39052C2.97616 6.27067 2.91626 6.12217 2.91626 5.94502C2.91626 5.76785 2.97616 5.61944 3.09595 5.49979C3.21574 5.38014 3.36418 5.32031 3.54126 5.32031H11.8586C12.0356 5.32031 12.1841 5.38023 12.3039 5.50006C12.4237 5.61991 12.4836 5.76841 12.4836 5.94556C12.4836 6.12273 12.4237 6.27114 12.3039 6.39079C12.1841 6.51044 12.0356 6.57027 11.8586 6.57027H3.54126ZM14.0989 16.6936C14.0348 16.73 13.9721 16.7495 13.9106 16.7521C13.8492 16.7548 13.7864 16.7423 13.7223 16.7145C13.6582 16.6867 13.608 16.6456 13.5717 16.5911C13.5354 16.5366 13.5172 16.4704 13.5172 16.3924V11.9726C13.5172 11.8956 13.5354 11.8283 13.5717 11.7706C13.608 11.7129 13.6582 11.6702 13.7223 11.6424C13.7864 11.6147 13.8492 11.6021 13.9106 11.6048C13.9721 11.6074 14.0348 11.6269 14.0989 11.6633L17.4434 13.8604C17.507 13.8984 17.5514 13.9459 17.5768 14.0029C17.6022 14.06 17.6149 14.1202 17.6149 14.1836C17.6149 14.2469 17.6022 14.3069 17.5768 14.3634C17.5514 14.4198 17.507 14.4669 17.4434 14.5046L14.0989 16.6936Z",fill:"#909BAA"})})}),p7=({node:e,onClick:t})=>{var a,i;const r=na(e.timestamp||""),n=Math.ceil(r/60);return m.jsx(f7,{onClick:t,p:20,children:m.jsxs("div",{children:[m.jsxs(F,{align:"flex-start",direction:"row",justify:"flex-start",children:[m.jsx(F,{align:"center",children:m.jsx($r,{size:64,src:(e==null?void 0:e.image_url)||"",type:(e==null?void 0:e.node_type)||"episode"})}),m.jsxs("div",{className:"content",children:[m.jsxs(F,{align:"center",direction:"row",children:[m.jsx(ri,{type:"episode"}),n>0&&m.jsxs("div",{className:"subtitle",children:[n," ",n===1?"min":"mins"]})]}),m.jsx(pt,{className:"title",color:"primaryText1",kind:"regular",children:e.episode_title})]})]}),m.jsxs(F,{align:"center",direction:"row",justify:"flex-end",children:[m.jsxs(pt,{className:"clipText",color:"mainBottomIcons",kind:"regular",children:[((a=e==null?void 0:e.children)==null?void 0:a.length)||0," ",((i=e==null?void 0:e.children)==null?void 0:i.length)===1?"Clip":"Clips"]}),m.jsx(d7,{style:{color:P.white}})]})]})})},f7=B(F).attrs({})` direction: row; cursor: pointer; - color: ${M.primaryText1}; + color: ${P.primaryText1}; border-bottom: 1px solid #101317; .content { @@ -1669,7 +1669,7 @@ ${({disabled:e})=>e&&YO` font-size: 12px; margin-right: 6px; } -`,f7=B(F)` +`,g7=B(F)` flex: 1; min-height: 100%; flex-direction: column; @@ -1680,20 +1680,20 @@ ${({disabled:e})=>e&&YO` .subtitle { font-size: 0.75rem; font-weight: 400; - color: ${M.GRAY6}; + color: ${P.GRAY6}; margin-left: 8px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } -`,g7=B(F)` +`,h7=B(F)` flex-direction: column; border-bottom: 1px solid #101317; z-index: 0; padding: 42px 20px; background-color: #1c1e26; -`,h7=B(pt)` +`,m7=B(pt)` font-size: 20px; font-weight: 700; max-width: 250px; @@ -1705,10 +1705,10 @@ ${({disabled:e})=>e&&YO` display: -webkit-box; -webkit-line-clamp: 2; margin-bottom: 26px; -`,m7=B.div` +`,b7=B.div` max-height: calc(100vh - 340px); overflow-y: auto; -`,b7=()=>{const e=Pt(),t=Mo(),r=y1(),[n,a]=P.useState([]),i=P.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((d,p)=>{var b,S,v,O;const g=v1((r==null?void 0:r.nodes)||[],e)||[],m=r==null?void 0:r.nodes.find(_=>_.ref_id===d);if(m){m.timestamp=(b=g[0])==null?void 0:b.timestamp;const _=(O=(v=(S=g[p])==null?void 0:S.hosts)==null?void 0:v[0])==null?void 0:O.name;_&&o.add(_),s[d]=m,s[d]=m}});const c=Array.from(o);a(c)}return Object.values(s).filter(c=>c.node_type==="episode").sort((c,d)=>(d.weight||0)-(c.weight||0))},[r==null?void 0:r.nodes,e]);return h.jsxs(f7,{children:[h.jsx(g7,{children:h.jsxs(F,{direction:"row",children:[h.jsx(F,{pr:24,children:h.jsx($r,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),h.jsx(F,{direction:"column",children:h.jsxs(F,{direction:"column",grow:1,justify:"space-between",children:[h.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[h.jsx(ri,{type:"show"})," ",h.jsxs("div",{className:"subtitle",children:["by ",n.join(", ")||(e==null?void 0:e.show_title)]})]}),h.jsx(h7,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),h.jsxs(F,{direction:"column",children:[h.jsx(F,{p:24,children:h.jsx(pt,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),h.jsx(m7,{children:i.map(o=>h.jsx(d7,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},y7=()=>{const e=Pt();return h.jsx(F,{align:"center",justify:"center",children:h.jsx(pt,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},v7=()=>{const e=Pt(),t=e?Ob(e):null,{date:r,boost:n,text:a,name:i,verified:o,image_url:s,twitter_handle:l,ref_id:c}=t||{},d=(t==null?void 0:t.tweet_id)||"",[p,g]=P.useState(n||0),m=Ct(b=>b.currentSearch);return t&&h.jsxs(h.Fragment,{children:[h.jsxs(F,{direction:"column",p:24,children:[h.jsxs(F,{align:"center",direction:"row",pr:16,children:[h.jsx(S7,{children:h.jsx($r,{rounded:!0,size:58,src:s||"",type:"person"})}),h.jsxs(F,{children:[h.jsxs(E7,{align:"center",direction:"row",children:[i,o&&h.jsx("div",{className:"verification",children:h.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&h.jsxs(x7,{children:["@",l]})]})]}),h.jsxs(F,{grow:1,shrink:1,children:[h.jsx(w7,{"data-testid":"episode-description",children:qr(a||"",m)}),h.jsx(F,{direction:"row",justify:"flex-start",children:!!r&&h.jsx(oa,{children:ei.unix(r).format("ll")})})]}),h.jsx(F,{align:"stretch",mt:22,children:h.jsx("a",{href:`https://twitter.com/${l}/status/${d}?open=system`,rel:"noopener noreferrer",target:"_blank",children:h.jsx(T7,{endIcon:h.jsx(vn,{}),children:"View Tweet"})})})]}),h.jsx(_7,{}),h.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[h.jsx(Vl,{amt:p}),h.jsx(Ey,{content:t,count:p,refId:c,updateCount:g})]})]})},S7=B(F)` +`,y7=()=>{const e=Pt(),t=Po(),r=y1(),[n,a]=M.useState([]),i=M.useMemo(()=>{var l;const o=new Set,s={};if((l=e==null?void 0:e.children)!=null&&l.length){e.children.forEach((d,p)=>{var b,S,v,O;const g=v1((r==null?void 0:r.nodes)||[],e)||[],h=r==null?void 0:r.nodes.find(_=>_.ref_id===d);if(h){h.timestamp=(b=g[0])==null?void 0:b.timestamp;const _=(O=(v=(S=g[p])==null?void 0:S.hosts)==null?void 0:v[0])==null?void 0:O.name;_&&o.add(_),s[d]=h,s[d]=h}});const c=Array.from(o);a(c)}return Object.values(s).filter(c=>c.node_type==="episode").sort((c,d)=>(d.weight||0)-(c.weight||0))},[r==null?void 0:r.nodes,e]);return m.jsxs(g7,{children:[m.jsx(h7,{children:m.jsxs(F,{direction:"row",children:[m.jsx(F,{pr:24,children:m.jsx($r,{size:80,src:(e==null?void 0:e.image_url)||"audio_default.svg",type:"show"})}),m.jsx(F,{direction:"column",children:m.jsxs(F,{direction:"column",grow:1,justify:"space-between",children:[m.jsxs(F,{align:"center",direction:"row",justify:"flex-start",children:[m.jsx(ri,{type:"show"})," ",m.jsxs("div",{className:"subtitle",children:["by ",n.join(", ")||(e==null?void 0:e.show_title)]})]}),m.jsx(m7,{kind:"bigHeading",children:(e==null?void 0:e.show_title)||"Unknown"})]})})]})}),m.jsxs(F,{direction:"column",children:[m.jsx(F,{p:24,children:m.jsx(pt,{className:"relatedHeader",kind:"medium",children:"Related Episodes"})}),m.jsx(b7,{children:i.map(o=>m.jsx(p7,{node:o,onClick:()=>t(o)},o.ref_id))})]})]})},v7=()=>{const e=Pt();return m.jsx(F,{align:"center",justify:"center",children:m.jsx(pt,{color:"primaryText1",kind:"hugeHeading",children:e==null?void 0:e.label})})},S7=()=>{const e=Pt(),t=e?kb(e):null,{date:r,boost:n,text:a,name:i,verified:o,image_url:s,twitter_handle:l,ref_id:c}=t||{},d=(t==null?void 0:t.tweet_id)||"",[p,g]=M.useState(n||0),h=Ct(b=>b.currentSearch);return t&&m.jsxs(m.Fragment,{children:[m.jsxs(F,{direction:"column",p:24,children:[m.jsxs(F,{align:"center",direction:"row",pr:16,children:[m.jsx(E7,{children:m.jsx($r,{rounded:!0,size:58,src:s||"",type:"person"})}),m.jsxs(F,{children:[m.jsxs(x7,{align:"center",direction:"row",children:[i,o&&m.jsx("div",{className:"verification",children:m.jsx("img",{alt:"verified",src:"verified_twitter.svg"})})]}),l&&m.jsxs(w7,{children:["@",l]})]})]}),m.jsxs(F,{grow:1,shrink:1,children:[m.jsx(_7,{"data-testid":"episode-description",children:qr(a||"",h)}),m.jsx(F,{direction:"row",justify:"flex-start",children:!!r&&m.jsx(oa,{children:ei.unix(r).format("ll")})})]}),m.jsx(F,{align:"stretch",mt:22,children:m.jsx("a",{href:`https://twitter.com/${l}/status/${d}?open=system`,rel:"noopener noreferrer",target:"_blank",children:m.jsx(A7,{endIcon:m.jsx(vn,{}),children:"View Tweet"})})})]}),m.jsx(T7,{}),m.jsxs(F,{direction:"row",justify:"space-between",pt:14,px:24,children:[m.jsx(Yl,{amt:p}),m.jsx(xy,{content:t,count:p,refId:c,updateCount:g})]})]})},E7=B(F)` img { width: 64px; height: 64px; @@ -1716,8 +1716,8 @@ ${({disabled:e})=>e&&YO` object-fit: cover; } margin-right: 16px; -`,E7=B(F)` - color: ${M.white}; +`,x7=B(F)` + color: ${P.white}; font-family: Barlow; font-size: 14px; font-style: normal; @@ -1727,15 +1727,15 @@ ${({disabled:e})=>e&&YO` .verification { margin-left: 4px; } -`,x7=B(F)` - color: ${M.GRAY7}; +`,w7=B(F)` + color: ${P.GRAY7}; font-family: Barlow; font-size: 14px; font-style: normal; font-weight: 400; line-height: normal; -`,w7=B(F)` - color: ${M.white}; +`,_7=B(F)` + color: ${P.white}; font-family: Barlow; font-size: 17px; font-weight: 400; @@ -1747,34 +1747,34 @@ ${({disabled:e})=>e&&YO` -webkit-box-orient: vertical; overflow: hidden; white-space: normal; -`,_7=B(xy)` +`,T7=B(wy)` margin: 0 0 6px 0; opacity: 75%; -`,T7=B(Mt)` +`,A7=B(Mt)` width: 100%; -`;function A7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function O7(e,t){if(e==null)return{};var r,n,a=A7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;ne.length)&&(t=e.length);for(var r=0,n=Array(t);r=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Fc={};function P7(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Fc[t]||(Fc[t]=M7(e)),Fc[t]}function $7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(i){return i!=="token"}),a=P7(n);return a.reduce(function(i,o){return ka(ka({},i),r[o])},t)}function mx(e){return e.join(" ")}function j7(e,t){var r=0;return function(n){return r+=1,n.map(function(a,i){return JR({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})})}}function JR(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,d=t.value;if(l==="text")return d;if(c){var p=j7(r,i),g;if(!i)g=ka(ka({},s),{},{className:mx(s.className)});else{var m=Object.keys(r).reduce(function(O,_){return _.split(".").forEach(function(w){O.includes(w)||O.push(w)}),O},[]),b=s.className&&s.className.includes("token")?["token"]:[],S=s.className&&b.concat(s.className.filter(function(O){return!m.includes(O)}));g=ka(ka({},s),{},{className:mx(S)||void 0,style:$7(s.className,Object.assign({},s.style,a),r)})}var v=p(t.children);return U.createElement(c,ib({key:o},g),v)}}const F7=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var B7=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function bx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return Us({children:x,lineNumber:E,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:r,className:k,showLineNumbers:n,wrapLongLines:l})}function S(x,E){if(n&&E&&a){var k=eI(s,E,o);x.unshift(QR(E,k))}return x}function v(x,E){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||k.length>0?b(x,E,k):S(x,E)}for(var O=function(){var E=d[m],k=E.children[0].value,N=G7(k);if(N){var I=k.split(` +`;function O7(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function k7(e,t){if(e==null)return{};var r,n,a=O7(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;ne.length)&&(t=e.length);for(var r=0,n=Array(t);r=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var Bc={};function $7(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Bc[t]||(Bc[t]=P7(e)),Bc[t]}function j7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(i){return i!=="token"}),a=$7(n);return a.reduce(function(i,o){return ka(ka({},i),r[o])},t)}function bx(e){return e.join(" ")}function F7(e,t){var r=0;return function(n){return r+=1,n.map(function(a,i){return JR({node:a,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(i)})})}}function JR(e){var t=e.node,r=e.stylesheet,n=e.style,a=n===void 0?{}:n,i=e.useInlineStyles,o=e.key,s=t.properties,l=t.type,c=t.tagName,d=t.value;if(l==="text")return d;if(c){var p=F7(r,i),g;if(!i)g=ka(ka({},s),{},{className:bx(s.className)});else{var h=Object.keys(r).reduce(function(O,_){return _.split(".").forEach(function(w){O.includes(w)||O.push(w)}),O},[]),b=s.className&&s.className.includes("token")?["token"]:[],S=s.className&&b.concat(s.className.filter(function(O){return!h.includes(O)}));g=ka(ka({},s),{},{className:bx(S)||void 0,style:j7(s.className,Object.assign({},s.style,a),r)})}var v=p(t.children);return U.createElement(c,ob({key:o},g),v)}}const B7=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var U7=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function yx(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gr(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n2&&arguments[2]!==void 0?arguments[2]:[];return Gs({children:x,lineNumber:E,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:a,lineProps:r,className:k,showLineNumbers:n,wrapLongLines:l})}function S(x,E){if(n&&E&&a){var k=eI(s,E,o);x.unshift(QR(E,k))}return x}function v(x,E){var k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||k.length>0?b(x,E,k):S(x,E)}for(var O=function(){var E=d[h],k=E.children[0].value,N=z7(k);if(N){var I=k.split(` `);I.forEach(function(D,L){var j=n&&p.length+i,q={type:"text",value:"".concat(D,` -`)};if(L===0){var H=d.slice(g+1,m).concat(Us({children:[q],className:E.properties.className})),z=v(H,j);p.push(z)}else if(L===I.length-1){var W=d[m+1]&&d[m+1].children&&d[m+1].children[0],K={type:"text",value:"".concat(D)};if(W){var G=Us({children:[K],className:E.properties.className});d.splice(m+1,0,G)}else{var V=[K],J=v(V,j,E.properties.className);p.push(J)}}else{var ae=[q],re=v(ae,j,E.properties.className);p.push(re)}}),g=m}m++};m4&&r.slice(0,4)===Oy&&BZ.test(t)&&(t.charAt(4)==="-"?n=zZ(t):t=qZ(t),a=$Z),new a(n,t))}function zZ(e){var t=e.slice(5).replace(dI,WZ);return Oy+t.charAt(0).toUpperCase()+t.slice(1)}function qZ(e){var t=e.slice(4);return dI.test(t)?e:(t=t.replace(UZ,HZ),t.charAt(0)!=="-"&&(t="-"+t),Oy+t)}function HZ(e){return"-"+e.toLowerCase()}function WZ(e){return e.charAt(1).toUpperCase()}var VZ=YZ,xx=/[#.]/g;function YZ(e,t){for(var r=e||"",n=t||"div",a={},i=0,o,s,l;i=48&&t<=57}var mee=bee;function bee(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var yee=vee;function vee(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var See=yee,Eee=gI,xee=wee;function wee(e){return See(e)||Eee(e)}var Ms,_ee=59,Tee=Aee;function Aee(e){var t="&"+e+";",r;return Ms=Ms||document.createElement("i"),Ms.innerHTML=t,r=Ms.textContent,r.charCodeAt(r.length-1)===_ee&&e!=="semi"||r===t?!1:r}var Rx=fee,Ix=gee,Oee=gI,kee=mee,hI=xee,Ree=Tee,Iee=zee,Nee={}.hasOwnProperty,va=String.fromCharCode,Cee=Function.prototype,Nx={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Dee=9,Cx=10,Lee=12,Mee=32,Dx=38,Pee=59,$ee=60,jee=61,Fee=35,Bee=88,Uee=120,Gee=65533,wa="named",Iy="hexadecimal",Ny="decimal",Cy={};Cy[Iy]=16;Cy[Ny]=10;var Nu={};Nu[wa]=hI;Nu[Ny]=Oee;Nu[Iy]=kee;var mI=1,bI=2,yI=3,vI=4,SI=5,sb=6,EI=7,Fn={};Fn[mI]="Named character references must be terminated by a semicolon";Fn[bI]="Numeric character references must be terminated by a semicolon";Fn[yI]="Named character references cannot be empty";Fn[vI]="Numeric character references cannot be empty";Fn[SI]="Named character references must be known";Fn[sb]="Numeric character references cannot be disallowed";Fn[EI]="Numeric character references cannot be outside the permissible Unicode range";function zee(e,t){var r={},n,a;t||(t={});for(a in Nx)n=t[a],r[a]=n??Nx[a];return(r.position.indent||r.position.start)&&(r.indent=r.position.indent||[],r.position=r.position.start),qee(e,r)}function qee(e,t){var r=t.additional,n=t.nonTerminated,a=t.text,i=t.reference,o=t.warning,s=t.textContext,l=t.referenceContext,c=t.warningContext,d=t.position,p=t.indent||[],g=e.length,m=0,b=-1,S=d.column||1,v=d.line||1,O="",_=[],w,A,x,E,k,N,I,D,L,j,q,H,z,W,K,G,V,J,ae;for(typeof r=="string"&&(r=r.charCodeAt(0)),G=re(),D=o?ue:Cee,m--,g++;++m65535&&(N-=65536,j+=va(N>>>10|55296),N=56320|N&1023),N=j+va(N))):W!==wa&&D(vI,J)),N?(Se(),G=re(),m=ae-1,S+=ae-z+1,_.push(N),V=re(),V.offset++,i&&i.call(l,N,{start:G,end:V},e.slice(z-1,ae)),G=V):(E=e.slice(z-1,ae),O+=E,S+=E.length,m=ae-1)}else k===10&&(v++,b++,S=0),k===k?(O+=va(k),S++):Se();return _.join("");function re(){return{line:v,column:S,offset:m+(d.offset||0)}}function ue(Q,Ie){var Ue=re();Ue.column+=Ie,Ue.offset+=Ie,o.call(c,Fn[Q],Ue,Q)}function Se(){O&&(_.push(O),a&&a.call(s,O,{start:G,end:re()}),O="")}}function Hee(e){return e>=55296&&e<=57343||e>1114111}function Wee(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var xI={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** +`)};if(L===0){var H=d.slice(g+1,h).concat(Gs({children:[q],className:E.properties.className})),z=v(H,j);p.push(z)}else if(L===I.length-1){var W=d[h+1]&&d[h+1].children&&d[h+1].children[0],K={type:"text",value:"".concat(D)};if(W){var G=Gs({children:[K],className:E.properties.className});d.splice(h+1,0,G)}else{var V=[K],J=v(V,j,E.properties.className);p.push(J)}}else{var ae=[q],re=v(ae,j,E.properties.className);p.push(re)}}),g=h}h++};h4&&r.slice(0,4)===ky&&UZ.test(t)&&(t.charAt(4)==="-"?n=qZ(t):t=HZ(t),a=jZ),new a(n,t))}function qZ(e){var t=e.slice(5).replace(dI,VZ);return ky+t.charAt(0).toUpperCase()+t.slice(1)}function HZ(e){var t=e.slice(4);return dI.test(t)?e:(t=t.replace(GZ,WZ),t.charAt(0)!=="-"&&(t="-"+t),ky+t)}function WZ(e){return"-"+e.toLowerCase()}function VZ(e){return e.charAt(1).toUpperCase()}var YZ=KZ,wx=/[#.]/g;function KZ(e,t){for(var r=e||"",n=t||"div",a={},i=0,o,s,l;i=48&&t<=57}var bee=yee;function yee(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}var vee=See;function See(e){var t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}var Eee=vee,xee=gI,wee=_ee;function _ee(e){return Eee(e)||xee(e)}var Ps,Tee=59,Aee=Oee;function Oee(e){var t="&"+e+";",r;return Ps=Ps||document.createElement("i"),Ps.innerHTML=t,r=Ps.textContent,r.charCodeAt(r.length-1)===Tee&&e!=="semi"||r===t?!1:r}var Ix=gee,Nx=hee,kee=gI,Ree=bee,hI=wee,Iee=Aee,Nee=qee,Cee={}.hasOwnProperty,va=String.fromCharCode,Dee=Function.prototype,Cx={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},Lee=9,Dx=10,Mee=12,Pee=32,Lx=38,$ee=59,jee=60,Fee=61,Bee=35,Uee=88,Gee=120,zee=65533,wa="named",Ny="hexadecimal",Cy="decimal",Dy={};Dy[Ny]=16;Dy[Cy]=10;var Cu={};Cu[wa]=hI;Cu[Cy]=kee;Cu[Ny]=Ree;var mI=1,bI=2,yI=3,vI=4,SI=5,lb=6,EI=7,Fn={};Fn[mI]="Named character references must be terminated by a semicolon";Fn[bI]="Numeric character references must be terminated by a semicolon";Fn[yI]="Named character references cannot be empty";Fn[vI]="Numeric character references cannot be empty";Fn[SI]="Named character references must be known";Fn[lb]="Numeric character references cannot be disallowed";Fn[EI]="Numeric character references cannot be outside the permissible Unicode range";function qee(e,t){var r={},n,a;t||(t={});for(a in Cx)n=t[a],r[a]=n??Cx[a];return(r.position.indent||r.position.start)&&(r.indent=r.position.indent||[],r.position=r.position.start),Hee(e,r)}function Hee(e,t){var r=t.additional,n=t.nonTerminated,a=t.text,i=t.reference,o=t.warning,s=t.textContext,l=t.referenceContext,c=t.warningContext,d=t.position,p=t.indent||[],g=e.length,h=0,b=-1,S=d.column||1,v=d.line||1,O="",_=[],w,A,x,E,k,N,I,D,L,j,q,H,z,W,K,G,V,J,ae;for(typeof r=="string"&&(r=r.charCodeAt(0)),G=re(),D=o?ue:Dee,h--,g++;++h65535&&(N-=65536,j+=va(N>>>10|55296),N=56320|N&1023),N=j+va(N))):W!==wa&&D(vI,J)),N?(Se(),G=re(),h=ae-1,S+=ae-z+1,_.push(N),V=re(),V.offset++,i&&i.call(l,N,{start:G,end:V},e.slice(z-1,ae)),G=V):(E=e.slice(z-1,ae),O+=E,S+=E.length,h=ae-1)}else k===10&&(v++,b++,S=0),k===k?(O+=va(k),S++):Se();return _.join("");function re(){return{line:v,column:S,offset:h+(d.offset||0)}}function ue(Q,Ie){var Ue=re();Ue.column+=Ie,Ue.offset+=Ie,o.call(c,Fn[Q],Ue,Q)}function Se(){O&&(_.push(O),a&&a.call(s,O,{start:G,end:re()}),O="")}}function Wee(e){return e>=55296&&e<=57343||e>1114111}function Vee(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var xI={exports:{}};(function(e){var t=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** * Prism: Lightweight, robust, elegant syntax highlighting * * @license MIT * @author Lea Verou * @namespace * @public - */var r=function(n){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(w){return w instanceof l?new l(w.type,_(w.content),w.alias):Array.isArray(w)?w.map(_):w.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(x){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(_){var w=document.getElementsByTagName("script");for(var A in w)if(w[A].src==_)return w[A]}return null}},isActive:function(_,w,A){for(var x="no-"+w;_;){var E=_.classList;if(E.contains(w))return!0;if(E.contains(x))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,w){var A=s.util.clone(s.languages[_]);for(var x in w)A[x]=w[x];return A},insertBefore:function(_,w,A,x){x=x||s.languages;var E=x[_],k={};for(var N in E)if(E.hasOwnProperty(N)){if(N==w)for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I]);A.hasOwnProperty(N)||(k[N]=E[N])}var D=x[_];return x[_]=k,s.languages.DFS(s.languages,function(L,j){j===D&&L!=_&&(this[L]=k)}),k},DFS:function _(w,A,x,E){E=E||{};var k=s.util.objId;for(var N in w)if(w.hasOwnProperty(N)){A.call(w,N,w[N],x||N);var I=w[N],D=s.util.type(I);D==="Object"&&!E[k(I)]?(E[k(I)]=!0,_(I,A,null,E)):D==="Array"&&!E[k(I)]&&(E[k(I)]=!0,_(I,A,N,E))}}},plugins:{},highlightAll:function(_,w){s.highlightAllUnder(document,_,w)},highlightAllUnder:function(_,w,A){var x={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),s.hooks.run("before-all-elements-highlight",x);for(var E=0,k;k=x.elements[E++];)s.highlightElement(k,w===!0,x.callback)},highlightElement:function(_,w,A){var x=s.util.getLanguage(_),E=s.languages[x];s.util.setLanguage(_,x);var k=_.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(k,x);var N=_.textContent,I={element:_,language:x,grammar:E,code:N};function D(j){I.highlightedCode=j,s.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,s.hooks.run("after-highlight",I),s.hooks.run("complete",I),A&&A.call(I.element)}if(s.hooks.run("before-sanity-check",I),k=I.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!I.code){s.hooks.run("complete",I),A&&A.call(I.element);return}if(s.hooks.run("before-highlight",I),!I.grammar){D(s.util.encode(I.code));return}if(w&&n.Worker){var L=new Worker(s.filename);L.onmessage=function(j){D(j.data)},L.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else D(s.highlight(I.code,I.grammar,I.language))},highlight:function(_,w,A){var x={code:_,grammar:w,language:A};if(s.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=s.tokenize(x.code,x.grammar),s.hooks.run("after-tokenize",x),l.stringify(s.util.encode(x.tokens),x.language)},tokenize:function(_,w){var A=w.rest;if(A){for(var x in A)w[x]=A[x];delete w.rest}var E=new p;return g(E,E.head,_),d(_,E,w,E.head,0),b(E)},hooks:{all:{},add:function(_,w){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(w)},run:function(_,w){var A=s.hooks.all[_];if(!(!A||!A.length))for(var x=0,E;E=A[x++];)E(w)}},Token:l};n.Prism=s;function l(_,w,A,x){this.type=_,this.content=w,this.alias=A,this.length=(x||"").length|0}l.stringify=function _(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var x="";return w.forEach(function(D){x+=_(D,A)}),x}var E={type:w.type,content:_(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},k=w.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(E.classes,k):E.classes.push(k)),s.hooks.run("wrap",E);var N="";for(var I in E.attributes)N+=" "+I+'="'+(E.attributes[I]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+N+">"+E.content+""};function c(_,w,A,x){_.lastIndex=w;var E=_.exec(A);if(E&&x&&E[1]){var k=E[1].length;E.index+=k,E[0]=E[0].slice(k)}return E}function d(_,w,A,x,E,k){for(var N in A)if(!(!A.hasOwnProperty(N)||!A[N])){var I=A[N];I=Array.isArray(I)?I:[I];for(var D=0;D=k.reach);V+=G.value.length,G=G.next){var J=G.value;if(w.length>_.length)return;if(!(J instanceof l)){var ae=1,re;if(H){if(re=c(K,V,_,q),!re||re.index>=_.length)break;var Ie=re.index,ue=re.index+re[0].length,Se=V;for(Se+=G.value.length;Ie>=Se;)G=G.next,Se+=G.value.length;if(Se-=G.value.length,V=Se,G.value instanceof l)continue;for(var Q=G;Q!==w.tail&&(Sek.reach&&(k.reach=oe);var ie=G.prev;xe&&(ie=g(w,ie,xe),V+=xe.length),m(w,ie,ae);var X=new l(N,j?s.tokenize(Ue,j):Ue,z,Ue);if(G=g(w,ie,X),ee&&g(w,G,ee),ae>1){var Ee={cause:N+","+D,reach:oe};d(_,w,A,G.prev,V,Ee),k&&Ee.reach>k.reach&&(k.reach=Ee.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},w={value:null,prev:_,next:null};_.next=w,this.head=_,this.tail=w,this.length=0}function g(_,w,A){var x=w.next,E={value:A,prev:w,next:x};return w.next=E,x.prev=E,_.length++,E}function m(_,w,A){for(var x=w.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var Kee=Ly;Ly.displayName="css";Ly.aliases=[];function Ly(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(e)}var Xee=My;My.displayName="clike";My.aliases=[];function My(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var Zee=Py;Py.displayName="javascript";Py.aliases=["js"];function Py(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var Pi=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Tt=="object"?Tt:{},Jee=gte();Pi.Prism={manual:!0,disableWorkerMessageHandler:!0};var Qee=gJ,ete=Iee,wI=Vee,tte=Yee,rte=Kee,nte=Xee,ate=Zee;Jee();var $y={}.hasOwnProperty;function _I(){}_I.prototype=wI;var yt=new _I,ite=yt;yt.highlight=ste;yt.register=Zo;yt.alias=ote;yt.registered=lte;yt.listLanguages=ute;Zo(tte);Zo(rte);Zo(nte);Zo(ate);yt.util.encode=pte;yt.Token.stringify=cte;function Zo(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");yt.languages[e.displayName]===void 0&&e(yt)}function ote(e,t){var r=yt.languages,n=e,a,i,o,s;t&&(n={},n[e]=t);for(a in n)for(i=n[a],i=typeof i=="string"?[i]:i,o=i.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var Bc,Lx;function mte(){if(Lx)return Bc;Lx=1,Bc=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return Bc}var Uc,Mx;function bte(){if(Mx)return Uc;Mx=1,Uc=e,e.displayName="abnf",e.aliases=[];function e(t){(function(r){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";r.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return Uc}var Gc,Px;function yte(){if(Px)return Gc;Px=1,Gc=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return Gc}var zc,$x;function vte(){if($x)return zc;$x=1,zc=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return zc}var qc,jx;function Ste(){if(jx)return qc;jx=1,qc=e,e.displayName="agda",e.aliases=[];function e(t){(function(r){r.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return qc}var Hc,Fx;function Ete(){if(Fx)return Hc;Fx=1,Hc=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return Hc}var Wc,Bx;function xte(){if(Bx)return Wc;Bx=1,Wc=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return Wc}var Vc,Ux;function wte(){if(Ux)return Vc;Ux=1,Vc=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return Vc}var Yc,Gx;function jy(){if(Gx)return Yc;Gx=1,Yc=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Yc}var Kc,zx;function _te(){if(zx)return Kc;zx=1;var e=jy();Kc=t,t.displayName="apex",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(l){return RegExp(l.replace(//g,function(){return i}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};n.languages.apex={comment:n.languages.clike.comment,string:n.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:n.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(r)}return Kc}var Xc,qx;function Tte(){if(qx)return Xc;qx=1,Xc=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return Xc}var Zc,Hx;function Ate(){if(Hx)return Zc;Hx=1,Zc=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return Zc}var Jc,Wx;function Ote(){if(Wx)return Jc;Wx=1,Jc=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return Jc}var Qc,Vx;function ca(){if(Vx)return Qc;Vx=1,Qc=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return Qc}var ed,Yx;function Fy(){if(Yx)return ed;Yx=1;var e=ca();ed=t,t.displayName="cpp",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])}(r)}return ed}var td,Kx;function kte(){if(Kx)return td;Kx=1;var e=Fy();td=t,t.displayName="arduino",t.aliases=["ino"];function t(r){r.register(e),r.languages.arduino=r.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),r.languages.ino=r.languages.arduino}return td}var rd,Xx;function Rte(){if(Xx)return rd;Xx=1,rd=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return rd}var nd,Zx;function Ite(){if(Zx)return nd;Zx=1,nd=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(r){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=r.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,c=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return id}var od,ew;function Cu(){if(ew)return od;ew=1,od=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(r){function n(ae,re){return ae.replace(/<<(\d+)>>/g,function(ue,Se){return"(?:"+re[+Se]+")"})}function a(ae,re,ue){return RegExp(n(ae,re),ue||"")}function i(ae,re){for(var ue=0;ue>/g,function(){return"(?:"+ae+")"});return ae.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(ae){return"\\b(?:"+ae.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),c=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),d=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),g=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),m=i(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,S=n(/<<0>>(?:\s*<<1>>)?/.source,[b,g]),v=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,S]),O=/\[\s*(?:,\s*)*\]/.source,_=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,O]),w=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,m,O]),A=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,v,O]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,I=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;r.languages.csharp=r.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,S]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,b]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),r.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),r.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),r.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[m]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,v]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,g]),inside:{function:a(/^<<0>>/.source,[b]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,S,b,x,c.source,m,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[S,m]),lookbehind:!0,greedy:!0,inside:r.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var D=N+"|"+k,L=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[D]),j=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,H=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,j]);r.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[q,H]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[q]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[j]),inside:r.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),K=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),G=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[D]),2),V=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,z]);function J(ae,re){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ae]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[re,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:r.languages.csharp}}},string:/[\s\S]+/}}r.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:J(K,W)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:J(V,G)}],char:{pattern:RegExp(k),greedy:!0}}),r.languages.dotnet=r.languages.cs=r.languages.csharp})(t)}return od}var sd,tw;function Dte(){if(tw)return sd;tw=1;var e=Cu();sd=t,t.displayName="aspnet",t.aliases=[];function t(r){r.register(e),r.languages.aspnet=r.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:r.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:r.languages.csharp}}}),r.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.insertBefore("inside","punctuation",{directive:r.languages.aspnet.directive},r.languages.aspnet.tag.inside["attr-value"]),r.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),r.languages.insertBefore("aspnet",r.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:r.languages.csharp||{}}})}return sd}var ld,rw;function Lte(){if(rw)return ld;rw=1,ld=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return ld}var ud,nw;function Mte(){if(nw)return ud;nw=1,ud=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return ud}var cd,aw;function Pte(){if(aw)return cd;aw=1,cd=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(r){function n(d,p){return d.replace(/<<(\d+)>>/g,function(g,m){return p[+m]})}function a(d,p,g){return RegExp(n(d,p),g||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[o,s,l].join("|");r.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},r.languages.avs=r.languages.avisynth})(t)}return cd}var dd,iw;function $te(){if(iw)return dd;iw=1,dd=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return dd}var pd,ow;function TI(){if(ow)return pd;ow=1,pd=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=r.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return fd}var gd,lw;function jte(){if(lw)return gd;lw=1,gd=e,e.displayName="batch",e.aliases=[];function e(t){(function(r){var n=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;r.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:n,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:n,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return gd}var hd,uw;function Fte(){if(uw)return hd;uw=1,hd=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return hd}var md,cw;function Bte(){if(cw)return md;cw=1,md=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return md}var bd,dw;function Ute(){if(dw)return bd;dw=1,bd=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return bd}var yd,pw;function Gte(){if(pw)return yd;pw=1;var e=ca();yd=t,t.displayName="bison",t.aliases=[];function t(r){r.register(e),r.languages.bison=r.languages.extend("c",{}),r.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:r.languages.c}},comment:r.languages.c.comment,string:r.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return yd}var vd,fw;function zte(){if(fw)return vd;fw=1,vd=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return vd}var Sd,gw;function qte(){if(gw)return Sd;gw=1,Sd=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return Sd}var Ed,hw;function Hte(){if(hw)return Ed;hw=1,Ed=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return Ed}var xd,mw;function Wte(){if(mw)return xd;mw=1,xd=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return xd}var wd,bw;function Vte(){if(bw)return wd;bw=1,wd=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return wd}var _d,yw;function Yte(){if(yw)return _d;yw=1,_d=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return _d}var Td,vw;function Kte(){if(vw)return Td;vw=1;var e=Fy();Td=t,t.displayName="chaiscript",t.aliases=[];function t(r){r.register(e),r.languages.chaiscript=r.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[r.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),r.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),r.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Td}var Ad,Sw;function Xte(){if(Sw)return Ad;Sw=1,Ad=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return Ad}var Od,Ew;function Zte(){if(Ew)return Od;Ew=1,Od=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return Od}var kd,xw;function Jte(){if(xw)return kd;xw=1,kd=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return kd}var Rd,ww;function Qte(){if(ww)return Rd;ww=1,Rd=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return Rd}var Id,_w;function ere(){if(_w)return Id;_w=1,Id=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(r){var n=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:a}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript})(t)}return Id}var Nd,Tw;function tre(){if(Tw)return Nd;Tw=1,Nd=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return Nd}var Cd,Aw;function rre(){if(Aw)return Cd;Aw=1,Cd=e,e.displayName="coq",e.aliases=[];function e(t){(function(r){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),r.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Cd}var Dd,Ow;function Du(){if(Ow)return Dd;Ow=1,Dd=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(r){r.languages.ruby=r.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),r.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete r.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;r.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),r.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete r.languages.ruby.string,r.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),r.languages.rb=r.languages.ruby})(t)}return Dd}var Ld,kw;function nre(){if(kw)return Ld;kw=1;var e=Du();Ld=t,t.displayName="crystal",t.aliases=[];function t(r){r.register(e),function(n){n.languages.crystal=n.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,n.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),n.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:n.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:n.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(r)}return Ld}var Md,Rw;function are(){if(Rw)return Md;Rw=1;var e=Cu();Md=t,t.displayName="cshtml",t.aliases=["razor"];function t(r){r.register(e),function(n){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(v,O){for(var _=0;_/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var s=o(/\((?:[^()'"@/]|||)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),c=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,m=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=a,r.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return $d}var jd,Cw;function sre(){if(Cw)return jd;Cw=1,jd=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return jd}var Fd,Dw;function lre(){if(Dw)return Fd;Dw=1,Fd=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return Fd}var Bd,Lw;function ure(){if(Lw)return Bd;Lw=1,Bd=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return Bd}var Ud,Mw;function cre(){if(Mw)return Ud;Mw=1,Ud=e,e.displayName="dart",e.aliases=[];function e(t){(function(r){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};r.languages.dart=r.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),r.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.dart}}},string:/[\s\S]+/}},string:void 0}),r.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),r.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return Ud}var Gd,Pw;function dre(){if(Pw)return Gd;Pw=1,Gd=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(r){r.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return Gd}var zd,$w;function pre(){if($w)return zd;$w=1,zd=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return zd}var qd,jw;function fre(){if(jw)return qd;jw=1,qd=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return qd}var Hd,Fw;function gre(){if(Fw)return Hd;Fw=1,Hd=e,e.displayName="diff",e.aliases=[];function e(t){(function(r){r.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(a){var i=n[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),r.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r + */var r=function(n){var a=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,o={},s={manual:n.Prism&&n.Prism.manual,disableWorkerMessageHandler:n.Prism&&n.Prism.disableWorkerMessageHandler,util:{encode:function _(w){return w instanceof l?new l(w.type,_(w.content),w.alias):Array.isArray(w)?w.map(_):w.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(x){var _=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(x.stack)||[])[1];if(_){var w=document.getElementsByTagName("script");for(var A in w)if(w[A].src==_)return w[A]}return null}},isActive:function(_,w,A){for(var x="no-"+w;_;){var E=_.classList;if(E.contains(w))return!0;if(E.contains(x))return!1;_=_.parentElement}return!!A}},languages:{plain:o,plaintext:o,text:o,txt:o,extend:function(_,w){var A=s.util.clone(s.languages[_]);for(var x in w)A[x]=w[x];return A},insertBefore:function(_,w,A,x){x=x||s.languages;var E=x[_],k={};for(var N in E)if(E.hasOwnProperty(N)){if(N==w)for(var I in A)A.hasOwnProperty(I)&&(k[I]=A[I]);A.hasOwnProperty(N)||(k[N]=E[N])}var D=x[_];return x[_]=k,s.languages.DFS(s.languages,function(L,j){j===D&&L!=_&&(this[L]=k)}),k},DFS:function _(w,A,x,E){E=E||{};var k=s.util.objId;for(var N in w)if(w.hasOwnProperty(N)){A.call(w,N,w[N],x||N);var I=w[N],D=s.util.type(I);D==="Object"&&!E[k(I)]?(E[k(I)]=!0,_(I,A,null,E)):D==="Array"&&!E[k(I)]&&(E[k(I)]=!0,_(I,A,N,E))}}},plugins:{},highlightAll:function(_,w){s.highlightAllUnder(document,_,w)},highlightAllUnder:function(_,w,A){var x={callback:A,container:_,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};s.hooks.run("before-highlightall",x),x.elements=Array.prototype.slice.apply(x.container.querySelectorAll(x.selector)),s.hooks.run("before-all-elements-highlight",x);for(var E=0,k;k=x.elements[E++];)s.highlightElement(k,w===!0,x.callback)},highlightElement:function(_,w,A){var x=s.util.getLanguage(_),E=s.languages[x];s.util.setLanguage(_,x);var k=_.parentElement;k&&k.nodeName.toLowerCase()==="pre"&&s.util.setLanguage(k,x);var N=_.textContent,I={element:_,language:x,grammar:E,code:N};function D(j){I.highlightedCode=j,s.hooks.run("before-insert",I),I.element.innerHTML=I.highlightedCode,s.hooks.run("after-highlight",I),s.hooks.run("complete",I),A&&A.call(I.element)}if(s.hooks.run("before-sanity-check",I),k=I.element.parentElement,k&&k.nodeName.toLowerCase()==="pre"&&!k.hasAttribute("tabindex")&&k.setAttribute("tabindex","0"),!I.code){s.hooks.run("complete",I),A&&A.call(I.element);return}if(s.hooks.run("before-highlight",I),!I.grammar){D(s.util.encode(I.code));return}if(w&&n.Worker){var L=new Worker(s.filename);L.onmessage=function(j){D(j.data)},L.postMessage(JSON.stringify({language:I.language,code:I.code,immediateClose:!0}))}else D(s.highlight(I.code,I.grammar,I.language))},highlight:function(_,w,A){var x={code:_,grammar:w,language:A};if(s.hooks.run("before-tokenize",x),!x.grammar)throw new Error('The language "'+x.language+'" has no grammar.');return x.tokens=s.tokenize(x.code,x.grammar),s.hooks.run("after-tokenize",x),l.stringify(s.util.encode(x.tokens),x.language)},tokenize:function(_,w){var A=w.rest;if(A){for(var x in A)w[x]=A[x];delete w.rest}var E=new p;return g(E,E.head,_),d(_,E,w,E.head,0),b(E)},hooks:{all:{},add:function(_,w){var A=s.hooks.all;A[_]=A[_]||[],A[_].push(w)},run:function(_,w){var A=s.hooks.all[_];if(!(!A||!A.length))for(var x=0,E;E=A[x++];)E(w)}},Token:l};n.Prism=s;function l(_,w,A,x){this.type=_,this.content=w,this.alias=A,this.length=(x||"").length|0}l.stringify=function _(w,A){if(typeof w=="string")return w;if(Array.isArray(w)){var x="";return w.forEach(function(D){x+=_(D,A)}),x}var E={type:w.type,content:_(w.content,A),tag:"span",classes:["token",w.type],attributes:{},language:A},k=w.alias;k&&(Array.isArray(k)?Array.prototype.push.apply(E.classes,k):E.classes.push(k)),s.hooks.run("wrap",E);var N="";for(var I in E.attributes)N+=" "+I+'="'+(E.attributes[I]||"").replace(/"/g,""")+'"';return"<"+E.tag+' class="'+E.classes.join(" ")+'"'+N+">"+E.content+""};function c(_,w,A,x){_.lastIndex=w;var E=_.exec(A);if(E&&x&&E[1]){var k=E[1].length;E.index+=k,E[0]=E[0].slice(k)}return E}function d(_,w,A,x,E,k){for(var N in A)if(!(!A.hasOwnProperty(N)||!A[N])){var I=A[N];I=Array.isArray(I)?I:[I];for(var D=0;D=k.reach);V+=G.value.length,G=G.next){var J=G.value;if(w.length>_.length)return;if(!(J instanceof l)){var ae=1,re;if(H){if(re=c(K,V,_,q),!re||re.index>=_.length)break;var Ie=re.index,ue=re.index+re[0].length,Se=V;for(Se+=G.value.length;Ie>=Se;)G=G.next,Se+=G.value.length;if(Se-=G.value.length,V=Se,G.value instanceof l)continue;for(var Q=G;Q!==w.tail&&(Sek.reach&&(k.reach=oe);var ie=G.prev;xe&&(ie=g(w,ie,xe),V+=xe.length),h(w,ie,ae);var X=new l(N,j?s.tokenize(Ue,j):Ue,z,Ue);if(G=g(w,ie,X),ee&&g(w,G,ee),ae>1){var Ee={cause:N+","+D,reach:oe};d(_,w,A,G.prev,V,Ee),k&&Ee.reach>k.reach&&(k.reach=Ee.reach)}}}}}}function p(){var _={value:null,prev:null,next:null},w={value:null,prev:_,next:null};_.next=w,this.head=_,this.tail=w,this.length=0}function g(_,w,A){var x=w.next,E={value:A,prev:w,next:x};return w.next=E,x.prev=E,_.length++,E}function h(_,w,A){for(var x=w.next,E=0;E/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(r,n){var a={};a["language-"+n]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[n]},a.cdata=/^$/i;var i={"included-cdata":{pattern://i,inside:a}};i["language-"+n]={pattern:/[\s\S]+/,inside:e.languages[n]};var o={};o[r]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return r}),"i"),lookbehind:!0,greedy:!0,inside:i},e.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,r){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[r,"language-"+r],inside:e.languages[r]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}var Xee=My;My.displayName="css";My.aliases=[];function My(e){(function(t){var r=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+r.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+r.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+r.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:r,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var n=t.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))})(e)}var Zee=Py;Py.displayName="clike";Py.aliases=[];function Py(e){e.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}var Jee=$y;$y.displayName="javascript";$y.aliases=["js"];function $y(e){e.languages.javascript=e.languages.extend("clike",{"class-name":[e.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}var Pi=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof Tt=="object"?Tt:{},Qee=hte();Pi.Prism={manual:!0,disableWorkerMessageHandler:!0};var ete=hJ,tte=Nee,wI=Yee,rte=Kee,nte=Xee,ate=Zee,ite=Jee;Qee();var jy={}.hasOwnProperty;function _I(){}_I.prototype=wI;var yt=new _I,ote=yt;yt.highlight=lte;yt.register=Jo;yt.alias=ste;yt.registered=ute;yt.listLanguages=cte;Jo(rte);Jo(nte);Jo(ate);Jo(ite);yt.util.encode=fte;yt.Token.stringify=dte;function Jo(e){if(typeof e!="function"||!e.displayName)throw new Error("Expected `function` for `grammar`, got `"+e+"`");yt.languages[e.displayName]===void 0&&e(yt)}function ste(e,t){var r=yt.languages,n=e,a,i,o,s;t&&(n={},n[e]=t);for(a in n)for(i=n[a],i=typeof i=="string"?[i]:i,o=i.length,s=-1;++s code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}};var Uc,Mx;function bte(){if(Mx)return Uc;Mx=1,Uc=e,e.displayName="abap",e.aliases=[];function e(t){t.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}return Uc}var Gc,Px;function yte(){if(Px)return Gc;Px=1,Gc=e,e.displayName="abnf",e.aliases=[];function e(t){(function(r){var n="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";r.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+n+"|<"+n+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(t)}return Gc}var zc,$x;function vte(){if($x)return zc;$x=1,zc=e,e.displayName="actionscript",e.aliases=[];function e(t){t.languages.actionscript=t.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<>?>?|[!=]=?)=?|[~?@]/}),t.languages.actionscript["class-name"].alias="function",delete t.languages.actionscript.parameter,delete t.languages.actionscript["literal-property"],t.languages.markup&&t.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:t.languages.markup}})}return zc}var qc,jx;function Ste(){if(jx)return qc;jx=1,qc=e,e.displayName="ada",e.aliases=[];function e(t){t.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}return qc}var Hc,Fx;function Ete(){if(Fx)return Hc;Fx=1,Hc=e,e.displayName="agda",e.aliases=[];function e(t){(function(r){r.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(t)}return Hc}var Wc,Bx;function xte(){if(Bx)return Wc;Bx=1,Wc=e,e.displayName="al",e.aliases=[];function e(t){t.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}return Wc}var Vc,Ux;function wte(){if(Ux)return Vc;Ux=1,Vc=e,e.displayName="antlr4",e.aliases=["g4"];function e(t){t.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},t.languages.g4=t.languages.antlr4}return Vc}var Yc,Gx;function _te(){if(Gx)return Yc;Gx=1,Yc=e,e.displayName="apacheconf",e.aliases=[];function e(t){t.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}return Yc}var Kc,zx;function Fy(){if(zx)return Kc;zx=1,Kc=e,e.displayName="sql",e.aliases=[];function e(t){t.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}return Kc}var Xc,qx;function Tte(){if(qx)return Xc;qx=1;var e=Fy();Xc=t,t.displayName="apex",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,i=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return a.source});function o(l){return RegExp(l.replace(//g,function(){return i}),"i")}var s={keyword:a,punctuation:/[()\[\]{};,:.<>]/};n.languages.apex={comment:n.languages.clike.comment,string:n.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:n.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:o(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:s},{pattern:o(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:s},{pattern:o(/(?=\s*\w+\s*[;=,(){:])/.source),inside:s}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:a,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(r)}return Xc}var Zc,Hx;function Ate(){if(Hx)return Zc;Hx=1,Zc=e,e.displayName="apl",e.aliases=[];function e(t){t.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}return Zc}var Jc,Wx;function Ote(){if(Wx)return Jc;Wx=1,Jc=e,e.displayName="applescript",e.aliases=[];function e(t){t.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}return Jc}var Qc,Vx;function kte(){if(Vx)return Qc;Vx=1,Qc=e,e.displayName="aql",e.aliases=[];function e(t){t.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}return Qc}var ed,Yx;function ca(){if(Yx)return ed;Yx=1,ed=e,e.displayName="c",e.aliases=[];function e(t){t.languages.c=t.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),t.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),t.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},t.languages.c.string],char:t.languages.c.char,comment:t.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:t.languages.c}}}}),t.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete t.languages.c.boolean}return ed}var td,Kx;function By(){if(Kx)return td;Kx=1;var e=ca();td=t,t.displayName="cpp",t.aliases=[];function t(r){r.register(e),function(n){var a=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,i=/\b(?!)\w+(?:\s*\.\s*\w+)*\b/.source.replace(//g,function(){return a.source});n.languages.cpp=n.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!)\w+/.source.replace(//g,function(){return a.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:a,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),n.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/(?:\s*:\s*)?|:\s*/.source.replace(//g,function(){return i})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),n.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n.languages.cpp}}}}),n.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),n.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:n.languages.extend("cpp",{})}}),n.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},n.languages.cpp["base-clause"])}(r)}return td}var rd,Xx;function Rte(){if(Xx)return rd;Xx=1;var e=By();rd=t,t.displayName="arduino",t.aliases=["ino"];function t(r){r.register(e),r.languages.arduino=r.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),r.languages.ino=r.languages.arduino}return rd}var nd,Zx;function Ite(){if(Zx)return nd;Zx=1,nd=e,e.displayName="arff",e.aliases=[];function e(t){t.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}return nd}var ad,Jx;function Nte(){if(Jx)return ad;Jx=1,ad=e,e.displayName="asciidoc",e.aliases=["adoc"];function e(t){(function(r){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},a=r.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(o){o=o.split(" ");for(var s={},l=0,c=o.length;l>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}return od}var sd,tw;function Du(){if(tw)return sd;tw=1,sd=e,e.displayName="csharp",e.aliases=["dotnet","cs"];function e(t){(function(r){function n(ae,re){return ae.replace(/<<(\d+)>>/g,function(ue,Se){return"(?:"+re[+Se]+")"})}function a(ae,re,ue){return RegExp(n(ae,re),ue||"")}function i(ae,re){for(var ue=0;ue>/g,function(){return"(?:"+ae+")"});return ae.replace(/<>/g,"[^\\s\\S]")}var o={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(ae){return"\\b(?:"+ae.trim().replace(/ /g,"|")+")\\b"}var l=s(o.typeDeclaration),c=RegExp(s(o.type+" "+o.typeDeclaration+" "+o.contextual+" "+o.other)),d=s(o.typeDeclaration+" "+o.contextual+" "+o.other),p=s(o.type+" "+o.typeDeclaration+" "+o.other),g=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),b=/@?\b[A-Za-z_]\w*\b/.source,S=n(/<<0>>(?:\s*<<1>>)?/.source,[b,g]),v=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,S]),O=/\[\s*(?:,\s*)*\]/.source,_=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[v,O]),w=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[g,h,O]),A=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[w]),x=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[A,v,O]),E={keyword:c,punctuation:/[<>()?,.:[\]]/},k=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,N=/"(?:\\.|[^\\"\r\n])*"/.source,I=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;r.languages.csharp=r.languages.extend("clike",{string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[I]),lookbehind:!0,greedy:!0},{pattern:a(/(^|[^@$\\])<<0>>/.source,[N]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[b,x]),lookbehind:!0,inside:E},{pattern:a(/(\busing\s+)<<0>>(?=\s*=)/.source,[b]),lookbehind:!0},{pattern:a(/(\b<<0>>\s+)<<1>>/.source,[l,S]),lookbehind:!0,inside:E},{pattern:a(/(\bcatch\s*\(\s*)<<0>>/.source,[v]),lookbehind:!0,inside:E},{pattern:a(/(\bwhere\s+)<<0>>/.source,[b]),lookbehind:!0},{pattern:a(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:E},{pattern:a(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[x,p,b]),inside:E}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),r.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),r.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:a(/([(,]\s*)<<0>>(?=\s*:)/.source,[b]),lookbehind:!0,alias:"punctuation"}}),r.languages.insertBefore("csharp","class-name",{namespace:{pattern:a(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[b]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:a(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:E},"return-type":{pattern:a(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[x,v]),inside:E,alias:"class-name"},"constructor-invocation":{pattern:a(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[x]),lookbehind:!0,inside:E,alias:"class-name"},"generic-method":{pattern:a(/<<0>>\s*<<1>>(?=\s*\()/.source,[b,g]),inside:{function:a(/^<<0>>/.source,[b]),generic:{pattern:RegExp(g),alias:"class-name",inside:E}}},"type-list":{pattern:a(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[l,S,b,x,c.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:a(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[S,h]),lookbehind:!0,greedy:!0,inside:r.languages.csharp},keyword:c,"class-name":{pattern:RegExp(x),greedy:!0,inside:E},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var D=N+"|"+k,L=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[D]),j=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),q=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,H=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[v,j]);r.languages.insertBefore("csharp","class-name",{attribute:{pattern:a(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[q,H]),lookbehind:!0,greedy:!0,inside:{target:{pattern:a(/^<<0>>(?=\s*:)/.source,[q]),alias:"keyword"},"attribute-arguments":{pattern:a(/\(<<0>>*\)/.source,[j]),inside:r.languages.csharp},"class-name":{pattern:RegExp(v),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=/:[^}\r\n]+/.source,W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[L]),2),K=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[W,z]),G=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[D]),2),V=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[G,z]);function J(ae,re){return{interpolation:{pattern:a(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[ae]),lookbehind:!0,inside:{"format-string":{pattern:a(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[re,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:r.languages.csharp}}},string:/[\s\S]+/}}r.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:a(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[K]),lookbehind:!0,greedy:!0,inside:J(K,W)},{pattern:a(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[V]),lookbehind:!0,greedy:!0,inside:J(V,G)}],char:{pattern:RegExp(k),greedy:!0}}),r.languages.dotnet=r.languages.cs=r.languages.csharp})(t)}return sd}var ld,rw;function Lte(){if(rw)return ld;rw=1;var e=Du();ld=t,t.displayName="aspnet",t.aliases=[];function t(r){r.register(e),r.languages.aspnet=r.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:r.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:r.languages.csharp}}}),r.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.insertBefore("inside","punctuation",{directive:r.languages.aspnet.directive},r.languages.aspnet.tag.inside["attr-value"]),r.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),r.languages.insertBefore("aspnet",r.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:r.languages.csharp||{}}})}return ld}var ud,nw;function Mte(){if(nw)return ud;nw=1,ud=e,e.displayName="autohotkey",e.aliases=[];function e(t){t.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}return ud}var cd,aw;function Pte(){if(aw)return cd;aw=1,cd=e,e.displayName="autoit",e.aliases=[];function e(t){t.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}return cd}var dd,iw;function $te(){if(iw)return dd;iw=1,dd=e,e.displayName="avisynth",e.aliases=["avs"];function e(t){(function(r){function n(d,p){return d.replace(/<<(\d+)>>/g,function(g,h){return p[+h]})}function a(d,p,g){return RegExp(n(d,p),g||"")}var i=/bool|clip|float|int|string|val/.source,o=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),l=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),c=[o,s,l].join("|");r.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:a(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:a(/\b(?:<<0>>)\b/.source,[c],"i"),alias:"function"},"type-cast":{pattern:a(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},r.languages.avs=r.languages.avisynth})(t)}return dd}var pd,ow;function jte(){if(ow)return pd;ow=1,pd=e,e.displayName="avroIdl",e.aliases=[];function e(t){t.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},t.languages.avdl=t.languages["avro-idl"]}return pd}var fd,sw;function TI(){if(sw)return fd;sw=1,fd=e,e.displayName="bash",e.aliases=["shell"];function e(t){(function(r){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",a={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:a,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};r.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:a}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},a.inside=r.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,l=0;l?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}return gd}var hd,uw;function Fte(){if(uw)return hd;uw=1,hd=e,e.displayName="batch",e.aliases=[];function e(t){(function(r){var n=/%%?[~:\w]+%?|!\S+!/,a={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,o=/(?:\b|-)\d+\b/;r.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:a,variable:n,number:o,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:a,variable:n,number:o,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:a,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:o,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:a,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:o,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(t)}return hd}var md,cw;function Bte(){if(cw)return md;cw=1,md=e,e.displayName="bbcode",e.aliases=["shortcode"];function e(t){t.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},t.languages.shortcode=t.languages.bbcode}return md}var bd,dw;function Ute(){if(dw)return bd;dw=1,bd=e,e.displayName="bicep",e.aliases=[];function e(t){t.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},t.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=t.languages.bicep}return bd}var yd,pw;function Gte(){if(pw)return yd;pw=1,yd=e,e.displayName="birb",e.aliases=[];function e(t){t.languages.birb=t.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),t.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}return yd}var vd,fw;function zte(){if(fw)return vd;fw=1;var e=ca();vd=t,t.displayName="bison",t.aliases=[];function t(r){r.register(e),r.languages.bison=r.languages.extend("c",{}),r.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:r.languages.c}},comment:r.languages.c.comment,string:r.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}return vd}var Sd,gw;function qte(){if(gw)return Sd;gw=1,Sd=e,e.displayName="bnf",e.aliases=["rbnf"];function e(t){t.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},t.languages.rbnf=t.languages.bnf}return Sd}var Ed,hw;function Hte(){if(hw)return Ed;hw=1,Ed=e,e.displayName="brainfuck",e.aliases=[];function e(t){t.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}return Ed}var xd,mw;function Wte(){if(mw)return xd;mw=1,xd=e,e.displayName="brightscript",e.aliases=[];function e(t){t.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},t.languages.brightscript["directive-statement"].inside.expression.inside=t.languages.brightscript}return xd}var wd,bw;function Vte(){if(bw)return wd;bw=1,wd=e,e.displayName="bro",e.aliases=[];function e(t){t.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}return wd}var _d,yw;function Yte(){if(yw)return _d;yw=1,_d=e,e.displayName="bsl",e.aliases=[];function e(t){t.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},t.languages.oscript=t.languages.bsl}return _d}var Td,vw;function Kte(){if(vw)return Td;vw=1,Td=e,e.displayName="cfscript",e.aliases=[];function e(t){t.languages.cfscript=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),t.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete t.languages.cfscript["class-name"],t.languages.cfc=t.languages.cfscript}return Td}var Ad,Sw;function Xte(){if(Sw)return Ad;Sw=1;var e=By();Ad=t,t.displayName="chaiscript",t.aliases=[];function t(r){r.register(e),r.languages.chaiscript=r.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[r.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),r.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),r.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}return Ad}var Od,Ew;function Zte(){if(Ew)return Od;Ew=1,Od=e,e.displayName="cil",e.aliases=[];function e(t){t.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}return Od}var kd,xw;function Jte(){if(xw)return kd;xw=1,kd=e,e.displayName="clojure",e.aliases=[];function e(t){t.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}return kd}var Rd,ww;function Qte(){if(ww)return Rd;ww=1,Rd=e,e.displayName="cmake",e.aliases=[];function e(t){t.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}return Rd}var Id,_w;function ere(){if(_w)return Id;_w=1,Id=e,e.displayName="cobol",e.aliases=[];function e(t){t.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}return Id}var Nd,Tw;function tre(){if(Tw)return Nd;Tw=1,Nd=e,e.displayName="coffeescript",e.aliases=["coffee"];function e(t){(function(r){var n=/#(?!\{).+/,a={pattern:/#\{[^}]+\}/,alias:"variable"};r.languages.coffeescript=r.languages.extend("javascript",{comment:n,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:a}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),r.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:n,interpolation:a}}}),r.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:r.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:a}}]}),r.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete r.languages.coffeescript["template-string"],r.languages.coffee=r.languages.coffeescript})(t)}return Nd}var Cd,Aw;function rre(){if(Aw)return Cd;Aw=1,Cd=e,e.displayName="concurnas",e.aliases=["conc"];function e(t){t.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},t.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:t.languages.concurnas},string:/[\s\S]+/}}}),t.languages.conc=t.languages.concurnas}return Cd}var Dd,Ow;function nre(){if(Ow)return Dd;Ow=1,Dd=e,e.displayName="coq",e.aliases=[];function e(t){(function(r){for(var n=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|)*\*\)/.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,"[]"),r.languages.coq={comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|)*\]/.source.replace(//g,function(){return n})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(n),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(t)}return Dd}var Ld,kw;function Lu(){if(kw)return Ld;kw=1,Ld=e,e.displayName="ruby",e.aliases=["rb"];function e(t){(function(r){r.languages.ruby=r.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===||[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),r.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var n={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:r.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete r.languages.ruby.function;var a="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;r.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+a+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:n,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),r.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+a),greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:n,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+a),greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:n,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete r.languages.ruby.string,r.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),r.languages.rb=r.languages.ruby})(t)}return Ld}var Md,Rw;function are(){if(Rw)return Md;Rw=1;var e=Lu();Md=t,t.displayName="crystal",t.aliases=[];function t(r){r.register(e),function(n){n.languages.crystal=n.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,n.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),n.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:n.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:n.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(r)}return Md}var Pd,Iw;function ire(){if(Iw)return Pd;Iw=1;var e=Du();Pd=t,t.displayName="cshtml",t.aliases=["razor"];function t(r){r.register(e),function(n){var a=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,i=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function o(v,O){for(var _=0;_/g,function(){return"(?:"+v+")"});return v.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+i+")").replace(//g,"(?:"+a+")")}var s=o(/\((?:[^()'"@/]|||)*\)/.source,2),l=o(/\[(?:[^\[\]'"@/]|||)*\]/.source,2),c=o(/\{(?:[^{}'"@/]|||)*\}/.source,2),d=o(/<(?:[^<>'"@/]|||)*>/.source,2),p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,h=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+o(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/|\+|~|\|\|/,punctuation:/[(),]/}},r.languages.css.atrule.inside["selector-function-argument"].inside=a,r.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};r.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:o})})(t)}return jd}var Fd,Dw;function lre(){if(Dw)return Fd;Dw=1,Fd=e,e.displayName="csv",e.aliases=[];function e(t){t.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}return Fd}var Bd,Lw;function ure(){if(Lw)return Bd;Lw=1,Bd=e,e.displayName="cypher",e.aliases=[];function e(t){t.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}return Bd}var Ud,Mw;function cre(){if(Mw)return Ud;Mw=1,Ud=e,e.displayName="d",e.aliases=[];function e(t){t.languages.d=t.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),t.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),t.languages.insertBefore("d","keyword",{property:/\B@\w*/}),t.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}return Ud}var Gd,Pw;function dre(){if(Pw)return Gd;Pw=1,Gd=e,e.displayName="dart",e.aliases=[];function e(t){(function(r){var n=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};r.languages.dart=r.languages.extend("clike",{"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),r.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.dart}}},string:/[\s\S]+/}},string:void 0}),r.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),r.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(t)}return Gd}var zd,$w;function pre(){if($w)return zd;$w=1,zd=e,e.displayName="dataweave",e.aliases=[];function e(t){(function(r){r.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(t)}return zd}var qd,jw;function fre(){if(jw)return qd;jw=1,qd=e,e.displayName="dax",e.aliases=[];function e(t){t.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}return qd}var Hd,Fw;function gre(){if(Fw)return Hd;Fw=1,Hd=e,e.displayName="dhall",e.aliases=[];function e(t){t.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},t.languages.dhall.string.inside.interpolation.inside.expression.inside=t.languages.dhall}return Hd}var Wd,Bw;function hre(){if(Bw)return Wd;Bw=1,Wd=e,e.displayName="diff",e.aliases=[];function e(t){(function(r){r.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(a){var i=n[a],o=[];/^\w+$/.test(a)||o.push(/\w+/.exec(a)[0]),a==="diff"&&o.push("bold"),r.languages.diff[a]={pattern:RegExp("^(?:["+i+`].*(?:\r ?| -|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(r.languages.diff,"PREFIXES",{value:n})})(t)}return Hd}var Wd,Bw;function er(){if(Bw)return Wd;Bw=1,Wd=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(r){function n(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(r.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,s){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(o,function(c){if(typeof s=="function"&&!s(c))return c;for(var d=l.length,p;a.code.indexOf(p=n(i,d))!==-1;)++d;return l[d]=c,p}),a.grammar=r.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=r.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(c){for(var d=0;d=s.length);d++){var p=c[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var g=s[o],m=a.tokenStack[g],b=typeof p=="string"?p:p.content,S=n(i,g),v=b.indexOf(S);if(v>-1){++o;var O=b.substring(0,v),_=new r.Token(i,r.tokenize(m,a.grammar),"language-"+i,m),w=b.substring(v+S.length),A=[];O&&A.push.apply(A,l([O])),A.push(_),w&&A.push.apply(A,l([w])),typeof p=="string"?c.splice.apply(c,[d,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return c}l(a.tokens)}}})})(t)}return Wd}var Vd,Uw;function hre(){if(Uw)return Vd;Uw=1;var e=er();Vd=t,t.displayName="django",t.aliases=["jinja2"];function t(r){r.register(e),function(n){n.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=n.languages["markup-templating"];n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),n.languages.jinja2=n.languages.django,n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(r)}return Vd}var Yd,Gw;function mre(){if(Gw)return Yd;Gw=1,Yd=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return Yd}var Kd,zw;function bre(){if(zw)return Kd;zw=1,Kd=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(r){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(d,p){return d=d.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(d,p)}r.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},r.languages.dockerfile=r.languages.docker})(t)}return Kd}var Xd,qw;function yre(){if(qw)return Xd;qw=1,Xd=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(r){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:r.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return n}),s)}r.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},r.languages.gv=r.languages.dot})(t)}return Xd}var Zd,Hw;function vre(){if(Hw)return Zd;Hw=1,Zd=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return Zd}var Jd,Ww;function Sre(){if(Ww)return Jd;Ww=1,Jd=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return Jd}var Qd,Vw;function Ere(){if(Vw)return Qd;Vw=1,Qd=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return Qd}var ep,Yw;function xre(){if(Yw)return ep;Yw=1;var e=er();ep=t,t.displayName="ejs",t.aliases=["eta"];function t(r){r.register(e),function(n){n.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:n.languages.javascript}},n.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;n.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),n.languages.eta=n.languages.ejs}(r)}return ep}var tp,Kw;function wre(){if(Kw)return tp;Kw=1,tp=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(r){r.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return tp}var rp,Xw;function _re(){if(Xw)return rp;Xw=1,rp=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return rp}var np,Zw;function Tre(){if(Zw)return np;Zw=1;var e=Du(),t=er();np=r,r.displayName="erb",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})}(n)}return np}var ap,Jw;function Are(){if(Jw)return ap;Jw=1,ap=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return ap}var ip,Qw;function OI(){if(Qw)return ip;Qw=1,ip=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return ip}var op,e_;function Ore(){if(e_)return op;e_=1;var e=OI(),t=er();op=r,r.displayName="etlua",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})}(n)}return op}var sp,t_;function kre(){if(t_)return sp;t_=1,sp=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return sp}var lp,r_;function Rre(){if(r_)return lp;r_=1,lp=e,e.displayName="factor",e.aliases=[];function e(t){(function(r){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(d){i[d].pattern=s(l[d])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(c),r.languages.factor=i})(t)}return lp}var up,n_;function Ire(){if(n_)return up;n_=1,up=e,e.displayName="$false",e.aliases=[];function e(t){(function(r){r.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return cp}var dp,i_;function Cre(){if(i_)return dp;i_=1,dp=e,e.displayName="flow",e.aliases=[];function e(t){(function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),r.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return dp}var pp,o_;function Dre(){if(o_)return pp;o_=1,pp=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return pp}var fp,s_;function Lre(){if(s_)return fp;s_=1,fp=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return fp}var gp,l_;function Mre(){if(l_)return gp;l_=1;var e=er();gp=t,t.displayName="ftl",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,n.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},n.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");n.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),n.hooks.add("after-tokenize",function(s){n.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(r)}return gp}var hp,u_;function Pre(){if(u_)return hp;u_=1,hp=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return hp}var mp,c_;function $re(){if(c_)return mp;c_=1,mp=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return mp}var bp,d_;function jre(){if(d_)return bp;d_=1,bp=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return bp}var yp,p_;function Fre(){if(p_)return yp;p_=1,yp=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return yp}var vp,f_;function Bre(){if(f_)return vp;f_=1,vp=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(r){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;r.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return vp}var Sp,g_;function Ure(){if(g_)return Sp;g_=1,Sp=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Sp}var Ep,h_;function Gre(){if(h_)return Ep;h_=1;var e=ca();Ep=t,t.displayName="glsl",t.aliases=[];function t(r){r.register(e),r.languages.glsl=r.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return Ep}var xp,m_;function zre(){if(m_)return xp;m_=1,xp=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return xp}var wp,b_;function qre(){if(b_)return wp;b_=1,wp=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return wp}var _p,y_;function Hre(){if(y_)return _p;y_=1,_p=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return _p}var Tp,v_;function Wre(){if(v_)return Tp;v_=1,Tp=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return Tp}var Ap,S_;function Vre(){if(S_)return Ap;S_=1,Ap=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var a=n.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return a[i+O]}function s(O,_){_=_||0;for(var w=0;w0)){var b=l(/^\{$/,/^\}$/);if(b===-1)continue;for(var S=i;S=0&&c(v,"variable-input")}}}}})}return Ap}var Op,E_;function Yre(){if(E_)return Op;E_=1,Op=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(r){if(r.language==="groovy"&&r.type==="string"){var n=r.content.value[0];if(n!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;n==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),r.content.value=r.content.value.replace(/</g,"<").replace(/&/g,"&"),r.content=t.highlight(r.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),r.classes.push(n==="/"?"regex":"gstring")}}})}return Op}var kp,x_;function Kre(){if(x_)return kp;x_=1;var e=Du();kp=t,t.displayName="haml",t.aliases=[];function t(r){r.register(e),function(n){n.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:n.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:n.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:n.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:n.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:n.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:n.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},n.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;n.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),n.languages.hbs=n.languages.handlebars}(r)}return Rp}var Ip,__;function By(){if(__)return Ip;__=1,Ip=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Ip}var Np,T_;function Zre(){if(T_)return Np;T_=1,Np=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Np}var Cp,A_;function Jre(){if(A_)return Cp;A_=1,Cp=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Cp}var Dp,O_;function Qre(){if(O_)return Dp;O_=1;var e=ca();Dp=t,t.displayName="hlsl",t.aliases=[];function t(r){r.register(e),r.languages.hlsl=r.languages.extend("c",{"class-name":[r.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Dp}var Lp,k_;function ene(){if(k_)return Lp;k_=1,Lp=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Lp}var Mp,R_;function tne(){if(R_)return Mp;R_=1,Mp=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Mp}var Pp,I_;function rne(){if(I_)return Pp;I_=1,Pp=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Pp}var $p,N_;function nne(){if(N_)return $p;N_=1,$p=e,e.displayName="http",e.aliases=[];function e(t){(function(r){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}r.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:r.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:r.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:r.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:r.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=r.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function s(p){var g=p.replace(/^[a-z]+\//,""),m="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+p+"|"+m+")"}var l;for(var c in i)if(i[c]){l=l||{};var d=o[c]?s(c):c;l[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[c]}}l&&r.languages.insertBefore("http","header",l)})(t)}return $p}var jp,C_;function ane(){if(C_)return jp;C_=1,jp=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return jp}var Fp,D_;function ine(){if(D_)return Fp;D_=1,Fp=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return Fp}var Bp,L_;function one(){if(L_)return Bp;L_=1,Bp=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(r){function n(c,d){return d<=0?/[]/.source:c.replace(//g,function(){return n(c,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};r.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=r.languages["icu-message-format"],r.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=r.languages["icu-message-format"]})(t)}return Bp}var Up,M_;function sne(){if(M_)return Up;M_=1;var e=By();Up=t,t.displayName="idris",t.aliases=["idr"];function t(r){r.register(e),r.languages.idris=r.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),r.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.idr=r.languages.idris}return Up}var Gp,P_;function lne(){if(P_)return Gp;P_=1,Gp=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return Gp}var zp,$_;function une(){if($_)return zp;$_=1,zp=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(r){r.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},r.languages.gitignore=r.languages.ignore,r.languages.hgignore=r.languages.ignore,r.languages.npmignore=r.languages.ignore})(t)}return zp}var qp,j_;function cne(){if(j_)return qp;j_=1,qp=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return qp}var Hp,F_;function dne(){if(F_)return Hp;F_=1,Hp=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Hp}var Wp,B_;function pne(){if(B_)return Wp;B_=1,Wp=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Vp}var Yp,G_;function Uy(){if(G_)return Yp;G_=1,Yp=e,e.displayName="java",e.aliases=[];function e(t){(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Yp}var Kp,z_;function Lu(){if(z_)return Kp;z_=1,Kp=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(r){var n=r.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,s){var l="doc-comment",c=r.languages[o];if(c){var d=c[l];if(!d){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=r.languages.insertBefore(o,"comment",p),d=c[l]}if(d instanceof RegExp&&(d=c[l]={pattern:d}),Array.isArray(d))for(var g=0,m=d.length;g)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(n)}return Xp}var Zp,H_;function hne(){if(H_)return Zp;H_=1,Zp=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return Zp}var Jp,W_;function mne(){if(W_)return Jp;W_=1,Jp=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return Jp}var Qp,V_;function bne(){if(V_)return Qp;V_=1,Qp=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return Qp}var ef,Y_;function yne(){if(Y_)return ef;Y_=1,ef=e,e.displayName="jq",e.aliases=[];function e(t){(function(r){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=r.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return ef}var tf,K_;function vne(){if(K_)return tf;K_=1,tf=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(r){r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(c,d){return RegExp(c.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}r.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=k.length)return;var L=I[D];if(typeof L=="string"||typeof L.content=="string"){var j=k[w],q=typeof L=="string"?L:L.content,H=q.indexOf(j);if(H!==-1){++w;var z=q.substring(0,H),W=p(A[j]),K=q.substring(H+j.length),G=[];if(z&&G.push(z),G.push(W),K){var V=[K];N(V),G.push.apply(G,V)}typeof L=="string"?(I.splice.apply(I,[D,1].concat(G)),D+=G.length-1):L.content=G}}else{var J=L.content;Array.isArray(J)?N(J):N([J])}}}return N(E),new r.Token(O,E,"language-"+O,S)}var m={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};r.hooks.add("after-tokenize",function(S){if(!(S.language in m))return;function v(O){for(var _=0,w=O.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var n=r.languages.extend("typescript",{});delete n["class-name"],r.languages.typescript["class-name"].inside=n,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),r.languages.ts=r.languages.typescript})(t)}return nf}var af,J_;function Ene(){if(J_)return af;J_=1;var e=Lu(),t=Gy();af=r,r.displayName="jsdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(n)}return af}var of,Q_;function zy(){if(Q_)return of;Q_=1,of=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return of}var sf,eT;function xne(){if(eT)return sf;eT=1;var e=zy();sf=t,t.displayName="json5",t.aliases=[];function t(r){r.register(e),function(n){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;n.languages.json5=n.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(r)}return sf}var lf,tT;function wne(){if(tT)return lf;tT=1;var e=zy();lf=t,t.displayName="jsonp",t.aliases=[];function t(r){r.register(e),r.languages.jsonp=r.languages.extend("json",{punctuation:/[{}[\]();,.]/}),r.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return lf}var uf,rT;function _ne(){if(rT)return uf;rT=1,uf=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return uf}var cf,nT;function kI(){if(nT)return cf;nT=1,cf=e,e.displayName="jsx",e.aliases=[];function e(t){(function(r){var n=r.util.clone(r.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,p){return d=d.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(d,p)}o=s(o).source,r.languages.jsx=r.languages.extend("markup",n),r.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=n.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var l=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(l).join(""):""},c=function(d){for(var p=[],g=0;g0&&p[p.length-1].tagName===l(m.content[0].content[1])&&p.pop():m.content[m.content.length-1].content==="/>"||p.push({tagName:l(m.content[0].content[1]),openedBraces:0}):p.length>0&&m.type==="punctuation"&&m.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&m.type==="punctuation"&&m.content==="}"?p[p.length-1].openedBraces--:b=!0),(b||typeof m=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var S=l(m);g0&&(typeof d[g-1]=="string"||d[g-1].type==="plain-text")&&(S=l(d[g-1])+S,d.splice(g-1,1),g--),d[g]=new r.Token("plain-text",S,null,S)}m.content&&typeof m.content!="string"&&c(m.content)}};r.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||c(d.tokens)})})(t)}return cf}var df,aT;function Tne(){if(aT)return df;aT=1,df=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return df}var pf,iT;function Ane(){if(iT)return pf;iT=1,pf=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return pf}var ff,oT;function One(){if(oT)return ff;oT=1,ff=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return ff}var gf,sT;function kne(){if(sT)return gf;sT=1,gf=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin})(t)}return gf}var hf,lT;function Rne(){if(lT)return hf;lT=1,hf=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(r){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,n),o)}r.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},r.languages.kum=r.languages.kumir})(t)}return hf}var mf,uT;function Ine(){if(uT)return mf;uT=1,mf=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return mf}var bf,cT;function Nne(){if(cT)return bf;cT=1,bf=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(r){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:n,alias:"regex"}};r.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},r.languages.tex=r.languages.latex,r.languages.context=r.languages.latex})(t)}return bf}var yf,dT;function Mu(){if(dT)return yf;dT=1;var e=er();yf=t,t.displayName="php",t.aliases=[];function t(r){r.register(e),function(n){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;n.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:n.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:c}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:c}}];n.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),n.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;n.languages["markup-templating"].buildPlaceholders(p,"php",g)}}),n.hooks.add("after-tokenize",function(p){n.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(r)}return yf}var vf,pT;function Cne(){if(pT)return vf;pT=1;var e=er(),t=Mu();vf=r,r.displayName="latte",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(n)}return vf}var Sf,fT;function Dne(){if(fT)return Sf;fT=1,Sf=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return Sf}var Ef,gT;function qy(){if(gT)return Ef;gT=1,Ef=e,e.displayName="scheme",e.aliases=[];function e(t){(function(r){r.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return Ef}var xf,hT;function Lne(){if(hT)return xf;hT=1;var e=qy();xf=t,t.displayName="lilypond",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=n.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:n.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,n.languages.ly=s}(r)}return xf}var wf,mT;function Mne(){if(mT)return wf;mT=1;var e=er();wf=t,t.displayName="liquid",t.aliases=[];function t(r){r.register(e),r.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},r.hooks.add("before-tokenize",function(n){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;r.languages["markup-templating"].buildPlaceholders(n,"liquid",a,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"liquid")})}return wf}var _f,bT;function Pne(){if(bT)return _f;bT=1,_f=e,e.displayName="lisp",e.aliases=[];function e(t){(function(r){function n(S){return RegExp(/(\()/.source+"(?:"+S+")"+/(?=[\s\)])/.source)}function a(S){return RegExp(/([\s([])/.source+"(?:"+S+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",c="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},m="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+d+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+m),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+m),inside:g},keys:{pattern:RegExp("&key\\s+"+m+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=b,p.defun.inside.arguments=r.util.clone(b),p.defun.inside.arguments.inside.sublist=b,r.languages.lisp=p,r.languages.elisp=p,r.languages.emacs=p,r.languages["emacs-lisp"]=p})(t)}return _f}var Tf,yT;function $ne(){if(yT)return Tf;yT=1,Tf=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return Tf}var Af,vT;function jne(){if(vT)return Af;vT=1,Af=e,e.displayName="llvm",e.aliases=[];function e(t){(function(r){r.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return Af}var Of,ST;function Fne(){if(ST)return Of;ST=1,Of=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return Of}var kf,ET;function Bne(){if(ET)return kf;ET=1,kf=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return kf}var Rf,xT;function Une(){if(xT)return Rf;xT=1,Rf=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return Rf}var If,wT;function Gne(){if(wT)return If;wT=1,If=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return If}var Nf,_T;function zne(){if(_T)return Nf;_T=1,Nf=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(r){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(g){return g=g.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(m){g!==m&&(r.languages.markdown[g].inside.content.inside[m]=r.languages.markdown[m])})}),r.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function m(b){if(!(!b||typeof b=="string"))for(var S=0,v=b.length;S",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(g){var m=g.replace(l,"");return m=m.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,S){if(S=S.toLowerCase(),S[0]==="#"){var v;return S[1]==="x"?v=parseInt(S.slice(2),16):v=Number(S.slice(1)),d(v)}else{var O=c[S];return O||b}}),m}r.languages.md=r.languages.markdown})(t)}return Nf}var Cf,TT;function qne(){if(TT)return Cf;TT=1,Cf=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Cf}var Df,AT;function Hne(){if(AT)return Df;AT=1,Df=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(r){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;r.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return Df}var Lf,OT;function Wne(){if(OT)return Lf;OT=1,Lf=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return Lf}var Mf,kT;function Vne(){if(kT)return Mf;kT=1,Mf=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return Mf}var Pf,RT;function Yne(){if(RT)return Pf;RT=1,Pf=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return Pf}var $f,IT;function Kne(){if(IT)return $f;IT=1,$f=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(r){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(o){return o.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";r.languages.mongodb=r.languages.extend("javascript",{}),r.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),r.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},r.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return $f}var jf,NT;function Xne(){if(NT)return jf;NT=1,jf=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return jf}var Ff,CT;function Zne(){if(CT)return Ff;CT=1,Ff=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return Ff}var Bf,DT;function Jne(){if(DT)return Bf;DT=1,Bf=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return Bf}var Uf,LT;function Qne(){if(LT)return Uf;LT=1,Uf=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return Uf}var Gf,MT;function eae(){if(MT)return Gf;MT=1,Gf=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return Gf}var zf,PT;function tae(){if(PT)return zf;PT=1,zf=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(r){var n=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};r.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},r.languages.nani=r.languages.naniscript,r.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var d=o(c);i(d)||(c.type="bad-line",c.content=d)}})});function i(s){for(var l="[]{}",c=[],d=0;d=&|$!]/}}return qf}var Hf,jT;function nae(){if(jT)return Hf;jT=1,Hf=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return Hf}var Wf,FT;function aae(){if(FT)return Wf;FT=1,Wf=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return Wf}var Vf,BT;function iae(){if(BT)return Vf;BT=1,Vf=e,e.displayName="nginx",e.aliases=[];function e(t){(function(r){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;r.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(t)}return Vf}var Yf,UT;function oae(){if(UT)return Yf;UT=1,Yf=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return Yf}var Kf,GT;function sae(){if(GT)return Kf;GT=1,Kf=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return Kf}var Xf,zT;function lae(){if(zT)return Xf;zT=1,Xf=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return Xf}var Zf,qT;function uae(){if(qT)return Zf;qT=1;var e=ca();Zf=t,t.displayName="objectivec",t.aliases=["objc"];function t(r){r.register(e),r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec}return Zf}var Jf,HT;function cae(){if(HT)return Jf;HT=1,Jf=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return Jf}var Qf,WT;function dae(){if(WT)return Qf;WT=1;var e=ca();Qf=t,t.displayName="opencl",t.aliases=[];function t(r){r.register(e),function(n){n.languages.opencl=n.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),n.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};n.languages.insertBefore("c","keyword",a),n.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},n.languages.insertBefore("cpp","keyword",a))}(r)}return Qf}var eg,VT;function pae(){if(VT)return eg;VT=1,eg=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return eg}var tg,YT;function fae(){if(YT)return tg;YT=1,tg=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return tg}var rg,KT;function gae(){if(KT)return rg;KT=1,rg=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var r=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return r=r.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+r+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return rg}var ng,XT;function hae(){if(XT)return ng;XT=1,ng=e,e.displayName="parser",e.aliases=[];function e(t){(function(r){var n=r.languages.parser=r.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=r.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),r.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(t)}return ng}var ag,ZT;function mae(){if(ZT)return ag;ZT=1,ag=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return ag}var ig,JT;function bae(){if(JT)return ig;JT=1,ig=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(r){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=r.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return ig}var og,QT;function yae(){if(QT)return og;QT=1,og=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return og}var sg,eA;function vae(){if(eA)return sg;eA=1,sg=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return sg}var lg,tA;function Sae(){if(tA)return lg;tA=1,lg=e,e.displayName="perl",e.aliases=[];function e(t){(function(r){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;r.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return lg}var ug,rA;function Eae(){if(rA)return ug;rA=1;var e=Mu();ug=t,t.displayName="phpExtras",t.aliases=[];function t(r){r.register(e),r.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return ug}var cg,nA;function xae(){if(nA)return cg;nA=1;var e=Mu(),t=Lu();cg=r,r.displayName="phpdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(n)}return cg}var dg,aA;function wae(){if(aA)return dg;aA=1;var e=jy();dg=t,t.displayName="plsql",t.aliases=[];function t(r){r.register(e),r.languages.plsql=r.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),r.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return dg}var pg,iA;function _ae(){if(iA)return pg;iA=1,pg=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return pg}var fg,oA;function Tae(){if(oA)return fg;oA=1,fg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(r){var n=r.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(t)}return fg}var gg,sA;function Aae(){if(sA)return gg;sA=1,gg=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return gg}var hg,lA;function Oae(){if(lA)return hg;lA=1,hg=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return hg}var mg,uA;function kae(){if(uA)return mg;uA=1,mg=e,e.displayName="promql",e.aliases=[];function e(t){(function(r){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=n.concat(a,i);r.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return mg}var bg,cA;function Rae(){if(cA)return bg;cA=1,bg=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return bg}var yg,dA;function Iae(){if(dA)return yg;dA=1,yg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(r){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;r.languages.protobuf=r.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),r.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return yg}var vg,pA;function Nae(){if(pA)return vg;pA=1,vg=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return vg}var Sg,fA;function Cae(){if(fA)return Sg;fA=1,Sg=e,e.displayName="pug",e.aliases=[];function e(t){(function(r){r.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:r.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:r.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:r.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:r.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:r.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:r.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:r.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=a.length;o",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:r.languages[l.language]}}})}r.languages.insertBefore("pug","filter",i)})(t)}return Sg}var Eg,gA;function Dae(){if(gA)return Eg;gA=1,Eg=e,e.displayName="puppet",e.aliases=[];function e(t){(function(r){r.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:r.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];r.languages.puppet.heredoc[0].inside.interpolation=n,r.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(t)}return Eg}var xg,hA;function Lae(){if(hA)return xg;hA=1,xg=e,e.displayName="pure",e.aliases=[];function e(t){(function(r){r.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),r.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:r.util.clone(r.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=r.util.clone(r.languages[o]),r.languages.insertBefore("pure","inline-lang",s)}}),r.languages.c&&(r.languages.pure["inline-lang"].inside.rest=r.util.clone(r.languages.c))})(t)}return xg}var wg,mA;function Mae(){if(mA)return wg;mA=1,wg=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return wg}var _g,bA;function Pae(){if(bA)return _g;bA=1;var e=By();_g=t,t.displayName="purescript",t.aliases=["purs"];function t(r){r.register(e),r.languages.purescript=r.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[r.languages.haskell.operator[0],r.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),r.languages.purs=r.languages.purescript}return _g}var Tg,yA;function $ae(){if(yA)return Tg;yA=1,Tg=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return Tg}var Ag,vA;function jae(){if(vA)return Ag;vA=1,Ag=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return Ag}var Og,SA;function Fae(){if(SA)return Og;SA=1,Og=e,e.displayName="qml",e.aliases=[];function e(t){(function(r){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),r.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return Og}var kg,EA;function Bae(){if(EA)return kg;EA=1,kg=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return kg}var Rg,xA;function Uae(){if(xA)return Rg;xA=1,Rg=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(r){function n(b,S){return b.replace(/<<(\d+)>>/g,function(v,O){return"(?:"+S[+O]+")"})}function a(b,S,v){return RegExp(n(b,S),v||"")}function i(b,S){for(var v=0;v>/g,function(){return"(?:"+b+")"});return b.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),c=/\b[A-Za-z_]\w*\b/.source,d=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;r.languages.qsharp=r.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),r.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var m=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[g]),2);r.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[m]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[m]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:r.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Rg}var Ig,wA;function Gae(){if(wA)return Ig;wA=1,Ig=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return Ig}var Ng,_A;function zae(){if(_A)return Ng;_A=1;var e=qy();Ng=t,t.displayName="racket",t.aliases=["rkt"];function t(r){r.register(e),r.languages.racket=r.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),r.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),r.languages.rkt=r.languages.racket}return Ng}var Cg,TA;function qae(){if(TA)return Cg;TA=1,Cg=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return Cg}var Dg,AA;function Hae(){if(AA)return Dg;AA=1,Dg=e,e.displayName="regex",e.aliases=[];function e(t){(function(r){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",l=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,escape:a}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Lg}var Mg,kA;function Vae(){if(kA)return Mg;kA=1,Mg=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return Mg}var Pg,RA;function Yae(){if(RA)return Pg;RA=1,Pg=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return Pg}var $g,IA;function Kae(){if(IA)return $g;IA=1,$g=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return $g}var jg,NA;function Xae(){if(NA)return jg;NA=1,jg=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return jg}var Fg,CA;function Zae(){if(CA)return Fg;CA=1,Fg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(r){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(c,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in d)p[g]=d[g];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return c}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};r.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:n},r.languages.robot=r.languages.robotframework})(t)}return Fg}var Bg,DA;function Jae(){if(DA)return Bg;DA=1,Bg=e,e.displayName="rust",e.aliases=[];function e(t){(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(t)}return Bg}var Ug,LA;function Qae(){if(LA)return Ug;LA=1,Ug=e,e.displayName="sas",e.aliases=[];function e(t){(function(r){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},m={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},S={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},v={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,w={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:g,"arg-value":m["arg-value"],operator:m.operator,argument:m.arg,number:a,"numeric-constant":i,punctuation:p,string:d}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};r.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:r.languages.sql},"global-statements":v,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:r.languages.groovy},keyword:A,"submit-statement":O,"global-statements":v,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:r.languages.lua},keyword:A,"submit-statement":O,"global-statements":v,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:m}},"cas-actions":w,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:m},step:l,keyword:A,function:g,format:b,altformat:S,"global-statements":v,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:m},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:m},"cas-actions":w,comment:c,function:g,format:b,altformat:S,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:d,step:l,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return Ug}var Gg,MA;function eie(){if(MA)return Gg;MA=1,Gg=e,e.displayName="sass",e.aliases=[];function e(t){(function(r){r.languages.sass=r.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),r.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete r.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];r.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:a,important:r.languages.sass.important}}}),delete r.languages.sass.property,delete r.languages.sass.important,r.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return Gg}var zg,PA;function tie(){if(PA)return zg;PA=1;var e=Uy();zg=t,t.displayName="scala",t.aliases=[];function t(r){r.register(e),r.languages.scala=r.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),r.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.scala}}},string:/[\s\S]+/}}}),delete r.languages.scala["class-name"],delete r.languages.scala.function}return zg}var qg,$A;function rie(){if($A)return qg;$A=1,qg=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return qg}var Hg,jA;function nie(){if(jA)return Hg;jA=1;var e=TI();Hg=t,t.displayName="shellSession",t.aliases=[];function t(r){r.register(e),function(n){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");n.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:n.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},n.languages["sh-session"]=n.languages.shellsession=n.languages["shell-session"]}(r)}return Hg}var Wg,FA;function aie(){if(FA)return Wg;FA=1,Wg=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return Wg}var Vg,BA;function iie(){if(BA)return Vg;BA=1,Vg=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return Vg}var Yg,UA;function oie(){if(UA)return Yg;UA=1;var e=er();Yg=t,t.displayName="smarty",t.aliases=[];function t(r){r.register(e),function(n){n.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:n.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},n.languages.smarty["embedded-php"].inside.smarty.inside=n.languages.smarty,n.languages.smarty.string[0].inside.interpolation.inside.expression.inside=n.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");n.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",c=!1;n.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(d){return d===l&&(c=!1),c?!1:(d===s&&(c=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(r)}return Yg}var Kg,GA;function sie(){if(GA)return Kg;GA=1,Kg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(r){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;r.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},r.languages.sml["class-name"][0].inside=r.languages.sml,r.languages.smlnj=r.languages.sml})(t)}return Kg}var Xg,zA;function lie(){if(zA)return Xg;zA=1,Xg=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return Xg}var Zg,qA;function uie(){if(qA)return Zg;qA=1,Zg=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(r){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};r.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},r.languages.sln=r.languages["solution-file"]})(t)}return Zg}var Jg,HA;function cie(){if(HA)return Jg;HA=1;var e=er();Jg=t,t.displayName="soy",t.aliases=[];function t(r){r.register(e),function(n){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;n.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},n.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",c="{/literal}",d=!1;n.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===c&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(r)}return Jg}var Qg,WA;function RI(){if(WA)return Qg;WA=1,Qg=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return Qg}var eh,VA;function die(){if(VA)return eh;VA=1;var e=RI();eh=t,t.displayName="sparql",t.aliases=["rq"];function t(r){r.register(e),r.languages.sparql=r.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),r.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),r.languages.rq=r.languages.sparql}return eh}var th,YA;function pie(){if(YA)return th;YA=1,th=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return th}var rh,KA;function fie(){if(KA)return rh;KA=1,rh=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return rh}var nh,XA;function gie(){if(XA)return nh;XA=1,nh=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return nh}var ah,ZA;function hie(){if(ZA)return ah;ZA=1,ah=e,e.displayName="stan",e.aliases=[];function e(t){(function(r){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;r.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},r.languages.stan.constraint.inside.expression.inside=r.languages.stan})(t)}return ah}var ih,JA;function mie(){if(JA)return ih;JA=1,ih=e,e.displayName="stylus",e.aliases=[];function e(t){(function(r){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},r.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return ih}var oh,QA;function bie(){if(QA)return oh;QA=1,oh=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=t.languages.swift})}return oh}var sh,eO;function yie(){if(eO)return sh;eO=1,sh=e,e.displayName="systemd",e.aliases=[];function e(t){(function(r){var n={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;r.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r -]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return sh}var lh,tO;function Hy(){if(tO)return lh;tO=1,lh=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(r){function n(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=r.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,s),"class-feature":n("\\+",o,s),standard:n("",o,s)}}}}r.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return lh}var uh,rO;function vie(){if(rO)return uh;rO=1;var e=Hy(),t=Cu();uh=r,r.displayName="t4Cs",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}return uh}var ch,nO;function II(){if(nO)return ch;nO=1;var e=AI();ch=t,t.displayName="vbnet",t.aliases=[];function t(r){r.register(e),r.languages.vbnet=r.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return ch}var dh,aO;function Sie(){if(aO)return dh;aO=1;var e=Hy(),t=II();dh=r,r.displayName="t4Vb",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}return dh}var ph,iO;function NI(){if(iO)return ph;iO=1,ph=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(r){var n=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return c});return RegExp(p,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(t)}return ph}var fh,oO;function Eie(){if(oO)return fh;oO=1;var e=NI();fh=t,t.displayName="tap",t.aliases=[];function t(r){r.register(e),r.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:r.languages.yaml,alias:"language-yaml"}}}return fh}var gh,sO;function xie(){if(sO)return gh;sO=1,gh=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return gh}var hh,lO;function wie(){if(lO)return hh;lO=1,hh=e,e.displayName="textile",e.aliases=[];function e(t){(function(r){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(g,m){return RegExp(g.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+a+")"}),m||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:r.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=r.languages.textile=r.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=c,d.italic.inside=c,d.inserted.inside=c,d.deleted.inside=c,d.span.inside=c;var p=l.table.inside;p.inline=c.inline,p.link=c.link,p.image=c.image,p.footnote=c.footnote,p.acronym=c.acronym,p.mark=c.mark})(t)}return hh}var mh,uO;function _ie(){if(uO)return mh;uO=1,mh=e,e.displayName="toml",e.aliases=[];function e(t){(function(r){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return n})}r.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return mh}var bh,cO;function Tie(){if(cO)return bh;cO=1,bh=e,e.displayName="tremor",e.aliases=[];function e(t){(function(r){r.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;r.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.tremor}}},string:/[\s\S]+/}},r.languages.troy=r.languages.tremor,r.languages.trickle=r.languages.tremor})(t)}return bh}var yh,dO;function Aie(){if(dO)return yh;dO=1;var e=kI(),t=Gy();yh=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(n)}return yh}var vh,pO;function Oie(){if(pO)return vh;pO=1;var e=er();vh=t,t.displayName="tt2",t.aliases=[];function t(r){r.register(e),function(n){n.languages.tt2=n.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),n.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),n.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),n.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete n.languages.tt2.string,n.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;n.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(r)}return vh}var Sh,fO;function kie(){if(fO)return Sh;fO=1;var e=er();Sh=t,t.displayName="twig",t.aliases=[];function t(r){r.register(e),r.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},r.hooks.add("before-tokenize",function(n){if(n.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;r.languages["markup-templating"].buildPlaceholders(n,"twig",a)}}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"twig")})}return Sh}var Eh,gO;function Rie(){if(gO)return Eh;gO=1,Eh=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(r){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;r.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},r.languages.tsconfig=r.languages.typoscript})(t)}return Eh}var xh,hO;function Iie(){if(hO)return xh;hO=1,xh=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return xh}var wh,mO;function Nie(){if(mO)return wh;mO=1,wh=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return wh}var _h,bO;function Cie(){if(bO)return _h;bO=1,_h=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return _h}var Th,yO;function Die(){if(yO)return Th;yO=1,Th=e,e.displayName="v",e.aliases=[];function e(t){(function(r){var n={pattern:/[\s\S]+/,inside:null};r.languages.v=r.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=r.languages.v,r.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),r.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),r.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:r.languages.v.generic.inside}}}})})(t)}return Th}var Ah,vO;function Lie(){if(vO)return Ah;vO=1,Ah=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return Ah}var Oh,SO;function Mie(){if(SO)return Oh;SO=1,Oh=e,e.displayName="velocity",e.aliases=[];function e(t){(function(r){r.languages.velocity=r.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},r.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),r.languages.velocity.tag.inside["attr-value"].inside.rest=r.languages.velocity})(t)}return Oh}var kh,EO;function Pie(){if(EO)return kh;EO=1,kh=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return kh}var Rh,xO;function $ie(){if(xO)return Rh;xO=1,Rh=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Rh}var Ih,wO;function jie(){if(wO)return Ih;wO=1,Ih=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Ih}var Nh,_O;function Fie(){if(_O)return Nh;_O=1,Nh=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return Nh}var Ch,TO;function Bie(){if(TO)return Ch;TO=1,Ch=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Ch}var Dh,AO;function Uie(){if(AO)return Dh;AO=1,Dh=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Dh}var Lh,OO;function Gie(){if(OO)return Lh;OO=1,Lh=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(r){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};r.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in r.languages["web-idl"])o!=="class-name"&&(i[o]=r.languages["web-idl"][o]);r.languages.webidl=r.languages["web-idl"]})(t)}return Lh}var Mh,kO;function zie(){if(kO)return Mh;kO=1,Mh=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return Mh}var Ph,RO;function qie(){if(RO)return Ph;RO=1,Ph=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return Ph}var $h,IO;function Hie(){if(IO)return $h;IO=1,$h=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return $h}var jh,NO;function Wie(){if(NO)return jh;NO=1,jh=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(r){r.languages.xeora=r.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),r.languages.insertBefore("inside","punctuation",{variable:r.languages.xeora["function-inline"].inside.variable},r.languages.xeora["function-block"]),r.languages.xeoracube=r.languages.xeora})(t)}return jh}var Fh,CO;function Vie(){if(CO)return Fh;CO=1,Fh=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(r){function n(s,l){r.languages[s]&&r.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=r.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};n("csharp",i),n("fsharp",i),n("vbnet",o)})(t)}return Fh}var Bh,DO;function Yie(){if(DO)return Bh;DO=1,Bh=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return Bh}var Uh,LO;function Kie(){if(LO)return Uh;LO=1,Uh=e,e.displayName="xquery",e.aliases=[];function e(t){(function(r){r.languages.xquery=r.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),r.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,r.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,r.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:r.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===n(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:n(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=n(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=n(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new r.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&a(l.content)}};r.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return Uh}var Gh,MO;function Xie(){if(MO)return Gh;MO=1,Gh=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return Gh}var zh,PO;function Zie(){if(PO)return zh;PO=1,zh=e,e.displayName="zig",e.aliases=[];function e(t){(function(r){function n(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";r.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},r.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=r.languages.zig)})})(t)}return zh}var C=ite,Jie=C;C.register(mte());C.register(bte());C.register(yte());C.register(vte());C.register(Ste());C.register(Ete());C.register(xte());C.register(wte());C.register(_te());C.register(Tte());C.register(Ate());C.register(Ote());C.register(kte());C.register(Rte());C.register(Ite());C.register(Nte());C.register(Cte());C.register(Dte());C.register(Lte());C.register(Mte());C.register(Pte());C.register($te());C.register(TI());C.register(AI());C.register(jte());C.register(Fte());C.register(Bte());C.register(Ute());C.register(Gte());C.register(zte());C.register(qte());C.register(Hte());C.register(Wte());C.register(Vte());C.register(ca());C.register(Yte());C.register(Kte());C.register(Xte());C.register(Zte());C.register(Jte());C.register(Qte());C.register(ere());C.register(tre());C.register(rre());C.register(Fy());C.register(nre());C.register(Cu());C.register(are());C.register(ire());C.register(ore());C.register(sre());C.register(lre());C.register(ure());C.register(cre());C.register(dre());C.register(pre());C.register(fre());C.register(gre());C.register(hre());C.register(mre());C.register(bre());C.register(yre());C.register(vre());C.register(Sre());C.register(Ere());C.register(xre());C.register(wre());C.register(_re());C.register(Tre());C.register(Are());C.register(Ore());C.register(kre());C.register(Rre());C.register(Ire());C.register(Nre());C.register(Cre());C.register(Dre());C.register(Lre());C.register(Mre());C.register(Pre());C.register($re());C.register(jre());C.register(Fre());C.register(Bre());C.register(Ure());C.register(Gre());C.register(zre());C.register(qre());C.register(Hre());C.register(Wre());C.register(Vre());C.register(Yre());C.register(Kre());C.register(Xre());C.register(By());C.register(Zre());C.register(Jre());C.register(Qre());C.register(ene());C.register(tne());C.register(rne());C.register(nne());C.register(ane());C.register(ine());C.register(one());C.register(sne());C.register(lne());C.register(une());C.register(cne());C.register(dne());C.register(pne());C.register(fne());C.register(Uy());C.register(gne());C.register(Lu());C.register(hne());C.register(mne());C.register(bne());C.register(yne());C.register(vne());C.register(Sne());C.register(Ene());C.register(zy());C.register(xne());C.register(wne());C.register(_ne());C.register(kI());C.register(Tne());C.register(Ane());C.register(One());C.register(kne());C.register(Rne());C.register(Ine());C.register(Nne());C.register(Cne());C.register(Dne());C.register(Lne());C.register(Mne());C.register(Pne());C.register($ne());C.register(jne());C.register(Fne());C.register(Bne());C.register(OI());C.register(Une());C.register(Gne());C.register(zne());C.register(er());C.register(qne());C.register(Hne());C.register(Wne());C.register(Vne());C.register(Yne());C.register(Kne());C.register(Xne());C.register(Zne());C.register(Jne());C.register(Qne());C.register(eae());C.register(tae());C.register(rae());C.register(nae());C.register(aae());C.register(iae());C.register(oae());C.register(sae());C.register(lae());C.register(uae());C.register(cae());C.register(dae());C.register(pae());C.register(fae());C.register(gae());C.register(hae());C.register(mae());C.register(bae());C.register(yae());C.register(vae());C.register(Sae());C.register(Eae());C.register(Mu());C.register(xae());C.register(wae());C.register(_ae());C.register(Tae());C.register(Aae());C.register(Oae());C.register(kae());C.register(Rae());C.register(Iae());C.register(Nae());C.register(Cae());C.register(Dae());C.register(Lae());C.register(Mae());C.register(Pae());C.register($ae());C.register(jae());C.register(Fae());C.register(Bae());C.register(Uae());C.register(Gae());C.register(zae());C.register(qae());C.register(Hae());C.register(Wae());C.register(Vae());C.register(Yae());C.register(Kae());C.register(Xae());C.register(Zae());C.register(Du());C.register(Jae());C.register(Qae());C.register(eie());C.register(tie());C.register(qy());C.register(rie());C.register(nie());C.register(aie());C.register(iie());C.register(oie());C.register(sie());C.register(lie());C.register(uie());C.register(cie());C.register(die());C.register(pie());C.register(fie());C.register(jy());C.register(gie());C.register(hie());C.register(mie());C.register(bie());C.register(yie());C.register(vie());C.register(Hy());C.register(Sie());C.register(Eie());C.register(xie());C.register(wie());C.register(_ie());C.register(Tie());C.register(Aie());C.register(Oie());C.register(RI());C.register(kie());C.register(Gy());C.register(Rie());C.register(Iie());C.register(Nie());C.register(Cie());C.register(Die());C.register(Lie());C.register(II());C.register(Mie());C.register(Pie());C.register($ie());C.register(jie());C.register(Fie());C.register(Bie());C.register(Uie());C.register(Gie());C.register(zie());C.register(qie());C.register(Hie());C.register(Wie());C.register(Vie());C.register(Yie());C.register(Kie());C.register(NI());C.register(Xie());C.register(Zie());const Qie=ft(Jie);var CI=K7(Qie,hte);CI.supportedLanguages=X7;const eoe=CI,toe={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},roe=()=>{var w,A,x,E,k,N,I;const e=Pt(),t=P.useRef(null),{currentPlayingAudio:r,setCurrentPlayingAudio:n}=Ct(D=>D),[a,i]=P.useState(!1),[o,s]=P.useState([]),[l,c]=P.useState(((w=e==null?void 0:e.properties)==null?void 0:w.boost)||0),d=bb(D=>D.getIndexByType),{playingNode:p}=Po(D=>D);P.useEffect(()=>{var D;c(((D=e==null?void 0:e.properties)==null?void 0:D.boost)||0)},[e]),P.useEffect(()=>{(async()=>{var L;if(e!=null&&e.ref_id){const j=await bM(e.ref_id,0,100,{sortBy:"sequence",includeProperties:!0,includeContent:!0,depth:1,useSubGraph:!0});if(j){const H=((L=j.edges)==null?void 0:L.filter(z=>{var W;return((W=z.properties)==null?void 0:W.sequence)!==void 0}).map(z=>{var W;return{node:z.target,sequence:(W=z.properties)==null?void 0:W.sequence}}).sort((z,W)=>z.sequence-W.sequence).map(z=>j.nodes.find(W=>W.ref_id===z.node))).filter(z=>!!z);s(H)}}})()},[e==null?void 0:e.ref_id]),P.useEffect(()=>{const D=t.current,L=()=>{n(null),i(!1)};return D&&D.addEventListener("ended",L),()=>{D&&D.removeEventListener("ended",L)}},[n,a]),P.useEffect(()=>{i(!1)},[e]);const g=()=>{r!=null&&r.current&&r.current!==t.current&&(r.current.pause(),n(null)),t.current&&(t.current.paused?(t.current.play(),n(t),i(!0)):(t.current.pause(),n(null),i(!1)))};if(!e)return null;const m=!(p!=null&&p.ref_id)&&!!((A=e.properties)!=null&&A.image_url),b=!!((x=e.properties)!=null&&x.audio_EN),S=e.properties||{},v=(E=e.properties)==null?void 0:E.source_link,O=(k=e.properties)==null?void 0:k.pubkey,_=D=>{var j;const L=d(D.node_type);return L?(j=D.properties)==null?void 0:j[L]:D.label};return h.jsxs(coe,{children:[m&&h.jsx(soe,{children:h.jsx("img",{alt:"img_a11y",onError:D=>{D.currentTarget.src="generic_placeholder_img.png",D.currentTarget.className="default-img"},src:(N=e.properties)==null?void 0:N.image_url})}),h.jsxs(ioe,{grow:1,justify:"flex-start",pt:m?0:8,shrink:1,children:[h.jsxs(F,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[h.jsx(ri,{type:e.node_type||""}),v&&h.jsx(foe,{href:`${v}${v.includes("?")?"&":"?"}open=system`,target:"_blank",children:h.jsx(vn,{})})]}),h.jsx(ooe,{children:Object.entries(S).filter(([D])=>D!=="media_url"&&D!=="link"&&D!=="pubkey").map(([D,L])=>h.jsx(aoe,{hasAudio:b,isPlaying:a,label:noe(D),togglePlay:g,value:D==="date"&&L?ei(L*1e3).format("MMMM Do YYYY"):L},D))}),o.length>0&&h.jsx(goe,{children:o.map((D,L)=>h.jsxs(U.Fragment,{children:[h.jsx(pt,{children:_(D)}),Le.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),aoe=({label:e,value:t,hasAudio:r,isPlaying:n,togglePlay:a})=>{const i=t.length>140,o=Ct(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"||e==="Image Url"?null:h.jsxs(h.Fragment,{children:[h.jsxs(loe,{className:dn("node-detail",{"node-detail__long":i}),children:[h.jsxs(pt,{className:"node-detail__label",children:[e,e==="Text"&&r&&h.jsx(doe,{onClick:a,children:n?h.jsx(l1,{}):h.jsx(u1,{})})]}),e!=="Frame"&&e!=="Code"?h.jsx(pt,{className:"node-detail__value",children:qr(String(t),o)}):h.jsx(eoe,{language:"javascript",style:toe,children:String(t)})]}),h.jsx(uoe,{})]})},ioe=B(F)` +|(?![\\s\\S])))+`,"m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(a)[0]}}}}),Object.defineProperty(r.languages.diff,"PREFIXES",{value:n})})(t)}return Wd}var Vd,Uw;function er(){if(Uw)return Vd;Uw=1,Vd=e,e.displayName="markupTemplating",e.aliases=[];function e(t){(function(r){function n(a,i){return"___"+a.toUpperCase()+i+"___"}Object.defineProperties(r.languages["markup-templating"]={},{buildPlaceholders:{value:function(a,i,o,s){if(a.language===i){var l=a.tokenStack=[];a.code=a.code.replace(o,function(c){if(typeof s=="function"&&!s(c))return c;for(var d=l.length,p;a.code.indexOf(p=n(i,d))!==-1;)++d;return l[d]=c,p}),a.grammar=r.languages.markup}}},tokenizePlaceholders:{value:function(a,i){if(a.language!==i||!a.tokenStack)return;a.grammar=r.languages[i];var o=0,s=Object.keys(a.tokenStack);function l(c){for(var d=0;d=s.length);d++){var p=c[d];if(typeof p=="string"||p.content&&typeof p.content=="string"){var g=s[o],h=a.tokenStack[g],b=typeof p=="string"?p:p.content,S=n(i,g),v=b.indexOf(S);if(v>-1){++o;var O=b.substring(0,v),_=new r.Token(i,r.tokenize(h,a.grammar),"language-"+i,h),w=b.substring(v+S.length),A=[];O&&A.push.apply(A,l([O])),A.push(_),w&&A.push.apply(A,l([w])),typeof p=="string"?c.splice.apply(c,[d,1].concat(A)):p.content=A}}else p.content&&l(p.content)}return c}l(a.tokens)}}})})(t)}return Vd}var Yd,Gw;function mre(){if(Gw)return Yd;Gw=1;var e=er();Yd=t,t.displayName="django",t.aliases=["jinja2"];function t(r){r.register(e),function(n){n.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var a=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,i=n.languages["markup-templating"];n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"django",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"django")}),n.languages.jinja2=n.languages.django,n.hooks.add("before-tokenize",function(o){i.buildPlaceholders(o,"jinja2",a)}),n.hooks.add("after-tokenize",function(o){i.tokenizePlaceholders(o,"jinja2")})}(r)}return Yd}var Kd,zw;function bre(){if(zw)return Kd;zw=1,Kd=e,e.displayName="dnsZoneFile",e.aliases=[];function e(t){t.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},t.languages["dns-zone"]=t.languages["dns-zone-file"]}return Kd}var Xd,qw;function yre(){if(qw)return Xd;qw=1,Xd=e,e.displayName="docker",e.aliases=["dockerfile"];function e(t){(function(r){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,a=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,o=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},l={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function c(d,p){return d=d.replace(//g,function(){return o}).replace(//g,function(){return a}),RegExp(d,p)}r.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:c(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:c(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:c(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:l,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:l},r.languages.dockerfile=r.languages.docker})(t)}return Xd}var Zd,Hw;function vre(){if(Hw)return Zd;Hw=1,Zd=e,e.displayName="dot",e.aliases=["gv"];function e(t){(function(r){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",a={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:r.languages.markup}};function i(o,s){return RegExp(o.replace(//g,function(){return n}),s)}r.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:a},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:a},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:a},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:a},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},r.languages.gv=r.languages.dot})(t)}return Zd}var Jd,Ww;function Sre(){if(Ww)return Jd;Ww=1,Jd=e,e.displayName="ebnf",e.aliases=[];function e(t){t.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}return Jd}var Qd,Vw;function Ere(){if(Vw)return Qd;Vw=1,Qd=e,e.displayName="editorconfig",e.aliases=[];function e(t){t.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}return Qd}var ep,Yw;function xre(){if(Yw)return ep;Yw=1,ep=e,e.displayName="eiffel",e.aliases=[];function e(t){t.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}return ep}var tp,Kw;function wre(){if(Kw)return tp;Kw=1;var e=er();tp=t,t.displayName="ejs",t.aliases=["eta"];function t(r){r.register(e),function(n){n.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:n.languages.javascript}},n.hooks.add("before-tokenize",function(a){var i=/<%(?!%)[\s\S]+?%>/g;n.languages["markup-templating"].buildPlaceholders(a,"ejs",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"ejs")}),n.languages.eta=n.languages.ejs}(r)}return tp}var rp,Xw;function _re(){if(Xw)return rp;Xw=1,rp=e,e.displayName="elixir",e.aliases=[];function e(t){t.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},t.languages.elixir.string.forEach(function(r){r.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:t.languages.elixir}}}})}return rp}var np,Zw;function Tre(){if(Zw)return np;Zw=1,np=e,e.displayName="elm",e.aliases=[];function e(t){t.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}return np}var ap,Jw;function Are(){if(Jw)return ap;Jw=1;var e=Lu(),t=er();ap=r,r.displayName="erb",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:a.languages.ruby}},a.hooks.add("before-tokenize",function(i){var o=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"erb",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"erb")})}(n)}return ap}var ip,Qw;function Ore(){if(Qw)return ip;Qw=1,ip=e,e.displayName="erlang",e.aliases=[];function e(t){t.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}return ip}var op,e_;function OI(){if(e_)return op;e_=1,op=e,e.displayName="lua",e.aliases=[];function e(t){t.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}return op}var sp,t_;function kre(){if(t_)return sp;t_=1;var e=OI(),t=er();sp=r,r.displayName="etlua",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:a.languages.lua}},a.hooks.add("before-tokenize",function(i){var o=/<%[\s\S]+?%>/g;a.languages["markup-templating"].buildPlaceholders(i,"etlua",o)}),a.hooks.add("after-tokenize",function(i){a.languages["markup-templating"].tokenizePlaceholders(i,"etlua")})}(n)}return sp}var lp,r_;function Rre(){if(r_)return lp;r_=1,lp=e,e.displayName="excelFormula",e.aliases=[];function e(t){t.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},t.languages.xlsx=t.languages.xls=t.languages["excel-formula"]}return lp}var up,n_;function Ire(){if(n_)return up;n_=1,up=e,e.displayName="factor",e.aliases=[];function e(t){(function(r){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},a={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:a.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:a}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:a}},o=function(d){return(d+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(d){return new RegExp("(^|\\s)(?:"+d.map(o).join("|")+")(?=\\s|$)")},l={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(l).forEach(function(d){i[d].pattern=s(l[d])});var c=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(c),r.languages.factor=i})(t)}return up}var cp,a_;function Nre(){if(a_)return cp;a_=1,cp=e,e.displayName="$false",e.aliases=[];function e(t){(function(r){r.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete t.languages["firestore-security-rules"]["class-name"],t.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}return dp}var pp,o_;function Dre(){if(o_)return pp;o_=1,pp=e,e.displayName="flow",e.aliases=[];function e(t){(function(r){r.languages.flow=r.languages.extend("javascript",{}),r.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),r.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete r.languages.flow.parameter,r.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(r.languages.flow.keyword)||(r.languages.flow.keyword=[r.languages.flow.keyword]),r.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(t)}return pp}var fp,s_;function Lre(){if(s_)return fp;s_=1,fp=e,e.displayName="fortran",e.aliases=[];function e(t){t.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}return fp}var gp,l_;function Mre(){if(l_)return gp;l_=1,gp=e,e.displayName="fsharp",e.aliases=[];function e(t){t.languages.fsharp=t.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),t.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),t.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),t.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:t.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}return gp}var hp,u_;function Pre(){if(u_)return hp;u_=1;var e=er();hp=t,t.displayName="ftl",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,i=0;i<2;i++)a=a.replace(//g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var o={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return a})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return a})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};o.string[1].inside.interpolation.inside.rest=o,n.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:o}}}},n.hooks.add("before-tokenize",function(s){var l=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return a}),"gi");n.languages["markup-templating"].buildPlaceholders(s,"ftl",l)}),n.hooks.add("after-tokenize",function(s){n.languages["markup-templating"].tokenizePlaceholders(s,"ftl")})}(r)}return hp}var mp,c_;function $re(){if(c_)return mp;c_=1,mp=e,e.displayName="gap",e.aliases=[];function e(t){t.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},t.languages.gap.shell.inside.gap.inside=t.languages.gap}return mp}var bp,d_;function jre(){if(d_)return bp;d_=1,bp=e,e.displayName="gcode",e.aliases=[];function e(t){t.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}return bp}var yp,p_;function Fre(){if(p_)return yp;p_=1,yp=e,e.displayName="gdscript",e.aliases=[];function e(t){t.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}return yp}var vp,f_;function Bre(){if(f_)return vp;f_=1,vp=e,e.displayName="gedcom",e.aliases=[];function e(t){t.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}return vp}var Sp,g_;function Ure(){if(g_)return Sp;g_=1,Sp=e,e.displayName="gherkin",e.aliases=[];function e(t){(function(r){var n=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;r.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+n+")(?:"+n+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(n),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(t)}return Sp}var Ep,h_;function Gre(){if(h_)return Ep;h_=1,Ep=e,e.displayName="git",e.aliases=[];function e(t){t.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}return Ep}var xp,m_;function zre(){if(m_)return xp;m_=1;var e=ca();xp=t,t.displayName="glsl",t.aliases=[];function t(r){r.register(e),r.languages.glsl=r.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}return xp}var wp,b_;function qre(){if(b_)return wp;b_=1,wp=e,e.displayName="gml",e.aliases=[];function e(t){t.languages.gamemakerlanguage=t.languages.gml=t.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}return wp}var _p,y_;function Hre(){if(y_)return _p;y_=1,_p=e,e.displayName="gn",e.aliases=["gni"];function e(t){t.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},t.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=t.languages.gn,t.languages.gni=t.languages.gn}return _p}var Tp,v_;function Wre(){if(v_)return Tp;v_=1,Tp=e,e.displayName="goModule",e.aliases=[];function e(t){t.languages["go-mod"]=t.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}return Tp}var Ap,S_;function Vre(){if(S_)return Ap;S_=1,Ap=e,e.displayName="go",e.aliases=[];function e(t){t.languages.go=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),t.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete t.languages.go["class-name"]}return Ap}var Op,E_;function Yre(){if(E_)return Op;E_=1,Op=e,e.displayName="graphql",e.aliases=[];function e(t){t.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:t.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},t.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var a=n.tokens.filter(function(O){return typeof O!="string"&&O.type!=="comment"&&O.type!=="scalar"}),i=0;function o(O){return a[i+O]}function s(O,_){_=_||0;for(var w=0;w0)){var b=l(/^\{$/,/^\}$/);if(b===-1)continue;for(var S=i;S=0&&c(v,"variable-input")}}}}})}return Op}var kp,x_;function Kre(){if(x_)return kp;x_=1,kp=e,e.displayName="groovy",e.aliases=[];function e(t){t.languages.groovy=t.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),t.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),t.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),t.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),t.hooks.add("wrap",function(r){if(r.language==="groovy"&&r.type==="string"){var n=r.content.value[0];if(n!="'"){var a=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;n==="$"&&(a=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),r.content.value=r.content.value.replace(/</g,"<").replace(/&/g,"&"),r.content=t.highlight(r.content.value,{expression:{pattern:a,lookbehind:!0,inside:t.languages.groovy}}),r.classes.push(n==="/"?"regex":"gstring")}}})}return kp}var Rp,w_;function Xre(){if(w_)return Rp;w_=1;var e=Lu();Rp=t,t.displayName="haml",t.aliases=[];function t(r){r.register(e),function(n){n.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:n.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:n.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:n.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:n.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:n.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:n.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:n.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var a="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",i=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],o={},s=0,l=i.length;s@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},n.hooks.add("before-tokenize",function(a){var i=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;n.languages["markup-templating"].buildPlaceholders(a,"handlebars",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"handlebars")}),n.languages.hbs=n.languages.handlebars}(r)}return Ip}var Np,T_;function Uy(){if(T_)return Np;T_=1,Np=e,e.displayName="haskell",e.aliases=["hs"];function e(t){t.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},t.languages.hs=t.languages.haskell}return Np}var Cp,A_;function Jre(){if(A_)return Cp;A_=1,Cp=e,e.displayName="haxe",e.aliases=[];function e(t){t.languages.haxe=t.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<{1,3}|[-+*/%!=&|^])=?|[?:~]/}),t.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:t.languages.haxe}}},string:/[\s\S]+/}}}),t.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),t.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}return Cp}var Dp,O_;function Qre(){if(O_)return Dp;O_=1,Dp=e,e.displayName="hcl",e.aliases=[];function e(t){t.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}return Dp}var Lp,k_;function ene(){if(k_)return Lp;k_=1;var e=ca();Lp=t,t.displayName="hlsl",t.aliases=[];function t(r){r.register(e),r.languages.hlsl=r.languages.extend("c",{"class-name":[r.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}return Lp}var Mp,R_;function tne(){if(R_)return Mp;R_=1,Mp=e,e.displayName="hoon",e.aliases=[];function e(t){t.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}return Mp}var Pp,I_;function rne(){if(I_)return Pp;I_=1,Pp=e,e.displayName="hpkp",e.aliases=[];function e(t){t.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return Pp}var $p,N_;function nne(){if(N_)return $p;N_=1,$p=e,e.displayName="hsts",e.aliases=[];function e(t){t.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}return $p}var jp,C_;function ane(){if(C_)return jp;C_=1,jp=e,e.displayName="http",e.aliases=[];function e(t){(function(r){function n(p){return RegExp("(^(?:"+p+"):[ ]*(?![ ]))[^]+","i")}r.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:r.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:r.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:r.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:r.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var a=r.languages,i={"application/javascript":a.javascript,"application/json":a.json||a.javascript,"application/xml":a.xml,"text/xml":a.xml,"text/html":a.html,"text/css":a.css,"text/plain":a.plain},o={"application/json":!0,"application/xml":!0};function s(p){var g=p.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+g+"(?![+\\w.-])";return"(?:"+p+"|"+h+")"}var l;for(var c in i)if(i[c]){l=l||{};var d=o[c]?s(c):c;l[c.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+d+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[c]}}l&&r.languages.insertBefore("http","header",l)})(t)}return jp}var Fp,D_;function ine(){if(D_)return Fp;D_=1,Fp=e,e.displayName="ichigojam",e.aliases=[];function e(t){t.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}return Fp}var Bp,L_;function one(){if(L_)return Bp;L_=1,Bp=e,e.displayName="icon",e.aliases=[];function e(t){t.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}return Bp}var Up,M_;function sne(){if(M_)return Up;M_=1,Up=e,e.displayName="icuMessageFormat",e.aliases=[];function e(t){(function(r){function n(c,d){return d<=0?/[]/.source:c.replace(//g,function(){return n(c,d-1)})}var a=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},o={pattern:a,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return a.source}),8),l={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};r.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":l,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":l,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:o},l.inside.message.inside=r.languages["icu-message-format"],r.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=r.languages["icu-message-format"]})(t)}return Up}var Gp,P_;function lne(){if(P_)return Gp;P_=1;var e=Uy();Gp=t,t.displayName="idris",t.aliases=["idr"];function t(r){r.register(e),r.languages.idris=r.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),r.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),r.languages.idr=r.languages.idris}return Gp}var zp,$_;function une(){if($_)return zp;$_=1,zp=e,e.displayName="iecst",e.aliases=[];function e(t){t.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}return zp}var qp,j_;function cne(){if(j_)return qp;j_=1,qp=e,e.displayName="ignore",e.aliases=["gitignore","hgignore","npmignore"];function e(t){(function(r){r.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},r.languages.gitignore=r.languages.ignore,r.languages.hgignore=r.languages.ignore,r.languages.npmignore=r.languages.ignore})(t)}return qp}var Hp,F_;function dne(){if(F_)return Hp;F_=1,Hp=e,e.displayName="inform7",e.aliases=[];function e(t){t.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},t.languages.inform7.string.inside.substitution.inside.rest=t.languages.inform7,t.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}return Hp}var Wp,B_;function pne(){if(B_)return Wp;B_=1,Wp=e,e.displayName="ini",e.aliases=[];function e(t){t.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}return Wp}var Vp,U_;function fne(){if(U_)return Vp;U_=1,Vp=e,e.displayName="io",e.aliases=[];function e(t){t.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}return Yp}var Kp,z_;function Gy(){if(z_)return Kp;z_=1,Kp=e,e.displayName="java",e.aliases=[];function e(t){(function(r){var n=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,a=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(a+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};r.languages.java=r.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(a+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:n,function:[r.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),r.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),r.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:n,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(//g,function(){return n.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(t)}return Kp}var Xp,q_;function Mu(){if(q_)return Xp;q_=1,Xp=e,e.displayName="javadoclike",e.aliases=[];function e(t){(function(r){var n=r.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function a(o,s){var l="doc-comment",c=r.languages[o];if(c){var d=c[l];if(!d){var p={};p[l]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},c=r.languages.insertBefore(o,"comment",p),d=c[l]}if(d instanceof RegExp&&(d=c[l]={pattern:d}),Array.isArray(d))for(var g=0,h=d.length;g)?|/.source.replace(//g,function(){return o});a.languages.javadoc=a.languages.extend("javadoclike",{}),a.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+s+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:a.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:i,lookbehind:!0,inside:a.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:i,lookbehind:!0,inside:{tag:a.languages.markup.tag,entity:a.languages.markup.entity,code:{pattern:/.+/,inside:a.languages.java,alias:"language-java"}}}}}],tag:a.languages.markup.tag,entity:a.languages.markup.entity}),a.languages.javadoclike.addSupport("java",a.languages.javadoc)}(n)}return Zp}var Jp,W_;function mne(){if(W_)return Jp;W_=1,Jp=e,e.displayName="javastacktrace",e.aliases=[];function e(t){t.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:|[\w$]+)\()/,function:/(?:|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}return Jp}var Qp,V_;function bne(){if(V_)return Qp;V_=1,Qp=e,e.displayName="jexl",e.aliases=[];function e(t){t.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}return Qp}var ef,Y_;function yne(){if(Y_)return ef;Y_=1,ef=e,e.displayName="jolie",e.aliases=[];function e(t){t.languages.jolie=t.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),t.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}return ef}var tf,K_;function vne(){if(K_)return tf;K_=1,tf=e,e.displayName="jq",e.aliases=[];function e(t){(function(r){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,a=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},o=r.languages.jq={comment:/#.*/,property:{pattern:RegExp(a.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:a,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=o})(t)}return tf}var rf,X_;function Sne(){if(X_)return rf;X_=1,rf=e,e.displayName="jsExtras",e.aliases=[];function e(t){(function(r){r.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+r.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),r.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+r.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),r.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function n(c,d){return RegExp(c.replace(//g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),d)}r.languages.insertBefore("javascript","keyword",{imports:{pattern:n(/(\bimport\b\s*)(?:(?:\s*,\s*(?:\*\s*as\s+|\{[^{}]*\}))?|\*\s*as\s+|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:r.languages.javascript},exports:{pattern:n(/(\bexport\b\s*)(?:\*(?:\s*as\s+)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:r.languages.javascript}}),r.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),r.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),r.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:n(/(\.\s*)#?/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var a=["function","function-variable","method","method-variable","property-access"],i=0;i=k.length)return;var L=I[D];if(typeof L=="string"||typeof L.content=="string"){var j=k[w],q=typeof L=="string"?L:L.content,H=q.indexOf(j);if(H!==-1){++w;var z=q.substring(0,H),W=p(A[j]),K=q.substring(H+j.length),G=[];if(z&&G.push(z),G.push(W),K){var V=[K];N(V),G.push.apply(G,V)}typeof L=="string"?(I.splice.apply(I,[D,1].concat(G)),D+=G.length-1):L.content=G}}else{var J=L.content;Array.isArray(J)?N(J):N([J])}}}return N(E),new r.Token(O,E,"language-"+O,S)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};r.hooks.add("after-tokenize",function(S){if(!(S.language in h))return;function v(O){for(var _=0,w=O.length;_]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),r.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete r.languages.typescript.parameter,delete r.languages.typescript["literal-property"];var n=r.languages.extend("typescript",{});delete n["class-name"],r.languages.typescript["class-name"].inside=n,r.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:n}}}}),r.languages.ts=r.languages.typescript})(t)}return af}var of,Q_;function xne(){if(Q_)return of;Q_=1;var e=Mu(),t=zy();of=r,r.displayName="jsdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.languages.javascript,o=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,s="(@(?:arg|argument|param|property)\\s+(?:"+o+"\\s+)?)";a.languages.jsdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp(s+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),a.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(s+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:i,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return o})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+o),lookbehind:!0,inside:{string:i.string,number:i.number,boolean:i.boolean,keyword:a.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:i,alias:"language-javascript"}}}}),a.languages.javadoclike.addSupport("javascript",a.languages.jsdoc)}(n)}return of}var sf,eT;function qy(){if(eT)return sf;eT=1,sf=e,e.displayName="json",e.aliases=["webmanifest"];function e(t){t.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},t.languages.webmanifest=t.languages.json}return sf}var lf,tT;function wne(){if(tT)return lf;tT=1;var e=qy();lf=t,t.displayName="json5",t.aliases=[];function t(r){r.register(e),function(n){var a=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;n.languages.json5=n.languages.extend("json",{property:[{pattern:RegExp(a.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:a,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(r)}return lf}var uf,rT;function _ne(){if(rT)return uf;rT=1;var e=qy();uf=t,t.displayName="jsonp",t.aliases=[];function t(r){r.register(e),r.languages.jsonp=r.languages.extend("json",{punctuation:/[{}[\]();,.]/}),r.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}return uf}var cf,nT;function Tne(){if(nT)return cf;nT=1,cf=e,e.displayName="jsstacktrace",e.aliases=[];function e(t){t.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js||.*(?:node_modules|\(\)|\(|$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}return cf}var df,aT;function kI(){if(aT)return df;aT=1,df=e,e.displayName="jsx",e.aliases=[];function e(t){(function(r){var n=r.util.clone(r.languages.javascript),a=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{*\.{3}(?:[^{}]|)*\})/.source;function s(d,p){return d=d.replace(//g,function(){return a}).replace(//g,function(){return i}).replace(//g,function(){return o}),RegExp(d,p)}o=s(o).source,r.languages.jsx=r.languages.extend("markup",n),r.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),r.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,r.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,r.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,r.languages.jsx.tag.inside.comment=n.comment,r.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:r.languages.jsx}},r.languages.jsx.tag),r.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:r.languages.jsx}}},r.languages.jsx.tag);var l=function(d){return d?typeof d=="string"?d:typeof d.content=="string"?d.content:d.content.map(l).join(""):""},c=function(d){for(var p=[],g=0;g0&&p[p.length-1].tagName===l(h.content[0].content[1])&&p.pop():h.content[h.content.length-1].content==="/>"||p.push({tagName:l(h.content[0].content[1]),openedBraces:0}):p.length>0&&h.type==="punctuation"&&h.content==="{"?p[p.length-1].openedBraces++:p.length>0&&p[p.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?p[p.length-1].openedBraces--:b=!0),(b||typeof h=="string")&&p.length>0&&p[p.length-1].openedBraces===0){var S=l(h);g0&&(typeof d[g-1]=="string"||d[g-1].type==="plain-text")&&(S=l(d[g-1])+S,d.splice(g-1,1),g--),d[g]=new r.Token("plain-text",S,null,S)}h.content&&typeof h.content!="string"&&c(h.content)}};r.hooks.add("after-tokenize",function(d){d.language!=="jsx"&&d.language!=="tsx"||c(d.tokens)})})(t)}return df}var pf,iT;function Ane(){if(iT)return pf;iT=1,pf=e,e.displayName="julia",e.aliases=[];function e(t){t.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}return pf}var ff,oT;function One(){if(oT)return ff;oT=1,ff=e,e.displayName="keepalived",e.aliases=[];function e(t){t.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}|(?:[\da-f]{1,4}:){0,5}:|::(?:[\da-f]{1,4}:){0,5}|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|(?:\/\d{1,2})?)\b/.source.replace(//g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}return ff}var gf,sT;function kne(){if(sT)return gf;sT=1,gf=e,e.displayName="keyman",e.aliases=[];function e(t){t.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}return gf}var hf,lT;function Rne(){if(lT)return hf;lT=1,hf=e,e.displayName="kotlin",e.aliases=["kt","kts"];function e(t){(function(r){r.languages.kotlin=r.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete r.languages.kotlin["class-name"];var n={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:r.languages.kotlin}};r.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:n},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:n},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete r.languages.kotlin.string,r.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),r.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),r.languages.kt=r.languages.kotlin,r.languages.kts=r.languages.kotlin})(t)}return hf}var mf,uT;function Ine(){if(uT)return mf;uT=1,mf=e,e.displayName="kumir",e.aliases=["kum"];function e(t){(function(r){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function a(i,o){return RegExp(i.replace(//g,n),o)}r.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:a(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:a(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:a(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:a(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:a(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:a(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:a(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:a(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},r.languages.kum=r.languages.kumir})(t)}return mf}var bf,cT;function Nne(){if(cT)return bf;cT=1,bf=e,e.displayName="kusto",e.aliases=[];function e(t){t.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}return bf}var yf,dT;function Cne(){if(dT)return yf;dT=1,yf=e,e.displayName="latex",e.aliases=["tex","context"];function e(t){(function(r){var n=/\\(?:[^a-z()[\]]|[a-z*]+)/i,a={"equation-command":{pattern:n,alias:"regex"}};r.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:a,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:a,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:n,alias:"selector"},punctuation:/[[\]{}&]/},r.languages.tex=r.languages.latex,r.languages.context=r.languages.latex})(t)}return yf}var vf,pT;function Pu(){if(pT)return vf;pT=1;var e=er();vf=t,t.displayName="php",t.aliases=[];function t(r){r.register(e),function(n){var a=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,i=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],o=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,s=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,l=/[{}\[\](),:;]/;n.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:a,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:o,operator:s,punctuation:l};var c={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:n.languages.php},d=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:c}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:c}}];n.languages.insertBefore("php","variable",{string:d,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:a,string:d,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:i,number:o,operator:s,punctuation:l}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),n.hooks.add("before-tokenize",function(p){if(/<\?/.test(p.code)){var g=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;n.languages["markup-templating"].buildPlaceholders(p,"php",g)}}),n.hooks.add("after-tokenize",function(p){n.languages["markup-templating"].tokenizePlaceholders(p,"php")})}(r)}return vf}var Sf,fT;function Dne(){if(fT)return Sf;fT=1;var e=er(),t=Pu();Sf=r,r.displayName="latte",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){a.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:a.languages.php}};var i=a.languages.extend("markup",{});a.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:a.languages.php}}}}}},i.tag),a.hooks.add("before-tokenize",function(o){if(o.language==="latte"){var s=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;a.languages["markup-templating"].buildPlaceholders(o,"latte",s),o.grammar=i}}),a.hooks.add("after-tokenize",function(o){a.languages["markup-templating"].tokenizePlaceholders(o,"latte")})}(n)}return Sf}var Ef,gT;function Lne(){if(gT)return Ef;gT=1,Ef=e,e.displayName="less",e.aliases=[];function e(t){t.languages.less=t.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),t.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}return Ef}var xf,hT;function Hy(){if(hT)return xf;hT=1,xf=e,e.displayName="scheme",e.aliases=[];function e(t){(function(r){r.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(a){for(var i in a)a[i]=a[i].replace(/<[\w\s]+>/g,function(o){return"(?:"+a[o].trim()+")"});return a[i]}})(t)}return xf}var wf,mT;function Mne(){if(mT)return wf;mT=1;var e=Hy();wf=t,t.displayName="lilypond",t.aliases=[];function t(r){r.register(e),function(n){for(var a=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,i=5,o=0;o/g,function(){return a});a=a.replace(//g,/[^\s\S]/.source);var s=n.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return a}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:n.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};s["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=s,n.languages.ly=s}(r)}return wf}var _f,bT;function Pne(){if(bT)return _f;bT=1;var e=er();_f=t,t.displayName="liquid",t.aliases=[];function t(r){r.register(e),r.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},r.hooks.add("before-tokenize",function(n){var a=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,i=!1;r.languages["markup-templating"].buildPlaceholders(n,"liquid",a,function(o){var s=/^\{%-?\s*(\w+)/.exec(o);if(s){var l=s[1];if(l==="raw"&&!i)return i=!0,!0;if(l==="endraw")return i=!1,!0}return!i})}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"liquid")})}return _f}var Tf,yT;function $ne(){if(yT)return Tf;yT=1,Tf=e,e.displayName="lisp",e.aliases=[];function e(t){(function(r){function n(S){return RegExp(/(\()/.source+"(?:"+S+")"+/(?=[\s\)])/.source)}function a(S){return RegExp(/([\s([])/.source+"(?:"+S+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,o="&"+i,s="(\\()",l="(?=\\))",c="(?=\\s)",d=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,p={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+c),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+c),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:a(/nil|t/.source),lookbehind:!0},number:{pattern:a(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+d+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},g={"lisp-marker":RegExp(o),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+d+/\)/.source),inside:p},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:p},h="\\S+(?:\\s+\\S+)*",b={pattern:RegExp(s+d+l),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:g},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:g},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:g},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};p.lambda.inside.arguments=b,p.defun.inside.arguments=r.util.clone(b),p.defun.inside.arguments.inside.sublist=b,r.languages.lisp=p,r.languages.elisp=p,r.languages.emacs=p,r.languages["emacs-lisp"]=p})(t)}return Tf}var Af,vT;function jne(){if(vT)return Af;vT=1,Af=e,e.displayName="livescript",e.aliases=[];function e(t){t.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},t.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=t.languages.livescript}return Af}var Of,ST;function Fne(){if(ST)return Of;ST=1,Of=e,e.displayName="llvm",e.aliases=[];function e(t){(function(r){r.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(t)}return Of}var kf,ET;function Bne(){if(ET)return kf;ET=1,kf=e,e.displayName="log",e.aliases=[];function e(t){t.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:t.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}return kf}var Rf,xT;function Une(){if(xT)return Rf;xT=1,Rf=e,e.displayName="lolcode",e.aliases=[];function e(t){t.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}return Rf}var If,wT;function Gne(){if(wT)return If;wT=1,If=e,e.displayName="magma",e.aliases=[];function e(t){t.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}return If}var Nf,_T;function zne(){if(_T)return Nf;_T=1,Nf=e,e.displayName="makefile",e.aliases=[];function e(t){t.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}return Nf}var Cf,TT;function qne(){if(TT)return Cf;TT=1,Cf=e,e.displayName="markdown",e.aliases=["md"];function e(t){(function(r){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function a(g){return g=g.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+g+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;r.languages.markdown=r.languages.extend("markup",{}),r.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:r.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+s+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+s+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:r.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:r.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:a(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:a(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:a(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:a(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(g){["url","bold","italic","strike","code-snippet"].forEach(function(h){g!==h&&(r.languages.markdown[g].inside.content.inside[h]=r.languages.markdown[h])})}),r.hooks.add("after-tokenize",function(g){if(g.language!=="markdown"&&g.language!=="md")return;function h(b){if(!(!b||typeof b=="string"))for(var S=0,v=b.length;S",quot:'"'},d=String.fromCodePoint||String.fromCharCode;function p(g){var h=g.replace(l,"");return h=h.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(b,S){if(S=S.toLowerCase(),S[0]==="#"){var v;return S[1]==="x"?v=parseInt(S.slice(2),16):v=Number(S.slice(1)),d(v)}else{var O=c[S];return O||b}}),h}r.languages.md=r.languages.markdown})(t)}return Cf}var Df,AT;function Hne(){if(AT)return Df;AT=1,Df=e,e.displayName="matlab",e.aliases=[];function e(t){t.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}return Df}var Lf,OT;function Wne(){if(OT)return Lf;OT=1,Lf=e,e.displayName="maxscript",e.aliases=[];function e(t){(function(r){var n=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;r.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+n.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+n.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:n,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(t)}return Lf}var Mf,kT;function Vne(){if(kT)return Mf;kT=1,Mf=e,e.displayName="mel",e.aliases=[];function e(t){t.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},t.languages.mel.code.inside.rest=t.languages.mel}return Mf}var Pf,RT;function Yne(){if(RT)return Pf;RT=1,Pf=e,e.displayName="mermaid",e.aliases=[];function e(t){t.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}return Pf}var $f,IT;function Kne(){if(IT)return $f;IT=1,$f=e,e.displayName="mizar",e.aliases=[];function e(t){t.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}return $f}var jf,NT;function Xne(){if(NT)return jf;NT=1,jf=e,e.displayName="mongodb",e.aliases=[];function e(t){(function(r){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],a=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(o){return o.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";r.languages.mongodb=r.languages.extend("javascript",{}),r.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),r.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},r.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+a.join("|")+")\\b"),alias:"keyword"}})})(t)}return jf}var Ff,CT;function Zne(){if(CT)return Ff;CT=1,Ff=e,e.displayName="monkey",e.aliases=[];function e(t){t.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}return Ff}var Bf,DT;function Jne(){if(DT)return Bf;DT=1,Bf=e,e.displayName="moonscript",e.aliases=["moon"];function e(t){t.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},t.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=t.languages.moonscript,t.languages.moon=t.languages.moonscript}return Bf}var Uf,LT;function Qne(){if(LT)return Uf;LT=1,Uf=e,e.displayName="n1ql",e.aliases=[];function e(t){t.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}return Uf}var Gf,MT;function eae(){if(MT)return Gf;MT=1,Gf=e,e.displayName="n4js",e.aliases=["n4jsd"];function e(t){t.languages.n4js=t.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),t.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),t.languages.n4jsd=t.languages.n4js}return Gf}var zf,PT;function tae(){if(PT)return zf;PT=1,zf=e,e.displayName="nand2tetrisHdl",e.aliases=[];function e(t){t.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}return zf}var qf,$T;function rae(){if($T)return qf;$T=1,qf=e,e.displayName="naniscript",e.aliases=[];function e(t){(function(r){var n=/\{[^\r\n\[\]{}]*\}/,a={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};r.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:a}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:a},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},r.languages.nani=r.languages.naniscript,r.hooks.add("after-tokenize",function(s){var l=s.tokens;l.forEach(function(c){if(typeof c!="string"&&c.type==="generic-text"){var d=o(c);i(d)||(c.type="bad-line",c.content=d)}})});function i(s){for(var l="[]{}",c=[],d=0;d=&|$!]/}}return Hf}var Wf,FT;function aae(){if(FT)return Wf;FT=1,Wf=e,e.displayName="neon",e.aliases=[];function e(t){t.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}return Wf}var Vf,BT;function iae(){if(BT)return Vf;BT=1,Vf=e,e.displayName="nevod",e.aliases=[];function e(t){t.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}return Vf}var Yf,UT;function oae(){if(UT)return Yf;UT=1,Yf=e,e.displayName="nginx",e.aliases=[];function e(t){(function(r){var n=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;r.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:n}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:n}},punctuation:/[{};]/}})(t)}return Yf}var Kf,GT;function sae(){if(GT)return Kf;GT=1,Kf=e,e.displayName="nim",e.aliases=[];function e(t){t.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}return Kf}var Xf,zT;function lae(){if(zT)return Xf;zT=1,Xf=e,e.displayName="nix",e.aliases=[];function e(t){t.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},t.languages.nix.string.inside.interpolation.inside=t.languages.nix}return Xf}var Zf,qT;function uae(){if(qT)return Zf;qT=1,Zf=e,e.displayName="nsis",e.aliases=[];function e(t){t.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}return Zf}var Jf,HT;function cae(){if(HT)return Jf;HT=1;var e=ca();Jf=t,t.displayName="objectivec",t.aliases=["objc"];function t(r){r.register(e),r.languages.objectivec=r.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete r.languages.objectivec["class-name"],r.languages.objc=r.languages.objectivec}return Jf}var Qf,WT;function dae(){if(WT)return Qf;WT=1,Qf=e,e.displayName="ocaml",e.aliases=[];function e(t){t.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}return Qf}var eg,VT;function pae(){if(VT)return eg;VT=1;var e=ca();eg=t,t.displayName="opencl",t.aliases=[];function t(r){r.register(e),function(n){n.languages.opencl=n.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),n.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var a={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};n.languages.insertBefore("c","keyword",a),n.languages.cpp&&(a["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},n.languages.insertBefore("cpp","keyword",a))}(r)}return eg}var tg,YT;function fae(){if(YT)return tg;YT=1,tg=e,e.displayName="openqasm",e.aliases=["qasm"];function e(t){t.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},t.languages.qasm=t.languages.openqasm}return tg}var rg,KT;function gae(){if(KT)return rg;KT=1,rg=e,e.displayName="oz",e.aliases=[];function e(t){t.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}return rg}var ng,XT;function hae(){if(XT)return ng;XT=1,ng=e,e.displayName="parigp",e.aliases=[];function e(t){t.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var r=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return r=r.map(function(n){return n.split("").join(" *")}).join("|"),RegExp("\\b(?:"+r+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}return ng}var ag,ZT;function mae(){if(ZT)return ag;ZT=1,ag=e,e.displayName="parser",e.aliases=[];function e(t){(function(r){var n=r.languages.parser=r.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});n=r.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:n.keyword,variable:n.variable,function:n.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:n.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:n.punctuation}}}),r.languages.insertBefore("inside","punctuation",{expression:n.expression,keyword:n.keyword,variable:n.variable,function:n.function,escape:n.escape,"parser-punctuation":{pattern:n.punctuation,alias:"punctuation"}},n.tag.inside["attr-value"])})(t)}return ag}var ig,JT;function bae(){if(JT)return ig;JT=1,ig=e,e.displayName="pascal",e.aliases=["objectpascal"];function e(t){t.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},t.languages.pascal.asm.inside=t.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),t.languages.objectpascal=t.languages.pascal}return ig}var og,QT;function yae(){if(QT)return og;QT=1,og=e,e.displayName="pascaligo",e.aliases=[];function e(t){(function(r){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,a=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=r.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return a}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return a}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return a})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},o=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,l){return s[l]=i[l],s},{});i["class-name"].forEach(function(s){s.inside=o})})(t)}return og}var sg,eA;function vae(){if(eA)return sg;eA=1,sg=e,e.displayName="pcaxis",e.aliases=["px"];function e(t){t.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},t.languages.px=t.languages.pcaxis}return sg}var lg,tA;function Sae(){if(tA)return lg;tA=1,lg=e,e.displayName="peoplecode",e.aliases=["pcode"];function e(t){t.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},t.languages.pcode=t.languages.peoplecode}return lg}var ug,rA;function Eae(){if(rA)return ug;rA=1,ug=e,e.displayName="perl",e.aliases=[];function e(t){(function(r){var n=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;r.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,n].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,n+/\s*/.source+n].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(t)}return ug}var cg,nA;function xae(){if(nA)return cg;nA=1;var e=Pu();cg=t,t.displayName="phpExtras",t.aliases=[];function t(r){r.register(e),r.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}return cg}var dg,aA;function wae(){if(aA)return dg;aA=1;var e=Pu(),t=Mu();dg=r,r.displayName="phpdoc",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;a.languages.phpdoc=a.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+i+"\\s+)?)\\$\\w+"),lookbehind:!0}}),a.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+i),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),a.languages.javadoclike.addSupport("php",a.languages.phpdoc)}(n)}return dg}var pg,iA;function _ae(){if(iA)return pg;iA=1;var e=Fy();pg=t,t.displayName="plsql",t.aliases=[];function t(r){r.register(e),r.languages.plsql=r.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),r.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}return pg}var fg,oA;function Tae(){if(oA)return fg;oA=1,fg=e,e.displayName="powerquery",e.aliases=[];function e(t){t.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},t.languages.pq=t.languages.powerquery,t.languages.mscript=t.languages.powerquery}return fg}var gg,sA;function Aae(){if(sA)return gg;sA=1,gg=e,e.displayName="powershell",e.aliases=[];function e(t){(function(r){var n=r.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};n.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:n},boolean:n.boolean,variable:n.variable}})(t)}return gg}var hg,lA;function Oae(){if(lA)return hg;lA=1,hg=e,e.displayName="processing",e.aliases=[];function e(t){t.languages.processing=t.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),t.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}return hg}var mg,uA;function kae(){if(uA)return mg;uA=1,mg=e,e.displayName="prolog",e.aliases=[];function e(t){t.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}return mg}var bg,cA;function Rae(){if(cA)return bg;cA=1,bg=e,e.displayName="promql",e.aliases=[];function e(t){(function(r){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],a=["on","ignoring","group_right","group_left","by","without"],i=["offset"],o=n.concat(a,i);r.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+a.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+o.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(t)}return bg}var yg,dA;function Iae(){if(dA)return yg;dA=1,yg=e,e.displayName="properties",e.aliases=[];function e(t){t.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}return yg}var vg,pA;function Nae(){if(pA)return vg;pA=1,vg=e,e.displayName="protobuf",e.aliases=[];function e(t){(function(r){var n=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;r.languages.protobuf=r.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),r.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:n}},builtin:n,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(t)}return vg}var Sg,fA;function Cae(){if(fA)return Sg;fA=1,Sg=e,e.displayName="psl",e.aliases=[];function e(t){t.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}return Sg}var Eg,gA;function Dae(){if(gA)return Eg;gA=1,Eg=e,e.displayName="pug",e.aliases=[];function e(t){(function(r){r.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:r.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:r.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:r.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:r.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:r.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:r.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:r.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:r.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,a=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},o=0,s=a.length;o",function(){return l.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[l.language,"language-"+l.language],inside:r.languages[l.language]}}})}r.languages.insertBefore("pug","filter",i)})(t)}return Eg}var xg,hA;function Lae(){if(hA)return xg;hA=1,xg=e,e.displayName="puppet",e.aliases=[];function e(t){(function(r){r.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var n=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:r.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];r.languages.puppet.heredoc[0].inside.interpolation=n,r.languages.puppet.string.inside["double-quoted"].inside.interpolation=n})(t)}return xg}var wg,mA;function Mae(){if(mA)return wg;mA=1,wg=e,e.displayName="pure",e.aliases=[];function e(t){(function(r){r.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],a=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var o=i;if(typeof i!="string"&&(o=i.alias,i=i.lang),r.languages[o]){var s={};s["inline-lang-"+o]={pattern:RegExp(a.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:r.util.clone(r.languages.pure["inline-lang"].inside)},s["inline-lang-"+o].inside.rest=r.util.clone(r.languages[o]),r.languages.insertBefore("pure","inline-lang",s)}}),r.languages.c&&(r.languages.pure["inline-lang"].inside.rest=r.util.clone(r.languages.c))})(t)}return wg}var _g,bA;function Pae(){if(bA)return _g;bA=1,_g=e,e.displayName="purebasic",e.aliases=[];function e(t){t.languages.purebasic=t.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<>?=?|==?|&&?|\|?\||[~^%?*/@]/}),t.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete t.languages.purebasic["class-name"],delete t.languages.purebasic.boolean,t.languages.pbfasm=t.languages.purebasic}return _g}var Tg,yA;function $ae(){if(yA)return Tg;yA=1;var e=Uy();Tg=t,t.displayName="purescript",t.aliases=["purs"];function t(r){r.register(e),r.languages.purescript=r.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[r.languages.haskell.operator[0],r.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),r.languages.purs=r.languages.purescript}return Tg}var Ag,vA;function jae(){if(vA)return Ag;vA=1,Ag=e,e.displayName="python",e.aliases=["py"];function e(t){t.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.python["string-interpolation"].inside.interpolation.inside.rest=t.languages.python,t.languages.py=t.languages.python}return Ag}var Og,SA;function Fae(){if(SA)return Og;SA=1,Og=e,e.displayName="q",e.aliases=[];function e(t){t.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}return Og}var kg,EA;function Bae(){if(EA)return kg;EA=1,kg=e,e.displayName="qml",e.aliases=[];function e(t){(function(r){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,a=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return a}),o=0;o<2;o++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),r.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:r.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(t)}return kg}var Rg,xA;function Uae(){if(xA)return Rg;xA=1,Rg=e,e.displayName="qore",e.aliases=[];function e(t){t.languages.qore=t.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}return Rg}var Ig,wA;function Gae(){if(wA)return Ig;wA=1,Ig=e,e.displayName="qsharp",e.aliases=["qs"];function e(t){(function(r){function n(b,S){return b.replace(/<<(\d+)>>/g,function(v,O){return"(?:"+S[+O]+")"})}function a(b,S,v){return RegExp(n(b,S),v||"")}function i(b,S){for(var v=0;v>/g,function(){return"(?:"+b+")"});return b.replace(/<>/g,"[^\\s\\S]")}var o={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(b){return"\\b(?:"+b.trim().replace(/ /g,"|")+")\\b"}var l=RegExp(s(o.type+" "+o.other)),c=/\b[A-Za-z_]\w*\b/.source,d=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[c]),p={keyword:l,punctuation:/[<>()?,.:[\]]/},g=/"(?:\\.|[^\\"])*"/.source;r.languages.qsharp=r.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:a(/(^|[^$\\])<<0>>/.source,[g]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:a(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[d]),lookbehind:!0,inside:p},{pattern:a(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[d]),lookbehind:!0,inside:p}],keyword:l,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),r.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[g]),2);r.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:a(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:a(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:r.languages.qsharp}}},string:/[\s\S]+/}}})})(t),t.languages.qs=t.languages.qsharp}return Ig}var Ng,_A;function zae(){if(_A)return Ng;_A=1,Ng=e,e.displayName="r",e.aliases=[];function e(t){t.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}return Ng}var Cg,TA;function qae(){if(TA)return Cg;TA=1;var e=Hy();Cg=t,t.displayName="racket",t.aliases=["rkt"];function t(r){r.register(e),r.languages.racket=r.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),r.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),r.languages.rkt=r.languages.racket}return Cg}var Dg,AA;function Hae(){if(AA)return Dg;AA=1,Dg=e,e.displayName="reason",e.aliases=[];function e(t){t.languages.reason=t.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),t.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete t.languages.reason.function}return Dg}var Lg,OA;function Wae(){if(OA)return Lg;OA=1,Lg=e,e.displayName="regex",e.aliases=[];function e(t){(function(r){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},a=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},o={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+a.source+")",l=RegExp(s+"-"+s),c={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};r.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:l,inside:{escape:a,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":o,escape:a}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":c}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:a,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}return Mg}var Pg,RA;function Yae(){if(RA)return Pg;RA=1,Pg=e,e.displayName="renpy",e.aliases=["rpy"];function e(t){t.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},t.languages.rpy=t.languages.renpy}return Pg}var $g,IA;function Kae(){if(IA)return $g;IA=1,$g=e,e.displayName="rest",e.aliases=[];function e(t){t.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}return $g}var jg,NA;function Xae(){if(NA)return jg;NA=1,jg=e,e.displayName="rip",e.aliases=[];function e(t){t.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}return jg}var Fg,CA;function Zae(){if(CA)return Fg;CA=1,Fg=e,e.displayName="roboconf",e.aliases=[];function e(t){t.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}return Fg}var Bg,DA;function Jae(){if(DA)return Bg;DA=1,Bg=e,e.displayName="robotframework",e.aliases=[];function e(t){(function(r){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},a={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(c,d){var p={};p["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var g in d)p[g]=d[g];return p.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},p.variable=a,p.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return c}),"im"),alias:"section",inside:p}}var o={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:a}},l={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:a}};r.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:o,property:l}),keywords:i("Keywords",{"keyword-name":s,documentation:o,property:l}),tasks:i("Tasks",{"task-name":s,documentation:o,property:l}),comment:n},r.languages.robot=r.languages.robotframework})(t)}return Bg}var Ug,LA;function Qae(){if(LA)return Ug;LA=1,Ug=e,e.displayName="rust",e.aliases=[];function e(t){(function(r){for(var n=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|)*\*\//.source,a=0;a<2;a++)n=n.replace(//g,function(){return n});n=n.replace(//g,function(){return/[^\s\S]/.source}),r.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+n),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},r.languages.rust["closure-params"].inside.rest=r.languages.rust,r.languages.rust.attribute.inside.string=r.languages.rust.string})(t)}return Ug}var Gg,MA;function eie(){if(MA)return Gg;MA=1,Gg=e,e.displayName="sas",e.aliases=[];function e(t){(function(r){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,a=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},o={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},l={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},c=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],d={pattern:RegExp(n),greedy:!0},p=/[$%@.(){}\[\];,\\]/,g={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:g,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":o,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d},b={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},S={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},v={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},O={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},_=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,w={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return _}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return _}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:c,function:g,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:a,"numeric-constant":i,punctuation:p,string:d}},A={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};r.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:r.languages.sql},"global-statements":v,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:r.languages.groovy},keyword:A,"submit-statement":O,"global-statements":v,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:r.languages.lua},keyword:A,"submit-statement":O,"global-statements":v,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:c,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:h}},"cas-actions":w,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:l,keyword:A,function:g,format:b,altformat:S,"global-statements":v,number:a,"numeric-constant":i,punctuation:p,string:d}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:h},"macro-keyword":s,"macro-variable":o,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":o,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:p}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:c,number:a,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:h},"cas-actions":w,comment:c,function:g,format:b,altformat:S,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:d,step:l,keyword:A,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:a,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:p}})(t)}return Gg}var zg,PA;function tie(){if(PA)return zg;PA=1,zg=e,e.displayName="sass",e.aliases=[];function e(t){(function(r){r.languages.sass=r.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),r.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete r.languages.sass.atrule;var n=/\$[-\w]+|#\{\$[-\w]+\}/,a=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];r.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:n,operator:a}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:n,operator:a,important:r.languages.sass.important}}}),delete r.languages.sass.property,delete r.languages.sass.important,r.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(t)}return zg}var qg,$A;function rie(){if($A)return qg;$A=1;var e=Gy();qg=t,t.displayName="scala",t.aliases=[];function t(r){r.register(e),r.languages.scala=r.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),r.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.scala}}},string:/[\s\S]+/}}}),delete r.languages.scala["class-name"],delete r.languages.scala.function}return qg}var Hg,jA;function nie(){if(jA)return Hg;jA=1,Hg=e,e.displayName="scss",e.aliases=[];function e(t){t.languages.scss=t.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),t.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),t.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),t.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),t.languages.scss.atrule.inside.rest=t.languages.scss}return Hg}var Wg,FA;function aie(){if(FA)return Wg;FA=1;var e=TI();Wg=t,t.displayName="shellSession",t.aliases=[];function t(r){r.register(e),function(n){var a=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");n.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<>)+/.source.replace(/<>/g,function(){return a}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:n.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},n.languages["sh-session"]=n.languages.shellsession=n.languages["shell-session"]}(r)}return Wg}var Vg,BA;function iie(){if(BA)return Vg;BA=1,Vg=e,e.displayName="smali",e.aliases=[];function e(t){t.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}return Vg}var Yg,UA;function oie(){if(UA)return Yg;UA=1,Yg=e,e.displayName="smalltalk",e.aliases=[];function e(t){t.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}return Yg}var Kg,GA;function sie(){if(GA)return Kg;GA=1;var e=er();Kg=t,t.displayName="smarty",t.aliases=[];function t(r){r.register(e),function(n){n.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:n.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},n.languages.smarty["embedded-php"].inside.smarty.inside=n.languages.smarty,n.languages.smarty.string[0].inside.interpolation.inside.expression.inside=n.languages.smarty;var a=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,i=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return a.source}),"g");n.hooks.add("before-tokenize",function(o){var s="{literal}",l="{/literal}",c=!1;n.languages["markup-templating"].buildPlaceholders(o,"smarty",i,function(d){return d===l&&(c=!1),c?!1:(d===s&&(c=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"smarty")})}(r)}return Kg}var Xg,zA;function lie(){if(zA)return Xg;zA=1,Xg=e,e.displayName="sml",e.aliases=["smlnj"];function e(t){(function(r){var n=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;r.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)(?:\s*(?:(?:\*|->)\s*|,\s*(?:(?=)|(?!)\s+)))*/.source.replace(//g,function(){return/\s*(?:[*,]|->)/.source}).replace(//g,function(){return/(?:'[\w']*||\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+)*/.source}).replace(//g,function(){return/(?!)[a-z\d_][\w'.]*/.source}).replace(//g,function(){return n.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:n,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},r.languages.sml["class-name"][0].inside=r.languages.sml,r.languages.smlnj=r.languages.sml})(t)}return Xg}var Zg,qA;function uie(){if(qA)return Zg;qA=1,Zg=e,e.displayName="solidity",e.aliases=["sol"];function e(t){t.languages.solidity=t.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),t.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),t.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),t.languages.sol=t.languages.solidity}return Zg}var Jg,HA;function cie(){if(HA)return Jg;HA=1,Jg=e,e.displayName="solutionFile",e.aliases=[];function e(t){(function(r){var n={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};r.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:n}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:n}},guid:n,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},r.languages.sln=r.languages["solution-file"]})(t)}return Jg}var Qg,WA;function die(){if(WA)return Qg;WA=1;var e=er();Qg=t,t.displayName="soy",t.aliases=[];function t(r){r.register(e),function(n){var a=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,i=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;n.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:a,greedy:!0},number:i,punctuation:/[\[\].?]/}},string:{pattern:a,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:i,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},n.hooks.add("before-tokenize",function(o){var s=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,l="{literal}",c="{/literal}",d=!1;n.languages["markup-templating"].buildPlaceholders(o,"soy",s,function(p){return p===c&&(d=!1),d?!1:(p===l&&(d=!0),!0)})}),n.hooks.add("after-tokenize",function(o){n.languages["markup-templating"].tokenizePlaceholders(o,"soy")})}(r)}return Qg}var eh,VA;function RI(){if(VA)return eh;VA=1,eh=e,e.displayName="turtle",e.aliases=[];function e(t){t.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},t.languages.trig=t.languages.turtle}return eh}var th,YA;function pie(){if(YA)return th;YA=1;var e=RI();th=t,t.displayName="sparql",t.aliases=["rq"];function t(r){r.register(e),r.languages.sparql=r.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),r.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),r.languages.rq=r.languages.sparql}return th}var rh,KA;function fie(){if(KA)return rh;KA=1,rh=e,e.displayName="splunkSpl",e.aliases=[];function e(t){t.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}return rh}var nh,XA;function gie(){if(XA)return nh;XA=1,nh=e,e.displayName="sqf",e.aliases=[];function e(t){t.languages.sqf=t.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),t.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:t.languages.sqf.comment}}}),delete t.languages.sqf["class-name"]}return nh}var ah,ZA;function hie(){if(ZA)return ah;ZA=1,ah=e,e.displayName="squirrel",e.aliases=[];function e(t){t.languages.squirrel=t.languages.extend("clike",{comment:[t.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),t.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),t.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}return ah}var ih,JA;function mie(){if(JA)return ih;JA=1,ih=e,e.displayName="stan",e.aliases=[];function e(t){(function(r){var n=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;r.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+n.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,n],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},r.languages.stan.constraint.inside.expression.inside=r.languages.stan})(t)}return ih}var oh,QA;function bie(){if(QA)return oh;QA=1,oh=e,e.displayName="stylus",e.aliases=[];function e(t){(function(r){var n={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},i={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:n,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:n,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:a,punctuation:/[{}()\[\];:,]/};i.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:i}},i.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:i}},r.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:i}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:i}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:i}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:i.interpolation}},rest:i}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:i.interpolation,comment:i.comment,punctuation:/[{},]/}},func:i.func,string:i.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:i.interpolation,punctuation:/[{}()\[\];:.]/}})(t)}return oh}var sh,eO;function yie(){if(eO)return sh;eO=1,sh=e,e.displayName="swift",e.aliases=[];function e(t){t.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},t.languages.swift["string-literal"].forEach(function(r){r.inside.interpolation.inside=t.languages.swift})}return sh}var lh,tO;function vie(){if(tO)return lh;tO=1,lh=e,e.displayName="systemd",e.aliases=[];function e(t){(function(r){var n={pattern:/^[;#].*/m,greedy:!0},a=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;r.languages.systemd={comment:n,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+a+`|(?=[^"\r +]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+a+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:n,quoted:{pattern:RegExp(/(^|\s)/.source+a),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(t)}return lh}var uh,rO;function Wy(){if(rO)return uh;rO=1,uh=e,e.displayName="t4Templating",e.aliases=[];function e(t){(function(r){function n(i,o,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:o,alias:s}}}}function a(i){var o=r.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",o,s),"class-feature":n("\\+",o,s),standard:n("",o,s)}}}}r.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:a})})(t)}return uh}var ch,nO;function Sie(){if(nO)return ch;nO=1;var e=Wy(),t=Du();ch=r,r.displayName="t4Cs",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages.t4=n.languages["t4-cs"]=n.languages["t4-templating"].createT4("csharp")}return ch}var dh,aO;function II(){if(aO)return dh;aO=1;var e=AI();dh=t,t.displayName="vbnet",t.aliases=[];function t(r){r.register(e),r.languages.vbnet=r.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}return dh}var ph,iO;function Eie(){if(iO)return ph;iO=1;var e=Wy(),t=II();ph=r,r.displayName="t4Vb",r.aliases=[];function r(n){n.register(e),n.register(t),n.languages["t4-vb"]=n.languages["t4-templating"].createT4("vbnet")}return ph}var fh,oO;function NI(){if(oO)return fh;oO=1,fh=e,e.displayName="yaml",e.aliases=["yml"];function e(t){(function(r){var n=/[*&][^\s[\]{},]+/,a=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+a.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+a.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function l(c,d){d=(d||"").replace(/m/g,"")+"m";var p=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return c});return RegExp(p,d)}r.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+o+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:l(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:l(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:l(s),lookbehind:!0,greedy:!0},number:{pattern:l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:a,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},r.languages.yml=r.languages.yaml})(t)}return fh}var gh,sO;function xie(){if(sO)return gh;sO=1;var e=NI();gh=t,t.displayName="tap",t.aliases=[];function t(r){r.register(e),r.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:r.languages.yaml,alias:"language-yaml"}}}return gh}var hh,lO;function wie(){if(lO)return hh;lO=1,hh=e,e.displayName="tcl",e.aliases=[];function e(t){t.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}return hh}var mh,uO;function _ie(){if(uO)return mh;uO=1,mh=e,e.displayName="textile",e.aliases=[];function e(t){(function(r){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,a=/\)|\((?![^|()\n]+\))/.source;function i(g,h){return RegExp(g.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+a+")"}),h||"")}var o={css:{pattern:/\{[^{}]+\}/,inside:{rest:r.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=r.languages.textile=r.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:o},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:o},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:o},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:o},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:o},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),l=s.phrase.inside,c={inline:l.inline,link:l.link,image:l.image,footnote:l.footnote,acronym:l.acronym,mark:l.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var d=l.inline.inside;d.bold.inside=c,d.italic.inside=c,d.inserted.inside=c,d.deleted.inside=c,d.span.inside=c;var p=l.table.inside;p.inline=c.inline,p.link=c.link,p.image=c.image,p.footnote=c.footnote,p.acronym=c.acronym,p.mark=c.mark})(t)}return mh}var bh,cO;function Tie(){if(cO)return bh;cO=1,bh=e,e.displayName="toml",e.aliases=[];function e(t){(function(r){var n=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function a(i){return i.replace(/__/g,function(){return n})}r.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(a(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(a(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(t)}return bh}var yh,dO;function Aie(){if(dO)return yh;dO=1,yh=e,e.displayName="tremor",e.aliases=[];function e(t){(function(r){r.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var n=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;r.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+n+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+n+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(n),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:r.languages.tremor}}},string:/[\s\S]+/}},r.languages.troy=r.languages.tremor,r.languages.trickle=r.languages.tremor})(t)}return yh}var vh,pO;function Oie(){if(pO)return vh;pO=1;var e=kI(),t=zy();vh=r,r.displayName="tsx",r.aliases=[];function r(n){n.register(e),n.register(t),function(a){var i=a.util.clone(a.languages.typescript);a.languages.tsx=a.languages.extend("jsx",i),delete a.languages.tsx.parameter,delete a.languages.tsx["literal-property"];var o=a.languages.tsx.tag;o.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+o.pattern.source+")",o.pattern.flags),o.lookbehind=!0}(n)}return vh}var Sh,fO;function kie(){if(fO)return Sh;fO=1;var e=er();Sh=t,t.displayName="tt2",t.aliases=[];function t(r){r.register(e),function(n){n.languages.tt2=n.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),n.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),n.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),n.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete n.languages.tt2.string,n.hooks.add("before-tokenize",function(a){var i=/\[%[\s\S]+?%\]/g;n.languages["markup-templating"].buildPlaceholders(a,"tt2",i)}),n.hooks.add("after-tokenize",function(a){n.languages["markup-templating"].tokenizePlaceholders(a,"tt2")})}(r)}return Sh}var Eh,gO;function Rie(){if(gO)return Eh;gO=1;var e=er();Eh=t,t.displayName="twig",t.aliases=[];function t(r){r.register(e),r.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},r.hooks.add("before-tokenize",function(n){if(n.language==="twig"){var a=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;r.languages["markup-templating"].buildPlaceholders(n,"twig",a)}}),r.hooks.add("after-tokenize",function(n){r.languages["markup-templating"].tokenizePlaceholders(n,"twig")})}return Eh}var xh,hO;function Iie(){if(hO)return xh;hO=1,xh=e,e.displayName="typoscript",e.aliases=["tsconfig"];function e(t){(function(r){var n=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;r.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern://,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:n}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:n,number:/^\d+$/,punctuation:/[,|:]/}},keyword:n,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},r.languages.tsconfig=r.languages.typoscript})(t)}return xh}var wh,mO;function Nie(){if(mO)return wh;mO=1,wh=e,e.displayName="unrealscript",e.aliases=["uc","uscript"];function e(t){t.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},t.languages.uc=t.languages.uscript=t.languages.unrealscript}return wh}var _h,bO;function Cie(){if(bO)return _h;bO=1,_h=e,e.displayName="uorazor",e.aliases=[];function e(t){t.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}return _h}var Th,yO;function Die(){if(yO)return Th;yO=1,Th=e,e.displayName="uri",e.aliases=["url"];function e(t){t.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},t.languages.url=t.languages.uri}return Th}var Ah,vO;function Lie(){if(vO)return Ah;vO=1,Ah=e,e.displayName="v",e.aliases=[];function e(t){(function(r){var n={pattern:/[\s\S]+/,inside:null};r.languages.v=r.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":n}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),n.inside=r.languages.v,r.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),r.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),r.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:r.languages.v.generic.inside}}}})})(t)}return Ah}var Oh,SO;function Mie(){if(SO)return Oh;SO=1,Oh=e,e.displayName="vala",e.aliases=[];function e(t){t.languages.vala=t.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),t.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:t.languages.vala}},string:/[\s\S]+/}}}),t.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:t.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}return Oh}var kh,EO;function Pie(){if(EO)return kh;EO=1,kh=e,e.displayName="velocity",e.aliases=[];function e(t){(function(r){r.languages.velocity=r.languages.extend("markup",{});var n={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};n.variable.inside={string:n.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:n.number,boolean:n.boolean,punctuation:n.punctuation},r.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:n}},variable:n.variable}),r.languages.velocity.tag.inside["attr-value"].inside.rest=r.languages.velocity})(t)}return kh}var Rh,xO;function $ie(){if(xO)return Rh;xO=1,Rh=e,e.displayName="verilog",e.aliases=[];function e(t){t.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}return Rh}var Ih,wO;function jie(){if(wO)return Ih;wO=1,Ih=e,e.displayName="vhdl",e.aliases=[];function e(t){t.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}return Ih}var Nh,_O;function Fie(){if(_O)return Nh;_O=1,Nh=e,e.displayName="vim",e.aliases=[];function e(t){t.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}return Nh}var Ch,TO;function Bie(){if(TO)return Ch;TO=1,Ch=e,e.displayName="visualBasic",e.aliases=[];function e(t){t.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},t.languages.vb=t.languages["visual-basic"],t.languages.vba=t.languages["visual-basic"]}return Ch}var Dh,AO;function Uie(){if(AO)return Dh;AO=1,Dh=e,e.displayName="warpscript",e.aliases=[];function e(t){t.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}return Dh}var Lh,OO;function Gie(){if(OO)return Lh;OO=1,Lh=e,e.displayName="wasm",e.aliases=[];function e(t){t.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}return Lh}var Mh,kO;function zie(){if(kO)return Mh;kO=1,Mh=e,e.displayName="webIdl",e.aliases=[];function e(t){(function(r){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,a="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};r.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+a),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(a+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var o in r.languages["web-idl"])o!=="class-name"&&(i[o]=r.languages["web-idl"][o]);r.languages.webidl=r.languages["web-idl"]})(t)}return Mh}var Ph,RO;function qie(){if(RO)return Ph;RO=1,Ph=e,e.displayName="wiki",e.aliases=[];function e(t){t.languages.wiki=t.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:t.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),t.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:t.languages.markup.tag.inside}}}})}return Ph}var $h,IO;function Hie(){if(IO)return $h;IO=1,$h=e,e.displayName="wolfram",e.aliases=["mathematica","wl","nb"];function e(t){t.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},t.languages.mathematica=t.languages.wolfram,t.languages.wl=t.languages.wolfram,t.languages.nb=t.languages.wolfram}return $h}var jh,NO;function Wie(){if(NO)return jh;NO=1,jh=e,e.displayName="wren",e.aliases=[];function e(t){t.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},t.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:t.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}return jh}var Fh,CO;function Vie(){if(CO)return Fh;CO=1,Fh=e,e.displayName="xeora",e.aliases=["xeoracube"];function e(t){(function(r){r.languages.xeora=r.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),r.languages.insertBefore("inside","punctuation",{variable:r.languages.xeora["function-inline"].inside.variable},r.languages.xeora["function-block"]),r.languages.xeoracube=r.languages.xeora})(t)}return Fh}var Bh,DO;function Yie(){if(DO)return Bh;DO=1,Bh=e,e.displayName="xmlDoc",e.aliases=[];function e(t){(function(r){function n(s,l){r.languages[s]&&r.languages.insertBefore(s,"comment",{"doc-comment":l})}var a=r.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:a}},o={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:a}};n("csharp",i),n("fsharp",i),n("vbnet",o)})(t)}return Bh}var Uh,LO;function Kie(){if(LO)return Uh;LO=1,Uh=e,e.displayName="xojo",e.aliases=[];function e(t){t.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}return Uh}var Gh,MO;function Xie(){if(MO)return Gh;MO=1,Gh=e,e.displayName="xquery",e.aliases=[];function e(t){(function(r){r.languages.xquery=r.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),r.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,r.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,r.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,r.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:r.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},a=function(i){for(var o=[],s=0;s0&&o[o.length-1].tagName===n(l.content[0].content[1])&&o.pop():l.content[l.content.length-1].content==="/>"||o.push({tagName:n(l.content[0].content[1]),openedBraces:0}):o.length>0&&l.type==="punctuation"&&l.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?o[o.length-1].openedBraces++:o.length>0&&o[o.length-1].openedBraces>0&&l.type==="punctuation"&&l.content==="}"?o[o.length-1].openedBraces--:l.type!=="comment"&&(c=!0)),(c||typeof l=="string")&&o.length>0&&o[o.length-1].openedBraces===0){var d=n(l);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(d=n(i[s-1])+d,i.splice(s-1,1),s--),/^\s+$/.test(d)?i[s]=d:i[s]=new r.Token("plain-text",d,null,d)}l.content&&typeof l.content!="string"&&a(l.content)}};r.hooks.add("after-tokenize",function(i){i.language==="xquery"&&a(i.tokens)})})(t)}return Gh}var zh,PO;function Zie(){if(PO)return zh;PO=1,zh=e,e.displayName="yang",e.aliases=[];function e(t){t.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}return zh}var qh,$O;function Jie(){if($O)return qh;$O=1,qh=e,e.displayName="zig",e.aliases=[];function e(t){(function(r){function n(d){return function(){return d}}var a=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+a.source+")(?!\\d)\\w+\\b",o=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(o)),l=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),c="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+l+")+";r.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(c)).replace(//g,n(o))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:a,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},r.languages.zig["class-name"].forEach(function(d){d.inside===null&&(d.inside=r.languages.zig)})})(t)}return qh}var C=ote,Qie=C;C.register(bte());C.register(yte());C.register(vte());C.register(Ste());C.register(Ete());C.register(xte());C.register(wte());C.register(_te());C.register(Tte());C.register(Ate());C.register(Ote());C.register(kte());C.register(Rte());C.register(Ite());C.register(Nte());C.register(Cte());C.register(Dte());C.register(Lte());C.register(Mte());C.register(Pte());C.register($te());C.register(jte());C.register(TI());C.register(AI());C.register(Fte());C.register(Bte());C.register(Ute());C.register(Gte());C.register(zte());C.register(qte());C.register(Hte());C.register(Wte());C.register(Vte());C.register(Yte());C.register(ca());C.register(Kte());C.register(Xte());C.register(Zte());C.register(Jte());C.register(Qte());C.register(ere());C.register(tre());C.register(rre());C.register(nre());C.register(By());C.register(are());C.register(Du());C.register(ire());C.register(ore());C.register(sre());C.register(lre());C.register(ure());C.register(cre());C.register(dre());C.register(pre());C.register(fre());C.register(gre());C.register(hre());C.register(mre());C.register(bre());C.register(yre());C.register(vre());C.register(Sre());C.register(Ere());C.register(xre());C.register(wre());C.register(_re());C.register(Tre());C.register(Are());C.register(Ore());C.register(kre());C.register(Rre());C.register(Ire());C.register(Nre());C.register(Cre());C.register(Dre());C.register(Lre());C.register(Mre());C.register(Pre());C.register($re());C.register(jre());C.register(Fre());C.register(Bre());C.register(Ure());C.register(Gre());C.register(zre());C.register(qre());C.register(Hre());C.register(Wre());C.register(Vre());C.register(Yre());C.register(Kre());C.register(Xre());C.register(Zre());C.register(Uy());C.register(Jre());C.register(Qre());C.register(ene());C.register(tne());C.register(rne());C.register(nne());C.register(ane());C.register(ine());C.register(one());C.register(sne());C.register(lne());C.register(une());C.register(cne());C.register(dne());C.register(pne());C.register(fne());C.register(gne());C.register(Gy());C.register(hne());C.register(Mu());C.register(mne());C.register(bne());C.register(yne());C.register(vne());C.register(Sne());C.register(Ene());C.register(xne());C.register(qy());C.register(wne());C.register(_ne());C.register(Tne());C.register(kI());C.register(Ane());C.register(One());C.register(kne());C.register(Rne());C.register(Ine());C.register(Nne());C.register(Cne());C.register(Dne());C.register(Lne());C.register(Mne());C.register(Pne());C.register($ne());C.register(jne());C.register(Fne());C.register(Bne());C.register(Une());C.register(OI());C.register(Gne());C.register(zne());C.register(qne());C.register(er());C.register(Hne());C.register(Wne());C.register(Vne());C.register(Yne());C.register(Kne());C.register(Xne());C.register(Zne());C.register(Jne());C.register(Qne());C.register(eae());C.register(tae());C.register(rae());C.register(nae());C.register(aae());C.register(iae());C.register(oae());C.register(sae());C.register(lae());C.register(uae());C.register(cae());C.register(dae());C.register(pae());C.register(fae());C.register(gae());C.register(hae());C.register(mae());C.register(bae());C.register(yae());C.register(vae());C.register(Sae());C.register(Eae());C.register(xae());C.register(Pu());C.register(wae());C.register(_ae());C.register(Tae());C.register(Aae());C.register(Oae());C.register(kae());C.register(Rae());C.register(Iae());C.register(Nae());C.register(Cae());C.register(Dae());C.register(Lae());C.register(Mae());C.register(Pae());C.register($ae());C.register(jae());C.register(Fae());C.register(Bae());C.register(Uae());C.register(Gae());C.register(zae());C.register(qae());C.register(Hae());C.register(Wae());C.register(Vae());C.register(Yae());C.register(Kae());C.register(Xae());C.register(Zae());C.register(Jae());C.register(Lu());C.register(Qae());C.register(eie());C.register(tie());C.register(rie());C.register(Hy());C.register(nie());C.register(aie());C.register(iie());C.register(oie());C.register(sie());C.register(lie());C.register(uie());C.register(cie());C.register(die());C.register(pie());C.register(fie());C.register(gie());C.register(Fy());C.register(hie());C.register(mie());C.register(bie());C.register(yie());C.register(vie());C.register(Sie());C.register(Wy());C.register(Eie());C.register(xie());C.register(wie());C.register(_ie());C.register(Tie());C.register(Aie());C.register(Oie());C.register(kie());C.register(RI());C.register(Rie());C.register(zy());C.register(Iie());C.register(Nie());C.register(Cie());C.register(Die());C.register(Lie());C.register(Mie());C.register(II());C.register(Pie());C.register($ie());C.register(jie());C.register(Fie());C.register(Bie());C.register(Uie());C.register(Gie());C.register(zie());C.register(qie());C.register(Hie());C.register(Wie());C.register(Vie());C.register(Yie());C.register(Kie());C.register(Xie());C.register(NI());C.register(Zie());C.register(Jie());const eoe=ft(Qie);var CI=X7(eoe,mte);CI.supportedLanguages=Z7;const toe=CI,roe={'code[class*="language-"]':{color:"#f8f8f2",background:"none",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"#f8f8f2",background:"#272822",textShadow:"0 1px rgba(0, 0, 0, 0.3)",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",borderRadius:"0.3em"},':not(pre) > code[class*="language-"]':{background:"#272822",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"#8292a2"},prolog:{color:"#8292a2"},doctype:{color:"#8292a2"},cdata:{color:"#8292a2"},punctuation:{color:"#f8f8f2"},namespace:{Opacity:".7"},property:{color:"#f92672"},tag:{color:"#f92672"},constant:{color:"#f92672"},symbol:{color:"#f92672"},deleted:{color:"#f92672"},boolean:{color:"#ae81ff"},number:{color:"#ae81ff"},selector:{color:"#a6e22e"},"attr-name":{color:"#a6e22e"},string:{color:"#a6e22e"},char:{color:"#a6e22e"},builtin:{color:"#a6e22e"},inserted:{color:"#a6e22e"},operator:{color:"#f8f8f2"},entity:{color:"#f8f8f2",cursor:"help"},url:{color:"#f8f8f2"},".language-css .token.string":{color:"#f8f8f2"},".style .token.string":{color:"#f8f8f2"},variable:{color:"#f8f8f2"},atrule:{color:"#e6db74"},"attr-value":{color:"#e6db74"},function:{color:"#e6db74"},"class-name":{color:"#e6db74"},keyword:{color:"#66d9ef"},regex:{color:"#fd971f"},important:{color:"#fd971f",fontWeight:"bold"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},noe=()=>{var w,A,x,E,k,N,I;const e=Pt(),t=M.useRef(null),{currentPlayingAudio:r,setCurrentPlayingAudio:n}=Ct(D=>D),[a,i]=M.useState(!1),[o,s]=M.useState([]),[l,c]=M.useState(((w=e==null?void 0:e.properties)==null?void 0:w.boost)||0),d=yb(D=>D.getIndexByType),{playingNode:p}=$o(D=>D);M.useEffect(()=>{var D;c(((D=e==null?void 0:e.properties)==null?void 0:D.boost)||0)},[e]),M.useEffect(()=>{(async()=>{var L;if(e!=null&&e.ref_id){const j=await bM(e.ref_id,0,100,{sortBy:"sequence",includeProperties:!0,includeContent:!0,depth:1,useSubGraph:!0});if(j){const H=((L=j.edges)==null?void 0:L.filter(z=>{var W;return((W=z.properties)==null?void 0:W.sequence)!==void 0}).map(z=>{var W;return{node:z.target,sequence:(W=z.properties)==null?void 0:W.sequence}}).sort((z,W)=>z.sequence-W.sequence).map(z=>j.nodes.find(W=>W.ref_id===z.node))).filter(z=>!!z);s(H)}}})()},[e==null?void 0:e.ref_id]),M.useEffect(()=>{const D=t.current,L=()=>{n(null),i(!1)};return D&&D.addEventListener("ended",L),()=>{D&&D.removeEventListener("ended",L)}},[n,a]),M.useEffect(()=>{i(!1)},[e]);const g=()=>{r!=null&&r.current&&r.current!==t.current&&(r.current.pause(),n(null)),t.current&&(t.current.paused?(t.current.play(),n(t),i(!0)):(t.current.pause(),n(null),i(!1)))};if(!e)return null;const h=!(p!=null&&p.ref_id)&&!!((A=e.properties)!=null&&A.image_url),b=!!((x=e.properties)!=null&&x.audio_EN),S=e.properties||{},v=(E=e.properties)==null?void 0:E.source_link,O=(k=e.properties)==null?void 0:k.pubkey,_=D=>{var j;const L=d(D.node_type);return L?(j=D.properties)==null?void 0:j[L]:D.label};return m.jsxs(doe,{children:[h&&m.jsx(loe,{children:m.jsx("img",{alt:"img_a11y",onError:D=>{D.currentTarget.src="generic_placeholder_img.png",D.currentTarget.className="default-img"},src:(N=e.properties)==null?void 0:N.image_url})}),m.jsxs(ooe,{grow:1,justify:"flex-start",pt:h?0:8,shrink:1,children:[m.jsxs(F,{ml:24,mt:20,style:{width:"fit-content",flexDirection:"row",alignItems:"center"},children:[m.jsx(ri,{type:e.node_type||""}),v&&m.jsx(goe,{href:`${v}${v.includes("?")?"&":"?"}open=system`,target:"_blank",children:m.jsx(vn,{})})]}),m.jsx(soe,{children:Object.entries(S).filter(([D])=>D!=="media_url"&&D!=="link"&&D!=="pubkey").map(([D,L])=>m.jsx(ioe,{hasAudio:b,isPlaying:a,label:aoe(D),togglePlay:g,value:D==="date"&&L?ei(L*1e3).format("MMMM Do YYYY"):L},D))}),o.length>0&&m.jsx(hoe,{children:o.map((D,L)=>m.jsxs(U.Fragment,{children:[m.jsx(pt,{children:_(D)}),Le.replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase()),ioe=({label:e,value:t,hasAudio:r,isPlaying:n,togglePlay:a})=>{const i=t.length>140,o=Ct(s=>s.currentSearch);return!t||e==="Audio EN"||e==="Source Link"||e==="Image Url"?null:m.jsxs(m.Fragment,{children:[m.jsxs(uoe,{className:dn("node-detail",{"node-detail__long":i}),children:[m.jsxs(pt,{className:"node-detail__label",children:[e,e==="Text"&&r&&m.jsx(poe,{onClick:a,children:n?m.jsx(l1,{}):m.jsx(u1,{})})]}),e!=="Frame"&&e!=="Code"?m.jsx(pt,{className:"node-detail__value",children:qr(String(t),o)}):m.jsx(toe,{language:"javascript",style:roe,children:String(t)})]}),m.jsx(coe,{})]})},ooe=B(F)` overflow: auto; width: 100%; flex-grow: 1; padding-top: 16px; -`,ooe=B(F)` - padding: 4px 24px; `,soe=B(F)` + padding: 4px 24px; +`,loe=B(F)` width: 100%; height: 240px; padding-top: 20px; @@ -1795,7 +1795,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: 100px; border-radius: 2px; } -`,loe=B(F)` +`,uoe=B(F)` width: 100%; display: flex; flex-direction: row; @@ -1823,15 +1823,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho flex-direction: column; } } -`,uoe=B(xy)` +`,coe=B(wy)` margin: auto 0px 2px 0px; opacity: 0.75; -`,coe=B(F)` +`,doe=B(F)` flex-direction: column; height: 100%; -`,doe=B(Mt)` +`,poe=B(Mt)` &&.MuiButton-root { - background-color: ${M.COLLAPSE_BUTTON}; + background-color: ${P.COLLAPSE_BUTTON}; border: none; cursor: pointer; flex-shrink: 0; @@ -1851,27 +1851,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho height: 12px; color: white; } -`,poe=B.audio` +`,foe=B.audio` display: none; -`,foe=B.a` +`,goe=B.a` margin-left: 6px; - color: ${M.GRAY6}; + color: ${P.GRAY6}; margin-top: 4px; svg { width: 1.3em; height: 1.3em; } -`,goe=B(F)` +`,hoe=B(F)` padding: 16px 24px; flex-direction: column; gap: 4px; overflow-y: auto; -`,hoe=B.div` +`,moe=B.div` width: 100%; height: 1px; margin: 2px 0; -`,moe=()=>{var s,l;const[e,t]=P.useState(!1),r=Pt(),n=!!(r!=null&&r.source_link),a=P.useRef(null),i=Ct(c=>c.currentSearch),o=c=>{c.stopPropagation(),c.currentTarget.blur(),t(!e)};return P.useEffect(()=>{var c,d;e?(c=a.current)==null||c.play():(d=a.current)==null||d.pause()},[e]),h.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:n?62:0,shrink:1,children:[n&&h.jsxs(boe,{children:[h.jsx(o1,{color:M.GRAY6}),h.jsx(Soe,{children:r==null?void 0:r.source_link}),h.jsx(yoe,{href:`${r==null?void 0:r.source_link}?open=system`,onClick:c=>c.stopPropagation(),target:"_blank",children:h.jsx(vn,{})})]}),(s=r==null?void 0:r.audio)!=null&&s.length?h.jsxs(F,{justify:"flex-start",p:12,children:[h.jsx(Mt,{onClick:c=>o(c),startIcon:e?h.jsx(Sb,{}):h.jsx(Eb,{}),children:e?"Pause":"Play"}),h.jsx(Eoe,{ref:a,src:((l=r.audio[0])==null?void 0:l.link)||"",children:h.jsx("track",{kind:"captions"})})]}):null,h.jsx(voe,{grow:1,justify:"flex-start",p:12,shrink:1,children:h.jsx(pt,{color:"primaryText1",kind:"regular",children:qr((r==null?void 0:r.text)||"",i)})})]})},boe=B(F)` +`,boe=()=>{var s,l;const[e,t]=M.useState(!1),r=Pt(),n=!!(r!=null&&r.source_link),a=M.useRef(null),i=Ct(c=>c.currentSearch),o=c=>{c.stopPropagation(),c.currentTarget.blur(),t(!e)};return M.useEffect(()=>{var c,d;e?(c=a.current)==null||c.play():(d=a.current)==null||d.pause()},[e]),m.jsxs(F,{align:"flex-start",basis:"100%",direction:"column",grow:1,justify:"center",pt:n?62:0,shrink:1,children:[n&&m.jsxs(yoe,{children:[m.jsx(o1,{color:P.GRAY6}),m.jsx(Eoe,{children:r==null?void 0:r.source_link}),m.jsx(voe,{href:`${r==null?void 0:r.source_link}?open=system`,onClick:c=>c.stopPropagation(),target:"_blank",children:m.jsx(vn,{})})]}),(s=r==null?void 0:r.audio)!=null&&s.length?m.jsxs(F,{justify:"flex-start",p:12,children:[m.jsx(Mt,{onClick:c=>o(c),startIcon:e?m.jsx(Eb,{}):m.jsx(xb,{}),children:e?"Pause":"Play"}),m.jsx(xoe,{ref:a,src:((l=r.audio[0])==null?void 0:l.link)||"",children:m.jsx("track",{kind:"captions"})})]}):null,m.jsx(Soe,{grow:1,justify:"flex-start",p:12,shrink:1,children:m.jsx(pt,{color:"primaryText1",kind:"regular",children:qr((r==null?void 0:r.text)||"",i)})})]})},yoe=B(F)` top: 0px; position: absolute; border-radius: 16px 16px 0px 0px; @@ -1881,35 +1881,35 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: flex; flex-direction: row; align-items: center; - background-color: ${M.BG2}; + background-color: ${P.BG2}; gap: 5px; - color: ${M.GRAY6}; + color: ${P.GRAY6}; span { font-family: Barlow; font-size: 12px; font-weight: 400; line-height: 19px; - color: ${M.GRAY6}; + color: ${P.GRAY6}; } -`,yoe=B.a` - color: ${M.GRAY6}; +`,voe=B.a` + color: ${P.GRAY6}; font-size: 16px; height: 16px; display: flex; gap: 5px; align-items: center; -`,voe=B(F)` +`,Soe=B(F)` overflow: auto; -`,Soe=B(pt)` +`,Eoe=B(pt)` max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; -`,Eoe=B.audio` +`,xoe=B.audio` height: 0; width: 0; -`,xoe=()=>{const e=Pt(),{setPlayingNode:t}=Po(r=>r);switch(P.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return h.jsx(u7,{});case"data_series":return h.jsx(lX,{});case"tribe_message":return h.jsx(i7,{});case"Tweet":return h.jsx(v7,{});case"topic":return h.jsx(y7,{});case"show":return h.jsx(b7,{});case"video":case"podcast":case"clip":case"twitter_space":return h.jsx(XR,{});case"document":return h.jsx(moe,{});case"episode":return h.jsx(e7,{},e.ref_id);case"image":return h.jsx(a7,{});default:return h.jsx(roe,{})}},woe=P.memo(xoe);var _oe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&Toe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?$O:Aoe;o(i,n),i.onload||$O(i,n),a.appendChild(i)};function Toe(e,t){for(var r in t)e.setAttribute(r,t[r])}function $O(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Aoe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var Ooe=function(t){return koe(t)&&!Roe(t)};function koe(e){return!!e&&typeof e=="object"}function Roe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Coe(e)}var Ioe=typeof Symbol=="function"&&Symbol.for,Noe=Ioe?Symbol.for("react.element"):60103;function Coe(e){return e.$$typeof===Noe}function Doe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qa(Doe(e),e,t):e}function Loe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Moe(e,t){if(!t.customMerge)return Qa;var r=t.customMerge(e);return typeof r=="function"?r:Qa}function Poe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function jO(e){return Object.keys(e).concat(Poe(e))}function DI(e,t){try{return t in e}catch{return!1}}function $oe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function joe(e,t,r){var n={};return r.isMergeableObject(e)&&jO(e).forEach(function(a){n[a]=Lo(e[a],r)}),jO(t).forEach(function(a){$oe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Moe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Qa(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Loe,r.isMergeableObject=r.isMergeableObject||Ooe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):joe(e,t,r):Lo(t,r)}Qa.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Qa(n,a,r)},{})};var Foe=Qa,LI=Foe,Boe=Object.create,Pu=Object.defineProperty,Uoe=Object.getOwnPropertyDescriptor,Goe=Object.getOwnPropertyNames,zoe=Object.getPrototypeOf,qoe=Object.prototype.hasOwnProperty,Hoe=(e,t)=>{for(var r in t)Pu(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Goe(t))!qoe.call(e,a)&&a!==r&&Pu(e,a,{get:()=>t[a],enumerable:!(n=Uoe(t,a))||n.enumerable});return e},Wy=(e,t,r)=>(r=e!=null?Boe(zoe(e)):{},MI(t||!e||!e.__esModule?Pu(r,"default",{value:e,enumerable:!0}):r,e)),Woe=e=>MI(Pu({},"__esModule",{value:!0}),e),PI={};Hoe(PI,{callPlayer:()=>lse,getConfig:()=>ose,getSDK:()=>ise,isBlobUrl:()=>cse,isMediaStream:()=>use,lazy:()=>Xoe,omit:()=>sse,parseEndTime:()=>rse,parseStartTime:()=>tse,queryString:()=>ase,randomString:()=>nse,supportsWebKitPresentationMode:()=>dse});var $u=Woe(PI),Voe=Wy(P),Yoe=Wy(_oe),Koe=Wy(LI);const Xoe=e=>Voe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Zoe=/[?&#](?:start|t)=([0-9hms]+)/,Joe=/[?&#]end=([0-9hms]+)/,lb=/(\d+)(h|m|s)/g,Qoe=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(lb))return ese(n);if(Qoe.test(n))return parseInt(n)}}function ese(e){let t=0,r=lb.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=lb.exec(e)}return t}function tse(e){return $I(e,Zoe)}function rse(e){return $I(e,Joe)}function nse(){return Math.random().toString(36).substr(2,5)}function ase(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function qh(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const Sa={},ise=function(t,r,n=null,a=()=>!0,i=Yoe.default){const o=qh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(qh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(qh(r))})})};function ose(e,t){return(0,Koe.default)(t.config,e.config)}function sse(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function lse(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function use(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function cse(e){return/^blob:/.test(e)}function dse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Vy=Object.defineProperty,pse=Object.getOwnPropertyDescriptor,fse=Object.getOwnPropertyNames,gse=Object.prototype.hasOwnProperty,hse=(e,t)=>{for(var r in t)Vy(e,r,{get:t[r],enumerable:!0})},mse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of fse(t))!gse.call(e,a)&&a!==r&&Vy(e,a,{get:()=>t[a],enumerable:!(n=pse(t,a))||n.enumerable});return e},bse=e=>mse(Vy({},"__esModule",{value:!0}),e),jI={};hse(jI,{AUDIO_EXTENSIONS:()=>Yy,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>JI,HLS_EXTENSIONS:()=>Xy,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>ub,VIDEO_EXTENSIONS:()=>Ky,canPlay:()=>vse});var yse=bse(jI),FO=$u;const ub=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Yy=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Ky=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Xy=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,JI=/\.(flv)($|\?)/i,cb=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&cb(t)||cb(t.src))return!0;return!1}return(0,FO.isMediaStream)(e)||(0,FO.isBlobUrl)(e)?!0:Yy.test(e)||Ky.test(e)||Xy.test(e)||ZI.test(e)||JI.test(e)},vse={youtube:e=>e instanceof Array?e.every(t=>ub.test(t)):ub.test(e),soundcloud:e=>FI.test(e)&&!Yy.test(e),vimeo:e=>BI.test(e)&&!Ky.test(e)&&!Xy.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:cb};var Zy=Object.defineProperty,Sse=Object.getOwnPropertyDescriptor,Ese=Object.getOwnPropertyNames,xse=Object.prototype.hasOwnProperty,wse=(e,t)=>{for(var r in t)Zy(e,r,{get:t[r],enumerable:!0})},_se=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ese(t))!xse.call(e,a)&&a!==r&&Zy(e,a,{get:()=>t[a],enumerable:!(n=Sse(t,a))||n.enumerable});return e},Tse=e=>_se(Zy({},"__esModule",{value:!0}),e),QI={};wse(QI,{default:()=>Ose});var Ase=Tse(QI),ar=$u,Zt=yse,Ose=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-fd65d17f.js").then(e=>e.Y),["assets/YouTube-fd65d17f.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-d2ebaa3e.js").then(e=>e.S),["assets/SoundCloud-d2ebaa3e.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-1cb68ca4.js").then(e=>e.V),["assets/Vimeo-1cb68ca4.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-0ee5e652.js").then(e=>e.F),["assets/Facebook-0ee5e652.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-a70b1a07.js").then(e=>e.S),["assets/Streamable-a70b1a07.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-ce4bd35e.js").then(e=>e.W),["assets/Wistia-ce4bd35e.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-39773e87.js").then(e=>e.T),["assets/Twitch-39773e87.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-b6c8aa6b.js").then(e=>e.D),["assets/DailyMotion-b6c8aa6b.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-f88cc052.js").then(e=>e.M),["assets/Mixcloud-f88cc052.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-8a52c8eb.js").then(e=>e.V),["assets/Vidyard-8a52c8eb.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-a1d8a38e.js").then(e=>e.K),["assets/Kaltura-a1d8a38e.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-0c33d633.js").then(e=>e.F),["assets/FilePlayer-0c33d633.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"]))}],BO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function kse(e,t){return!!(e===t||BO(e)&&BO(t))}function Rse(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)ju(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Fse(t))!Use.call(e,a)&&a!==r&&ju(e,a,{get:()=>t[a],enumerable:!(n=jse(t,a))||n.enumerable});return e},zse=(e,t,r)=>(r=e!=null?$se(Bse(e)):{},tN(t||!e||!e.__esModule?ju(r,"default",{value:e,enumerable:!0}):r,e)),qse=e=>tN(ju({},"__esModule",{value:!0}),e),rN={};Gse(rN,{defaultProps:()=>Vse,propTypes:()=>Wse});var nN=qse(rN),Hse=zse(oP);const{string:qt,bool:Ht,number:Ea,array:Hh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:UO}=Hse.default,Wse={url:Ii([qt,Hh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:UO,previewTabIndex:Ea,fallback:UO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Hh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Hh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},Vse={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Rt},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt};var Yse=Object.create,Jo=Object.defineProperty,Kse=Object.getOwnPropertyDescriptor,Xse=Object.getOwnPropertyNames,Zse=Object.getPrototypeOf,Jse=Object.prototype.hasOwnProperty,Qse=(e,t,r)=>t in e?Jo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ele=(e,t)=>{for(var r in t)Jo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Xse(t))!Jse.call(e,a)&&a!==r&&Jo(e,a,{get:()=>t[a],enumerable:!(n=Kse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?Yse(Zse(e)):{},aN(t||!e||!e.__esModule?Jo(r,"default",{value:e,enumerable:!0}):r,e)),tle=e=>aN(Jo({},"__esModule",{value:!0}),e),mt=(e,t,r)=>(Qse(e,typeof t!="symbol"?t+"":t,r),r),oN={};ele(oN,{default:()=>Fu});var rle=tle(oN),GO=iN(P),nle=iN(eN),sN=nN,ale=$u;const ile=5e3;class Fu extends GO.Component{constructor(){super(...arguments),mt(this,"mounted",!1),mt(this,"isReady",!1),mt(this,"isPlaying",!1),mt(this,"isLoading",!0),mt(this,"loadOnReady",null),mt(this,"startOnPlay",!0),mt(this,"seekOnPlay",null),mt(this,"onDurationCalled",!1),mt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),mt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),mt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),mt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),mt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),mt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),mt(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),mt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),mt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),mt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,nle.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ale.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},ile));return}if(r?r==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?GO.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}mt(Fu,"displayName","Player");mt(Fu,"propTypes",sN.propTypes);mt(Fu,"defaultProps",sN.defaultProps);var ole=Object.create,Qo=Object.defineProperty,sle=Object.getOwnPropertyDescriptor,lle=Object.getOwnPropertyNames,ule=Object.getPrototypeOf,cle=Object.prototype.hasOwnProperty,dle=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ple=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of lle(t))!cle.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=sle(t,a))||n.enumerable});return e},es=(e,t,r)=>(r=e!=null?ole(ule(e)):{},lN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),fle=e=>lN(Qo({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(dle(e,typeof t!="symbol"?t+"":t,r),r),uN={};ple(uN,{createReactPlayer:()=>xle});var gle=fle(uN),_a=es(P),hle=es(LI),Wh=es(Cse),zO=es(eN),$i=nN,cN=$u,mle=es(rle);const ble=(0,cN.lazy)(()=>ir(()=>import("./Preview-8fcfe1ff.js").then(e=>e.P),["assets/Preview-8fcfe1ff.js","assets/index-8f1177e3.js","assets/index-b4d03b7b.css"])),yle=typeof window<"u"&&window.document,vle=typeof Tt<"u"&&Tt.window&&Tt.window.document,Sle=Object.keys($i.propTypes),Ele=yle||vle?_a.Suspense:()=>null,Ni=[],xle=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),ht(this,"state",{showPreview:!!this.props.light}),ht(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),ht(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),ht(this,"showPreview",()=>{this.setState({showPreview:!0})}),ht(this,"getDuration",()=>this.player?this.player.getDuration():null),ht(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),ht(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),ht(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),ht(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),ht(this,"handleReady",()=>{this.props.onReady(this)}),ht(this,"getActivePlayer",(0,Wh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),ht(this,"getConfig",(0,Wh.default)((n,a)=>{const{config:i}=this.props;return hle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),ht(this,"getAttributes",(0,Wh.default)(n=>(0,cN.omit)(this.props,Sle))),ht(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(mle.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,zO.default)(this.props,n)||!(0,zO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(ble,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(Ele,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},ht(r,"displayName","ReactPlayer"),ht(r,"propTypes",$i.propTypes),ht(r,"defaultProps",$i.defaultProps),ht(r,"addCustomPlayer",n=>{Ni.push(n)}),ht(r,"removeCustomPlayers",()=>{Ni.length=0}),ht(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),ht(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var wle=Object.create,Bu=Object.defineProperty,_le=Object.getOwnPropertyDescriptor,Tle=Object.getOwnPropertyNames,Ale=Object.getPrototypeOf,Ole=Object.prototype.hasOwnProperty,kle=(e,t)=>{for(var r in t)Bu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Tle(t))!Ole.call(e,a)&&a!==r&&Bu(e,a,{get:()=>t[a],enumerable:!(n=_le(t,a))||n.enumerable});return e},Rle=(e,t,r)=>(r=e!=null?wle(Ale(e)):{},dN(t||!e||!e.__esModule?Bu(r,"default",{value:e,enumerable:!0}):r,e)),Ile=e=>dN(Bu({},"__esModule",{value:!0}),e),pN={};kle(pN,{default:()=>Lle});var Nle=Ile(pN),db=Rle(Ase),Cle=gle;const Dle=db.default[db.default.length-1];var Lle=(0,Cle.createReactPlayer)(db.default,Dle);const Mle=ft(Nle),qO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},Ple=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=P.useState(.5),[p,g]=P.useState(!1),[m,b]=P.useState(.5),S=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},v=()=>{p?(d(m),o(new Event("input"),m)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return h.jsxs(F,{children:[(!l||t)&&h.jsx(zle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),h.jsxs($le,{align:"center",direction:"row",showToolbar:l||t,children:[h.jsx(Ble,{onClick:r,size:"small",children:e?h.jsx(Sb,{}):h.jsx(Eb,{})}),h.jsxs(qle,{direction:"row",children:[h.jsx("span",{children:qO(n)}),h.jsx("span",{className:"separator",children:"/"}),h.jsx("span",{className:"duration",children:qO(a)})]}),h.jsxs(Ule,{direction:"row",px:9,children:[h.jsx(Wl,{className:"volume-slider",max:1,min:0,onChange:S,size:"small",step:.1,value:c}),h.jsx(jle,{onClick:v,children:p?h.jsx(Fle,{children:h.jsx(jM,{})}):h.jsx(FM,{})})]}),h.jsx(Gle,{"data-testid":"fullscreen-button",onClick:s,children:t?h.jsx(UM,{}):h.jsx(BM,{})})]})]})},$le=B(F)` +`,woe=()=>{const e=Pt(),{setPlayingNode:t}=$o(r=>r);switch(M.useEffect(()=>{var n,a;if(!e)return;(e.media_url||e.link||((n=e.properties)==null?void 0:n.link)||((a=e.properties)==null?void 0:a.media_url))&&t(e)},[t,e]),e==null?void 0:e.node_type){case"guest":case"person":return m.jsx(c7,{});case"data_series":return m.jsx(uX,{});case"tribe_message":return m.jsx(o7,{});case"Tweet":return m.jsx(S7,{});case"topic":return m.jsx(v7,{});case"show":return m.jsx(y7,{});case"video":case"podcast":case"clip":case"twitter_space":return m.jsx(XR,{});case"document":return m.jsx(boe,{});case"episode":return m.jsx(t7,{},e.ref_id);case"image":return m.jsx(i7,{});default:return m.jsx(noe,{})}},_oe=M.memo(woe);var Toe=function(t,r,n){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");typeof r=="function"&&(n=r,r={}),r=r||{},n=n||function(){},i.type=r.type||"text/javascript",i.charset=r.charset||"utf8",i.async="async"in r?!!r.async:!0,i.src=t,r.attrs&&Aoe(i,r.attrs),r.text&&(i.text=""+r.text);var o="onload"in i?jO:Ooe;o(i,n),i.onload||jO(i,n),a.appendChild(i)};function Aoe(e,t){for(var r in t)e.setAttribute(r,t[r])}function jO(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function Ooe(e,t){e.onreadystatechange=function(){this.readyState!="complete"&&this.readyState!="loaded"||(this.onreadystatechange=null,t(null,e))}}var koe=function(t){return Roe(t)&&!Ioe(t)};function Roe(e){return!!e&&typeof e=="object"}function Ioe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Doe(e)}var Noe=typeof Symbol=="function"&&Symbol.for,Coe=Noe?Symbol.for("react.element"):60103;function Doe(e){return e.$$typeof===Coe}function Loe(e){return Array.isArray(e)?[]:{}}function Lo(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Qa(Loe(e),e,t):e}function Moe(e,t,r){return e.concat(t).map(function(n){return Lo(n,r)})}function Poe(e,t){if(!t.customMerge)return Qa;var r=t.customMerge(e);return typeof r=="function"?r:Qa}function $oe(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function FO(e){return Object.keys(e).concat($oe(e))}function DI(e,t){try{return t in e}catch{return!1}}function joe(e,t){return DI(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Foe(e,t,r){var n={};return r.isMergeableObject(e)&&FO(e).forEach(function(a){n[a]=Lo(e[a],r)}),FO(t).forEach(function(a){joe(e,a)||(DI(e,a)&&r.isMergeableObject(t[a])?n[a]=Poe(a,r)(e[a],t[a],r):n[a]=Lo(t[a],r))}),n}function Qa(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Moe,r.isMergeableObject=r.isMergeableObject||koe,r.cloneUnlessOtherwiseSpecified=Lo;var n=Array.isArray(t),a=Array.isArray(e),i=n===a;return i?n?r.arrayMerge(e,t,r):Foe(e,t,r):Lo(t,r)}Qa.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,a){return Qa(n,a,r)},{})};var Boe=Qa,LI=Boe,Uoe=Object.create,$u=Object.defineProperty,Goe=Object.getOwnPropertyDescriptor,zoe=Object.getOwnPropertyNames,qoe=Object.getPrototypeOf,Hoe=Object.prototype.hasOwnProperty,Woe=(e,t)=>{for(var r in t)$u(e,r,{get:t[r],enumerable:!0})},MI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of zoe(t))!Hoe.call(e,a)&&a!==r&&$u(e,a,{get:()=>t[a],enumerable:!(n=Goe(t,a))||n.enumerable});return e},Vy=(e,t,r)=>(r=e!=null?Uoe(qoe(e)):{},MI(t||!e||!e.__esModule?$u(r,"default",{value:e,enumerable:!0}):r,e)),Voe=e=>MI($u({},"__esModule",{value:!0}),e),PI={};Woe(PI,{callPlayer:()=>use,getConfig:()=>sse,getSDK:()=>ose,isBlobUrl:()=>dse,isMediaStream:()=>cse,lazy:()=>Zoe,omit:()=>lse,parseEndTime:()=>nse,parseStartTime:()=>rse,queryString:()=>ise,randomString:()=>ase,supportsWebKitPresentationMode:()=>pse});var ju=Voe(PI),Yoe=Vy(M),Koe=Vy(Toe),Xoe=Vy(LI);const Zoe=e=>Yoe.default.lazy(async()=>{const t=await e();return typeof t.default=="function"?t:t.default}),Joe=/[?&#](?:start|t)=([0-9hms]+)/,Qoe=/[?&#]end=([0-9hms]+)/,ub=/(\d+)(h|m|s)/g,ese=/^\d+$/;function $I(e,t){if(e instanceof Array)return;const r=e.match(t);if(r){const n=r[1];if(n.match(ub))return tse(n);if(ese.test(n))return parseInt(n)}}function tse(e){let t=0,r=ub.exec(e);for(;r!==null;){const[,n,a]=r;a==="h"&&(t+=parseInt(n,10)*60*60),a==="m"&&(t+=parseInt(n,10)*60),a==="s"&&(t+=parseInt(n,10)),r=ub.exec(e)}return t}function rse(e){return $I(e,Joe)}function nse(e){return $I(e,Qoe)}function ase(){return Math.random().toString(36).substr(2,5)}function ise(e){return Object.keys(e).map(t=>`${t}=${e[t]}`).join("&")}function Hh(e){return window[e]?window[e]:window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null}const Sa={},ose=function(t,r,n=null,a=()=>!0,i=Koe.default){const o=Hh(r);return o&&a(o)?Promise.resolve(o):new Promise((s,l)=>{if(Sa[t]){Sa[t].push({resolve:s,reject:l});return}Sa[t]=[{resolve:s,reject:l}];const c=d=>{Sa[t].forEach(p=>p.resolve(d))};if(n){const d=window[n];window[n]=function(){d&&d(),c(Hh(r))}}i(t,d=>{d?(Sa[t].forEach(p=>p.reject(d)),Sa[t]=null):n||c(Hh(r))})})};function sse(e,t){return(0,Xoe.default)(t.config,e.config)}function lse(e,...t){const r=[].concat(...t),n={},a=Object.keys(e);for(const i of a)r.indexOf(i)===-1&&(n[i]=e[i]);return n}function use(e,...t){if(!this.player||!this.player[e]){let r=`ReactPlayer: ${this.constructor.displayName} player could not call %c${e}%c – `;return this.player?this.player[e]||(r+="The method was not available"):r+="The player was not available",console.warn(r,"font-weight: bold",""),null}return this.player[e](...t)}function cse(e){return typeof window<"u"&&typeof window.MediaStream<"u"&&e instanceof window.MediaStream}function dse(e){return/^blob:/.test(e)}function pse(e=document.createElement("video")){const t=/iPhone|iPod/.test(navigator.userAgent)===!1;return e.webkitSupportsPresentationMode&&typeof e.webkitSetPresentationMode=="function"&&t}var Yy=Object.defineProperty,fse=Object.getOwnPropertyDescriptor,gse=Object.getOwnPropertyNames,hse=Object.prototype.hasOwnProperty,mse=(e,t)=>{for(var r in t)Yy(e,r,{get:t[r],enumerable:!0})},bse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of gse(t))!hse.call(e,a)&&a!==r&&Yy(e,a,{get:()=>t[a],enumerable:!(n=fse(t,a))||n.enumerable});return e},yse=e=>bse(Yy({},"__esModule",{value:!0}),e),jI={};mse(jI,{AUDIO_EXTENSIONS:()=>Ky,DASH_EXTENSIONS:()=>ZI,FLV_EXTENSIONS:()=>JI,HLS_EXTENSIONS:()=>Zy,MATCH_URL_DAILYMOTION:()=>VI,MATCH_URL_FACEBOOK:()=>UI,MATCH_URL_FACEBOOK_WATCH:()=>GI,MATCH_URL_KALTURA:()=>XI,MATCH_URL_MIXCLOUD:()=>YI,MATCH_URL_SOUNDCLOUD:()=>FI,MATCH_URL_STREAMABLE:()=>zI,MATCH_URL_TWITCH_CHANNEL:()=>WI,MATCH_URL_TWITCH_VIDEO:()=>HI,MATCH_URL_VIDYARD:()=>KI,MATCH_URL_VIMEO:()=>BI,MATCH_URL_WISTIA:()=>qI,MATCH_URL_YOUTUBE:()=>cb,VIDEO_EXTENSIONS:()=>Xy,canPlay:()=>Sse});var vse=yse(jI),BO=ju;const cb=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,FI=/(?:soundcloud\.com|snd\.sc)\/[^.]+$/,BI=/vimeo\.com\/(?!progressive_redirect).+/,UI=/^https?:\/\/(www\.)?facebook\.com.*\/(video(s)?|watch|story)(\.php?|\/).+$/,GI=/^https?:\/\/fb\.watch\/.+$/,zI=/streamable\.com\/([a-z0-9]+)$/,qI=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,HI=/(?:www\.|go\.)?twitch\.tv\/videos\/(\d+)($|\?)/,WI=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+)($|\?)/,VI=/^(?:(?:https?):)?(?:\/\/)?(?:www\.)?(?:(?:dailymotion\.com(?:\/embed)?\/video)|dai\.ly)\/([a-zA-Z0-9]+)(?:_[\w_-]+)?(?:[\w.#_-]+)?/,YI=/mixcloud\.com\/([^/]+\/[^/]+)/,KI=/vidyard.com\/(?:watch\/)?([a-zA-Z0-9-_]+)/,XI=/^https?:\/\/[a-zA-Z]+\.kaltura.(com|org)\/p\/([0-9]+)\/sp\/([0-9]+)00\/embedIframeJs\/uiconf_id\/([0-9]+)\/partner_id\/([0-9]+)(.*)entry_id.([a-zA-Z0-9-_].*)$/,Ky=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,Xy=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,Zy=/\.(m3u8)($|\?)/i,ZI=/\.(mpd)($|\?)/i,JI=/\.(flv)($|\?)/i,db=e=>{if(e instanceof Array){for(const t of e)if(typeof t=="string"&&db(t)||db(t.src))return!0;return!1}return(0,BO.isMediaStream)(e)||(0,BO.isBlobUrl)(e)?!0:Ky.test(e)||Xy.test(e)||Zy.test(e)||ZI.test(e)||JI.test(e)},Sse={youtube:e=>e instanceof Array?e.every(t=>cb.test(t)):cb.test(e),soundcloud:e=>FI.test(e)&&!Ky.test(e),vimeo:e=>BI.test(e)&&!Xy.test(e)&&!Zy.test(e),facebook:e=>UI.test(e)||GI.test(e),streamable:e=>zI.test(e),wistia:e=>qI.test(e),twitch:e=>HI.test(e)||WI.test(e),dailymotion:e=>VI.test(e),mixcloud:e=>YI.test(e),vidyard:e=>KI.test(e),kaltura:e=>XI.test(e),file:db};var Jy=Object.defineProperty,Ese=Object.getOwnPropertyDescriptor,xse=Object.getOwnPropertyNames,wse=Object.prototype.hasOwnProperty,_se=(e,t)=>{for(var r in t)Jy(e,r,{get:t[r],enumerable:!0})},Tse=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of xse(t))!wse.call(e,a)&&a!==r&&Jy(e,a,{get:()=>t[a],enumerable:!(n=Ese(t,a))||n.enumerable});return e},Ase=e=>Tse(Jy({},"__esModule",{value:!0}),e),QI={};_se(QI,{default:()=>kse});var Ose=Ase(QI),ar=ju,Zt=vse,kse=[{key:"youtube",name:"YouTube",canPlay:Zt.canPlay.youtube,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./YouTube-1260fc82.js").then(e=>e.Y),["assets/YouTube-1260fc82.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"soundcloud",name:"SoundCloud",canPlay:Zt.canPlay.soundcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./SoundCloud-3d326d7f.js").then(e=>e.S),["assets/SoundCloud-3d326d7f.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"vimeo",name:"Vimeo",canPlay:Zt.canPlay.vimeo,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vimeo-44a73af8.js").then(e=>e.V),["assets/Vimeo-44a73af8.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"facebook",name:"Facebook",canPlay:Zt.canPlay.facebook,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Facebook-679d89ef.js").then(e=>e.F),["assets/Facebook-679d89ef.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"streamable",name:"Streamable",canPlay:Zt.canPlay.streamable,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Streamable-bf2bf784.js").then(e=>e.S),["assets/Streamable-bf2bf784.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"wistia",name:"Wistia",canPlay:Zt.canPlay.wistia,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Wistia-ba296090.js").then(e=>e.W),["assets/Wistia-ba296090.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"twitch",name:"Twitch",canPlay:Zt.canPlay.twitch,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Twitch-3a5d25d3.js").then(e=>e.T),["assets/Twitch-3a5d25d3.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"dailymotion",name:"DailyMotion",canPlay:Zt.canPlay.dailymotion,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./DailyMotion-70099f86.js").then(e=>e.D),["assets/DailyMotion-70099f86.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"mixcloud",name:"Mixcloud",canPlay:Zt.canPlay.mixcloud,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Mixcloud-3bd14a3c.js").then(e=>e.M),["assets/Mixcloud-3bd14a3c.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"vidyard",name:"Vidyard",canPlay:Zt.canPlay.vidyard,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Vidyard-e93d6b1b.js").then(e=>e.V),["assets/Vidyard-e93d6b1b.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"kaltura",name:"Kaltura",canPlay:Zt.canPlay.kaltura,lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./Kaltura-feee46e7.js").then(e=>e.K),["assets/Kaltura-feee46e7.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))},{key:"file",name:"FilePlayer",canPlay:Zt.canPlay.file,canEnablePIP:e=>Zt.canPlay.file(e)&&(document.pictureInPictureEnabled||(0,ar.supportsWebKitPresentationMode)())&&!Zt.AUDIO_EXTENSIONS.test(e),lazyPlayer:(0,ar.lazy)(()=>ir(()=>import("./FilePlayer-ffe9d389.js").then(e=>e.F),["assets/FilePlayer-ffe9d389.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"]))}],UO=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function Rse(e,t){return!!(e===t||UO(e)&&UO(t))}function Ise(e,t){if(e.length!==t.length)return!1;for(var r=0;r{for(var r in t)Fu(e,r,{get:t[r],enumerable:!0})},tN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Bse(t))!Gse.call(e,a)&&a!==r&&Fu(e,a,{get:()=>t[a],enumerable:!(n=Fse(t,a))||n.enumerable});return e},qse=(e,t,r)=>(r=e!=null?jse(Use(e)):{},tN(t||!e||!e.__esModule?Fu(r,"default",{value:e,enumerable:!0}):r,e)),Hse=e=>tN(Fu({},"__esModule",{value:!0}),e),rN={};zse(rN,{defaultProps:()=>Yse,propTypes:()=>Vse});var nN=Hse(rN),Wse=qse(oP);const{string:qt,bool:Ht,number:Ea,array:Wh,oneOfType:Ii,shape:gr,object:Wt,func:vt,node:GO}=Wse.default,Vse={url:Ii([qt,Wh,Wt]),playing:Ht,loop:Ht,controls:Ht,volume:Ea,muted:Ht,playbackRate:Ea,width:Ii([qt,Ea]),height:Ii([qt,Ea]),style:Wt,progressInterval:Ea,playsinline:Ht,pip:Ht,stopOnUnmount:Ht,light:Ii([Ht,qt,Wt]),playIcon:GO,previewTabIndex:Ea,fallback:GO,oEmbedUrl:qt,wrapper:Ii([qt,vt,gr({render:vt.isRequired})]),config:gr({soundcloud:gr({options:Wt}),youtube:gr({playerVars:Wt,embedOptions:Wt,onUnstarted:vt}),facebook:gr({appId:qt,version:qt,playerId:qt,attributes:Wt}),dailymotion:gr({params:Wt}),vimeo:gr({playerOptions:Wt,title:qt}),file:gr({attributes:Wt,tracks:Wh,forceVideo:Ht,forceAudio:Ht,forceHLS:Ht,forceSafariHLS:Ht,forceDisableHls:Ht,forceDASH:Ht,forceFLV:Ht,hlsOptions:Wt,hlsVersion:qt,dashVersion:qt,flvVersion:qt}),wistia:gr({options:Wt,playerId:qt,customControls:Wh}),mixcloud:gr({options:Wt}),twitch:gr({options:Wt,playerId:qt}),vidyard:gr({options:Wt})}),onReady:vt,onStart:vt,onPlay:vt,onPause:vt,onBuffer:vt,onBufferEnd:vt,onEnded:vt,onError:vt,onDuration:vt,onSeek:vt,onPlaybackRateChange:vt,onPlaybackQualityChange:vt,onProgress:vt,onClickPreview:vt,onEnablePIP:vt,onDisablePIP:vt},Rt=()=>{},Yse={playing:!1,loop:!1,controls:!1,volume:null,muted:!1,playbackRate:1,width:"640px",height:"360px",style:{},progressInterval:1e3,playsinline:!1,pip:!1,stopOnUnmount:!0,light:!1,fallback:null,wrapper:"div",previewTabIndex:0,oEmbedUrl:"https://noembed.com/embed?url={url}",config:{soundcloud:{options:{visual:!0,buying:!1,liking:!1,download:!1,sharing:!1,show_comments:!1,show_playcount:!1}},youtube:{playerVars:{playsinline:1,showinfo:0,rel:0,iv_load_policy:3,modestbranding:1},embedOptions:{},onUnstarted:Rt},facebook:{appId:"1309697205772819",version:"v3.3",playerId:null,attributes:{}},dailymotion:{params:{api:1,"endscreen-enable":!1}},vimeo:{playerOptions:{autopause:!1,byline:!1,portrait:!1,title:!1},title:null},file:{attributes:{},tracks:[],forceVideo:!1,forceAudio:!1,forceHLS:!1,forceDASH:!1,forceFLV:!1,hlsOptions:{},hlsVersion:"1.1.4",dashVersion:"3.1.3",flvVersion:"1.5.0",forceDisableHls:!1},wistia:{options:{},playerId:null,customControls:null},mixcloud:{options:{hide_cover:1}},twitch:{options:{},playerId:null},vidyard:{options:{}}},onReady:Rt,onStart:Rt,onPlay:Rt,onPause:Rt,onBuffer:Rt,onBufferEnd:Rt,onEnded:Rt,onError:Rt,onDuration:Rt,onSeek:Rt,onPlaybackRateChange:Rt,onPlaybackQualityChange:Rt,onProgress:Rt,onClickPreview:Rt,onEnablePIP:Rt,onDisablePIP:Rt};var Kse=Object.create,Qo=Object.defineProperty,Xse=Object.getOwnPropertyDescriptor,Zse=Object.getOwnPropertyNames,Jse=Object.getPrototypeOf,Qse=Object.prototype.hasOwnProperty,ele=(e,t,r)=>t in e?Qo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,tle=(e,t)=>{for(var r in t)Qo(e,r,{get:t[r],enumerable:!0})},aN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Zse(t))!Qse.call(e,a)&&a!==r&&Qo(e,a,{get:()=>t[a],enumerable:!(n=Xse(t,a))||n.enumerable});return e},iN=(e,t,r)=>(r=e!=null?Kse(Jse(e)):{},aN(t||!e||!e.__esModule?Qo(r,"default",{value:e,enumerable:!0}):r,e)),rle=e=>aN(Qo({},"__esModule",{value:!0}),e),mt=(e,t,r)=>(ele(e,typeof t!="symbol"?t+"":t,r),r),oN={};tle(oN,{default:()=>Bu});var nle=rle(oN),zO=iN(M),ale=iN(eN),sN=nN,ile=ju;const ole=5e3;class Bu extends zO.Component{constructor(){super(...arguments),mt(this,"mounted",!1),mt(this,"isReady",!1),mt(this,"isPlaying",!1),mt(this,"isLoading",!0),mt(this,"loadOnReady",null),mt(this,"startOnPlay",!0),mt(this,"seekOnPlay",null),mt(this,"onDurationCalled",!1),mt(this,"handlePlayerMount",t=>{if(this.player){this.progress();return}this.player=t,this.player.load(this.props.url),this.progress()}),mt(this,"getInternalPlayer",t=>this.player?this.player[t]:null),mt(this,"progress",()=>{if(this.props.url&&this.player&&this.isReady){const t=this.getCurrentTime()||0,r=this.getSecondsLoaded(),n=this.getDuration();if(n){const a={playedSeconds:t,played:t/n};r!==null&&(a.loadedSeconds=r,a.loaded=r/n),(a.playedSeconds!==this.prevPlayed||a.loadedSeconds!==this.prevLoaded)&&this.props.onProgress(a),this.prevPlayed=a.playedSeconds,this.prevLoaded=a.loadedSeconds}}this.progressTimeout=setTimeout(this.progress,this.props.progressFrequency||this.props.progressInterval)}),mt(this,"handleReady",()=>{if(!this.mounted)return;this.isReady=!0,this.isLoading=!1;const{onReady:t,playing:r,volume:n,muted:a}=this.props;t(),!a&&n!==null&&this.player.setVolume(n),this.loadOnReady?(this.player.load(this.loadOnReady,!0),this.loadOnReady=null):r&&this.player.play(),this.handleDurationCheck()}),mt(this,"handlePlay",()=>{this.isPlaying=!0,this.isLoading=!1;const{onStart:t,onPlay:r,playbackRate:n}=this.props;this.startOnPlay&&(this.player.setPlaybackRate&&n!==1&&this.player.setPlaybackRate(n),t(),this.startOnPlay=!1),r(),this.seekOnPlay&&(this.seekTo(this.seekOnPlay),this.seekOnPlay=null),this.handleDurationCheck()}),mt(this,"handlePause",t=>{this.isPlaying=!1,this.isLoading||this.props.onPause(t)}),mt(this,"handleEnded",()=>{const{activePlayer:t,loop:r,onEnded:n}=this.props;t.loopOnEnded&&r&&this.seekTo(0),r||(this.isPlaying=!1,n())}),mt(this,"handleError",(...t)=>{this.isLoading=!1,this.props.onError(...t)}),mt(this,"handleDurationCheck",()=>{clearTimeout(this.durationCheckTimeout);const t=this.getDuration();t?this.onDurationCalled||(this.props.onDuration(t),this.onDurationCalled=!0):this.durationCheckTimeout=setTimeout(this.handleDurationCheck,100)}),mt(this,"handleLoaded",()=>{this.isLoading=!1})}componentDidMount(){this.mounted=!0}componentWillUnmount(){clearTimeout(this.progressTimeout),clearTimeout(this.durationCheckTimeout),this.isReady&&this.props.stopOnUnmount&&(this.player.stop(),this.player.disablePIP&&this.player.disablePIP()),this.mounted=!1}componentDidUpdate(t){if(!this.player)return;const{url:r,playing:n,volume:a,muted:i,playbackRate:o,pip:s,loop:l,activePlayer:c,disableDeferredLoading:d}=this.props;if(!(0,ale.default)(t.url,r)){if(this.isLoading&&!c.forceLoad&&!d&&!(0,ile.isMediaStream)(r)){console.warn(`ReactPlayer: the attempt to load ${r} is being deferred until the player has loaded`),this.loadOnReady=r;return}this.isLoading=!0,this.startOnPlay=!0,this.onDurationCalled=!1,this.player.load(r,this.isReady)}!t.playing&&n&&!this.isPlaying&&this.player.play(),t.playing&&!n&&this.isPlaying&&this.player.pause(),!t.pip&&s&&this.player.enablePIP&&this.player.enablePIP(),t.pip&&!s&&this.player.disablePIP&&this.player.disablePIP(),t.volume!==a&&a!==null&&this.player.setVolume(a),t.muted!==i&&(i?this.player.mute():(this.player.unmute(),a!==null&&setTimeout(()=>this.player.setVolume(a)))),t.playbackRate!==o&&this.player.setPlaybackRate&&this.player.setPlaybackRate(o),t.loop!==l&&this.player.setLoop&&this.player.setLoop(l)}getDuration(){return this.isReady?this.player.getDuration():null}getCurrentTime(){return this.isReady?this.player.getCurrentTime():null}getSecondsLoaded(){return this.isReady?this.player.getSecondsLoaded():null}seekTo(t,r,n){if(!this.isReady){t!==0&&(this.seekOnPlay=t,setTimeout(()=>{this.seekOnPlay=null},ole));return}if(r?r==="fraction":t>0&&t<1){const i=this.player.getDuration();if(!i){console.warn("ReactPlayer: could not seek using fraction – duration not yet available");return}this.player.seekTo(i*t,n);return}this.player.seekTo(t,n)}render(){const t=this.props.activePlayer;return t?zO.default.createElement(t,{...this.props,onMount:this.handlePlayerMount,onReady:this.handleReady,onPlay:this.handlePlay,onPause:this.handlePause,onEnded:this.handleEnded,onLoaded:this.handleLoaded,onError:this.handleError}):null}}mt(Bu,"displayName","Player");mt(Bu,"propTypes",sN.propTypes);mt(Bu,"defaultProps",sN.defaultProps);var sle=Object.create,es=Object.defineProperty,lle=Object.getOwnPropertyDescriptor,ule=Object.getOwnPropertyNames,cle=Object.getPrototypeOf,dle=Object.prototype.hasOwnProperty,ple=(e,t,r)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fle=(e,t)=>{for(var r in t)es(e,r,{get:t[r],enumerable:!0})},lN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of ule(t))!dle.call(e,a)&&a!==r&&es(e,a,{get:()=>t[a],enumerable:!(n=lle(t,a))||n.enumerable});return e},ts=(e,t,r)=>(r=e!=null?sle(cle(e)):{},lN(t||!e||!e.__esModule?es(r,"default",{value:e,enumerable:!0}):r,e)),gle=e=>lN(es({},"__esModule",{value:!0}),e),ht=(e,t,r)=>(ple(e,typeof t!="symbol"?t+"":t,r),r),uN={};fle(uN,{createReactPlayer:()=>wle});var hle=gle(uN),_a=ts(M),mle=ts(LI),Vh=ts(Dse),qO=ts(eN),$i=nN,cN=ju,ble=ts(nle);const yle=(0,cN.lazy)(()=>ir(()=>import("./Preview-ef0abbdc.js").then(e=>e.P),["assets/Preview-ef0abbdc.js","assets/index-04f9e7e6.js","assets/index-b4d03b7b.css"])),vle=typeof window<"u"&&window.document,Sle=typeof Tt<"u"&&Tt.window&&Tt.window.document,Ele=Object.keys($i.propTypes),xle=vle||Sle?_a.Suspense:()=>null,Ni=[],wle=(e,t)=>{var r;return r=class extends _a.Component{constructor(){super(...arguments),ht(this,"state",{showPreview:!!this.props.light}),ht(this,"references",{wrapper:n=>{this.wrapper=n},player:n=>{this.player=n}}),ht(this,"handleClickPreview",n=>{this.setState({showPreview:!1}),this.props.onClickPreview(n)}),ht(this,"showPreview",()=>{this.setState({showPreview:!0})}),ht(this,"getDuration",()=>this.player?this.player.getDuration():null),ht(this,"getCurrentTime",()=>this.player?this.player.getCurrentTime():null),ht(this,"getSecondsLoaded",()=>this.player?this.player.getSecondsLoaded():null),ht(this,"getInternalPlayer",(n="player")=>this.player?this.player.getInternalPlayer(n):null),ht(this,"seekTo",(n,a,i)=>{if(!this.player)return null;this.player.seekTo(n,a,i)}),ht(this,"handleReady",()=>{this.props.onReady(this)}),ht(this,"getActivePlayer",(0,Vh.default)(n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return a;return t||null})),ht(this,"getConfig",(0,Vh.default)((n,a)=>{const{config:i}=this.props;return mle.default.all([$i.defaultProps.config,$i.defaultProps.config[a]||{},i,i[a]||{}])})),ht(this,"getAttributes",(0,Vh.default)(n=>(0,cN.omit)(this.props,Ele))),ht(this,"renderActivePlayer",n=>{if(!n)return null;const a=this.getActivePlayer(n);if(!a)return null;const i=this.getConfig(n,a.key);return _a.default.createElement(ble.default,{...this.props,key:a.key,ref:this.references.player,config:i,activePlayer:a.lazyPlayer||a,onReady:this.handleReady})})}shouldComponentUpdate(n,a){return!(0,qO.default)(this.props,n)||!(0,qO.default)(this.state,a)}componentDidUpdate(n){const{light:a}=this.props;!n.light&&a&&this.setState({showPreview:!0}),n.light&&!a&&this.setState({showPreview:!1})}renderPreview(n){if(!n)return null;const{light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s}=this.props;return _a.default.createElement(yle,{url:n,light:a,playIcon:i,previewTabIndex:o,oEmbedUrl:s,onClick:this.handleClickPreview})}render(){const{url:n,style:a,width:i,height:o,fallback:s,wrapper:l}=this.props,{showPreview:c}=this.state,d=this.getAttributes(n),p=typeof l=="string"?this.references.wrapper:void 0;return _a.default.createElement(l,{ref:p,style:{...a,width:i,height:o},...d},_a.default.createElement(xle,{fallback:s},c?this.renderPreview(n):this.renderActivePlayer(n)))}},ht(r,"displayName","ReactPlayer"),ht(r,"propTypes",$i.propTypes),ht(r,"defaultProps",$i.defaultProps),ht(r,"addCustomPlayer",n=>{Ni.push(n)}),ht(r,"removeCustomPlayers",()=>{Ni.length=0}),ht(r,"canPlay",n=>{for(const a of[...Ni,...e])if(a.canPlay(n))return!0;return!1}),ht(r,"canEnablePIP",n=>{for(const a of[...Ni,...e])if(a.canEnablePIP&&a.canEnablePIP(n))return!0;return!1}),r};var _le=Object.create,Uu=Object.defineProperty,Tle=Object.getOwnPropertyDescriptor,Ale=Object.getOwnPropertyNames,Ole=Object.getPrototypeOf,kle=Object.prototype.hasOwnProperty,Rle=(e,t)=>{for(var r in t)Uu(e,r,{get:t[r],enumerable:!0})},dN=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Ale(t))!kle.call(e,a)&&a!==r&&Uu(e,a,{get:()=>t[a],enumerable:!(n=Tle(t,a))||n.enumerable});return e},Ile=(e,t,r)=>(r=e!=null?_le(Ole(e)):{},dN(t||!e||!e.__esModule?Uu(r,"default",{value:e,enumerable:!0}):r,e)),Nle=e=>dN(Uu({},"__esModule",{value:!0}),e),pN={};Rle(pN,{default:()=>Mle});var Cle=Nle(pN),pb=Ile(Ose),Dle=hle;const Lle=pb.default[pb.default.length-1];var Mle=(0,Dle.createReactPlayer)(pb.default,Lle);const Ple=ft(Cle),HO=e=>{const t=Math.floor(e/3600),r=Math.floor(e%3600/60),n=Math.floor(e%60),a=t>0?`${t}:`:"",i=t>0?r.toString().padStart(2,"0"):r.toString(),o=n.toString().padStart(2,"0");return`${a}${i}:${o}`},$le=({isPlaying:e,isFullScreen:t,setIsPlaying:r,playingTime:n,duration:a,handleProgressChange:i,handleVolumeChange:o,onFullScreenClick:s,showToolbar:l})=>{const[c,d]=M.useState(.5),[p,g]=M.useState(!1),[h,b]=M.useState(.5),S=(O,_)=>{const w=Array.isArray(_)?_[0]:_;d(w),o(O,w),p&&g(!1)},v=()=>{p?(d(h),o(new Event("input"),h)):(b(c),d(0),o(new Event("input"),0)),g(!p)};return m.jsxs(F,{children:[(!l||t)&&m.jsx(qle,{"aria-label":"Small","data-testid":"progress-bar",isFullScreen:t,max:a,onChange:i,size:"small",value:n}),m.jsxs(jle,{align:"center",direction:"row",showToolbar:l||t,children:[m.jsx(Ule,{onClick:r,size:"small",children:e?m.jsx(Eb,{}):m.jsx(xb,{})}),m.jsxs(Hle,{direction:"row",children:[m.jsx("span",{children:HO(n)}),m.jsx("span",{className:"separator",children:"/"}),m.jsx("span",{className:"duration",children:HO(a)})]}),m.jsxs(Gle,{direction:"row",px:9,children:[m.jsx(Vl,{className:"volume-slider",max:1,min:0,onChange:S,size:"small",step:.1,value:c}),m.jsx(Fle,{onClick:v,children:p?m.jsx(Ble,{children:m.jsx(jM,{})}):m.jsx(FM,{})})]}),m.jsx(zle,{"data-testid":"fullscreen-button",onClick:s,children:t?m.jsx(UM,{}):m.jsx(BM,{})})]})]})},jle=B(F)` height: 60px; padding: 12px 16px; ${e=>e.showToolbar&&` @@ -1922,26 +1922,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `} &.error-wrapper { - color: ${M.primaryRed}; + color: ${P.primaryRed}; } -`,jle=B.span``,Fle=B.span` +`,Fle=B.span``,Ble=B.span` color: gray; -`,Ble=B(p1)` +`,Ule=B(p1)` && { font-size: 36px; padding: 2px; margin-left: 8px; } -`,Ule=B(F)` +`,Gle=B(F)` height: 28px; font-size: 26px; border-radius: 200px; - color: ${M.white}; + color: ${P.white}; margin-left: auto; .volume-slider { display: none; - color: ${M.white}; + color: ${P.white}; height: 3px; .MuiSlider-track { border: none; @@ -1949,7 +1949,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .MuiSlider-thumb { width: 2px; height: 10px; - background-color: ${M.white}; + background-color: ${P.white}; &:before { box-shadow: '0 4px 8px rgba(0,0,0,0.4)'; } @@ -1969,15 +1969,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho display: block; } } -`,Gle=B(F)` +`,zle=B(F)` cursor: pointer; padding: 8px; font-size: 32px; color: #d9d9d9; -`,zle=B(Wl)` +`,qle=B(Vl)` && { z-index: 20; - color: ${M.white}; + color: ${P.white}; height: 3px; width: calc(100% - 12px); margin: ${e=>e.isFullScreen?"80px auto":"-12px auto"}; @@ -1999,7 +1999,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho .MuiSlider-thumb { width: 10px; height: 10px; - background-color: ${M.white}; + background-color: ${P.white}; &:before { box-shadow: '0 4px 8px rgba(0,0,0,0.4)'; } @@ -2010,21 +2010,21 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } } } -`,qle=B(F)` - color: ${M.white}; +`,Hle=B(F)` + color: ${P.white}; font-size: 13px; margin-left: 16px; font-weight: 500; .separator { - color: ${M.GRAY6}; + color: ${P.GRAY6}; margin: 0 4px; } .duration { - color: ${M.GRAY6}; + color: ${P.GRAY6}; } -`,Hle=({hidden:e})=>{var xe,ee;const t=P.useRef(null),r=P.useRef(null),[n,a]=P.useState(!1),[i,o]=P.useState(!1),[s,l]=P.useState(!1),[c,d]=P.useState("ready"),[p,g]=P.useState(!1),[m,b]=P.useState(""),[S,v]=P.useState(!1),O=Pt();P.useEffect(()=>{const oe=(O==null?void 0:O.properties)||{},ie=Object.entries(oe).find(([fe])=>fe==="timestamp"),X=ie?ie[1]:"",Ee=X==null?void 0:X.split("-")[0];b(Ee)},[O]);const{isPlaying:_,playingTime:w,duration:A,setIsPlaying:x,setPlayingTime:E,setDuration:k,playingNode:N,volume:I,setVolume:D,setHasError:L,resetPlayer:j,isSeeking:q,setIsSeeking:H}=Po(oe=>oe),z=(N==null?void 0:N.media_url)||(N==null?void 0:N.link)||((xe=N==null?void 0:N.properties)==null?void 0:xe.link)||((ee=N==null?void 0:N.properties)==null?void 0:ee.media_url),W=(z==null?void 0:z.includes("youtube"))||(z==null?void 0:z.includes("youtu.be"));P.useEffect(()=>()=>j(),[j]),P.useEffect(()=>{N&&!p&&(E(0),k(0),g(!1),v(!1))},[N,E,k,g,p]),P.useEffect(()=>{q&&t.current&&(t.current.seekTo(w,"seconds"),H(!1))},[w,q,H]),P.useEffect(()=>{if(p&&m&&t.current&&!S){const oe=na(m);t.current.seekTo(oe,"seconds"),E(oe),v(!0)}},[p,m,E,S]);const K=()=>{x(!_)},G=()=>{x(!0)},V=()=>{x(!1)},J=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;E(X),t.current&&!q&&t.current.seekTo(X,"seconds")},ae=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;D(X)},re=()=>{L(!0),d("error")},ue=oe=>{if(!q){const ie=oe.playedSeconds;E(ie)}},Se=()=>{if(t.current){d("ready");const oe=t.current.getDuration();if(k(oe),m&&!S){const ie=na(m);t.current.seekTo(ie,"seconds"),E(ie),v(!0)}}},Q=()=>{r.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):r.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",Ie)}))},Ie=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",Ie)};P.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",Ie)}),P.useEffect(()=>{const oe=ie=>{if(i){const X=window.screen.height,Ee=ie.clientY,fe=X-Ee;l(fe<=50)}};return document.addEventListener("mousemove",oe),()=>{document.removeEventListener("mousemove",oe)}},[i,s]),P.useEffect(()=>{const oe=ie=>{i&&ie.key==="Escape"?(ie.preventDefault(),ie.stopPropagation()):n&&ie.key===" "&&(ie.preventDefault(),K())};return document.addEventListener("fullscreenchange",Ie),document.addEventListener("keydown",oe),()=>{document.removeEventListener("fullscreenchange",Ie),document.removeEventListener("keydown",oe)}});const Ue=()=>{K()};return z?h.jsxs(Wle,{ref:r,hidden:e,onBlur:()=>a(!1),onFocus:()=>a(!0),tabIndex:0,children:[h.jsx(Vle,{isFullScreen:i,children:h.jsx($r,{size:120,src:(N==null?void 0:N.image_url)||"",type:"clip"})}),h.jsx(Xle,{isFullScreen:i,onClick:Ue,children:h.jsx(Mle,{ref:t,controls:!1,height:i?window.screen.height:"200px",onBuffer:()=>d("buffering"),onBufferEnd:()=>d("ready"),onError:re,onPause:V,onPlay:G,onProgress:ue,onReady:Se,playing:_,url:z||"",volume:I,width:"100%"})}),c==="error"?h.jsx(Kle,{className:"error-wrapper",children:"Error happened, please try later"}):null,c==="ready"?h.jsx(Ple,{duration:A,handleProgressChange:J,handleVolumeChange:ae,isFullScreen:i,isPlaying:_,onFullScreenClick:Q,playingTime:w,setIsPlaying:K,showToolbar:s&&i}):null,c==="buffering"&&!W?h.jsx(Yle,{isFullScreen:i,children:h.jsx(Hl,{color:M.lightGray})}):null]}):null},Wle=B(F)` +`,Wle=({hidden:e})=>{var xe,ee;const t=M.useRef(null),r=M.useRef(null),[n,a]=M.useState(!1),[i,o]=M.useState(!1),[s,l]=M.useState(!1),[c,d]=M.useState("ready"),[p,g]=M.useState(!1),[h,b]=M.useState(""),[S,v]=M.useState(!1),O=Pt();M.useEffect(()=>{const oe=(O==null?void 0:O.properties)||{},ie=Object.entries(oe).find(([fe])=>fe==="timestamp"),X=ie?ie[1]:"",Ee=X==null?void 0:X.split("-")[0];b(Ee)},[O]);const{isPlaying:_,playingTime:w,duration:A,setIsPlaying:x,setPlayingTime:E,setDuration:k,playingNode:N,volume:I,setVolume:D,setHasError:L,resetPlayer:j,isSeeking:q,setIsSeeking:H}=$o(oe=>oe),z=(N==null?void 0:N.media_url)||(N==null?void 0:N.link)||((xe=N==null?void 0:N.properties)==null?void 0:xe.link)||((ee=N==null?void 0:N.properties)==null?void 0:ee.media_url),W=(z==null?void 0:z.includes("youtube"))||(z==null?void 0:z.includes("youtu.be"));M.useEffect(()=>()=>j(),[j]),M.useEffect(()=>{N&&!p&&(E(0),k(0),g(!1),v(!1))},[N,E,k,g,p]),M.useEffect(()=>{q&&t.current&&(t.current.seekTo(w,"seconds"),H(!1))},[w,q,H]),M.useEffect(()=>{if(p&&h&&t.current&&!S){const oe=na(h);t.current.seekTo(oe,"seconds"),E(oe),v(!0)}},[p,h,E,S]);const K=()=>{x(!_)},G=()=>{x(!0)},V=()=>{x(!1)},J=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;E(X),t.current&&!q&&t.current.seekTo(X,"seconds")},ae=(oe,ie)=>{const X=Array.isArray(ie)?ie[0]:ie;D(X)},re=()=>{L(!0),d("error")},ue=oe=>{if(!q){const ie=oe.playedSeconds;E(ie)}},Se=()=>{if(t.current){d("ready");const oe=t.current.getDuration();if(k(oe),h&&!S){const ie=na(h);t.current.seekTo(ie,"seconds"),E(ie),v(!0)}}},Q=()=>{r.current&&(document.fullscreenElement?(document.exitFullscreen(),setTimeout(()=>o(!1),300)):r.current.requestFullscreen().then(()=>{document.addEventListener("fullscreenchange",Ie)}))},Ie=()=>{o(!!document.fullscreenElement),document.removeEventListener("fullscreenchange",Ie)};M.useEffect(()=>()=>{document.removeEventListener("fullscreenchange",Ie)}),M.useEffect(()=>{const oe=ie=>{if(i){const X=window.screen.height,Ee=ie.clientY,fe=X-Ee;l(fe<=50)}};return document.addEventListener("mousemove",oe),()=>{document.removeEventListener("mousemove",oe)}},[i,s]),M.useEffect(()=>{const oe=ie=>{i&&ie.key==="Escape"?(ie.preventDefault(),ie.stopPropagation()):n&&ie.key===" "&&(ie.preventDefault(),K())};return document.addEventListener("fullscreenchange",Ie),document.addEventListener("keydown",oe),()=>{document.removeEventListener("fullscreenchange",Ie),document.removeEventListener("keydown",oe)}});const Ue=()=>{K()};return z?m.jsxs(Vle,{ref:r,hidden:e,onBlur:()=>a(!1),onFocus:()=>a(!0),tabIndex:0,children:[m.jsx(Yle,{isFullScreen:i,children:m.jsx($r,{size:120,src:(N==null?void 0:N.image_url)||"",type:"clip"})}),m.jsx(Zle,{isFullScreen:i,onClick:Ue,children:m.jsx(Ple,{ref:t,controls:!1,height:i?window.screen.height:"200px",onBuffer:()=>d("buffering"),onBufferEnd:()=>d("ready"),onError:re,onPause:V,onPlay:G,onProgress:ue,onReady:Se,playing:_,url:z||"",volume:I,width:"100%"})}),c==="error"?m.jsx(Xle,{className:"error-wrapper",children:"Error happened, please try later"}):null,c==="ready"?m.jsx($le,{duration:A,handleProgressChange:J,handleVolumeChange:ae,isFullScreen:i,isPlaying:_,onFullScreenClick:Q,playingTime:w,setIsPlaying:K,showToolbar:s&&i}):null,c==="buffering"&&!W?m.jsx(Kle,{isFullScreen:i,children:m.jsx(Wl,{color:P.lightGray})}):null]}):null},Vle=B(F)` border-bottom: 1px solid rgba(0, 0, 0, 0.25); background: rgba(0, 0, 0, 0.2); position: relative; @@ -2035,45 +2035,45 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho &:focus { outline: none; } -`,Vle=B(F)` +`,Yle=B(F)` position: absolute; top: ${e=>e.isFullScreen?"38%":"18%"}; left: 50%; transform: translateX(-50%); z-index: -1; -`,Yle=B(F)` +`,Kle=B(F)` position: absolute; top: ${e=>e.isFullScreen?"43%":"39%"}; left: 50%; transform: translateX(-50%); z-index: 1; -`,Kle=B(F)` +`,Xle=B(F)` height: 60px; padding: 12px 16px; - color: ${M.primaryRed}; -`,Xle=B.div` + color: ${P.primaryRed}; +`,Zle=B.div` margin: ${e=>e.isFullScreen?"80px auto":"0"}; width: 100%; cursor: pointer; -`,Zle=P.memo(Hle),Jle=({open:e})=>{const{setSelectedNode:t}=s1(i=>i),r=Pt(),{setSidebarOpen:n}=Ct(i=>i),{playingNode:a}=Po(i=>i);return h.jsx(Ca,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:h.jsxs(Qle,{children:[h.jsx(Zle,{hidden:(r==null?void 0:r.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),h.jsx(tue,{children:h.jsx(woe,{})}),h.jsx(eue,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:h.jsx(GM,{})}),h.jsx(rue,{onClick:()=>{n(!1)},children:h.jsx(f1,{})})]})})},Qle=B(F)(({theme:e})=>({position:"relative",background:M.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),eue=B(F)` +`,Jle=M.memo(Wle),Qle=({open:e})=>{const{setSelectedNode:t}=s1(i=>i),r=Pt(),{setSidebarOpen:n}=Ct(i=>i),{playingNode:a}=$o(i=>i);return m.jsx(Ca,{"data-testid":"sidebar-sub-view",direction:"right",in:e,style:{position:e?"relative":"absolute"},children:m.jsxs(eue,{children:[m.jsx(Jle,{hidden:(r==null?void 0:r.ref_id)!==(a==null?void 0:a.ref_id)},a==null?void 0:a.ref_id),m.jsx(rue,{children:m.jsx(_oe,{})}),m.jsx(tue,{"data-testid":"close-sidebar-sub-view",onClick:()=>{t(null)},children:m.jsx(GM,{})}),m.jsx(nue,{onClick:()=>{n(!1)},children:m.jsx(f1,{})})]})})},eue=B(F)(({theme:e})=>({position:"relative",background:P.BG1,width:"100%",margin:"64px auto 20px 10px",borderRadius:"16px",zIndex:29,[e.breakpoints.up("sm")]:{width:"390px"}})),tue=B(F)` font-size: 32px; - color: ${M.white}; + color: ${P.white}; cursor: pointer; position: absolute; right: 3px; top: 3px; &:hover { - color: ${M.GRAY6}; + color: ${P.GRAY6}; } &:active { } -`,tue=B(F)` +`,rue=B(F)` flex: 1 1 100%; border-radius: 16px; overflow: hidden; -`,rue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:M.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),nue=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Ct(r=>({sidebarIsOpen:r.setSidebarOpen,showCollapseButton:r.showCollapseButton}));return h.jsx(h.Fragment,{children:t&&h.jsx(aue,{onClick:()=>{e(!0)},children:h.jsx(zM,{})})})},aue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:M.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),fN=390,iue=P.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:r}=Ct(a=>a),n=vM();return h.jsxs(lue,{ref:t,id:"sidebar-wrapper",children:[h.jsx(cue,{}),n?h.jsx(Aj,{}):h.jsx(_F,{}),!e&&h.jsx(uue,{onClick:()=>{r(!1)},children:h.jsx(f1,{})})]})}),oue=["topic","person","guest","event","organization","place","project","software"],sue=e=>{if(e==null)return!1;const r=Object.keys(e).filter(n=>n!=="pubkey");return r.length===1&&r[0]==="name"},gN=()=>{const{sidebarIsOpen:e}=Ct(n=>n),t=Pt(),r=!!t&&e&&!oue.includes(t.node_type)&&!sue(t.properties);return h.jsxs(h.Fragment,{children:[h.jsx(Ca,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:h.jsx(iue,{subViewOpen:r})}),h.jsx(Jle,{open:r}),!e&&h.jsx(nue,{})]})},lue=B(F)(({theme:e})=>({position:"relative",background:M.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:fN}})),uue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:M.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:M.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:M.BG1_HOVER},"&:active":{backgroundColor:M.BG1_PRESS,color:M.GRAY6}})),cue=B(F)` +`,nue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),aue=()=>{const{sidebarIsOpen:e,showCollapseButton:t}=Ct(r=>({sidebarIsOpen:r.setSidebarOpen,showCollapseButton:r.showCollapseButton}));return m.jsx(m.Fragment,{children:t&&m.jsx(iue,{onClick:()=>{e(!0)},children:m.jsx(zM,{})})})},iue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"64px"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),fN=390,oue=M.forwardRef(({subViewOpen:e},t)=>{const{setSidebarOpen:r}=Ct(a=>a),n=vM();return m.jsxs(uue,{ref:t,id:"sidebar-wrapper",children:[m.jsx(due,{}),n?m.jsx(Oj,{}):m.jsx(TF,{}),!e&&m.jsx(cue,{onClick:()=>{r(!1)},children:m.jsx(f1,{})})]})}),sue=["topic","person","guest","event","organization","place","project","software"],lue=e=>{if(e==null)return!1;const r=Object.keys(e).filter(n=>n!=="pubkey");return r.length===1&&r[0]==="name"},gN=()=>{const{sidebarIsOpen:e}=Ct(n=>n),t=Pt(),r=!!t&&e&&!sue.includes(t.node_type)&&!lue(t.properties);return m.jsxs(m.Fragment,{children:[m.jsx(Ca,{direction:"right",in:e,mountOnEnter:!0,unmountOnExit:!0,children:m.jsx(oue,{subViewOpen:r})}),m.jsx(Qle,{open:r}),!e&&m.jsx(aue,{})]})},uue=B(F)(({theme:e})=>({position:"relative",background:P.BG1,height:"100vh",width:"100%",zIndex:30,[e.breakpoints.up("sm")]:{width:fN}})),cue=B(F).attrs({align:"center",justify:"center",p:8})(({theme:e})=>({backgroundColor:P.BG1_NORMAL,cursor:"pointer",transitionDuration:"0.2s",position:"absolute",right:"0px",top:"50%",zIndex:1,width:"24px",height:"48px",transform:"translateY(-50%)",borderRadius:"0px 6px 6px 0px",boxShadow:"2px 0px 6px 0px rgba(0, 0, 0, 0.25) inset",color:P.white,[e.breakpoints.up("sm")]:{left:"100%"},"&:hover":{backgroundColor:P.BG1_HOVER},"&:active":{backgroundColor:P.BG1_PRESS,color:P.GRAY6}})),due=B(F)` flex: 0 0 64px; - background: ${M.BG2}; -`;gN.displayName="Sidebar";const xue=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:fN,SideBar:gN},Symbol.toStringTag,{value:"Module"}));export{fN as M,Mle as R,Wl as S,xue as i,yse as p,qO as s,$u as u}; + background: ${P.BG2}; +`;gN.displayName="Sidebar";const wue=Object.freeze(Object.defineProperty({__proto__:null,MENU_WIDTH:fN,SideBar:gN},Symbol.toStringTag,{value:"Module"}));export{fN as M,Ple as R,Vl as S,wue as i,vse as p,HO as s,ju as u}; diff --git a/build/assets/isPlainObject-2fea37bb.js b/build/assets/isPlainObject-0689f20b.js similarity index 98% rename from build/assets/isPlainObject-2fea37bb.js rename to build/assets/isPlainObject-0689f20b.js index fc9dda5c5..4a4492fa5 100644 --- a/build/assets/isPlainObject-2fea37bb.js +++ b/build/assets/isPlainObject-0689f20b.js @@ -1 +1 @@ -import{L as de,M as pe,O as M,X as Ne,x as S,aj as Ge,r as U,H as ge,j as E,U as H,Y as K,V as be,S as Ue,au as z,av as B,aB as T,bN as he,az as ve,a9 as X,bO as He,aF as Ke,bP as ze,bQ as ye,bR as Xe,bS as Ye,bT as Ze,aI as ke,aL as _e,aA as Qe,aH as Je,bU as We,aG as me,bV as je}from"./index-8f1177e3.js";import{u as Ve,b as $e,f as er,S as rr}from"./Stack-55a7903f.js";import{T as W}from"./Typography-429e0f96.js";function ar(e){return de("PrivateSwitchBase",e)}pe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const nr=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],tr=e=>{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const J=m.target.checked;xe(J),y&&y(m,J)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),Q=tr(D);return E.jsxs(sr,S({component:"span",className:H(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[E.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Lr=wr,Er=Lr,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Er(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&Ta?new Pa:void 0;for(t.set(e,r),t.set(r,e);++f{const{classes:r,checked:a,disabled:n,edge:s}=e,t={root:["root",a&&"checked",n&&"disabled",s&&`edge${K(s)}`],input:["input"]};return be(t,ar,r)},sr=M(Ne)(({ownerState:e})=>S({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),ir=M("input",{shouldForwardProp:Ge})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),or=U.forwardRef(function(r,a){const{autoFocus:n,checked:s,checkedIcon:t,className:i,defaultChecked:o,disabled:l,disableFocusRipple:c=!1,edge:d=!1,icon:f,id:u,inputProps:h,inputRef:p,name:g,onBlur:b,onChange:y,onFocus:v,readOnly:O,required:$=!1,tabIndex:_,type:P,value:L}=r,A=ge(r,nr),[w,xe]=Ve({controlled:s,default:!!o,name:"SwitchBase",state:"checked"}),C=$e(),Me=m=>{v&&v(m),C&&C.onFocus&&C.onFocus(m)},Be=m=>{b&&b(m),C&&C.onBlur&&C.onBlur(m)},qe=m=>{if(m.nativeEvent.defaultPrevented)return;const J=m.target.checked;xe(J),y&&y(m,J)};let I=l;C&&typeof I>"u"&&(I=C.disabled);const De=P==="checkbox"||P==="radio",D=S({},r,{checked:w,disabled:I,disableFocusRipple:c,edge:d}),Q=tr(D);return E.jsxs(sr,S({component:"span",className:H(Q.root,i),centerRipple:!0,focusRipple:!c,disabled:I,tabIndex:null,role:void 0,onFocus:Me,onBlur:Be,ownerState:D,ref:a},A,{children:[E.jsx(ir,S({autoFocus:n,checked:s,defaultChecked:o,className:Q.input,disabled:I,id:De?u:void 0,name:g,onChange:qe,readOnly:O,ref:p,required:$,ownerState:D,tabIndex:_,type:P},P==="checkbox"&&L===void 0?{}:{value:L},h)),w?t:f]}))}),ss=or;function lr(e){return de("MuiFormControlLabel",e)}const ur=pe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),F=ur,cr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fr=e=>{const{classes:r,disabled:a,labelPlacement:n,error:s,required:t}=e,i={root:["root",a&&"disabled",`labelPlacement${K(n)}`,s&&"error",t&&"required"],label:["label",a&&"disabled"],asterisk:["asterisk",s&&"error"]};return be(i,lr,r)},dr=M("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:a}=e;return[{[`& .${F.label}`]:r.label},r.root,r[`labelPlacement${K(a.labelPlacement)}`]]}})(({theme:e,ownerState:r})=>S({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${F.disabled}`]:{cursor:"default"}},r.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},r.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},r.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${F.label}`]:{[`&.${F.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pr=M("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})(({theme:e})=>({[`&.${F.error}`]:{color:(e.vars||e).palette.error.main}})),gr=U.forwardRef(function(r,a){var n,s;const t=Ue({props:r,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:l,disabled:c,disableTypography:d,label:f,labelPlacement:u="end",required:h,slotProps:p={}}=t,g=ge(t,cr),b=$e(),y=(n=c??l.props.disabled)!=null?n:b==null?void 0:b.disabled,v=h??l.props.required,O={disabled:y,required:v};["checked","name","onChange","value","inputRef"].forEach(w=>{typeof l.props[w]>"u"&&typeof t[w]<"u"&&(O[w]=t[w])});const $=er({props:t,muiFormControl:b,states:["error"]}),_=S({},t,{disabled:y,labelPlacement:u,required:v,error:$.error}),P=fr(_),L=(s=p.typography)!=null?s:o.typography;let A=f;return A!=null&&A.type!==W&&!d&&(A=E.jsx(W,S({component:"span"},L,{className:H(P.label,L==null?void 0:L.className),children:A}))),E.jsxs(dr,S({className:H(P.root,i),ownerState:_,ref:a},g,{children:[U.cloneElement(l,O),v?E.jsxs(rr,{display:"block",children:[A,E.jsxs(pr,{ownerState:_,"aria-hidden":!0,className:P.asterisk,children:[" ","*"]})]}):A]}))}),is=gr;var br=z,hr=B,vr="[object Symbol]";function yr(e){return typeof e=="symbol"||hr(e)&&br(e)==vr}var Y=yr,_r=T,mr=Y,$r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pr=/^\w*$/;function Ar(e,r){if(_r(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||mr(e)?!0:Pr.test(e)||!$r.test(e)||r!=null&&e in Object(r)}var Z=Ar,Pe=he,Cr="Expected a function";function k(e,r){if(typeof e!="function"||r!=null&&typeof r!="function")throw new TypeError(Cr);var a=function(){var n=arguments,s=r?r.apply(this,n):n[0],t=a.cache;if(t.has(s))return t.get(s);var i=e.apply(this,n);return a.cache=t.set(s,i)||t,i};return a.cache=new(k.Cache||Pe),a}k.Cache=Pe;var Sr=k,Tr=Sr,Or=500;function wr(e){var r=Tr(e,function(n){return a.size===Or&&a.clear(),n}),a=r.cache;return r}var Lr=wr,Er=Lr,Ir=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Fr=/\\(\\)?/g,Rr=Er(function(e){var r=[];return e.charCodeAt(0)===46&&r.push(""),e.replace(Ir,function(a,n,s,t){r.push(s?t.replace(Fr,"$1"):n||a)}),r}),xr=Rr;function Mr(e,r){for(var a=-1,n=e==null?0:e.length,s=Array(n);++ao))return!1;var c=t.get(e),d=t.get(r);if(c&&d)return c==r&&d==e;var f=-1,u=!0,h=a&Ta?new Pa:void 0;for(t.set(e,r),t.set(r,e);++f Second Brain - +